.office-decision-entry, .office-reading-desk { --desk-ink: #203c34; --desk-paper: #fffdf5; color: var(--desk-ink); }
.office-decision-entry { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 24px 0; padding: 24px 28px; border: 1px solid #b1b5a0; border-left: 6px solid #557459; background: #e9eddc; }
.office-decision-entry > div:first-child { max-width: 650px; }
.office-decision-entry h2 { margin: 5px 0 10px; font-size: clamp(1.25rem, 2.5vw, 1.8rem); letter-spacing: -.025em; }
.office-decision-entry p { margin: 0; font-size: .88rem; line-height: 1.6; }
.office-entry-actions { display: grid; gap: 10px; min-width: 220px; }
.office-entry-actions p { font-size: .76rem; }
.office-desk-label { font: 750 .67rem/1.5 var(--home-mono, monospace); letter-spacing: .055em; }
.office-reading-desk { margin-bottom: 28px; padding: clamp(18px, 3vw, 38px); border: 1px solid #a4aa94; background: #eeeddf; box-shadow: 5px 5px 0 #c6ccb5; scroll-margin-top: 28px; }
.office-reading-desk[hidden], .office-reading-desk [hidden], .office-decision-entry [hidden] { display: none !important; }
.office-desk-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.office-desk-head > div { max-width: 720px; }
.office-desk-head h2 { margin: 10px 0 18px; font-size: clamp(2.2rem, 4.7vw, 4rem); letter-spacing: -.045em; line-height: 1.06; }
.office-desk-head p { line-height: 1.65; }
.office-desk-seal { flex: none; padding: 14px 20px; border: 3px double #6c775a; font: 750 1.3rem/1.8 var(--home-mono, monospace); transform: rotate(5deg); background: #fffdf5; }
.office-decision-reason { padding: 22px 26px; border: 1px solid #b5ad90; background: var(--desk-paper); }
.office-decision-reason h3 { margin: 8px 0 12px; font-size: 1.5rem; line-height: 1.2; }
.office-reading-desk p { font-size: .92rem; line-height: 1.65; }
.office-reading-desk a { color: #315a49; text-underline-offset: 3px; }
.office-alternative { padding-left: 16px; border-left: 3px solid #aa8b5a; }
.office-reading-desk .office-source-note { font-size: .78rem; line-height: 1.65; color: #5b6456; }
.office-desk-papers { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 30px; }
.office-desk-papers > * { min-width: 0; }
.office-findings h3 { font-size: 1.3rem; margin: 0 0 8px; }
.office-finding { margin: 18px 0; padding: 20px; border: 1px solid #b3af96; border-top: 4px solid #a34c38; background: var(--desk-paper); scroll-margin-top: 24px; }
.office-finding[data-check-status="passed"] { border-top-color: #537254; }
.office-finding-date { display: grid; gap: 4px; font: 650 .72rem/1.5 var(--home-mono, monospace); }
.office-finding-date span { color: #626c58; }
.office-finding-date small { font: inherit; }
.office-finding h4 { margin: 15px 0; font-size: 1.25rem; line-height: 1.3; }
.office-stamp-question summary { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 8px 3px 12px; cursor: pointer; list-style: none; }
.office-stamp-question summary::-webkit-details-marker { display: none; }
.office-question-heading { display: grid; gap: 9px; min-width: 0; flex: 1; }
.office-question-text { font-size: 1rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.office-question-heading time { font: 650 .72rem/1.6 var(--home-mono, monospace); }
.office-paper-action { font-size: .75rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.office-paper-fold, .office-stamp-question[open] .office-paper-unfold { display: none; }
.office-stamp-question[open] .office-paper-fold { display: inline; }
.office-stamp-question:not([open]) summary { padding-right: 16px; background: linear-gradient(135deg, transparent calc(100% - 14px), #ded6ba calc(100% - 14px), #f4ecd5); }
.office-stamp { flex: none; margin-top: 4px; padding: 7px 10px; border: 3px double #a34c38; color: #8d3929; font: 800 .81rem/1.3 var(--home-mono, monospace); transform: rotate(-4deg); transition: transform 160ms ease; }
[data-check-status="passed"] .office-stamp { color: #315738; border-color: #537254; transform: rotate(4deg); }
.office-stamp-question[open] .office-stamp { transform: translateY(-3px) rotate(0); }
.office-stamp-ink { margin-top: 10px; padding-top: 16px; border-top: 1px dashed #b9ad8f; }
.office-stamp-ink h5 { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.office-stamp-ink a { font-size: .82rem; }
.office-reading-desk code { display: block; margin-top: 14px; font-size: .68rem; overflow-wrap: anywhere; }
.office-open-question { display: flex; gap: 14px; padding: 18px; border: 2px dashed #a38a5f; background: #fff5d9; }
.office-open-question > span { font: 800 2.2rem/1.5 var(--home-mono, monospace); }
.office-open-question p { margin: 0; }
.office-private-paper { position: relative; padding: 25px; border: 1px solid #bbb097; background: #fff9df; box-shadow: 3px 3px 0 #d3cba8; }
.office-private-paper > h3 { margin: 10px 24px 12px 0; font-size: 1.55rem; line-height: 1.25; }
.office-pencil-mark { position: absolute; right: 20px; top: 28px; color: #967849; font-size: 2.2rem; transform: rotate(-15deg); }
.office-reading-desk button, .office-decision-entry button { min-height: 44px; padding: 10px 14px; color: #203c34; border: 1px solid #69755b; background: #fffdf5; font-family: inherit; font-size: .86rem; font-weight: 700; line-height: 1.45; cursor: pointer; }
.office-reading-desk button:hover, .office-decision-entry button:hover { background: #e3e9d3; }
.office-decision-entry #office-decision-open { background: #203c34; color: #fffdf5; }
.office-reading-desk :is(button, a, summary, select, textarea):focus-visible, .office-decision-entry button:focus-visible { outline: 3px solid #8a5721; outline-offset: 4px; }
.office-reading-desk :is(section, article)[tabindex="-1"]:focus { outline: 2px solid #8a5721; outline-offset: 5px; }
.office-view-editor { margin-top: 24px; padding: 18px; border: 1px solid #aa9265; border-top: 4px solid #a5803f; background: #fff5d9; box-shadow: 3px 3px 0 #d3cba8; scroll-margin-top: 26px; }
.office-note-heading { position: sticky; top: 10px; z-index: 1; display: flex; gap: 12px; align-items: start; margin-bottom: 16px; padding: 8px 0; background: #fff5d9; }
.office-note-heading > span { color: #865c20; font-size: 2rem; line-height: 1; transform: rotate(-12deg); }
.office-note-heading h4 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.35; }
.office-note-heading p { margin: 0; }
.office-reading-desk #office-view-draft-status { padding: 6px 9px; border: 1px dashed #8f6c30; color: #674815; background: #fffdf5; font: 750 .75rem/1.5 var(--home-mono, monospace); }
.office-reading-desk .office-inspect-paper { width: 100%; margin-bottom: 24px; border-style: dashed; background: #fffdf5; }
.office-note-return, .office-storage-status { margin: 18px 0; padding: 15px; border: 1px dashed #8f6c30; background: #fffdf5; scroll-margin-top: 26px; }
.office-note-return p { margin: 0 0 12px; }
.office-note-return button { width: 100%; }
#office-view-folded-status { color: #674815; font-size: .75rem; }
#office-view-folded-reason { font-weight: 650; overflow-wrap: anywhere; }
.office-discard-note { margin-top: 28px; padding-top: 18px; border-top: 1px dashed #b2a77f; }
.office-reading-desk #office-view-discard { color: #754934; background: transparent; border-color: #b4a48b; font-weight: 500; }
#office-view-discard-confirmation { margin-top: 15px; padding: 12px; border: 1px solid #a76f55; background: #fffdf5; }
.office-reading-desk #office-view-discard-confirm { border-color: #a76f55; color: #754934; }
.office-view-editor fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.office-view-editor legend, .office-view-editor label { display: block; margin: 0 0 8px; font-size: .88rem; font-weight: 750; }
.office-view-positions { display: grid; gap: 8px; }
.office-view-positions button { text-align: left; border-width: 2px; }
.office-view-positions button[aria-pressed="true"] { border-color: #7a551e; background: #f5d999; box-shadow: inset 5px 0 0 #7a551e; }
.office-view-editor select, .office-view-editor textarea { display: block; width: 100%; max-width: 100%; min-height: 44px; margin: 0 0 18px; padding: 10px; border: 1px solid #8d886d; border-radius: 0; background: #fffdf7; color: #203c34; font: inherit; font-size: .88rem; }
.office-view-editor select { text-overflow: ellipsis; }
.office-view-editor textarea { resize: vertical; }
.office-editor-actions, .office-view-return-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.office-view-return-actions button { flex: 1 1 115px; }
.office-editor-actions button { flex: 1 1 145px; }
.office-reading-desk button:disabled { cursor: default; color: #666c60; background: #e4e4d7; border-color: #a4a890; }
.office-view-summary { margin-top: 25px; scroll-margin-top: 26px; padding: 18px; border: 1px solid #a6b18e; border-top: 4px solid #537254; background: #fffdf5; box-shadow: 3px 3px 0 #c6ccb5; }
#office-view-save-label { color: #315738; }
.office-view-summary[data-save-state="last-read"] { border-top-color: #a5803f; }
.office-view-summary[data-save-state="last-read"] #office-view-save-label { color: #674815; }
.office-view-summary h4 { margin: 10px 0 12px; font-size: 1.4rem; line-height: 1.3; }
.office-quote-paper { margin: 18px 0; padding: 15px; border: 1px solid #bbb294; background: #fffdf5; }
.office-quote-paper summary, #office-view-history summary, .office-earlier-call summary { font-size: .8rem; cursor: pointer; line-height: 1.6; }
.office-reading-desk blockquote { margin: 15px 0; padding-left: 12px; border-left: 3px solid #a69b7d; font-size: .88rem; line-height: 1.65; }
.office-visitor-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.office-decision-identities dl { font-size: .76rem; line-height: 1.7; overflow-wrap: anywhere; }
.office-decision-identities dd { margin-left: 0; margin-bottom: 7px; }
.office-kept-findings { margin: 18px 0; border-top: 1px dashed #b2a77f; }
.office-kept-findings p { margin: 0; padding: 9px 0; border-bottom: 1px dashed #b2a77f; font-size: .72rem; line-height: 1.55; }
.office-earlier-call, .office-earlier-view { margin: 18px 0; padding: 15px; border: 1px dashed #b2a77f; background: #f5f0df; overflow-wrap: anywhere; }
.office-earlier-call p, .office-earlier-view p, .office-earlier-view time { font-size: .8rem; }
.office-earlier-view h4 { margin: 0 0 8px; font-size: 1rem; }
.office-view-feedback { min-height: 2.8em; }
.office-source-desk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; margin-top: 30px; padding: 24px; border: 1px solid #aab195; background: #e0e6d1; }
.office-source-desk h3 { margin: 0; font-size: 1.2rem; }
.office-source-desk > button { align-self: start; }
.office-source-desk :is(#office-sources-status, ul, #office-sources-new-records) { grid-column: 1 / -1; margin: 0; font-size: .8rem; line-height: 1.65; }
.office-source-desk li { margin: 8px 0; }
#office-sources-new-records { overflow-wrap: anywhere; }
.office-desk-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 24px; }
.office-desk-footer p { flex-basis: 100%; margin: 0; }
.office-desk-footer a { flex: 1 1 220px; font-size: .88rem; }
@media (max-width: 800px) {
  .office-decision-entry { flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; }
  .office-entry-actions { min-width: 0; }
  .office-desk-papers { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .office-reading-desk { padding: 18px 12px; box-shadow: 3px 3px 0 #c6ccb5; }
  .office-desk-head { gap: 12px; }
  .office-desk-head h2 { font-size: 2.1rem; }
  .office-desk-seal { padding: 9px; font-size: .9rem; }
  .office-decision-reason, .office-private-paper { padding: 18px; }
  .office-view-editor, .office-view-summary { padding: 14px; }
  .office-note-return, .office-storage-status { padding: 12px; }
  .office-view-return-actions, .office-editor-actions { flex-direction: column; }
  .office-view-return-actions button, .office-editor-actions button { flex: none; width: 100%; }
  .office-finding { padding: 17px; }
  .office-stamp-question summary { gap: 11px; }
  .office-stamp { padding: 7px 6px; font-size: .73rem; }
  .office-source-desk { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .office-source-desk :is(#office-sources-status, ul, #office-sources-new-records) { grid-column: 1; }
  .office-source-desk ul { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-desk-seal, .office-stamp, [data-check-status="passed"] .office-stamp, .office-stamp-question[open] .office-stamp, .office-pencil-mark, .office-note-heading > span { transform: none; transition: none; }
}
