:root {
  --navy-950: #102438;
  --navy-800: #183a55;
  --teal-700: #0b6b67;
  --teal-800: #075451;
  --teal-100: #dbeeea;
  --amber-700: #8a5a05;
  --amber-100: #fff3d2;
  --red-700: #a12c2c;
  --red-100: #fbe7e7;
  --ink: #16232d;
  --muted: #586875;
  --line: #d8e0e5;
  --paper: #f6f7f9;
  --white: #ffffff;
  --radius-sm: 4px;
  --radius-md: 8px;
  --sidebar: 238px;
}

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--navy-950); color: white; }
.skip-link:focus { top: 12px; }
.memo-form { padding: 24px; }
.memo-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.memo-form legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.memo-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.memo-form label, .document-list-tools label { display: grid; gap: 7px; font-weight: 650; }
.memo-form input, .memo-form select, .document-list-tools input, .document-list-tools select, .list-search input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b8c5ce; border-radius: 4px; background: white; color: var(--ink); }
.memo-body-label { margin-top: 24px; }
.memo-toolbar { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid #b8c5ce; background: #f0f4f5; padding: 6px; margin-top: 8px; }
.memo-toolbar button { min-height: 44px; min-width: 44px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--navy-950); }
.memo-toolbar button:hover { background: white; border-color: #b8c5ce; }
.memo-toolbar button[aria-pressed="true"] { color: white; background: var(--navy-800); }
.memo-editor { min-height: 320px; border: 1px solid #b8c5ce; border-top: 0; padding: 20px; overflow-wrap: anywhere; background: white; line-height: 1.7; }
.memo-attachment-editor { min-height: 180px; }
.signer-panel { margin-top: 24px; }
.signer-panel h2 { margin: 4px 0 8px; }
.signer-preview { margin: 20px 0; padding: 16px; border: 1px solid #d6dfe4; background: #fff; max-width: 460px; }
.signer-preview img { display: block; max-width: 100%; max-height: 140px; object-fit: contain; }
.signer-preview figcaption { margin-top: 8px; color: var(--muted); }
.memo-editor table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0; }
.memo-editor td, .memo-editor th { border: 1px solid #a8b6c0; padding: 8px; vertical-align: top; overflow-wrap: anywhere; min-width: 0; }
.memo-editor [data-tab] { white-space: pre; tab-size: 4; }
.memo-list-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.memo-list-row:last-child { border-bottom: 0; }
.memo-list-row p { font-size: .9rem; color: var(--muted); margin: 5px 0 0; overflow-wrap: anywhere; }
.memo-list-row a { overflow-wrap: anywhere; }
.memo-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.memo-generate { margin-top: 18px; padding: 18px 24px; background: #e4f1ef; border-radius: 4px; }
.memo-generate p { margin-top: 0; }
.memo-template-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.template-list { padding: 0; margin: 0; list-style: none; }
.template-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.template-list p { color: var(--muted); margin: 4px 0; }
.template-placeholders { display: flex; flex-wrap: wrap; gap: 10px; }
.template-placeholders code { font-size: .9rem; background: var(--paper); padding: 4px; }
.memo-table-dialog { max-width: min(480px,calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 8px; padding: 24px; color: var(--ink); }
.memo-table-dialog::backdrop { background: rgba(16,36,56,.4); }
.memo-table-dialog label { display: grid; gap: 8px; margin: 12px 0; }
.memo-table-dialog input { padding: 10px; min-height: 44px; width: 100%; }
.document-list-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.document-list-tools label:first-child { flex: 1; min-width: 160px; }
.list-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.list-search { display: grid; gap: 7px; margin: 16px 24px; color: var(--muted); font-size: .9rem; }
.search-empty { padding: 8px 24px; color: var(--muted); }
@media (max-width: 720px) {
  .memo-fields, .memo-template-grid { grid-template-columns: minmax(0,1fr); }
  .memo-form { padding: 18px; }
  .memo-list-row { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 18px; }
  .memo-list-row .secondary-button { justify-self: start; }
  .memo-toolbar button { padding: 8px; }
  .memo-editor { padding: 12px; }
  .document-list-tools { align-items: stretch; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal-700); }
:focus-visible { outline: 3px solid #d99a21; outline-offset: 3px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 20px; background: var(--white); color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: block; color: var(--navy-950); text-decoration: none; padding: 5px 12px 24px; border-bottom: 1px solid var(--line); }
.brand-word { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: .055em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.sidebar nav { display: grid; gap: 5px; margin-top: 24px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; color: #354a58; text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 650; }
.sidebar nav a:hover { background: #f0f4f5; color: var(--navy-950); }
.sidebar nav a.active { background: #e4f1ef; color: var(--teal-800); }
.sidebar-user { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); }
.sidebar-user span, .sidebar-user small { display: block; }
.sidebar-user small { color: var(--muted); text-transform: capitalize; margin-top: 2px; }
.text-button { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--teal-700); text-decoration: underline; cursor: pointer; }
.workspace { min-width: 0; }
.workspace main { max-width: 1460px; margin: 0 auto; padding: 36px 40px 60px; }
.mobile-topbar { display: none; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 26px; }
.page-heading h1 { margin: 2px 0 6px; font-size: clamp(1.9rem, 3vw, 2.65rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; color: var(--navy-950); }
.page-heading p:not(.section-label) { max-width: 720px; margin: 0; color: var(--muted); font-size: 1rem; }
.narrow-heading { max-width: 820px; }
.section-label { margin: 0 0 5px; color: var(--muted); font-size: .85rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.muted-copy { color: var(--muted); }
.count-text { color: var(--muted); font-size: .9rem; }

.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); padding: 10px 16px; font-weight: 750; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.primary-button { background: var(--teal-700); color: var(--white); }
.primary-button:hover { background: var(--teal-800); }
.secondary-button { background: var(--white); color: var(--navy-800); border-color: #b8c5ce; }
.secondary-button:hover { background: #edf2f4; }
.submit-wide { width: 100%; }

.notice { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: var(--radius-sm); }
.notice.success { color: var(--teal-800); background: var(--teal-100); border-color: #9accc4; }
.notice.error { color: var(--red-700); background: var(--red-100); border-color: #efbaba; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 22px; align-items: start; }
.agenda-panel, .review-panel, .voice-panel, .form-panel, .result-panel, .upload-card, .process-notes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.agenda-panel { min-height: 0; }
.panel-heading { min-height: 86px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.panel-heading.compact { min-height: auto; padding: 0 0 15px; }
.panel-heading h2, .review-panel h2, .voice-panel h2, .process-notes h2, .verification-notes h2 { margin: 0; color: var(--navy-950); font-family: inherit; font-size: 1.35rem; }
.agenda-list { display: grid; }
.agenda-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 92px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row time { text-align: center; color: var(--navy-800); border-right: 1px solid var(--line); padding-right: 14px; }
.agenda-row time strong, .agenda-row time span { display: block; }
.agenda-row time strong { font-family: inherit; font-size: 1.7rem; line-height: 1; }
.agenda-row time span { margin-top: 4px; font-size: .72rem; letter-spacing: .08em; font-weight: 800; }
.agenda-main { min-width: 0; }
.agenda-main h3 { margin: 0 0 4px; font-size: 1rem; }
.agenda-main h3 a { color: var(--ink); text-decoration: none; }
.agenda-main h3 a:hover { color: var(--teal-700); text-decoration: underline; }
.agenda-main p { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-link { color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.danger-text-button { min-height: 44px; padding: 8px 0; border: 0; color: var(--red-700); background: transparent; font: inherit; font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.danger-button { min-height: 44px; padding: 10px 16px; border: 1px solid #d9a3a3; border-radius: var(--radius-sm); color: var(--red-700); background: var(--white); font: inherit; font-weight: 750; cursor: pointer; }
.danger-button:hover, .danger-text-button:hover { color: #7f1d1d; background: #fff3f3; }
.side-stack { display: grid; gap: 22px; }
.review-panel, .voice-panel { padding: 22px; }
.review-list { display: grid; border-top: 1px solid var(--line); }
.review-list a { display: grid; gap: 2px; padding: 13px 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.review-list a:hover strong { color: var(--teal-700); text-decoration: underline; }
.review-list span { color: var(--muted); font-size: .86rem; }
.voice-panel input { width: 100%; min-height: 46px; border: 1px solid #b8c5ce; border-radius: var(--radius-sm); padding: 10px 12px; background: #fbfcfc; }
.voice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.voice-status { margin-top: 12px; color: var(--muted); font-size: .86rem; }
.voice-answer { margin-top: 12px; padding: 13px; background: #edf6f4; border-left: 4px solid var(--teal-700); }

.empty-state { max-width: 520px; margin: 72px auto; padding: 0 28px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-family: inherit; font-size: 1.35rem; }
.empty-state p { color: var(--muted); }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 22px; align-items: start; }
.upload-card { padding: 24px; }
.drop-zone { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 2px dashed #9eb0bc; border-radius: var(--radius-sm); background: #f8fafb; text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--teal-700); background: #eef7f5; }
.drop-zone strong { color: var(--navy-950); font-size: 1.2rem; }
.drop-zone span { color: var(--muted); }
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.drop-zone .file-name { margin-top: 14px; color: var(--teal-800); font-weight: 750; }
.upload-card > .primary-button { margin-top: 14px; }
.processing-state { margin-top: 16px; padding: 16px; background: #edf6f4; border: 1px solid #bddbd6; border-radius: var(--radius-sm); }
.processing-state strong, .processing-state p { display: block; margin: 8px 0 0; }
.processing-state p { color: var(--muted); }
.progress-bar { display: block; height: 7px; overflow: hidden; background: #c9dbd8; border-radius: 2px; }
.progress-bar span { display: block; width: 34%; height: 100%; background: var(--teal-700); animation: progress 1.4s ease-in-out infinite alternate; }
@keyframes progress { to { transform: translateX(190%); } }
@media (prefers-reduced-motion: reduce) { .progress-bar span { animation: none; width: 66%; } }
.process-notes { padding: 22px; }
.process-notes ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.process-notes li { position: relative; padding: 0 0 18px 42px; counter-increment: flow; }
.process-notes li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--navy-800); color: var(--white); border-radius: 50%; font-size: .78rem; font-weight: 800; }
.process-notes li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; border-left: 1px solid #aab9c3; }
.process-notes strong, .process-notes span { display: block; }
.process-notes span { color: var(--muted); font-size: .9rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .6fr); gap: 22px; align-items: start; }
.form-panel, .result-panel { padding: 24px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid label, .stack-form label { display: grid; gap: 6px; font-weight: 700; color: #314552; }
.full-field { grid-column: 1 / -1; }
input, textarea, select { width: 100%; border: 1px solid #b8c5ce; border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; color: var(--ink); }
input { min-height: 46px; }
textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.confidence-block { padding: 16px; border: 1px solid; border-radius: var(--radius-sm); }
.confidence-block.clear { background: #eaf5f2; border-color: #a9d3ca; }
.confidence-block.needs-review { background: var(--amber-100); border-color: #e4c47b; }
.confidence-block span, .confidence-block strong { display: block; }
.confidence-block strong { font-family: inherit; font-size: 2.1rem; color: var(--navy-950); }
.confidence-track { height: 7px; margin-top: 8px; background: rgba(16,36,56,.15); border-radius: 2px; overflow: hidden; }
.confidence-track span { height: 100%; background: var(--teal-700); }
.needs-review .confidence-track span { background: var(--amber-700); }
.process-meta { display: grid; margin: 20px 0; }
.process-meta div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.process-meta dt { color: var(--muted); }
.process-meta dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }
.verification-notes ul { padding-left: 20px; }
.disposition-section { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 22px; margin-top: 22px; }
.disposition-list, .disposition-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.disposition-list h2, .disposition-form h2 { margin: 0; font-family: inherit; color: var(--navy-950); }
.disposition-item { padding: 16px 0; border-top: 1px solid var(--line); }
.disposition-item span { display: block; color: var(--muted); font-size: .86rem; }
.disposition-item p { margin: 8px 0; }
.disposition-report, .disposition-form { display: grid; gap: 12px; }
.disposition-report label, .disposition-form label { display: grid; gap: 5px; color: #314552; font-weight: 700; }
.recipient-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.recipient-picker legend { color: #314552; font-weight: 700; padding: 0; }
.recipient-picker > p { color: var(--muted); font-size: .82rem; margin: 4px 0 8px; }
.recipient-checklist { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 300px; overflow: auto; background: var(--white); }
.recipient-checklist label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.recipient-checklist label:last-child { border-bottom: 0; }
.recipient-checklist label:has(input:checked) { background: #eef8f6; }
.recipient-checklist input { width: auto; margin-top: 3px; }
.recipient-checklist span { display: grid; gap: 1px; min-width: 0; }
.recipient-checklist small { color: var(--muted); font-weight: 400; }
.recipient-search { display: grid; gap: 5px; margin-bottom: 8px; color: #314552; font-weight: 700; }
.recipient-search input { min-height: 44px; }
.recipient-empty { margin: 0; padding: 16px; color: var(--muted); }
.instruction-picker { border: 0; padding: 0; margin: 2px 0 0; min-width: 0; }
.instruction-picker legend { color: #314552; font-weight: 700; padding: 0; }
.instruction-picker > p { color: var(--muted); font-size: .82rem; margin: 4px 0 8px; }
.instruction-checklist { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.instruction-checklist > label, .instruction-other-option > label { display: flex; grid-template-columns: none; align-items: center; gap: 9px; min-height: 44px; padding: 9px 11px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.instruction-checklist > label:has(input:checked), .instruction-other-option > label:has(input:checked) { background: #eef8f6; color: var(--teal-800); }
.instruction-checklist input[type="checkbox"] { width: auto; min-height: auto; margin: 0; accent-color: var(--teal-700); }
.instruction-other-option { display: grid; grid-template-columns: 1fr; align-items: center; }
.instruction-other-option > label { border-bottom: 1px solid var(--line); }
.instruction-other-option > input { margin: 7px; min-height: 40px; }
.instruction-other-option > input:disabled { background: #f5f7f7; color: var(--muted); cursor: not-allowed; }
.optional-label { display: inline; color: var(--muted); font-size: .78rem; font-weight: 500; }
.weekly-report-panel { margin-bottom: 22px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.weekly-report-list { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.weekly-report-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weekly-report-list article > div { display: grid; gap: 3px; }
.weekly-report-list span { color: var(--muted); font-size: .88rem; }
.report-months { display:flex; gap:6px; margin-top:14px; overflow-x:auto; padding-bottom:4px; }
.report-months a { min-width:44px; min-height:44px; display:grid; place-items:center; padding:0 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); text-decoration:none; }
.report-months a[aria-current="page"] { color:#fff; background:var(--brand); border-color:var(--brand); }
.status-error { color: var(--danger) !important; font-weight: 700; }
.status-processing { color: var(--teal-700) !important; font-weight: 700; }
.calendar-push-status { color: var(--teal-800) !important; font-weight: 700; }
.organization-board { min-width: 0; }
.organization-root-drop { margin: 14px 0; min-height: 48px; display: grid; place-items: center; border: 1px dashed #9db0ba; border-radius: var(--radius-sm); color: var(--muted); background: #f8fafb; }
.organization-rows { display: grid; gap: 14px; }
.organization-row { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.organization-row > header { padding-top: 7px; }
.organization-row > header h3 { margin: 0; font-size: 1rem; }
.organization-row > header span { color: var(--muted); font-size: .82rem; }
.organization-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 10px; }
.organization-card { min-width: 0; padding: 12px; border: 1px solid #d6e0e4; border-radius: var(--radius-sm); background: var(--white); display: grid; gap: 10px; cursor: grab; }
.organization-card:active { cursor: grabbing; }
.organization-card-copy, .organization-card-actions { display: grid; gap: 3px; }
.organization-card-copy span, .organization-card-copy small, .organization-card-actions > small { color: var(--muted); }
.organization-card-actions { padding-top: 8px; border-top: 1px solid var(--line); }
.move-user-form { display: grid; gap: 6px; }
.move-user-form label { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); }
.move-user-form select { min-height: 40px; }
.organization-card.is-orphan { border-color: #d8a024; background: #fffaf0; }
.organization-card.is-inactive { background: #f1f3f4; border-style: dashed; }
.organization-card.is-dragging { background: #edf2f4; border-style: dashed; }
.organization-card.is-drop-target, .organization-root-drop.is-drop-target { border-color: var(--teal-700); background: #eaf6f4; box-shadow: inset 0 0 0 2px var(--teal-700); }
.orphan-note { color: #8b5b00 !important; font-weight: 700; }
.users-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 22px; align-items: start; }
.hierarchy-panel, .user-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.hierarchy-level { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hierarchy-level:last-child { border-bottom: 0; }
.hierarchy-level::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--indent, 0) * 14px); border-left: 3px solid var(--teal-700); }
.hierarchy-level.level-0 { --indent: 0; }
.hierarchy-level.level-1 { --indent: 1; }
.hierarchy-level.level-2 { --indent: 2; }
.hierarchy-level.level-3 { --indent: 3; }
.hierarchy-level.level-4 { --indent: 4; }
.hierarchy-level.level-5 { --indent: 5; }
.level-heading { display: flex; align-items: center; gap: 10px; padding-left: calc(var(--indent, 0) * 14px + 14px); }
.level-heading > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-800); color: var(--white); font-size: .78rem; font-weight: 800; }
.level-heading h2, .user-form h2 { margin: 0; color: var(--navy-950); font-family: inherit; font-size: 1.2rem; }
.account-list { display: grid; gap: 8px; }
.account-list article { padding: 10px 12px; background: #f3f7f8; border: 1px solid #dbe4e8; border-radius: var(--radius-sm); }
.account-list strong, .account-list span { display: block; }
.account-list span, .role-empty { color: var(--muted); font-size: .88rem; }
.role-empty { margin: 0; align-self: center; }
.user-form { display: grid; gap: 13px; }
.user-form label { display: grid; gap: 5px; color: #314552; font-weight: 700; }

.flat-hierarchy .hierarchy-level { grid-template-columns: 150px minmax(0, 1fr); padding: 16px 0; }
.flat-hierarchy .hierarchy-level::before { display: none; }
.flat-hierarchy .level-heading { padding-left: 0; }
.flat-hierarchy .level-heading h2 { font-family: inherit; font-size: 1rem; font-weight: 750; }
.flat-hierarchy .role-empty { margin: 0; }
.panel-footer-link { display: inline-block; margin-top: 14px; font-weight: 700; }

.calendar-panel, .tasks-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.calendar-toolbar { min-height: 84px; display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: center; }
.calendar-toolbar h2, .table-header h2 { margin: 0; color: var(--navy-950); font-size: 1.25rem; }
.month-control { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #bdc9d0; border-radius: var(--radius-sm); color: var(--navy-800); text-decoration: none; font-weight: 700; }
.month-control:hover { background: #f0f4f5; }
.calendar-scroll, .table-scroll { overflow-x: auto; }
.month-calendar { min-width: 860px; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.weekday { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 142px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-empty { background: #fafbfc; }
.calendar-day > time { width: 30px; height: 30px; display: grid; place-items: center; color: #425866; font-size: .85rem; font-weight: 750; }
.calendar-day.is-today > time { background: var(--teal-700); color: var(--white); border-radius: 50%; }
.day-events { display: grid; gap: 6px; margin-top: 7px; }
.calendar-event { padding: 7px 8px; border-left: 3px solid var(--teal-700); background: #eef7f5; }
.calendar-event > a:first-child { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 6px; color: var(--ink); text-decoration: none; }
.calendar-event:hover { background: #e2f1ee; }
.calendar-event > .location-link { display: inline-block; margin: 4px 0 0 42px; padding: 0; border: 0; background: transparent; color: var(--teal-800); font-size: .72rem; text-decoration: underline; }
.day-events span { color: var(--teal-800); font-size: .75rem; font-weight: 800; }
.day-events strong { overflow: hidden; font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.task-summary { display: flex; gap: 28px; margin-bottom: 18px; padding: 0 2px; }
.task-summary div { display: flex; align-items: baseline; gap: 8px; }
.task-summary strong { color: var(--navy-950); font-size: 1.5rem; }
.task-summary span { color: var(--muted); }
.table-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.data-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.data-table th { padding: 11px 14px; background: #f8fafb; color: var(--muted); font-size: .76rem; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table td strong, .data-table td span { display: block; }
.data-table td > span:not(.status-text) { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.status-text { font-size: .8rem; font-weight: 800; }
.status-text.is-open { color: var(--teal-800); }
.status-text.is-overdue { color: var(--red-700); }
.status-text.is-done { color: var(--muted); }
.status-text.is-cancelled { color: var(--muted); text-decoration: line-through; }

.login-body { min-height: 100vh; background: var(--white); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.login-context { padding: clamp(48px, 8vw, 110px); color: var(--navy-950); background: #eef5f4; display: flex; flex-direction: column; justify-content: center; }
.login-wordmark { margin-bottom: 52px; font-size: 1.1rem; font-weight: 800; letter-spacing: .05em; }
.login-wordmark span { margin-left: 8px; color: var(--muted); font-size: .72rem; }
.login-context h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 4.5vw, 4.2rem); font-weight: 750; line-height: 1.04; letter-spacing: -.03em; }
.login-context > p { max-width: 630px; color: var(--muted); font-size: 1.08rem; }
.login-sequence { max-width: 640px; margin: 28px 0 0; padding: 22px 0 0 20px; border-top: 1px solid #c9d9d6; color: #405764; }
.login-sequence li { margin: 8px 0; padding-left: 8px; }
.login-panel { padding: clamp(34px, 6vw, 76px); background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.login-panel h2 { margin: 0 0 26px; font-family: inherit; font-size: 2rem; color: var(--navy-950); }
.stack-form { display: grid; gap: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .dashboard-grid, .upload-layout, .detail-grid, .disposition-section, .users-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.template-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.template-row > div:first-child { min-width:0; overflow-wrap:anywhere; }
.template-actions { display:flex; gap:8px; flex-wrap:wrap; }
.template-actions form { margin:0; }
.template-icon { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.template-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-105%); transition: transform .18s ease; z-index: 50; box-shadow: 18px 0 40px rgba(0,0,0,.2); }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-topbar { position: sticky; top: 0; z-index: 40; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 7px 16px; background: var(--white); color: var(--navy-950); border-bottom: 1px solid var(--line); }
  .menu-button { min-width: 54px; min-height: 44px; border: 1px solid #aebcc5; border-radius: var(--radius-sm); background: transparent; color: var(--navy-950); }
  .workspace main { padding: 26px 16px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-heading h1 { font-size: 2.2rem; }
  .page-heading > .primary-button, .page-heading > .secondary-button { width: 100%; }
  .agenda-row { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 16px; }
  .agenda-row > form { grid-column: 2; }
  .side-stack { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .voice-actions { grid-template-columns: 1fr; }
  .drop-zone { min-height: 230px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: auto; padding: 42px 24px; }
  .login-wordmark { margin-bottom: 30px; }
  .login-context h1 { font-size: 2.45rem; }
  .login-sequence { display: none; }
  .login-panel { min-height: 48vh; padding: 38px 24px 48px; }
  .hierarchy-level, .flat-hierarchy .hierarchy-level { grid-template-columns: 1fr; gap: 8px; }
  .role-empty, .account-list, .flat-hierarchy .role-empty, .flat-hierarchy .account-list { margin-left: 0; }
  .calendar-toolbar { grid-template-columns: 1fr 1fr; }
  .calendar-toolbar > div { grid-column: 1 / -1; grid-row: 1; }
  .calendar-toolbar .month-control { grid-row: 2; }
  .task-summary { gap: 16px; flex-direction: column; }
}

/* Release 3.1.0: SIMKOPDES workspace visual system from the approved Figma reference. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/figma/plus-jakarta-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/figma/plus-jakarta-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/figma/plus-jakarta-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/figma/plus-jakarta-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy-950: #091015;
  --navy-800: #004b5b;
  --teal-700: #006779;
  --teal-800: #004b5b;
  --teal-100: #e6edef;
  --amber-700: #b86f00;
  --amber-100: #fff4df;
  --red-700: #d92d20;
  --red-100: #ffecea;
  --ink: #091015;
  --muted: #515a62;
  --line: #e6e8eb;
  --paper: #f1f2f2;
  --white: #fff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --sidebar: 224px;
  --lime: #a0ba3b;
  --control-height: 48px;
}

html { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; background: #fdfdfd; }
body { background: #fdfdfd; color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #bfd35f; outline-offset: 2px; }

.app-shell { display: block; min-height: 100vh; }
.desktop-header { max-width: 1512px; height: 104px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fdfdfd; }
.brand { width: 261px; height: 50px; display: flex; align-items: center; padding: 0; border: 0; }
.brand img { width: 261px; height: 50px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: stretch; gap: 16px; height: 56px; }
.notification-button { width: 68px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.04); }
.notification-button:hover { background: #f6f8f8; }
.notification-button img { width: 20px; height: 20px; }
.profile-menu { position: relative; }
.profile-menu summary { height: 56px; min-width: 174px; display: flex; align-items: center; gap: 10px; padding: 15px 16px; color: #004b5b; border: 1px solid #e6edef; border-radius: 8px; background: #fdfdfd; cursor: pointer; list-style: none; font-weight: 500; }
.profile-menu summary::-webkit-details-marker { display: none; }
.header-profile-photo, .header-profile-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.profile-chevron { width: 20px; height: 20px; margin-left: auto; transition: transform .15s ease; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }
.profile-popover { position: absolute; z-index: 80; top: 64px; right: 0; width: 230px; padding: 16px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(9,16,21,.14); }
.profile-popover small { color: var(--muted); }
.profile-popover > a { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.profile-popover form { margin: 0; }

.shell-body { max-width: 1512px; min-height: calc(100vh - 104px); margin: 0 auto; padding: 0 24px 24px; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; }
.sidebar { position: sticky; top: 24px; width: 224px; height: calc(100vh - 128px); min-height: 560px; padding: 24px 0 20px; overflow: hidden; color: #fff; background: #004b5b; border: 0; border-radius: 24px; }
.sidebar nav { display: grid; gap: 4px; margin: 0; }
.sidebar nav a { position: relative; min-height: 44px; padding: 11px 20px; color: #fff; border-radius: 0; font-weight: 500; letter-spacing: -.02em; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.sidebar nav a.active { color: #004b5b; background: #fff; font-weight: 600; }
.sidebar nav a.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lime); }
.sidebar-user { margin: auto 16px 0; padding: 18px 4px 0; border-top-color: rgba(255,255,255,.24); }
.sidebar-user small { color: rgba(255,255,255,.72); }
.sidebar-user .managed-account-label { color: #dbe8a5; }
.sidebar-user .text-button { color: #fff; }
.sidebar-profile-photo { border-color: rgba(255,255,255,.5); }

.workspace { min-width: 0; min-height: 722px; overflow: hidden; background: #f8f9f9; border-radius: 24px; }
.workspace main { max-width: none; margin: 0; padding: 24px 24px 48px; }
.mobile-topbar { display: none; }

.page-heading { min-height: 56px; align-items: flex-start; margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 4px; color: #091015; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -.03em; }
.page-heading p:not(.section-label) { max-width: 820px; color: #515a62; font-size: 14px; line-height: 20px; }
.page-heading .section-label { display: none; }
.section-label { color: #004b5b; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.count-text { color: #515a62; font-size: 13px; }

.primary-button, .secondary-button, .danger-button, .primary-inline-button {
  min-height: 44px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; box-shadow: 0 2px 4px rgba(0,0,0,.04);
}
.primary-button, .primary-inline-button { background: #004b5b; color: #fff; }
.primary-button:hover, .primary-inline-button:hover { background: #003d4a; }
.secondary-button { color: #091015; border-color: #e6e8eb; background: #fff; }
.secondary-button:hover { background: #f1f2f2; }
.text-button { color: #006779; font-weight: 600; }

input, textarea, select,
.memo-form input, .memo-form select,
.document-list-tools input, .document-list-tools select, .list-search input {
  min-height: 48px; padding: 12px 16px; border: 1px solid #e0e3e5; border-radius: 10px; background: #fff; color: #091015; box-shadow: none;
}
input::placeholder, textarea::placeholder { color: #93999e; }
label { letter-spacing: -.02em; }

.notice { border-radius: 10px; }
.agenda-panel, .review-panel, .voice-panel, .form-panel, .result-panel, .upload-card, .process-notes,
.deadline-overview, .calendar-sync, .weekly-report-panel, .tasks-panel, .calendar-panel,
.document-preview, .document-details, .disposition-list, .disposition-form {
  border-color: #e6e8eb; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.panel-heading { min-height: 76px; padding: 20px 24px 16px; }
.panel-heading h2, .review-panel h2, .voice-panel h2, .process-notes h2, .verification-notes h2,
.table-header h2, .deadline-overview h2, .weekly-report-panel h2 { color: #091015; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.03em; }

.deadline-overview { padding: 20px; }
.deadline-list { border-top-color: #e6e8eb; }
.deadline-list a { padding: 16px 18px; border-color: #e6e8eb; }
.deadline-list span { color: #004b5b; }
.deadline-list a:hover { background: #f8faf9; }
.agenda-row { min-height: 80px; border-color: #e6e8eb; }
.agenda-row time { color: #004b5b; border-color: #e6e8eb; }
.agenda-main h3 a { color: #091015; }
.location-link { color: #006779; }

.task-metrics { gap: 20px; }
.task-metric { min-height: 100px; padding: 20px; border-color: #e6e8eb; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.task-metric:hover { border-color: #c3c7c9; background: #fff; }
.task-metric.is-active { border-color: #004b5b; box-shadow: inset 0 -4px 0 #004b5b, 0 2px 6px rgba(0,0,0,.04); }
.task-metric span { color: #091015; font-size: 14px; font-weight: 600; }
.task-metric strong { color: #091015; font-size: 24px; line-height: 32px; }
.metric-track { height: 5px; background: #edf0f1; }
.metric-track span { background: #004b5b; }

.document-list-tools { gap: 16px; padding: 0; }
.list-search { margin: 16px 24px; color: #515a62; }
.memo-list-row { min-height: 76px; border-color: #e6e8eb; }
.memo-list-row:nth-child(even) { background: #f7f8f8; }
.memo-list-row > span { color: #515a62; }

.table-scroll { border-radius: 0 0 12px 12px; }
.data-table { font-size: 14px; }
.data-table th { height: 56px; padding: 16px 20px; color: #fff; background: #004b5b; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: -.02em; }
.data-table td { padding: 16px 20px; border-color: #e6e8eb; }
.data-table tbody tr:nth-child(even) { background: #f1f2f2; }
.data-table tbody tr:hover { background: #eaf0f1; }
.status-text { display: inline-flex !important; width: fit-content; min-height: 22px; align-items: center; padding: 4px 9px; border-radius: 999px; color: #fff !important; font-size: 12px; font-weight: 600; line-height: 14px; text-decoration: none !important; }
.status-text.is-open { background: #2f7ff1; }
.status-text.is-overdue { background: #d92d20; }
.status-text.is-done { background: #646c73; }
.status-text.is-cancelled { color: #d92d20 !important; background: #ffecea; }

.calendar-panel { overflow: hidden; }
.calendar-toolbar { padding: 20px 24px; background: #fff; }
.month-control { border-color: #e6e8eb; border-radius: 8px; }
.weekday { color: #fff; background: #004b5b; }
.calendar-day { border-color: #e6e8eb; background: #fff; }
.calendar-day:nth-child(2n) { background: #fbfcfc; }
.calendar-day.is-today { background: #e6edef; box-shadow: inset 0 0 0 2px #004b5b; }
.calendar-event { border-radius: 6px; background: #e6edef; }

.drop-zone { border-color: #b8c4c7; border-radius: 12px; background: #f7f9f9; }
.drop-zone:hover, .drop-zone.dragging { border-color: #004b5b; background: #e6edef; }
.process-notes li::before { background: #004b5b; }

.memo-form { padding: 24px; }
.memo-toolbar { padding: 8px; border-color: #e0e3e5; border-radius: 10px 10px 0 0; background: #f1f2f2; }
.memo-toolbar button { border-radius: 6px; }
.memo-toolbar button[aria-pressed="true"] { background: #004b5b; }
.memo-editor { border-color: #e0e3e5; border-radius: 0 0 10px 10px; }
.template-placeholders code { border-radius: 4px; background: #e6edef; color: #004b5b; }

.calendar-sync { border-left: 1px solid #e6e8eb; }
.calendar-copy-row { gap: 12px; }
.weekly-report-list article { border-color: #e6e8eb; }

.login-body { background: #f1f2f2; }
.login-layout { max-width: 1280px; min-height: calc(100vh - 64px); margin: 32px auto; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(9,16,21,.1); }
.login-context { padding: clamp(48px, 7vw, 96px); color: #fff; background: #004b5b; }
.login-logo { width: min(360px, 100%); height: auto; margin-bottom: 56px; padding: 14px 18px; border-radius: 12px; background: #fff; }
.login-context h1 { max-width: 680px; color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.8rem); }
.login-context > p { color: rgba(255,255,255,.8); }
.login-panel { padding: clamp(36px, 5vw, 72px); }
.login-panel h2 { color: #091015; font-size: 28px; }

@media (max-width: 1180px) {
  .desktop-header { padding-inline: 20px; }
  .shell-body { padding-inline: 20px; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .sidebar { width: 210px; }
  .task-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .desktop-header { display: none; }
  .shell-body { display: block; min-height: 100vh; padding: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; width: min(84vw, 300px); height: 100vh; min-height: 0; border-radius: 0 24px 24px 0; z-index: 60; }
  .workspace { min-height: 100vh; border-radius: 0; }
  .mobile-topbar { min-height: 64px; padding: 8px 16px; border-bottom-color: #e6e8eb; }
  .mobile-topbar > a { display: flex; width: 174px; height: 34px; }
  .mobile-topbar img { width: 174px; height: 34px; object-fit: contain; }
  .menu-button { min-width: 64px; border-color: #e0e3e5; border-radius: 8px; color: #004b5b; font-weight: 600; }
  .workspace main { padding: 24px 16px 48px; }
  .page-heading { gap: 14px; }
  .page-heading h1 { font-size: 24px; line-height: 32px; }
  .task-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .task-metric { min-height: 92px; padding: 16px; }
  .document-list-tools { align-items: stretch; }
  .data-table th { padding: 14px 16px; }
  .data-table td { padding: 12px 16px; }
  .login-layout { min-height: 100vh; margin: 0; border-radius: 0; grid-template-columns: 1fr; }
  .login-context { padding: 40px 24px; }
  .login-logo { width: 260px; margin-bottom: 34px; }
  .login-context h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .task-metrics { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  .memo-form { padding: 18px; }
}

/* Release 2.0: document queue, tree, threads, and settings. */
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-sync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 28px; align-items: center; margin-bottom: 22px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal-700); border-radius: var(--radius-md); }
.calendar-sync h2 { margin: 0; color: var(--navy-950); font-size: 1.2rem; }
.calendar-sync p { max-width: 760px; margin: 5px 0 0; color: var(--muted); }
.calendar-sync > form { justify-self: end; }
.calendar-sync-link { display: grid; gap: 6px; }
.calendar-sync-link label, .public-sync-control label { color: #314552; font-weight: 700; }
.calendar-sync-link small, .public-sync-control small, .linked-field small, .full-field small { color: var(--muted); font-weight: 400; }
.linked-field { display: grid; gap: 6px; color: #314552; font-weight: 700; }
.linked-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.document-delete-form { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.task-actions form { margin: 0; }
.primary-inline-button { min-height: 38px; padding: 7px 11px; border: 1px solid var(--teal-700); border-radius: var(--radius-sm); background: var(--teal-700); color: var(--white); font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.primary-inline-button:hover { background: var(--teal-800); }
.primary-inline-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.task-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.task-metric { padding: 15px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.task-metric > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.task-metric span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.task-metric strong { color: var(--navy-950); font-size: 1.45rem; }
.metric-track { height: 5px; margin-top: 11px; overflow: hidden; background: #e7ecef; border-radius: 2px; }
.metric-track span { display: block; height: 100%; min-width: 0; background: var(--teal-700); }
.task-metric.is-overdue .metric-track span, .task-metric.is-not-followed .metric-track span { background: var(--red-700); }
.task-metric.is-progress .metric-track span { background: #b37a12; }
.task-metric.is-open .metric-track span { background: #71818b; }
.outcome-summary { margin-top: 14px; padding: 14px 16px; background: #eef7f5; border-left: 4px solid var(--teal-700); }
.outcome-summary.is-negative { background: #fff4f2; border-left-color: var(--red-700); }
.outcome-summary p { margin: 5px 0; }

.upload-card-wide { max-width: 1040px; }
.upload-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.upload-fields label { display: grid; gap: 6px; color: #314552; font-weight: 700; }
.upload-fields small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.job-status-card { display: flex; align-items: flex-start; gap: 14px; max-width: 1040px; margin-bottom: 18px; padding: 15px 17px; background: #eef7f5; border: 1px solid #acd5ce; border-radius: var(--radius-md); }
.job-status-card p { margin: 2px 0 0; color: var(--muted); }
.job-status-indicator { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 6px; border: 3px solid #a8cbc6; border-top-color: var(--teal-700); border-radius: 50%; animation: spin .9s linear infinite; }
.job-status-card.is-complete .job-status-indicator { background: var(--teal-700); border-color: var(--teal-700); animation: none; }
.job-status-card.is-failed { background: var(--red-100); border-color: #efbaba; }
.job-status-card.is-failed .job-status-indicator { background: var(--red-700); border-color: var(--red-700); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.memo-brief h2 { margin: 0 0 18px; color: var(--navy-950); }
.action-points { display: grid; gap: 10px; margin: 0; padding-left: 25px; }
.action-points li { padding-left: 6px; }
.document-summary { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.document-summary p { margin: 6px 0 0; color: var(--muted); }
.disposition-item > header { display: flex; justify-content: space-between; gap: 16px; }
.disposition-report { margin-top: 14px; padding: 14px; background: #f7f9fa; border: 1px solid #e1e7ea; border-radius: var(--radius-sm); }
.thread-list { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.thread-message { width: min(82%, 620px); padding: 10px 12px; background: #f2f5f6; border-radius: var(--radius-sm); }
.thread-message.is-own { margin-left: auto; background: #e6f2ef; }
.thread-message strong, .thread-message time { display: block; }
.thread-message p { margin: 3px 0; }
.thread-message time { color: var(--muted); font-size: .74rem; }
.thread-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }

.admin-user-stack, .settings-side { display: grid; gap: 22px; }
.organization-tree h2, .settings-panel h2 { margin: 0; color: var(--navy-950); font-size: 1.2rem; }
.organization-tree ul { list-style: none; margin: 0; padding: 0; }
.tree-root { margin-top: 10px !important; }
.tree-node { position: relative; padding-left: calc(var(--tree-depth) * 22px); }
.tree-node > ul { position: relative; }
.tree-node > ul::before { content: ""; position: absolute; top: 0; bottom: 18px; left: calc((var(--tree-depth) + 1) * 22px + 8px); border-left: 1px solid #bfcbd1; }
.tree-account { position: relative; display: flex; justify-content: space-between; gap: 18px; margin: 8px 0; padding: 12px 14px; background: #f8fafb; border: 1px solid #dce4e8; border-radius: var(--radius-sm); }
.tree-account::before { content: ""; position: absolute; top: 50%; left: -15px; width: 14px; border-top: 1px solid #bfcbd1; }
.tree-root > .tree-node > .tree-account { background: #eaf4f2; border-color: #b7d7d1; }
.tree-root > .tree-node > .tree-account::before { display: none; }
.tree-account strong, .tree-account span { display: block; }
.tree-account span, .tree-account small { color: var(--muted); font-size: .82rem; }
.tree-account small { text-align: right; }
.tree-account-actions { display: grid; justify-items: end; align-content: start; }
.tree-account-actions form { margin: 0; }
.tree-account-actions .text-button { min-height: 36px; padding: 5px 0; font-size: .82rem; }
.secretary-note { color: var(--teal-800) !important; font-weight: 700; }
.compact-empty { margin: 36px auto; }
.import-form { padding-top: 18px; border-top: 4px solid #e7edef; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 22px; align-items: start; }
.settings-panel { display: grid; gap: 14px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.settings-section { display: grid; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.settings-section label, .inline-create label { display: grid; gap: 5px; color: #314552; font-weight: 700; }
.provider-fields[hidden] { display: none; }
.integration-intro { margin-bottom: 14px; padding: 13px 15px; background: #f3f7f8; border-left: 4px solid var(--teal-700); }
.integration-intro p { margin: 4px 0 0; color: var(--muted); }
.integration-intro.is-connected { background: #eaf5f2; border-left-color: var(--teal-700); }
.copy-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.oauth-redirect-field { display: grid; gap: 6px; }
.oauth-redirect-field small, .oauth-help, .oauth-account span, .oauth-account small { color: var(--muted); font-size: .82rem; }
.oauth-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.oauth-actions .oauth-help { flex-basis: 100%; margin: 0; }
.oauth-account { display: grid; margin-right: auto; }
.oauth-account strong { color: var(--navy-950); }
.voice-preview { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 13px; background: #f7f9fa; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.voice-preview .integration-status { color: var(--muted); font-size: .86rem; }
.voice-preview audio { grid-column: 1 / -1; width: 100%; }
.inline-create { display: grid; gap: 10px; }
.api-key-list { display: grid; margin-top: 4px; }
.api-key-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.api-key-list span { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.token-reveal { display: grid; gap: 5px; margin-bottom: 22px; padding: 16px 18px; background: var(--amber-100); border: 1px solid #dfbf73; border-radius: var(--radius-md); }
.token-reveal code { overflow-wrap: anywhere; font-size: .9rem; }
.token-reveal p { margin: 0; color: var(--muted); }
.calendar-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.calendar-copy-row code { min-width: 0; padding: 10px 12px; background: var(--white); border: 1px solid #d3b968; border-radius: var(--radius-sm); }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 100; display: grid; gap: 8px; width: min(390px, calc(100vw - 40px)); }
.toast { display: block; padding: 13px 15px; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal-700); border-radius: var(--radius-sm); box-shadow: 0 8px 26px rgba(16,36,56,.16); }
.toast.is-error { border-left-color: var(--red-700); }
.standalone-error { width: min(680px, calc(100% - 32px)); margin: 12vh auto; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.standalone-error h1 { margin: 0 0 10px; color: var(--navy-950); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.standalone-error p:not(.section-label) { color: var(--muted); }
.managed-account-label { margin-top: 7px !important; color: var(--teal-800) !important; font-weight: 700; text-transform: none !important; }
.public-calendar-page { min-height: 100vh; background: var(--paper); }
.public-calendar-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.public-calendar-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.public-calendar-heading h1 { margin: 1px 0 4px; color: var(--navy-950); font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.1; }
.public-calendar-heading p:not(.section-label) { margin: 0; color: var(--muted); }
.public-sync-control { width: min(620px, 100%); display: grid; gap: 6px; }
.public-event { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 6px; margin-top: 6px; padding: 7px 8px; background: #eef7f5; border-left: 3px solid var(--teal-700); }
.public-event span { color: var(--teal-800); font-size: .75rem; font-weight: 800; }
.public-event strong { overflow: hidden; font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.public-event small { grid-column: 2; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .job-status-indicator { animation: none; } }
@media (max-width: 980px) {
  .task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .calendar-sync { grid-template-columns: 1fr; }
  .calendar-sync > form { justify-self: start; }
}
@media (max-width: 760px) {
  .task-metrics { grid-template-columns: 1fr; }
  .calendar-copy-row { grid-template-columns: 1fr; }
  .calendar-copy-row .secondary-button { width: 100%; }
  .upload-fields, .thread-form { grid-template-columns: 1fr; }
  .heading-actions { width: 100%; }
  .heading-actions > * { flex: 1; }
  .tree-account { display: grid; }
  .tree-account small { text-align: left; }
  .tree-account-actions { justify-items: start; }
  .voice-preview { grid-template-columns: 1fr; }
  .copy-field-row { grid-template-columns: 1fr; }
  .voice-preview audio { grid-column: auto; }
  .public-calendar-shell { width: calc(100% - 32px); padding-top: 24px; }
  .public-calendar-heading { align-items: stretch; flex-direction: column; }
  .linked-field > div { grid-template-columns: 1fr; }
  .agenda-panel { min-height: 0; }
  .task-summary { flex-wrap: wrap; gap: 12px 20px; }
  .tasks-panel .table-scroll { overflow: visible; }
  .task-table { min-width: 0; }
  .task-table thead { display: none; }
  .task-table tbody { display: grid; }
  .task-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; border-top: 1px solid var(--line); }
  .task-table tbody tr:first-child { border-top: 0; }
  .task-table td { padding: 6px 0; border: 0; }
  .task-table td:nth-child(2), .task-table td:nth-child(5) { grid-column: 1 / -1; }
  .task-table td:nth-child(2) { grid-row: 1; }
  .task-table td:nth-child(1), .task-table td:nth-child(3), .task-table td:nth-child(4) { margin-top: 8px; }
  .task-table td:nth-child(3)::before, .task-table td:nth-child(4)::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
  .task-table td:nth-child(3)::before { content: 'Penerima'; }
  .task-table td:nth-child(4)::before { content: 'Deadline'; }
  .task-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; padding-top: 12px !important; border-top: 1px solid var(--line) !important; white-space: normal; }
}

/* Release 2.0.16: GCS attachment storage; visual structure remains unchanged. */
.sidebar-profile-photo { width: 48px; height: 48px; margin-bottom: 10px; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.dashboard-grid.dashboard-single { grid-template-columns: minmax(0, 1fr); }
.calendar-sync-bottom { margin-top: 22px; margin-bottom: 0; }
.task-metric { color: inherit; text-decoration: none; }
.task-metric:hover { border-color: #99aab4; background: #fafcfc; }
.task-metric.is-active { border-color: var(--teal-700); box-shadow: inset 0 -3px 0 var(--teal-700); }
.task-list-count { display: flex; align-items: center; gap: 14px; }

.deadline-overview { margin-bottom: 22px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.deadline-overview .panel-heading { align-items: center; }
.deadline-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.deadline-list a { min-width: 0; display: grid; gap: 3px; padding: 14px 16px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.deadline-list a:last-child { border-right: 0; }
.deadline-list a:hover strong { color: var(--teal-700); text-decoration: underline; }
.deadline-list span { color: var(--teal-800); font-size: .76rem; font-weight: 800; }
.deadline-list strong, .deadline-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-list small { color: var(--muted); }

.document-preview, .document-details { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.document-preview-heading { padding: 17px 22px; border-bottom: 1px solid var(--line); }
.document-preview-heading h2, .document-details h2 { margin: 0; color: var(--navy-950); font-size: 1.22rem; }
.document-preview iframe { display: block; width: 100%; height: min(76vh, 860px); min-height: 560px; border: 0; background: #eef1f3; }
.image-preview { display: grid; place-items: center; max-height: 860px; overflow: auto; padding: 20px; background: #eef1f3; }
.image-preview img { display: block; max-width: 100%; height: auto; }
.disposition-section.single-column { grid-template-columns: minmax(0, 1fr); }
.document-details { margin-top: 22px; }
.document-details > .form-panel { border: 0; border-radius: 0; }
.memo-brief h3 { margin: 0 0 18px; color: var(--navy-950); font-size: 1.2rem; }

.profile-form { max-width: 900px; }
.profile-photo-field { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-photo-field img, .profile-placeholder { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line); }
.profile-photo-field img { object-fit: cover; }
.profile-placeholder { display: grid; place-items: center; color: var(--navy-800); background: #e5efed; font-size: 2rem; font-weight: 800; }
.profile-photo-field label { display: grid; gap: 6px; color: #314552; font-weight: 700; }
.profile-photo-field small { display: block; margin-top: 5px; color: var(--muted); }
.profile-photo-field .checkbox-field { grid-template-columns: auto 1fr; align-items: center; justify-content: start; margin-top: 10px; font-weight: 500; }
.checkbox-field input { width: auto; min-height: 20px; }
.password-fields { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.password-fields legend { padding: 0; color: var(--navy-950); font-weight: 800; }
.password-fields > p { margin: 3px 0 16px; color: var(--muted); }

@media (max-width: 980px) {
  .deadline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deadline-list a:nth-child(2) { border-right: 0; }
  .deadline-list a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .deadline-list { grid-template-columns: 1fr; }
  .deadline-list a { border-right: 0; border-top: 1px solid var(--line); }
  .deadline-list a:first-child { border-top: 0; }
  .document-preview iframe { height: 68vh; min-height: 440px; }
  .profile-photo-field { grid-template-columns: 1fr; }
  .organization-row { grid-template-columns: 1fr; }
  .organization-cards { grid-template-columns: 1fr; }
  .weekly-report-list article { align-items: stretch; flex-direction: column; }
}

/* Keep the 3.1.0 reference rules authoritative over compatibility styles above. */
.calendar-sync { border-left-width: 1px; }
.task-metrics { gap: 20px; }
.task-metric { min-height: 100px; padding: 20px; border-color: #e6e8eb; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.task-metric:hover { border-color: #c3c7c9; background: #fff; }
.task-metric.is-active { border-color: #004b5b; box-shadow: inset 0 -4px 0 #004b5b, 0 2px 6px rgba(0,0,0,.04); }
.task-metric span { color: #091015; font-size: 14px; font-weight: 600; }
.task-metric strong { color: #091015; font-size: 24px; line-height: 32px; }
.task-metric .metric-track { background: #edf0f1; }
.deadline-overview { padding: 20px; }
.primary-inline-button { min-height: 38px; padding: 8px 12px; border-color: #004b5b; border-radius: 8px; background: #004b5b; font-size: 12px; font-weight: 600; }
.settings-panel, .tree-account, .voice-preview, .thread-message, .disposition-report { border-color: #e6e8eb; }
.settings-panel { border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.tree-account { border-radius: 10px; }

@media (max-width: 1180px) {
  .task-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .mobile-topbar { display: flex; }
  .task-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .task-metric { min-height: 92px; padding: 16px; }
}
@media (max-width: 480px) {
  .task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Surat uses the existing SIMKOPDES tokens; workflow stages and date headings aid scanning. */
.login-logo { padding: 0; border-radius: 0; background: transparent; filter: brightness(0) invert(1); }
.desktop-header .brand { padding: 0; height: 50px; width: 261px; background: transparent; }
.desktop-header .brand img { width: 261px; height: 50px; filter: none; }
.mobile-topbar > a { padding: 0; width: 174px; height: 44px; align-items: center; background: transparent; }
.mobile-topbar img { width: 174px; height: 34px; filter: none; }
.sidebar { overflow-y: auto; }
.sidebar nav, .sidebar-user { flex-shrink: 0; }
.date-group-heading { margin: 0; padding: 16px 24px; font-size: 15px; font-weight: 700; background: var(--teal-100); color: var(--teal-800); border-bottom: 1px solid var(--line); }
.memo-list { overflow: hidden; }
.date-accordion { border-bottom: 1px solid var(--line); background: var(--white); }
.date-accordion:last-child { border-bottom: 0; }
.date-accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 14px 24px; color: var(--teal-800); background: var(--teal-100); cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; }
.date-accordion > summary::-webkit-details-marker { display: none; }
.date-accordion > summary:hover { background: #dcebea; }
.date-accordion > summary:focus-visible { outline: 3px solid #d99a21; outline-offset: -3px; }
.date-accordion > summary > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; width: 100%; }
.date-accordion > summary small { color: var(--muted); font-size: 13px; font-weight: 600; }
.accordion-chevron { flex: 0 0 10px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.date-accordion[open] > summary .accordion-chevron { transform: rotate(225deg); }
.date-accordion-content { background: var(--white); }
.date-accordion:not([open]) > .date-accordion-content { display: none; }
@media (prefers-reduced-motion: reduce) { .accordion-chevron { transition: none; } }
.agenda-list.date-accordion-list { border-top: 1px solid var(--line); }
.agenda-list .date-accordion > summary { padding-inline: 28px; }
.agenda-list .date-accordion-content .agenda-row:last-child { border-bottom: 0; }
.task-date-groups { border-top: 1px solid var(--line); }
.task-date-groups .date-accordion > summary { padding-inline: 28px; }
.task-date-groups .date-accordion-content { border-top: 1px solid var(--line); }
.task-date-groups .table-scroll { margin: 0; }
.task-date-groups .data-table { border: 0; }
.memo-workflow { margin-bottom: 24px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.memo-workflow > strong { display: block; font-size: 18px; }
.memo-workflow > ol { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0 18px; padding-left: 24px; color: var(--muted); }
.memo-action-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.memo-action-bar form { margin: 0; }
[aria-disabled="true"], button:disabled { opacity: .55; cursor: not-allowed; }
.memo-form .memo-routing { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.font-size-control { display: flex !important; align-items: center; gap: 8px !important; font-size: 13px; font-weight: 500 !important; }
.memo-form .font-size-control select { min-height: 44px; width: 136px; padding: 8px; }
.memo-toolbar { align-items: center; }
.memo-editor ul, .memo-editor ol { padding-left: 32px; }
.memo-history { margin-top: 24px; padding: 20px 0; }
.memo-history h2 { font-size: 20px; }
.memo-history ol { padding-left: 24px; }
.memo-history li { margin: 14px 0; }
.memo-history p { margin: 4px 0; color: var(--muted); white-space: pre-wrap; }
.memo-table-dialog { width: min(520px,calc(100vw - 32px)); }
.memo-table-dialog fieldset { border: 0; padding: 0; }
.memo-table-dialog .radio-option { display: flex; align-items: center; gap: 10px; }
.radio-option input { width: 20px; min-height: 20px; }
.signer-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.signer-entry p { margin: 4px 0; }
.signer-entry small { color: var(--muted); }
.signer-entry > div { display: grid; gap: 5px; }
.signer-entry .status-chip { justify-self: start; margin-bottom: 4px; }
.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status-chip.status-done { color: var(--teal-900); background: #e4f3f0; }
.status-chip.status-pending { color: var(--muted); background: #edf1f2; }
.signer-details { display: grid; gap: 4px; margin: 8px 0; }
.signer-details div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; }
.signer-details dt { color: var(--muted); }
.signer-details dd { margin: 0; overflow-wrap: anywhere; }
.calendar-event .event-assignees, .calendar-event .event-status { display: block; margin: 6px 0 0; font-size: 11px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
.public-event small.event-assignees, .public-event small.event-status { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  input, textarea, select, .memo-form input, .memo-form select, .document-list-tools input, .document-list-tools select { font-size: 16px; }
  .memo-workflow { padding: 18px; }
  .memo-action-bar > *, .memo-action-bar form button { width: 100%; }
  .date-group-heading { padding: 14px 18px; }
  .date-accordion > summary, .agenda-list .date-accordion > summary, .task-date-groups .date-accordion > summary { min-height: 56px; padding: 12px 18px; }
  .date-accordion > summary > span:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
  .signer-entry { align-items: flex-start; flex-direction: column; }
}
