/* v3.33.32 — system-wide day/night appearance */
:root{
  --theme-dark-bg:#080e1b;
  --theme-dark-bg-2:#0b1222;
  --theme-dark-panel:#101827;
  --theme-dark-panel-2:#131d2f;
  --theme-dark-line:#26344d;
  --theme-dark-line-soft:#1d2940;
  --theme-dark-text:#f3f6fb;
  --theme-dark-muted:#9dacbf;
  --theme-dark-brand:#7fb2ff;
  --theme-dark-input:#0c1525;
}

/* Toggle button — deliberately close to the reference: clean icon, soft rounded surface. */
.theme-toggle{
  width:44px;
  height:44px;
  display:inline-grid;
  place-items:center;
  flex:0 0 44px;
  border:1px solid #dfe6ef;
  border-radius:14px;
  color:#20344f;
  background:#fff;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.theme-toggle:hover{transform:translateY(-1px);background:#f3f6fa;border-color:#cbd6e4}
.theme-toggle:focus-visible{outline:3px solid rgba(53,120,218,.24);outline-offset:2px}
.theme-toggle .theme-icon{font:400 25px/1 "Segoe UI Symbol","Arial Unicode MS",sans-serif;transform:translateY(-1px)}
.theme-toggle .theme-icon-sun{display:none}
html[data-theme="dark"] .theme-toggle{color:#f0f4fb;background:#0d1628;border-color:#26344d}
html[data-theme="dark"] .theme-toggle:hover{background:#131f35;border-color:#354661}
html[data-theme="dark"] .theme-toggle .theme-icon-moon{display:none}
html[data-theme="dark"] .theme-toggle .theme-icon-sun{display:block}
.wf-top-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.advanced-theme-action{margin-inline-start:4px}
.review-system-bar .theme-toggle{width:40px;height:40px;flex-basis:40px;border-radius:12px}

/* Shared workflow palette. */
html[data-theme="dark"]{
  --wf-bg:var(--theme-dark-bg);
  --wf-panel:var(--theme-dark-panel);
  --wf-text:var(--theme-dark-text);
  --wf-muted:var(--theme-dark-muted);
  --wf-line:var(--theme-dark-line);
  --wf-brand:var(--theme-dark-brand);
  --wf-shadow:0 18px 50px rgba(0,0,0,.28);
  --adv-ink:var(--theme-dark-text);
  --adv-muted:var(--theme-dark-muted);
  --adv-line:var(--theme-dark-line);
  --adv-surface:var(--theme-dark-panel);
  --adv-soft:var(--theme-dark-panel-2);
  --review-bg:var(--theme-dark-bg);
  --review-card:var(--theme-dark-panel);
  --review-card-soft:var(--theme-dark-panel-2);
  --review-text:var(--theme-dark-text);
  --review-muted:var(--theme-dark-muted);
  --review-line:var(--theme-dark-line);
  --review-line-strong:#34445f;
  --review-primary:#77a9ff;
  --review-primary-soft:#16274a;
  --review-shadow:0 20px 55px rgba(0,0,0,.28);
  --review-shadow-soft:0 9px 24px rgba(0,0,0,.2);
}
html[data-theme="dark"] body.wf-body,
html[data-theme="dark"] body.advanced-body,
html[data-theme="dark"] body.request-system-body{
  color:var(--theme-dark-text);
  background:linear-gradient(180deg,#080e1b 0,#0a1120 100%);
}
html[data-theme="dark"] .wf-sidebar{
  background:linear-gradient(180deg,#07152c,#091b35 58%,#071326);
  border-inline-end:1px solid rgba(127,178,255,.1);
  box-shadow:12px 0 36px rgba(0,0,0,.2);
}
html[data-theme="dark"] .wf-sidebar::before{opacity:.42}
html[data-theme="dark"] .wf-sidebar nav a{color:#c8d7ec;border-color:transparent}
html[data-theme="dark"] .wf-sidebar nav a:hover{color:#fff;background:rgba(255,255,255,.07)}
html[data-theme="dark"] .wf-sidebar nav a.active{color:#fff;background:#142641;border-color:#284466;box-shadow:none}
html[data-theme="dark"] .wf-sidebar nav a.active .wf-nav-icon{color:#dceaff;background:#20395f}
html[data-theme="dark"] .wf-user{border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .wf-user small,html[data-theme="dark"] .wf-user button{color:#aebfd7}
html[data-theme="dark"] .wf-top{
  background:rgba(8,14,27,.9);
  border-bottom-color:#18243a;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(16px);
}
html[data-theme="dark"] .wf-top h1,html[data-theme="dark"] .wf-top-title h1{color:var(--theme-dark-text)}
html[data-theme="dark"] .wf-top .eyebrow,html[data-theme="dark"] .wf-top-title p{color:#8ea3be}
html[data-theme="dark"] .wf-menu-button{color:#dce7f7;background:#121d30;border-color:#28364d}
html[data-theme="dark"] .wf-menu-button:hover{background:#17243a}

/* Core cards and surfaces. */
html[data-theme="dark"] :where(
  .wf-panel,.wf-stats>a,.wf-stats>div,.wf-task-list>article,.wf-action-card,.wf-dialog-card,
  .wf-notifications>article,.wf-transfer-list>article,.profile-card,.account-summary,.staff-card,
  .internal-task-card,.classification-card,.private-note-card,.meeting-list-card,.meeting-detail-card,
  .correspondence-card,.correspondence-letter,.correspondence-list-card,.meeting-card,.meeting-schedule-card,
  .report-summary-card,.deleted-team-panel,.trash-panel,.governorate-card,.governorate-entry-card
){background:var(--theme-dark-panel)!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)}
html[data-theme="dark"] :where(
  .wf-info-grid>div,.account-details>span,.task-meta,.meeting-meta-card,.meeting-access-item,
  .correspondence-compose-from,.correspondence-meta-item,.signature-preview,.profile-photo-preview,
  .digital-publish-card,.digital-card,.digital-summary-card
){background:var(--theme-dark-panel-2)!important;border-color:var(--theme-dark-line)!important}
html[data-theme="dark"] .wf-panel-head{border-color:var(--theme-dark-line-soft)}
html[data-theme="dark"] .wf-task-list>article:hover,html[data-theme="dark"] .meeting-card:hover{border-color:#3d5678!important}
html[data-theme="dark"] .wf-task-list>article,html[data-theme="dark"] .task-main-link{color:var(--theme-dark-text)}
html[data-theme="dark"] .task-code,html[data-theme="dark"] .version-number{color:#a9c9ff;background:#172a48}
html[data-theme="dark"] .wf-progress{background:#1a2639}
html[data-theme="dark"] .wf-copy p,html[data-theme="dark"] .wf-notifications p,html[data-theme="dark"] .wf-transfer-list blockquote{color:#b8c4d5}
html[data-theme="dark"] .wf-comments article,html[data-theme="dark"] .wf-file-list article,html[data-theme="dark"] .wf-version-list article{border-color:var(--theme-dark-line);background:#0e1828}
html[data-theme="dark"] .wf-timeline article>span{background:#1b355b;color:#f3f7ff}
html[data-theme="dark"] .wf-history article>span{background:#6fa7fb}
html[data-theme="dark"] .wf-notifications article.unread{background:#101f37;border-right-color:#76a8f6}
html[data-theme="dark"] details summary{color:#9ec2fa}
html[data-theme="dark"] th{color:#aebdd0;background:#111c2e}
html[data-theme="dark"] td,html[data-theme="dark"] th{border-color:var(--theme-dark-line)}
html[data-theme="dark"] tr:hover td{background:#0f1929}

/* Form controls. */
html[data-theme="dark"] :where(
  .wf-filters input,.wf-filters select,.wf-form input,.wf-form select,.wf-form textarea,
  .wf-form-grid input,.wf-form-grid select,.wf-form-grid textarea,.wf-comment-form textarea,
  .wf-action-card input,.wf-action-card select,.wf-action-card textarea,
  .classification-add-form input,.private-note-compose input,.private-note-compose textarea,
  .private-reply-form textarea,.material-delete-form input,.meeting-form input,.meeting-form select,
  .meeting-form textarea,.correspondence-compose-grid input,.correspondence-compose-grid select,
  .correspondence-compose-grid textarea,.correspondence-filters input,.correspondence-filters select,
  .profile-settings input,.profile-settings select,.profile-settings textarea
){color:var(--theme-dark-text)!important;background:var(--theme-dark-input)!important;border-color:#2b3a54!important}
html[data-theme="dark"] :where(input,select,textarea)::placeholder{color:#70819a}
html[data-theme="dark"] :where(input,select,textarea):focus{border-color:#527db8!important;box-shadow:0 0 0 3px rgba(82,125,184,.16)!important;outline:0}
html[data-theme="dark"] option{color:#eef3fa;background:#0f1828}
html[data-theme="dark"] .wf-dialog::backdrop{background:rgba(0,5,14,.76)}
html[data-theme="dark"] .wf-dialog-card header{border-color:var(--theme-dark-line);background:#111b2c}
html[data-theme="dark"] .wf-dialog-card header button{color:#e7eef8;background:#1d2a3f}
html[data-theme="dark"] .inline-actions button,html[data-theme="dark"] .wf-notifications button{color:#dce8f7;background:#18243a}

/* Buttons that are intentionally soft/light in day mode. */
html[data-theme="dark"] :where(.secondary-button,.compact-button,.file-picker,.url-open){color:#dce8f7!important;background:#17243a!important;border-color:#2b3b56!important}
html[data-theme="dark"] :where(.secondary-button,.compact-button,.file-picker,.url-open):hover{background:#1d2d46!important}
html[data-theme="dark"] .text-danger{color:#ff8c97}

/* Dashboard / utility blocks appended in later system versions. */
html[data-theme="dark"] :where(
 .classification-intro,.classification-add-form,.private-note-compose>header,.private-reply-form,
 .trash-intro,.admin-reply-box,.private-waiting,.revision-workflow-steps>div,
 .meeting-empty-state,.correspondence-empty-state,.correspondence-compose-paper,
 .correspondence-letter-body,.meeting-minute-paper,.meeting-minute-section
){background:var(--theme-dark-panel-2)!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)!important}
html[data-theme="dark"] :where(.classification-list>div,.deleted-team-list article+article,.wf-section,.private-note-card .note-delete-form){border-color:var(--theme-dark-line-soft)!important}
html[data-theme="dark"] :where(.classification-card header p,.private-note-compose header p,.private-note-message,.admin-reply-box p,.meeting-muted,.correspondence-muted){color:var(--theme-dark-muted)!important}
html[data-theme="dark"] .classification-list>div>span{color:#dce5f1}
html[data-theme="dark"] .private-pending-count{background:#332711;border-color:#5a4623}
html[data-theme="dark"] .private-pending-count small{color:#d5b98b}
html[data-theme="dark"] .admin-reply-box{border-right-color:#3aaf9d!important}
html[data-theme="dark"] .revision-workflow-steps>div.done{background:#10251f!important;border-color:#285b4c!important}
html[data-theme="dark"] .revision-workflow-steps>div.current{background:#12223e!important;border-color:#365d98!important;box-shadow:none}
html[data-theme="dark"] .revision-workflow-steps>div.locked{background:#121a27!important}

/* Meetings. */
html[data-theme="dark"] :where(.meeting-toolbar,.meeting-filters,.meeting-list,.meeting-upcoming-list,.meeting-permissions-box){background:transparent;color:inherit}
html[data-theme="dark"] :where(.meeting-item,.meeting-upcoming-item,.meeting-access-user){background:#101a2b!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)!important}
html[data-theme="dark"] :where(.meeting-item small,.meeting-upcoming-item small,.meeting-access-user small,.meeting-date-meta){color:var(--theme-dark-muted)!important}
html[data-theme="dark"] .meeting-date-box{background:#15253f!important;color:#bad3fb!important}
html[data-theme="dark"] .meeting-minute-paper{box-shadow:0 18px 50px rgba(0,0,0,.28)!important}

/* Internal correspondence. */
html[data-theme="dark"] :where(.correspondence-toolbar,.correspondence-tabs,.correspondence-filters){background:transparent}
html[data-theme="dark"] :where(.correspondence-row,.correspondence-item){background:#101a2b!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)!important}
html[data-theme="dark"] :where(.correspondence-row:hover,.correspondence-item:hover){background:#142038!important}
html[data-theme="dark"] :where(.correspondence-row small,.correspondence-item small,.correspondence-letter-meta,.correspondence-letter-date){color:var(--theme-dark-muted)!important}
html[data-theme="dark"] .correspondence-letter{box-shadow:0 20px 55px rgba(0,0,0,.3)!important}
html[data-theme="dark"] .correspondence-letter-body{background:#0f1828!important}
html[data-theme="dark"] .correspondence-letter :where(h1,h2,h3,strong,p,div,span){border-color:var(--theme-dark-line)}
html[data-theme="dark"] .correspondence-compose-from img,html[data-theme="dark"] .signature-preview img{background:#fff;border-radius:9px;padding:6px}

/* Advanced module. */
html[data-theme="dark"] body.advanced-body{background:linear-gradient(180deg,#080e1b,#0b1221)}
html[data-theme="dark"] .advanced-top{background:rgba(6,14,27,.97);box-shadow:0 14px 36px rgba(0,0,0,.25);border-bottom:1px solid #1b2940}
html[data-theme="dark"] .advanced-top nav a{color:#bfcee2}
html[data-theme="dark"] .advanced-top nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
html[data-theme="dark"] :where(.advanced-card,.report-letter){background:var(--theme-dark-panel);border-color:var(--theme-dark-line);box-shadow:0 18px 50px rgba(0,0,0,.25)}
html[data-theme="dark"] :where(.advanced-form label,.filter-grid label){color:#c6d2e2}
html[data-theme="dark"] :where(
 .advanced-form input,.advanced-form select,.advanced-form textarea,.filter-grid input,.filter-grid select,
 .filter-grid textarea,.category-edit input,.category-edit select,.review-note-row input,.review-note-row select
){color:var(--theme-dark-text);background:var(--theme-dark-input);border-color:#2b3a54}
html[data-theme="dark"] :where(.media-path,.review-round-history details,.response-item,.platform-row,.entry-list a,.request-list a,.detail-grid div,.summary-cards article,.category-list article,pre){background:#101a2b;border-color:var(--theme-dark-line);color:var(--theme-dark-text)}
html[data-theme="dark"] .summary-cards b{color:#eef3fa}
html[data-theme="dark"] .review-table th,html[data-theme="dark"] .report-table th{background:#132038;color:#cbe0ff}
html[data-theme="dark"] .review-table th,html[data-theme="dark"] .review-table td,html[data-theme="dark"] .report-table th,html[data-theme="dark"] .report-table td{border-color:#293952}
html[data-theme="dark"] .report-letter>header{border-color:#415d83}
html[data-theme="dark"] .url-copy button{color:#d8e5f7;background:#1b2a42}
html[data-theme="dark"] .platform-icon{background:#263c5e}
html[data-theme="dark"] .request-system-body .advanced-card h2{border-color:var(--theme-dark-line);color:var(--theme-dark-text)}
html[data-theme="dark"] .request-system-body :where(.advanced-form label,.filter-grid label){color:#c8d4e4}
html[data-theme="dark"] .request-system-body :where(.advanced-form input,.advanced-form select,.advanced-form textarea,.filter-grid input,.filter-grid select,.filter-grid textarea,.category-edit input,.category-edit select){color:var(--theme-dark-text);background:var(--theme-dark-input);border-color:#2b3a54}

/* Review pages, including the separate review queue. */
html[data-theme="dark"] body.review-page{
  color:var(--theme-dark-text);
  background:radial-gradient(circle at 95% -10%,rgba(65,113,199,.16),transparent 31%),linear-gradient(180deg,#080e1b,#0b1221 58%,#09101d);
}
html[data-theme="dark"] .review-system-bar{background:rgba(7,14,27,.96)!important;border-color:#1c2940!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .review-system-bar nav a{color:#bdcbe0!important}
html[data-theme="dark"] .review-system-bar nav a:hover,html[data-theme="dark"] .review-system-bar nav a.active{color:#fff!important;background:#17243b!important}
html[data-theme="dark"] :where(.review-card,.review-queue-card,.review-queue-empty){background:rgba(16,24,39,.97)!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)!important;box-shadow:var(--review-shadow)!important}
html[data-theme="dark"] :where(.review-back,.review-chip,.review-timeline-box,.review-note-row,.review-decision-card){background:#101a2b!important;border-color:var(--theme-dark-line)!important;color:var(--theme-dark-text)!important}
html[data-theme="dark"] :where(.review-input,.review-page input:not([type="radio"]):not([type="checkbox"]),.review-page select,.review-page textarea){color:var(--theme-dark-text)!important;background:var(--theme-dark-input)!important;border-color:#2b3a54!important}
html[data-theme="dark"] .review-timeline-box{box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}
html[data-theme="dark"] .review-section+.review-section{border-color:var(--theme-dark-line)}
html[data-theme="dark"] .review-step{background:#182b4b;border-color:#284b7d;color:#aac9ff}
html[data-theme="dark"] .review-count.neutral{background:#182235;border-color:#2b3950;color:#b9c7d9}
html[data-theme="dark"] .review-alert{box-shadow:none}
html[data-theme="dark"] .review-alert:not(.error):not(.warning){background:#10281f;border-color:#245542;color:#76d7ac}
html[data-theme="dark"] .review-alert.error{background:#30171b;border-color:#613039;color:#ff9da7}
html[data-theme="dark"] .review-alert.warning{background:#31250e;border-color:#634a1a;color:#f0c77c}
html[data-theme="dark"] .review-queue-heading>strong{background:#17294a!important;border-color:#294978!important;color:#b9d1ff!important}
html[data-theme="dark"] .review-queue-card dl>div{background:#111d30!important;border-color:#24344e!important}
html[data-theme="dark"] .review-queue-card p,html[data-theme="dark"] .review-queue-card dt,html[data-theme="dark"] .review-queue-heading p{color:var(--theme-dark-muted)!important}

/* Login/installer follows the saved appearance, but does not add another control. */
html[data-theme="dark"] body.auth-body{background:#080e1b;color:var(--theme-dark-text)}
html[data-theme="dark"] :where(.login-card,.installer-card){background:#101827!important;color:var(--theme-dark-text)!important;border-color:var(--theme-dark-line)!important}
html[data-theme="dark"] :where(.login-card input,.installer-card input,.installer-card select){color:var(--theme-dark-text)!important;background:#0c1525!important;border-color:#2b3a54!important}
html[data-theme="dark"] .login-card .muted,html[data-theme="dark"] .installer-card p{color:var(--theme-dark-muted)!important}
html[data-theme="dark"] .mobile-brand strong{color:var(--theme-dark-text)!important}


/* Exact overrides for meeting-minute and correspondence structures. */
html[data-theme="dark"] .meeting-card-title h3,
html[data-theme="dark"] .meeting-upcoming-list strong,
html[data-theme="dark"] .meeting-minute-brand h2,
html[data-theme="dark"] .meeting-minute-meta strong,
html[data-theme="dark"] .meeting-minute-section h3,
html[data-theme="dark"] .meeting-minute-access h3,
html[data-theme="dark"] .meeting-permission-grid b{color:var(--theme-dark-text)}
html[data-theme="dark"] .meeting-card-main p,
html[data-theme="dark"] .meeting-card-meta,
html[data-theme="dark"] .meeting-upcoming-list small,
html[data-theme="dark"] .meeting-minute-brand p,
html[data-theme="dark"] .meeting-minute-meta span,
html[data-theme="dark"] .meeting-minute-text,
html[data-theme="dark"] .meeting-minute-access p,
html[data-theme="dark"] .meeting-permission-grid small,
html[data-theme="dark"] .meeting-form-grid label{color:var(--theme-dark-muted)}
html[data-theme="dark"] .meeting-date-box,
html[data-theme="dark"] .meeting-upcoming-list time{background:#172a46;color:#a9ccff}
html[data-theme="dark"] .meeting-date-box span{color:#9eb0c8}
html[data-theme="dark"] .meeting-permission-count{background:#182339;color:#b7c4d7}
html[data-theme="dark"] .meeting-empty>div{background:#172a46;color:#9cc7ff}
html[data-theme="dark"] .meeting-empty h3{color:var(--theme-dark-text)}
html[data-theme="dark"] .meeting-upcoming-list a{border-color:var(--theme-dark-line-soft)}
html[data-theme="dark"] .meeting-minute-sheet{background:var(--theme-dark-panel);border-color:var(--theme-dark-line);box-shadow:0 18px 50px rgba(0,0,0,.28)}
html[data-theme="dark"] .meeting-minute-header{background:linear-gradient(180deg,#111b2d,#0f1828);border-color:var(--theme-dark-line)}
html[data-theme="dark"] .meeting-minute-brand span{color:#8fc8f5}
html[data-theme="dark"] .meeting-minute-meta{background:#111b2c;border-color:var(--theme-dark-line)}
html[data-theme="dark"] .meeting-minute-meta>div{border-color:var(--theme-dark-line)}
html[data-theme="dark"] .meeting-minute-section{background:var(--theme-dark-panel);border-color:var(--theme-dark-line-soft)!important}
html[data-theme="dark"] .meeting-minute-access{background:#111e31;border-color:#34506d}
html[data-theme="dark"] .meeting-access-chips>span{background:#162238;border-color:#2c3d57;color:#d1ddec}
html[data-theme="dark"] .meeting-minute-footer{background:#0e1726;border-color:var(--theme-dark-line);color:#8495ab}
html[data-theme="dark"] .meeting-form-grid input,
html[data-theme="dark"] .meeting-form-grid select,
html[data-theme="dark"] .meeting-form-grid textarea{color:var(--theme-dark-text);background:var(--theme-dark-input);border-color:#2b3a54}
html[data-theme="dark"] .meeting-permission-field{background:#101a2b;border-color:var(--theme-dark-line)}
html[data-theme="dark"] .meeting-permission-field legend{color:var(--theme-dark-text)}
html[data-theme="dark"] .meeting-permission-field>p{color:var(--theme-dark-muted)}
html[data-theme="dark"] .meeting-permission-grid>label{background:#0f1929;border-color:#28364d}
html[data-theme="dark"] .meeting-permission-grid>label:has(input:checked){background:#162b45;border-color:#416a8d}
html[data-theme="dark"] .meeting-permission-empty{background:#302711;color:#e2c582}

html[data-theme="dark"] .correspondence-tabs a{background:#101827;border-color:var(--theme-dark-line);color:#aebcd0}
html[data-theme="dark"] .correspondence-tabs a.active{background:#1c4f8b;border-color:#2d68a8;color:#fff}
html[data-theme="dark"] .correspondence-card{background:#101827;border-color:var(--theme-dark-line)}
html[data-theme="dark"] .correspondence-card.unread{background:linear-gradient(90deg,#101827,#122039);border-right-color:#5a9bf3}
html[data-theme="dark"] .correspondence-card-copy p,
html[data-theme="dark"] .correspondence-person small,
html[data-theme="dark"] .correspondence-card-meta time{color:var(--theme-dark-muted)}
html[data-theme="dark"] .correspondence-card-meta span{color:#b7c5d8}
html[data-theme="dark"] .correspondence-empty>div{background:#172a46;color:#9cc7ff}
html[data-theme="dark"] .correspondence-compose-from>span{background:#101a2b;border-color:var(--theme-dark-line)}
html[data-theme="dark"] .correspondence-sheet{background:var(--theme-dark-panel);border-color:var(--theme-dark-line);box-shadow:0 20px 55px rgba(0,0,0,.3)}
html[data-theme="dark"] .correspondence-sheet-head>div strong{color:#a8c9fa}
html[data-theme="dark"] .correspondence-letter-fields>div{border-color:var(--theme-dark-line-soft)}
html[data-theme="dark"] .correspondence-letter-body{background:transparent!important;color:#d9e2ee!important}
html[data-theme="dark"] .correspondence-signoff{border-color:var(--theme-dark-line)}
html[data-theme="dark"] .correspondence-sheet-foot{border-color:#344258;color:#8f9db0}
html[data-theme="dark"] .signature-preview,
html[data-theme="dark"] .signature-empty-preview{background:#101a2b;border-color:#34445d;color:var(--theme-dark-muted)}

/* Keep printed letters, meeting minutes and reports clean and white regardless of screen theme. */
@media print{
  html[data-theme="dark"]{color-scheme:light}
  html[data-theme="dark"] body{background:#fff!important;color:#111!important}
  html[data-theme="dark"] .theme-toggle{display:none!important}
  html[data-theme="dark"] :where(.meeting-minute-paper,.meeting-minute-sheet,.correspondence-letter,.correspondence-sheet,.report-letter,.advanced-card){background:#fff!important;color:#111!important;border-color:#ddd!important;box-shadow:none!important}
  html[data-theme="dark"] :where(.meeting-minute-paper *, .meeting-minute-sheet *, .correspondence-letter *, .correspondence-sheet *, .report-letter *){color:#111!important;border-color:#ddd!important}
  html[data-theme="dark"] :where(.meeting-minute-section,.meeting-minute-header,.meeting-minute-meta,.meeting-minute-footer,.correspondence-letter-body){background:#fff!important}
}

@media(max-width:800px){
  .wf-top-actions{gap:7px}
  .theme-toggle{width:40px;height:40px;flex-basis:40px;border-radius:12px}
  .theme-toggle .theme-icon{font-size:22px}
}
@media(max-width:560px){
  .wf-top-actions>.primary-button{font-size:0;width:42px;min-width:42px;padding:0}
  .wf-top-actions>.primary-button::first-letter{font-size:18px}
}
