/* Quiet interiors: one primary task per panel. */
/* Low-specificity fallback for live loading, retry and account controls. */
:where(#dialog-body button) { border: 1px solid #d7cfb8; border-radius: 5px; background: #f7f3e7; color: #59644f; padding: 10px 14px; font: inherit; }
:where(#dialog-body button:disabled) { cursor: not-allowed; opacity: .6; }
.quiet-footer { justify-content:flex-end; align-items:center; gap:18px; padding:10px 8px; }
.quiet-footer #save-note:empty { display:none; }
.quiet-footer #save-note:not(:empty) { margin-right:auto; color:#9b6545; }
.quiet-footer button { padding:8px 4px; text-decoration:none; font-size:12px; }
.personal-menu { display:grid; margin:25px 0; }
.personal-menu button { display:flex; justify-content:space-between; border:0; border-bottom:1px solid #e4dece; background:none; padding:20px 0; text-align:left; color:#59644f; font:inherit; }
.personal-menu span { color:#aaa18c; }
.resident { width:auto; padding:12px 17px; }
.resident .resident-top,.resident progress,.resident .exp-copy { display:none; }
.resident strong { display:inline; font-size:14px; font-family:inherit; margin:0 12px 0 0; }
.resident small { display:inline; }
.object-label small,.shore-caption { display:none; }
.preview-management { display:flex; gap:24px; margin:0 32px 20px; }
.mode-picker { display:flex; gap:12px; align-items:center; margin-bottom:20px; color:#85816b; }
.mode-picker select { max-width:100%; padding:10px; border:1px solid #d7cfb8; border-radius:5px; background:#faf6e9; color:#5c6655; font:inherit; }
.bottle-feedback { display:flex; gap:15px; }
.bottle-feedback button { background:none; border:0; padding:8px 0; color:#989481; font-size:11px; }
.bottle-feedback button[aria-pressed="true"] { color:#9f694c; }
.bottle-feedback { align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.feedback-more { flex: 1; min-width: 180px; }
.feedback-more summary { cursor: pointer; padding: 12px 0; color: #79816c; font-size: 12px; }
.feedback-options { display: grid; gap: 8px; padding: 12px 16px; margin: 4px 0 12px; border: 1px solid #e4dece; border-radius: 6px; background: #f5f1e6; }
.feedback-options button { text-align: left; min-height: 40px; font-size: 12px; }
.feedback-options .hint { margin: 0; line-height: 1.8; }
#live-comments .note { padding: 16px 0; border-top: 1px solid #e4dece; }
#live-comments .note p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
#live-compose textarea { resize: none; }
#live-story textarea { resize: none; }
.story-manuscript { margin: 18px 0; padding: 18px 0; border-top: 1px solid #e4dece; }
.story-manuscript > p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.story-review { margin-top: 18px; }
.mode-picker small { font-size: 10px; margin-left: 5px; }
.mode-picker label:has(input:disabled) { cursor: not-allowed; }
.personal-mailbox { margin-top: 26px; min-height: 0; }
.personal-mailbox .envelope-copy small { line-height: 1.8; white-space: normal; }
.mailbox-resident { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; border: 1px solid #d1c8ac; border-radius: 9px; background: linear-gradient(120deg,#ecefdd,#f6f0dc); color: #59644f; text-align: left; }
.mailbox-resident > span:nth-child(2) { flex: 1; min-width: 0; }
.mailbox-resident strong,.mailbox-resident small { display: block; }
.mailbox-resident small { margin-top: 8px; font-size: 11px; line-height: 1.8; }
dialog { width: min(620px, calc(100% - 28px)); padding: 24px 34px 30px; background: #fcf9f0; border-radius: 10px; }
.dialog-top { font-size: 10px; letter-spacing: 1px; background: #fcf9f0; }
dialog h2 { font-size: 27px; margin: 20px 0 12px; }
.letter-heading { display: flex; align-items: flex-start; gap: 18px; }
.letter-heading h2 { flex: 1; font-size: clamp(28px, 5vw, 32px); color: #4d5145; }
.letter-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.letter-byline strong { font-size: 15px; font-weight: 600; color: #59644f; overflow-wrap: anywhere; }
.letter-byline span,.reunion-meta { font-size: 11px; line-height: 1.8; color: #8b8879; }
.reunion-meta { margin: 0 0 8px; }
.letter-footer { border-top: 1px solid #e4dece; margin-top: 24px; padding: 12px 0 0; justify-content: flex-end; }
.letter-footer .quiet-next { font-size: 12px; text-decoration: none; padding: 12px 0; }
.bookmark { background: none; border: none; color: #a18a57; font-size: 26px; min-width: 44px; min-height: 44px; margin-top: 13px; }
.meta { font-size: 11px; color: #8b8879; }
.meta span { color: #a39b89; }
.reading-paper { padding: 14px 0 12px; }
.reading-paper .letter-text { font-family: Georgia, "SimSun", serif; font-size: 18px; line-height: 2.15; margin: 12px 0 22px; color: #4d5145; }
.letter-actions { border-top: 1px solid #e6dfce; padding-top: 22px; margin-top: 0; }
.letter-actions button { min-width: 120px; }
.disclosure { border-top: 1px solid #e4dece; margin-top: 22px; font-size: 13px; }
.disclosure summary { cursor: pointer; color: #737665; padding: 17px 0; font-size: 12px; }
.disclosure summary span { margin-left: 12px; color: #9a9788; font-size: 10px; }
.disclosure .note p { margin: 5px 0; }
.quiet-next,.text-button { display: block; border: 0; background: none; color: #79816c; font-size: 12px; padding: 12px 0; cursor: pointer; }
.quiet-next { margin-left: auto; }
.empty-copy { color: #9b9788; font-size: 12px; padding: 5px 0 15px; }
.mail-tabs { display: flex; border-bottom: 1px solid #e2dccb; gap: 20px; margin: 25px 0 22px; }
.mail-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 2px; color: #929080; font-size: 13px; }
.mail-tabs button[aria-pressed="true"] { color: #4a6a5e; border-color: #6c8270; }
.mail-tabs span { margin-left: 6px; font-size: 10px; opacity: .7; }
.envelope-list { min-height: 235px; }
.envelope { width: 100%; display: flex; gap: 17px; align-items: center; text-align: left; border: 1px solid #e3d9c4; border-radius: 5px; background: linear-gradient(155deg,#fffdf5,#f4eddf); padding: 20px 18px; margin-bottom: 13px; color: #545b4b; box-shadow: 0 3px 0 #d9cbae28; }
.envelope:hover { border-color: #b5baa1; background: #fffdf4; }
.envelope-mark { font-size: 29px; color: #a59f83; }
.envelope-copy { min-width: 0; flex: 1; }
.envelope-copy strong { display: block; font-family: Georgia,"SimSun",serif; font-size: 17px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envelope-copy small { display: block; font-size: 11px; color: #989281; margin-top: 9px; }
.envelope-arrow { color: #a49b87; font-size: 14px; }
.empty-mail { padding: 45px 5px; text-align: center; color: #969580; }
.empty-mail > span { font-size: 48px; color: #c0b99e; }
.empty-mail p { font-size: 13px; margin-top: 18px; }
.empty-mail small { font-size: 10px; }
.empty-mail .text-button { margin: auto; }
.stationery { margin-top: 26px; }
.stationery input,.stationery textarea { background: transparent; border: none; border-radius: 0; padding: 10px 0; }
.stationery .subject-input { font-family: Georgia,"SimSun",serif; font-size: 18px; border-bottom: 1px solid #e2dccc; margin-bottom: 14px; }
.stationery textarea { min-height: 260px; font-size: 16px; line-height: 32px; background: repeating-linear-gradient(transparent 0 31px,#e9e3d3 31px 32px); background-position: 0 10px; padding: 10px 2px; }
.stationery input:focus,.stationery textarea:focus { outline: 2px solid #aeb89e; outline-offset: 5px; }
.stationery input::placeholder,.stationery textarea::placeholder { color: #a6a28f; }
.signature { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 12px 0 25px; font-size: 11px; color: #a19c88; }
.signature input { width: 130px; margin: 0; border-bottom: 1px solid #e2dccc; text-align: right; font-size: 14px; }
.draft-status { border: none; padding: 0; margin: 12px 0 0; font-size: 10px; color: #999a89; }
.reply-subject { color: #9c9580; font-size: 12px; }
.resident-detail { border: 1px solid #d1c8ac; border-radius: 9px; background: linear-gradient(120deg,#ecefdd,#f6f0dc); display: grid; grid-template-columns: 62px 1fr 1fr; align-items: center; gap: 16px; padding: 25px; margin: 28px 0; }
.resident-seal { width: 55px; height: 55px; border: 1px solid #b4b899; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #929e79; }
.resident-detail strong { display: block; font: 32px Georgia,serif; color: #56664b; margin-top: 4px; }
.resident-quota { text-align: right; }
.resident-quota span,.resident-detail small { font-size: 10px; color: #899078; }
.resident-detail progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: #82956b; }
.resident-detail small { grid-column: 1 / -1; margin-top: -8px; }
.sandbox-controls { margin-top: 0; border: 0; padding: 0 0 15px; }
.story-byline { display: flex; align-items: center; gap: 10px; color: #9b8b69; font-size: 11px; margin: 20px 0 10px; }
.story-byline:after { content: ""; height: 1px; flex: 1; background: #e5dcc9; }
.continuous .story-byline { display: none; }
.reading-toggle { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 0 0 15px; color: #95917e; font-size: 11px; }
.reading-toggle input { display: inline; width: auto; margin: 0; accent-color: #7c9270; }
@media(max-width:600px) {
  dialog { padding: 18px 22px 23px; }
  dialog h2 { font-size: 24px; }
  .reading-paper .letter-text { font-size: 17px; }
  .mail-tabs { gap: 0; justify-content: space-between; }
  .envelope { padding: 17px 12px; gap: 12px; }
  .envelope-copy strong { font-size: 15px; }
  .resident-detail { padding: 18px 14px; gap: 10px; grid-template-columns: 42px 1fr 1fr; }
  .resident-seal { width: 38px; height: 38px; font-size: 23px; }
  .resident-detail strong { font-size: 27px; }
  .stationery textarea { min-height: 230px; }
}
