/* The left rail spans the crown bar; the lamp controls the workspace palette. */
body.voucher-workspace {
  --desk-bg: #f0f3f7; --desk-paper: #fff; --desk-soft: #f6f8fb;
  --desk-ink: #243043; --desk-muted: #657286; --desk-line: #e1e6ee;
  --desk-accent: #175fcb; --desk-focus: #329cef;
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 272px;
  grid-template-rows: 56px minmax(0, 1fr); background: var(--desk-bg); color: var(--desk-ink);
}
.voucher-workspace .office-layout { display: contents; }
.voucher-workspace .topbar { grid-column: 2 / 4; grid-row: 1; background: var(--desk-paper); border-color: var(--desk-line); }
.voucher-workspace .document-sidebar { grid-column: 1; grid-row: 1 / 3; padding: 27px 22px 12px; background: #111719; position: relative; border-right: 1px solid #283940; }
.voucher-workspace .workspace { grid-column: 2; grid-row: 2; background: var(--desk-paper); }
body.voucher-workspace:has(.files-collapsed) { grid-template-columns: 0 minmax(0, 1fr) 272px; }
.voucher-workspace .office-identity { padding: 0; gap: 0; flex: none; }
.voucher-workspace .office-logo { width: 162px; }
.kaos-name { font: 600 15px/1.5 "Segoe UI", sans-serif; color: #afdae5; margin: 20px 0 8px; }
.personnel-wordmark { overflow: hidden; }
.voucher-workspace .office-personnel { width: 100%; max-width: none; height: auto; margin-top: -9px; }
.close-context { display: none; }
.voucher-workspace .desk-lamp { width: 100%; height: 216px; min-height: 216px; margin: 10px 0 22px; border-bottom-color: #344449; overflow: visible; }
.voucher-workspace .lamp-shade { top: 23px; left: 28px; width: 126px; height: 48px; border-radius: 0; clip-path: polygon(23% 0, 77% 0, 100% 94%, 98% 100%, 2% 100%, 0 94%); background: repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 4px), linear-gradient(90deg, #53675a, #bac1a0 48%, #526558); box-shadow: inset 0 2px #dce2bc, inset 0 -4px #d8dcb19c; z-index: 3; }
.voucher-workspace .lamp-shade:before { content: ""; position: absolute; top: 2px; left: 25%; right: 25%; height: 2px; background: #edf0ca7a; }
.voucher-workspace .lamp-shade:after { content: ""; position: absolute; bottom: 5px; left: 2px; right: 2px; height: 1px; background: #354b424a; }
.voucher-workspace .lamp-bulb { top: 66px; left: 39px; width: 105px; height: 8px; background: #fff6c8; box-shadow: 0 5px 18px #ffdc78ba, 0 2px 40px #ffe1935c; z-index: 2; }
.voucher-workspace .lamp-beam { top: 70px; left: 0; width: 188px; height: 118px; clip-path: polygon(25% 0, 73% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #fff0a968, #eed78924 70%, #e5d98105); }
.voucher-workspace .lamp-post { top: 69px; left: 87px; width: 5px; height: 101px; background: linear-gradient(90deg, #233f45, #83a3a2, #243b42); z-index: 1; }
.voucher-workspace .lamp-base { top: 168px; left: 45px; width: 91px; height: 10px; background: linear-gradient(180deg, #769799, #2c494e); box-shadow: 0 5px 8px #0007; }
.voucher-workspace .desk-lamp-caption { top: 191px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; color: #dacda9; font-size: 11px; }
.voucher-workspace .desk-lamp-caption .eyebrow { font-size: 9px; color: #adbdba; }
.lamp-rope { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.lamp-rope path { fill: none; stroke: #d2cbb0; stroke-width: 1.6; stroke-linecap: round; }
.voucher-workspace .pull-cord { top: 95px; left: 155px; width: 30px; height: 36px; display: grid; place-items: center; padding: 0; touch-action: none; cursor: grab; z-index: 5; }
.voucher-workspace .pull-cord:active { cursor: grabbing; }
.voucher-workspace .cord-line { display: none; }
.voucher-workspace .cord-weight { width: 11px; height: 23px; border-radius: 4px 4px 6px 6px; background: linear-gradient(90deg, #72dbea, #d3fcff 44%, #4dabb9); box-shadow: 0 0 10px #45c7e84a, 0 3px 4px #0007; border: 1px solid #b7eeee85; }
.voucher-workspace .voucher-context label { color: #aec3cb; }
.voucher-workspace .voucher-context input, .voucher-workspace .voucher-context select { background: #1b282e; border-color: #364b55; color: #e4eef0; }
.voucher-workspace .context-origin { color: #839ca6; margin-bottom: 17px; }
.voucher-workspace .voucher-date { border-color: #2f4149; }
.voucher-workspace .document-sidebar .add-files { color: #fff; background: linear-gradient(110deg, #087fec, #00a9ba); border-color: #239bdf; margin-top: 19px; }
.voucher-workspace .document-sidebar .add-files:hover { background: linear-gradient(110deg, #158dfe, #00bbc8); }
.voucher-workspace .sidebar-account { margin-top: auto; padding-top: 16px; border-color: #304049; color: #b3c5ce; }
.voucher-workspace .source-connection { color: #a1bac5; margin-bottom: 20px; }
.voucher-workspace .voucher-heading { padding: 21px 26px 19px; align-items: center; }
.voucher-workspace .voucher-heading h2 { color: var(--desk-ink); font-size: 21px; line-height: 1.3; }
.voucher-workspace .voucher-heading p { color: var(--desk-muted); }
.voucher-workspace .voucher-overview { padding-inline: 26px; background: var(--desk-soft); border-color: var(--desk-line); }
.voucher-workspace .voucher-overview > span { color: var(--desk-muted); }
.voucher-workspace .voucher-groups { padding-inline: 24px; }
.voucher-workspace .voucher-group { padding: 16px 0; gap: 13px; grid-template-columns: 25px minmax(0, 1fr); border-color: var(--desk-line); }
.voucher-workspace .voucher-group:hover { background: var(--desk-soft); }
.voucher-workspace .invoice-sequence { font-size: 14px; color: #148fa7; }
.voucher-workspace .invoice-group-heading { align-items: center; margin-bottom: 9px; }
.voucher-workspace .invoice-identity h3 { color: var(--desk-ink); font-size: 12px; }
.voucher-workspace .invoice-group-meta { color: var(--desk-muted); gap: 8px; }
.voucher-workspace .posting-lines th { background: var(--desk-soft); color: var(--desk-muted); }
.voucher-workspace .posting-lines td { color: var(--desk-muted); }
.voucher-workspace .posting-lines th, .voucher-workspace .posting-lines td { border-color: var(--desk-line); padding: 10px 8px; }
.voucher-workspace .invoice-provenance { color: var(--desk-muted); }
.voucher-workspace .voucher-totals, .voucher-workspace .workspace-footer { background: var(--desk-soft); border-color: var(--desk-line); color: var(--desk-muted); }
.voucher-workspace .voucher-totals { padding: 17px 24px; }
.voucher-workspace .voucher-totals strong { font-size: 14px; color: var(--desk-ink); }
.desk-actions { grid-column: 3; grid-row: 2; padding: 23px 22px 15px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; border-left: 1px solid var(--desk-line); background: var(--desk-soft); scrollbar-width: thin; }
.desk-actions-heading { display: flex; align-items: center; justify-content: space-between; color: #238fa6; margin-bottom: 16px; }
.desk-actions-heading .eyebrow { color: var(--desk-muted); font-size: 9px; }
.desk-counters { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.desk-counters > div { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--desk-line); }
.desk-counters > div:nth-child(even) { padding-left: 17px; border-left: 1px solid var(--desk-line); }
.desk-counters dt { font-size: 10px; color: var(--desk-muted); }
.desk-counters dd { margin: 5px 0 0; font: 600 20px/1.25 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; color: var(--desk-ink); overflow-wrap: anywhere; }
.desk-counters > div:first-child dd { color: #058db3; }
.desk-counters > div:nth-child(2) dd { color: #8051ac; }
.desk-activity { padding-top: 5px; }
.activity-scene { height: 170px; position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; background: #121c21; border-radius: 4px; border-top: 2px solid #1ec3dc; }
.activity-scene:after { content: ""; position: absolute; left: 0; bottom: 0; right: 0; height: 2px; background: linear-gradient(90deg, #00c8e1, #107cff 55%, #c021e0); }
.activity-scene:before { content: ""; position: absolute; inset: 12px; border: 1px solid #43899d52; clip-path: polygon(0 0, 20px 0, 20px 1px, calc(100% - 20px) 1px, calc(100% - 20px) 0, 100% 0, 100% 20px, calc(100% - 1px) 20px, calc(100% - 1px) calc(100% - 20px), 100% calc(100% - 20px), 100% 100%, calc(100% - 20px) 100%, calc(100% - 20px) calc(100% - 1px), 20px calc(100% - 1px), 20px 100%, 0 100%, 0 calc(100% - 20px), 1px calc(100% - 20px), 1px 20px, 0 20px); pointer-events: none; }
.activity-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(#346074 1px, transparent 1px), linear-gradient(90deg, #346074 1px, transparent 1px); background-size: 26px 26px; transform: perspective(160px) rotateX(30deg) scale(1.4); }
.activity-raster { position: absolute; inset: 0; pointer-events: none; opacity: .2; background: repeating-linear-gradient(0deg, transparent 0 4px, #46cde826 4px 5px); animation: desk-raster 7s linear infinite; }
.activity-avatar { width: min(188px, calc(100% - 30px)); aspect-ratio: 3 / 2; position: relative; margin-top: -15px; }
.activity-scene img { display: block; width: 100%; height: 100%; object-fit: contain; position: relative; margin: 0; opacity: .95; filter: drop-shadow(0 0 5px #28bdd44d); transition: opacity .3s; }
#desk-eyes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.activity-signal { position: absolute; bottom: 21px; display: flex; align-items: center; justify-content: center; height: 22px; gap: 5px; }
.activity-signal span { width: 3px; height: 4px; background: #25c7dc; border-radius: 1px; transform-origin: center; }
.activity-signal span:nth-child(3n) { background: #b774e0; }
.activity-signal span:nth-child(2n) { background: #287ef5; }
.activity-sweep { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(transparent, #43c9ef22); border-bottom: 1px solid #44d8ff80; opacity: 0; }
.desk-activity[data-phase=loading] .activity-signal span, .desk-activity[data-phase=reading] .activity-signal span { animation: desk-signal .9s ease-in-out infinite alternate; }
.desk-activity .activity-signal span:nth-child(2n) { animation-delay: -.3s; }
.desk-activity .activity-signal span:nth-child(3n) { animation-delay: -.6s; }
.desk-activity[data-phase=loading] .activity-sweep, .desk-activity[data-phase=reading] .activity-sweep { animation: desk-sweep 2.2s linear infinite; }
.desk-activity[data-phase=ready] .activity-scene img, .desk-activity[data-phase=done] .activity-scene img, .desk-activity[data-phase=reading] .activity-scene img { opacity: 1; }
.desk-activity.just-received .activity-sweep { animation: desk-arrival 1.4s ease-in-out 2; }
.desk-activity.just-received .activity-raster { animation: desk-received .8s ease-out; }
.desk-status-line { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.desk-status-dot { width: 6px; height: 6px; background: #90a1a6; border-radius: 50%; flex: none; }
.desk-activity[data-phase=reading] .desk-status-dot, .desk-activity[data-phase=loading] .desk-status-dot { background: #069bb7; animation: breathe 1.4s ease-in-out infinite; }
.desk-activity[data-phase=ready] .desk-status-dot { background: #3c88e0; }
.desk-activity[data-phase=done] .desk-status-dot { background: #269e7c; }
.desk-activity[data-phase=error] .desk-status-dot { background: #d07c54; }
#desk-status { font-size: 12px; font-weight: 600; color: var(--desk-ink); }
#desk-current { font: 10px/1.6 Consolas, monospace; color: var(--desk-muted); margin-top: 7px; overflow-wrap: anywhere; min-height: 32px; }
.desk-command { display: flex; gap: 7px; margin-top: 17px; }
.desk-command .button { flex: 1; min-width: 0; font-size: 11px; color: #fff; background: linear-gradient(110deg, #127dd4, #087f96); border: 0; }
.desk-command .button:hover:not(:disabled) { background: linear-gradient(110deg, #128eec, #019bae); }
.desk-command .icon-button { height: 38px; border: 1px solid var(--desk-line); color: var(--desk-muted); }
#desk-completed { color: var(--desk-muted); font-size: 10px; margin-top: 12px; }
.desk-events { list-style: none; padding: 22px 0; margin: 22px 0 0; border-top: 1px solid var(--desk-line); display: grid; gap: 12px; }
.desk-events:empty { display: none; }
.desk-events li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; font-size: 10px; line-height: 1.6; color: var(--desk-muted); }
.desk-events time { font-family: Consolas, monospace; color: #0b9eb2; }
.desk-session { margin-top: auto; padding-top: 24px; }
.desk-session .eyebrow { color: var(--desk-muted); font-size: 9px; }
.desk-session p { font-size: 10px; color: var(--desk-muted); margin-top: 5px; }
.desk-light-off { --desk-bg: #0e151b !important; --desk-paper: #172026 !important; --desk-soft: #121b21 !important; --desk-ink: #c5d5dc !important; --desk-muted: #8299a4 !important; --desk-line: #2a3a43 !important; color-scheme: dark; }
.voucher-workspace .topbar, .voucher-workspace .workspace, .desk-actions, .voucher-overview, .voucher-totals, .workspace-footer, .posting-lines th, .posting-lines td { transition: background-color .65s, color .65s, border-color .65s; }
.desk-light-off .document-sidebar { background: #0b1014; }
.desk-light-off .office-identity { opacity: 1; }
.voucher-workspace.desk-light-off .lamp-shade { background: repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 4px), linear-gradient(90deg, #243d3a, #687d69 48%, #243d3a); box-shadow: inset 0 2px #849681, inset 0 -4px #506257; }
.desk-light-off .lamp-bulb { opacity: .15; box-shadow: none; }
.desk-light-off .lamp-beam { opacity: 0; }
.desk-light-off .cord-weight { background: linear-gradient(90deg, #477887, #8db5bc, #365661); box-shadow: none; }
.desk-light-off .activity-scene { background: #0b1118; }
.desk-light-off .activity-scene img, .desk-light-off #desk-eyes { filter: drop-shadow(0 0 5px #70dfff30); }
.desk-light-off .header-actions .button { background: #192a33; color: #a6c0cc; border-color: #32464f; }
.desk-light-off .breadcrumb, .desk-light-off .account-button { color: #a1b5c0; }
.desk-light-off .preview-heading, .desk-light-off .document-toolbar, .desk-light-off .view-controls, .desk-light-off .document-footer { background: #16222a; color: #abc1ca; border-color: #32434e; }
.desk-light-off .preview-content { background: #101a20; }
.desk-light-off .invoice-paper { filter: brightness(.74); }
.desk-light-off .preview-pdf { filter: brightness(.72); }
.desk-light-off #login-dialog, .desk-light-off #account-dialog { background: #17242c; color: #c9dae3; }
.desk-light-off .context-notice, .desk-light-off .notice { background: #312824; color: #cba48b; border-color: #635047; }
@keyframes desk-signal { to { transform: scaleY(4); } }
@keyframes desk-sweep { from { transform: translateY(-45px); opacity: 1; } to { transform: translateY(175px); opacity: 1; } }
@keyframes desk-arrival { 0% { transform: translateY(-45px); opacity: 0; } 15%,80% { opacity: 1; } 100% { transform: translateY(175px); opacity: 0; } }
@keyframes desk-received { 0% { transform: scale(.94); opacity: .4; } 65% { transform: scale(1.035); opacity: 1; } 100% { transform: scale(1); } }
@keyframes desk-raster { to { background-position: 0 30px; } }
@media (max-width: 1200px) {
  body.voucher-workspace { grid-template-columns: 246px minmax(0, 1fr) 230px; }
  body.voucher-workspace:has(.files-collapsed) { grid-template-columns: 0 minmax(0, 1fr) 230px; }
  .voucher-workspace .document-sidebar { padding-inline: 18px; }
  .desk-actions { padding-inline: 16px; }
  .voucher-workspace .voucher-heading { padding-inline: 18px; }
  .voucher-workspace .voucher-groups { padding-inline: 16px; }
  .voucher-workspace .posting-lines th, .voucher-workspace .posting-lines td { padding: 9px 5px; font-size: 10px; }
  .voucher-workspace .invoice-group-meta { font-size: 10px; }
}
@media (max-width: 950px) {
  body.voucher-workspace { grid-template-columns: 238px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) 188px; }
  body.voucher-workspace:has(.files-collapsed) { grid-template-columns: 0 minmax(0, 1fr); }
  .voucher-workspace .document-sidebar { grid-row: 1 / 4; }
  .voucher-workspace .topbar { grid-column: 2; }
  .desk-actions { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--desk-line); }
  .desk-actions-heading, .desk-session, .desk-events, .activity-scene { display: none; }
  .desk-counters > div { padding-bottom: 10px; margin-bottom: 5px; }
  .desk-counters dd { font-size: 21px; }
  .desk-counters dt { font-size: 9px; }
  .desk-status-line { margin-top: 0; }
  .desk-command { margin-top: 10px; }
  #desk-current { font-size: 9px; }
  .desk-activity[data-phase=reading], .desk-activity[data-phase=loading], .desk-activity.just-received { border-top: 2px solid #20bfdb; }
}
@media (max-width: 730px) {
  body.voucher-workspace, body.voucher-workspace:has(.files-collapsed) { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) 171px; }
  .voucher-workspace .topbar, .voucher-workspace .workspace, .desk-actions { grid-column: 1; }
  .voucher-workspace .files-expanded .document-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; z-index: 8; padding: 25px 22px 12px; }
  .close-context { display: inline-flex; position: absolute; top: 12px; right: 12px; }
  .desk-actions { padding: 11px 14px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .desk-counters dd { font-size: 19px; margin-top: 5px; }
  .desk-counters > div:nth-child(even) { padding-left: 10px; }
  .desk-command .button { font-size: 10px; padding: 7px 5px; }
  .desk-command .button svg { width: 14px; }
  .desk-command .icon-button { width: 27px; }
  #desk-status { font-size: 11px; }
  #desk-completed { font-size: 9px; }
  .voucher-workspace .voucher-heading { padding: 18px 15px; }
  .voucher-workspace .voucher-heading h2 { font-size: 19px; }
  .voucher-workspace .voucher-overview { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-scene *, .desk-status-dot { animation: none !important; }
}

/* One viewport-anchored gradient follows the left / crown / right frame. */
body.voucher-workspace {
  --frame-gradient: linear-gradient(115deg, #e8f0e9, #f7faf9 48%, #e9f2f5);
  --frame-ink: #243d46; --frame-muted: #576e76; --frame-line: #a1b8bb55;
}
.voucher-workspace .document-sidebar, .voucher-workspace .topbar, .voucher-workspace .desk-actions {
  background-color: #142144;
  background-image: var(--frame-gradient);
  background-size: 100vw 100dvh;
  background-position: 0 0;
  background-attachment: fixed;
  color: var(--frame-ink); border-color: var(--frame-line);
  scrollbar-color: #aaa6ca50 transparent;
}
.voucher-workspace.desk-light-off {
  --frame-gradient: linear-gradient(90deg, #082b45, #1b2641 48%, #2b1935);
  --frame-ink: #eef4ff; --frame-muted: #c2c4dc; --frame-line: #d9ddff2b;
}
.voucher-workspace.desk-light-off .document-sidebar { background: #082b45; }
.voucher-workspace.desk-light-off .desk-actions { background: #2b1935; }
.voucher-workspace.desk-light-off .topbar { background-size: 100% 100%; background-attachment: scroll; }
.voucher-workspace .desk-actions { --desk-ink: var(--frame-ink); --desk-muted: var(--frame-muted); --desk-line: var(--frame-line); }
.voucher-workspace .desk-actions-heading { color: #ceafea; }
.voucher-workspace .desk-counters > div:first-child dd { color: #52cfea; }
.voucher-workspace .desk-counters > div:nth-child(2) dd { color: #d5a1f0; }
.voucher-workspace .desk-events time { color: #97c4f3; }
.voucher-workspace .desk-activity .icon-button { color: #d1c4df; border-color: var(--frame-line); }
.voucher-workspace .desk-activity .icon-button:hover { background: #ffffff12; }
.voucher-workspace .activity-scene { background: #090e20a6; border-top-color: #8397dc; }
.voucher-workspace .activity-scene:after { background: linear-gradient(90deg, #218da5, #6853ab, #ac438e); }
.voucher-workspace .topbar .breadcrumb, .voucher-workspace .topbar .breadcrumb a, .voucher-workspace .topbar .breadcrumb h1, .voucher-workspace .topbar .account-button, .voucher-workspace .topbar .icon-button { color: var(--frame-ink); }
.voucher-workspace .topbar .header-actions .button { color: #e4e5f4; background: #ffffff09; border-color: var(--frame-line); }
.voucher-workspace .topbar .header-actions .button:hover, .voucher-workspace .topbar .icon-button:hover, .voucher-workspace .topbar .account-button:hover { background: #ffffff15; }
.voucher-workspace .topbar #queue-count { color: #b4c7eb; }
.voucher-workspace .document-sidebar .voucher-context input, .voucher-workspace .document-sidebar .voucher-context select { background: #040d2070; color: #e5eff8; border-color: #b4cfe333; }
.voucher-workspace .document-sidebar .voucher-context option { background: #10263c; color: #e5eff8; }
.voucher-workspace .document-sidebar .voucher-context label, .voucher-workspace .document-sidebar .source-connection { color: #bfd2e3; }
.voucher-workspace .document-sidebar .context-origin { color: #9db4cc; }
.voucher-workspace .document-sidebar .voucher-date, .voucher-workspace .document-sidebar .sidebar-account, .voucher-workspace .document-sidebar .desk-lamp { border-color: var(--frame-line); }
.voucher-workspace .document-sidebar .sidebar-account, .voucher-workspace .document-sidebar .close-context { color: #c9dcee; }

/* Shared finish for the paper, frame controls and document review surfaces. */
.voucher-workspace { --blue: var(--desk-accent); --green: #16745d; }
.voucher-workspace .button { min-height: 38px; font-weight: 600; border-radius: 5px; transition: background-color .16s, border-color .16s, box-shadow .16s; }
.voucher-workspace .button.primary:not(:disabled),
.voucher-workspace .document-sidebar .add-files:not(:disabled),
.voucher-workspace .analysis-actions .button.primary:not(:disabled) {
  color: #fff; background: linear-gradient(115deg, #155aca, #087caa); border: 1px solid #2278ca;
  box-shadow: inset 0 1px #ffffff1f, 0 2px 4px #08264d14;
}
.voucher-workspace .button.primary:hover:not(:disabled),
.voucher-workspace .document-sidebar .add-files:hover:not(:disabled),
.voucher-workspace .analysis-actions .button.primary:hover:not(:disabled) {
  background: linear-gradient(115deg, #124eaf, #096b96); border-color: #4b9ce2;
}
.voucher-workspace :is(button, input, select, a):focus-visible { outline: 2px solid var(--desk-focus); outline-offset: 3px; }
.voucher-workspace :is(.button, .icon-button):disabled { opacity: 1; cursor: not-allowed; box-shadow: none; }
.voucher-workspace .button:disabled { background: #edf0f5; color: #727e90; border: 1px solid #d8dfe9; }
.voucher-workspace :is(.document-sidebar, .desk-actions, .analysis-panel) .button:disabled {
  background: #ffffff0a; color: #a1a9bc; border: 1px solid #cdd9f52b;
}
.voucher-workspace :is(.document-sidebar, .desk-actions, .analysis-panel) .icon-button:disabled { color: #a1a9bc; background: transparent; border-color: #cdd9f52b; }
.voucher-workspace .topbar .header-actions .button { min-height: 32px; font-size: 12px; padding: 6px 10px; background: #ffffff08; border-color: #c5d5f336; }
.voucher-workspace .topbar #new-document { background: #ffffff15; color: #fff; border-color: #d3e0ff45; }
.voucher-workspace .topbar #new-document:hover { background: #ffffff24; }
.voucher-workspace .topbar #file-count { font-variant-numeric: tabular-nums; color: #beccea; }
.voucher-workspace .voucher-heading .eyebrow { color: var(--desk-muted); font-size: 10px; font-weight: 600; }
.voucher-workspace .voucher-heading p { margin-top: 6px; }
.voucher-workspace .draft-label { padding: 0; color: var(--desk-muted); font-size: 11px; }
.voucher-workspace .draft-label svg { color: var(--desk-accent); }
.voucher-workspace .voucher-overview { min-height: 39px; padding-block: 9px; }
.voucher-workspace .voucher-overview > span:first-child { color: var(--desk-ink); }
.voucher-workspace .voucher-empty { padding: 30px 20px; gap: 22px; }
.voucher-workspace .voucher-empty h3 { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--desk-ink); }
.voucher-workspace .upload-emblem { width: 60px; height: 74px; background: var(--desk-paper); border-color: #bdcce0; box-shadow: 7px 7px 0 #e5ebf3; }
.voucher-workspace .upload-emblem > svg { color: #3972ba; width: 27px; height: 27px; }
.voucher-workspace .upload-emblem > span { background: #ddebff; color: #185da9; border-color: var(--desk-paper); }
.voucher-workspace .voucher-empty .button { min-height: 40px; padding-inline: 20px; }
.voucher-workspace .format-list { gap: 0; }
.voucher-workspace .format-list span { padding: 0 9px; border: 0; border-radius: 0; color: var(--desk-muted); font-size: 10px; line-height: 1.3; }
.voucher-workspace .format-list span + span { border-left: 1px solid var(--desk-line); }
.voucher-workspace .voucher-totals { padding-block: 14px; }
.voucher-workspace .voucher-totals > span { color: var(--desk-muted); }
.voucher-workspace .workspace-footer { font: 10px "Segoe UI", sans-serif; }
.voucher-workspace .invoice-open:hover { color: var(--desk-accent); }
.voucher-workspace .posting-lines th { font-size: 11px; font-weight: 500; }
.voucher-workspace .posting-lines td { font-size: 12px; line-height: 1.55; }
.voucher-workspace .posting-lines .number { font-variant-numeric: tabular-nums; }
.voucher-workspace .invoice-provenance { font-size: 10px; }
.voucher-workspace .desk-actions-heading .eyebrow { font-size: 10px; }
.voucher-workspace .desk-actions-heading svg { width: 18px; height: 18px; }
.voucher-workspace .desk-counters dt { font-size: 11px; line-height: 1.5; }
.voucher-workspace .desk-counters > div:nth-child(2) dd { color: #c3b9f4; }
.voucher-workspace .desk-activity { padding-top: 9px; }
.voucher-workspace .desk-command { align-items: stretch; margin-top: 13px; }
.voucher-workspace .desk-command .button { font-size: 12px; }
.voucher-workspace .desk-command .icon-button { border-radius: 5px; height: 38px; }
.voucher-workspace #desk-current { font: 11px/1.6 "Segoe UI", sans-serif; min-height: 18px; }
.voucher-workspace #desk-completed { font-variant-numeric: tabular-nums; }
.voucher-workspace .context-origin { line-height: 1.6; }
.voucher-workspace .voucher-date { color: #b8c9dd; }
.voucher-workspace .voucher-date strong { color: #edf3fc; }
.voucher-workspace .voucher-context select:hover, .voucher-workspace .voucher-context input:hover { border-color: #86b1d575; }
.voucher-workspace .voucher-desk.dragging { background: var(--desk-soft); outline-color: var(--desk-focus); }
.voucher-workspace .preview-heading, .voucher-workspace .document-toolbar, .voucher-workspace .view-controls, .voucher-workspace .document-footer {
  background: var(--desk-paper); color: var(--desk-ink); border-color: var(--desk-line);
}
.voucher-workspace .document-name, .voucher-workspace .document-footer > span:nth-child(2), .voucher-workspace .document-pager output { color: var(--desk-muted); }
.voucher-workspace .view-tabs button { color: var(--desk-muted); }
.voucher-workspace .view-tabs button[aria-selected=true] { color: var(--desk-accent); border-color: var(--desk-accent); }
.voucher-workspace .zoom-control { color: var(--desk-muted); }
.voucher-workspace .zoom-control input { accent-color: var(--desk-accent); }
.voucher-workspace .preview-content { background: var(--desk-soft); }
.voucher-workspace .documents-dialog { background: #192334; border-color: #3a4860; color: #edf2fa; }
.voucher-workspace .documents-dialog .queue-search, .voucher-workspace .documents-dialog .queue-tools select { background: #111b2a; border-color: #3c4b63; color: #d6deed; }
.voucher-workspace .documents-dialog .file-item:hover { background: #25354c; }
.voucher-workspace .documents-dialog .file-item[aria-current=true] { background: #24364f; border-left-color: #4cb7eb; }
.voucher-workspace .documents-dialog .session-summary strong { color: #8ccdf6; }
.voucher-workspace .analysis-panel { background: #192231; --line: #344156; --muted: #b4c0d1; --blue: #82c6f3; --green: #74cbb6; }
.voucher-workspace .analysis-actions { background: #121d2d; border-color: #344156; }
.voucher-workspace .analysis-panel .personnel-header h2, .voucher-workspace .analysis-result h3 { color: #edf2fa; }
.voucher-workspace .analysis-panel .analysis-result p, .voucher-workspace .analysis-panel .file-facts dd { color: #ced9e8; }
.voucher-workspace .analysis-panel .analysis-actions p { color: #aebed1; }
.voucher-workspace.desk-light-off { --desk-ink: #dce5ef !important; --desk-muted: #a5b3c4 !important; --desk-accent: #78b6ff; }
.voucher-workspace.desk-light-off .upload-emblem { border-color: #465a71; box-shadow: 7px 7px 0 #24313f; }
.voucher-workspace.desk-light-off .upload-emblem > span { background: #233d61; color: #91c9ff; }
.voucher-workspace.desk-light-off .upload-emblem > svg { color: #91c9ff; }
.voucher-workspace.desk-light-off :is(.workspace, .posting-content) .button:disabled { background: #253140; color: #a1afc0; border-color: #3a495d; }
@media (max-width: 950px) {
  .voucher-workspace .desk-counters dd { font-size: 18px; }
  .voucher-workspace .desk-counters dt { font-size: 10px; }
  .voucher-workspace .desk-activity { padding-top: 0; }
  .voucher-workspace #desk-current { font-size: 10px; }
  .voucher-workspace .desk-command .button { font-size: 11px; }
}
@media (max-width: 730px) {
  .voucher-workspace .voucher-heading { padding: 17px 16px; gap: 10px; }
  .voucher-workspace .voucher-heading h2 { font-size: 20px; }
  .voucher-workspace .draft-label { font-size: 10px; gap: 4px; }
  .voucher-workspace .voucher-empty h3 { font-size: 18px; }
  .voucher-workspace .voucher-empty { padding: 22px 16px; gap: 18px; }
  .voucher-workspace .posting-lines td { font-size: 11px; }
  .voucher-workspace .posting-lines th { font-size: 10px; }
  .voucher-workspace .desk-command .button { padding-inline: 6px; font-size: 10px; }
}

/* Daylight is a complete palette; night keeps the original saturated brand frame. */
.voucher-workspace .personnel-wordmark { height: 34px; }
.voucher-workspace .personnel-light { display: block; margin-top: 0; mix-blend-mode: multiply; }
.voucher-workspace .personnel-dark { display: none; }
.voucher-workspace.desk-light-off .personnel-light { display: none; }
.voucher-workspace.desk-light-off .personnel-dark { display: block; }
.voucher-workspace:not(.desk-light-off) .kaos-name { color: #385d65; }
.voucher-workspace.desk-light-off .office-logo {
  filter: brightness(1.12) saturate(1.05);
}
.voucher-workspace.desk-light-off .office-personnel { filter: brightness(1.16); }
.voucher-workspace.desk-light-off .kaos-name { color: #ddf5ff; text-shadow: none; }
.voucher-workspace .office-logo, .voucher-workspace .office-personnel, .voucher-workspace .kaos-name { transition: filter .5s, text-shadow .5s, color .5s; }
.voucher-workspace:not(.desk-light-off) .topbar .header-actions .button,
.voucher-workspace:not(.desk-light-off) .topbar #new-document { color: #254a59; background: #ffffff80; border-color: #b7cacd; box-shadow: none; }
.voucher-workspace:not(.desk-light-off) .topbar .header-actions .button:hover { background: #fff; border-color: #6a959f; }
.voucher-workspace:not(.desk-light-off) .topbar .icon-button:hover,
.voucher-workspace:not(.desk-light-off) .topbar .account-button:hover { background: #173c4d0b; }
.voucher-workspace:not(.desk-light-off) .topbar #file-count { color: #4c6d79; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .voucher-context :is(input, select) { background: #ffffffc9; color: #263f47; border-color: #b8c9c9; color-scheme: light; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .voucher-context option { background: #fff; color: #263f47; }
.voucher-workspace:not(.desk-light-off) .document-sidebar :is(.voucher-context label, .context-origin, .source-connection, .sidebar-account, .close-context, .voucher-date) { color: #526c73; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .voucher-date strong { color: #263f47; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .button:not(.primary) { color: #365d6a; background: #ffffff70; border-color: #b7cbce; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .button:disabled { color: #6e838a; background: #dae5e34d; border-color: #bdcecd; }
.voucher-workspace:not(.desk-light-off) .document-sidebar .icon-button:hover { background: #173c4d0b; color: #274e59; }
.voucher-workspace:not(.desk-light-off) .desk-lamp-caption, .voucher-workspace:not(.desk-light-off) .desk-lamp-caption .eyebrow { color: #685d45; }
.voucher-workspace .pull-cord:hover .cord-weight { background: linear-gradient(90deg, #54b9d3, #c7faff, #258ca7); }
.voucher-workspace .desk-actions-heading { color: var(--frame-muted); margin-bottom: 15px; }
.voucher-workspace .desk-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 20px; }
.voucher-workspace .desk-counters > div, .voucher-workspace .desk-counters > div:nth-child(even) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; min-width: 0; padding: 0; margin: 0; border: 0; }
.voucher-workspace .desk-counters dt { font: 10px/1.5 "Segoe UI", sans-serif; color: var(--frame-muted); }
.voucher-workspace .desk-counters dd { margin: 0; font: 500 16px/1.4 Consolas, monospace; color: var(--frame-ink); font-variant-numeric: tabular-nums; }
.voucher-workspace .desk-counters > div:first-child dd { color: #087991; }
.voucher-workspace .desk-counters > div:nth-child(2) dd { color: #645397; }
.voucher-workspace.desk-light-off .desk-counters > div:first-child dd { color: #78d8e6; text-shadow: none; }
.voucher-workspace.desk-light-off .desk-counters > div:nth-child(2) dd { color: #e4b9ff; }
.voucher-workspace .desk-activity { padding-top: 0; }
.voucher-workspace:not(.desk-light-off) .activity-scene { background: transparent; border-top-color: #739d96; }
.voucher-workspace:not(.desk-light-off) .activity-grid { opacity: .1; }
.voucher-workspace:not(.desk-light-off) .activity-raster { opacity: .09; }
.voucher-workspace:not(.desk-light-off) .activity-scene img,
.voucher-workspace:not(.desk-light-off) #desk-eyes { filter: brightness(.3); }
.voucher-workspace:not(.desk-light-off) .activity-signal span { background: #218596; }
.voucher-workspace:not(.desk-light-off) .activity-signal span:nth-child(3n) { background: #796598; }
.voucher-workspace:not(.desk-light-off) .activity-signal span:nth-child(2n) { background: #347caa; }
.voucher-workspace .desk-command:has(> [hidden]:first-child):has(> [hidden]:last-child) { display: none; }
.voucher-workspace .desk-command { justify-content: flex-end; }
.voucher-workspace .desk-command .button { background: transparent; color: var(--frame-ink); border: 1px solid var(--frame-line); }
.voucher-workspace .desk-command .button:hover:not(:disabled) { background: #789aad19; }
.voucher-workspace .desk-activity .icon-button { color: var(--frame-ink); }
.voucher-workspace #desk-detail { margin-top: 8px; color: var(--frame-muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.voucher-workspace #desk-detail:empty { display: none; }
.voucher-workspace #desk-current { min-height: 0; font-weight: 500; }
.voucher-workspace #desk-completed { color: var(--frame-muted); font-size: 10px; margin-top: 9px; }
#desk-progress { display: block; appearance: none; width: 100%; height: 3px; border: 0; border-radius: 0; margin-top: 16px; background: var(--frame-line); }
#desk-progress::-webkit-progress-bar { background: var(--frame-line); }
#desk-progress::-webkit-progress-value { background: #188ca8; transition: width .4s; }
#desk-progress::-moz-progress-bar { background: #188ca8; }
.desk-light-off #desk-progress::-webkit-progress-value { background: #49d8ed; }
.desk-light-off #desk-progress::-moz-progress-bar { background: #49d8ed; }
.voucher-workspace .desk-events li { overflow-wrap: anywhere; }
.voucher-workspace:not(.desk-light-off) .desk-events time { color: #377e8b; }
.voucher-workspace:not(.desk-light-off) .analysis-panel { background: #eff4f3; --line: #d3dfdd; --muted: #58736f; --blue: #147d99; --green: #287c63; color: #28443f; }
.voucher-workspace:not(.desk-light-off) .analysis-actions { background: #e9f0ef; border-color: #d3dfdd; }
.voucher-workspace:not(.desk-light-off) .analysis-panel :is(.personnel-header h2, .grand-total, .analysis-welcome h2, .analysis-result h3, .analysis-result p, .file-facts dd, .amount-details dd) { color: #29453f; }
.voucher-workspace:not(.desk-light-off) .analysis-panel :is(.personnel-state, .analysis-welcome p, .reading-steps li, .file-facts dt, .analysis-actions p, .amount-details dt, .currency-label) { color: #57716b; }
.voucher-workspace:not(.desk-light-off) .analysis-panel .icon-button { color: #45665c; }
.voucher-workspace:not(.desk-light-off) .analysis-panel .analysis-actions .button { color: #254e59; background: #fff; border-color: #b6cccb; }
.voucher-workspace:not(.desk-light-off) .analysis-panel .analysis-welcome img { filter: brightness(.3); }
.voucher-workspace:not(.desk-light-off) .analysis-panel .reading-steps [data-state=done] { color: #21775b; }
.voucher-workspace:not(.desk-light-off) .analysis-panel .analysis-result blockquote { background: #e3eeea; color: #3a6855; }
.voucher-workspace:not(.desk-light-off) .analysis-panel .result-meta { color: #587267 !important; }
.voucher-workspace:not(.desk-light-off) .documents-dialog { background: #f6f9f8; color: #233e37; border-color: #cadbd4; }
.voucher-workspace:not(.desk-light-off) .documents-dialog :is(.queue-search, .queue-tools select) { background: #fff; border-color: #b9cec7; color: #2b4d41; }
.voucher-workspace:not(.desk-light-off) .documents-dialog :is(.queue-search input, .file-item-name) { color: #234536; }
.voucher-workspace:not(.desk-light-off) .documents-dialog :is(.file-item-party, .file-item-state, .list-empty, .session-summary, #session-count) { color: #5b7063; }
.voucher-workspace:not(.desk-light-off) .documents-dialog .file-item { border-color: #d4e1d8; }
.voucher-workspace:not(.desk-light-off) .documents-dialog .file-item:hover { background: #e4ede7; }
.voucher-workspace:not(.desk-light-off) .documents-dialog .file-item[aria-current=true] { background: #deece7; border-left-color: #14819c; }
.voucher-workspace:not(.desk-light-off) .documents-dialog .session-summary strong { color: #1d6b7c; }

/* The journal uses existing document results; quiet typography keeps evidence readable. */
.voucher-workspace .desk-actions { padding-inline: 20px; }
.voucher-workspace .desk-actions-heading .eyebrow { font-size: 10px; font-weight: 500; }
.voucher-workspace .desk-counters { margin-bottom: 18px; }
.voucher-workspace .activity-scene { height: 140px; background: transparent; border: 0; border-radius: 0; }
.voucher-workspace .activity-scene::before, .voucher-workspace .activity-scene::after,
.voucher-workspace .activity-raster, .voucher-workspace .activity-grid { display: none; }
.voucher-workspace .activity-avatar { width: min(172px, calc(100% - 32px)); margin-top: -9px; }
.voucher-workspace .activity-signal { bottom: 3px; gap: 4px; opacity: .7; }
.voucher-workspace .activity-signal span { width: 2px; height: 3px; }
.voucher-workspace .desk-status-line { margin-top: 15px; }
.voucher-workspace #desk-current { font-weight: 400; }
.voucher-workspace .desk-journal { display: flex; flex-direction: column; flex: 1 0 160px; min-height: 160px; margin-top: 22px; border-top: 1px solid var(--frame-line); }
.desk-journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 0 12px; }
.desk-journal-heading h2 { display: flex; align-items: center; gap: 8px; font: 600 12px/1.5 "Segoe UI", sans-serif; color: var(--frame-ink); }
.desk-journal-heading h2 svg { width: 14px; height: 14px; stroke-width: 1.5; color: var(--frame-muted); }
.desk-journal-heading > span { color: var(--frame-muted); font-size: 10px; white-space: nowrap; }
.desk-journal-scroll { flex: 1; min-height: 100px; max-height: 390px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--frame-line) transparent; }
.desk-journal-scroll:focus-visible { outline: 1px solid var(--desk-focus); outline-offset: 4px; }
.desk-notes-empty { margin: 12px 0; color: var(--frame-muted); font-size: 11px; line-height: 1.7; }
.desk-note-document { padding: 0 0 12px; font: 500 11px/1.6 "Segoe UI", sans-serif; color: var(--frame-muted); overflow-wrap: anywhere; }
.desk-note { padding: 13px 0; border-top: 1px solid var(--frame-line); }
.desk-note h3 { margin: 0 0 6px; color: var(--frame-ink); font: 600 11px/1.5 "Segoe UI", sans-serif; }
.desk-note p, .desk-note li { color: var(--frame-ink); font: 400 11px/1.7 "Segoe UI", sans-serif; overflow-wrap: anywhere; }
.desk-note ul { margin: 0; padding-left: 14px; }
.desk-note li + li { margin-top: 5px; }
.desk-note blockquote { margin: 9px 0; padding: 0 0 0 10px; border-left: 2px solid var(--frame-line); font: 400 11px/1.65 "Segoe UI", sans-serif; color: var(--frame-muted); overflow-wrap: anywhere; }
.desk-note-origin { display: block; margin-top: 7px; color: var(--frame-muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.desk-note-attention h3 { color: #916635; }
.desk-light-off .desk-note-attention h3 { color: #d8ba91; }
.voucher-workspace .desk-journal .desk-events { padding: 13px 0 0; margin: 8px 0 0; gap: 10px; }
.voucher-workspace .desk-journal .desk-events li { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 11px; }
.voucher-workspace .desk-journal .desk-events time { color: var(--frame-muted); font-size: 10px; }
.voucher-workspace .desk-session { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--frame-line); }
@media (max-width: 950px) {
  .voucher-workspace .desk-actions { grid-auto-rows: max-content; align-content: start; }
  .voucher-workspace .desk-journal { grid-column: 1 / -1; flex: none; min-height: 96px; margin-top: 4px; }
  .desk-journal-heading { padding-block: 10px 8px; }
  .desk-journal-scroll { min-height: 38px; max-height: 240px; }
  .voucher-workspace .desk-journal .desk-events { display: grid; }
  .voucher-workspace .desk-journal .desk-events:empty { display: none; }
  .voucher-workspace .desk-counters { align-content: start; margin: 0; gap: 8px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voucher-workspace .desk-counters dd { font-size: 15px; }
  .voucher-workspace .desk-activity { min-width: 0; }
  .voucher-workspace #desk-detail { font-size: 10px; margin-top: 5px; }
  .voucher-workspace .desk-command { margin-top: 8px; }
}
