.file-board { background:#242e2d; color:#e9eee4; border-bottom:2px solid #101c22; padding:11px clamp(12px,1.6vw,22px) 12px; }
.file-board header,.file-context,.file-context span,.file-reviews,.file-reviews button,.file-board h3 { display:flex; align-items:center; }
.file-board header { justify-content:space-between; gap:4px 14px; flex-wrap:wrap; margin-bottom:8px; }
.file-board h3 { margin:0; font-size:1rem; font-weight:600; gap:8px; }
.file-board h3 svg { color:#e5c286; }
.file-board header>span { color:#c1ccc2; font-size:.8rem; }
.file-board header .file-open { margin-inline-end:auto; }
.file-board .file-open[hidden] { display:none; }
.file-snapshot-pick { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; font-size:.88rem; }
.file-snapshot-pick select { margin:0; min-height:34px; max-width:100%; }
dialog[data-type=snapshot] { width:min(700px,calc(100vw - 24px)); }
.file-open-actions { display:flex; flex-wrap:wrap; gap:5px 9px; margin-top:10px; }
.file-open { display:inline-flex; align-items:center; gap:5px; color:#e3eacb; background:#2c3831; border:1px solid #5d705f; border-radius:3px; padding:5px 8px; font:.82rem Inter,sans-serif; cursor:pointer; }
.file-open:hover { background:#3b4b40; }
.pixel-wire .file-open { grid-column:1/-1; justify-self:start; }
.file-lanes { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid #53625c; background:#1b2424; }
.file-lane { padding:6px 8px 7px; min-width:0; border-inline-end:1px solid #46544e; }
.file-lane:last-child { border-inline-end:0; background:#202b2c; }
.file-lane h4 { color:#ede8d4; font-size:.86rem; font-weight:620; margin:0 0 4px; }
.file-lane button { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:1px 7px; background:transparent; border:0; border-radius:2px; width:100%; padding:3px 2px; text-align:left; font-size:.78rem; cursor:pointer; color:#ced9d0; }
.file-lane button:hover,.file-lane button:focus-visible { background:#374642; color:#fff; }
[data-route-label] { font-size:.72rem; font-weight:570; color:#d8e5d1; }
[data-route-state=idle] [data-route-label] { color:#acb8b0; }
[data-route-state=review] [data-route-label],[data-route-state=working] [data-route-label] { color:#a8dfe6; }
[data-route-state=returned] [data-route-label],[data-route-state=wait] [data-route-label],[data-route-state=awaiting] [data-route-label] { color:#ffcf87; }
[data-route-state=blocked] [data-route-label],[data-route-state=interrupted] [data-route-label] { color:#ffaba0; }
[data-route-state=approved] [data-route-label],[data-route-state=sent] [data-route-label],[data-route-state=registered] [data-route-label] { color:#bbe39b; }
.file-alerts { margin-top:7px; padding-left:8px; border-left:2px solid #eab578; font-size:.84rem; line-height:1.4; overflow-wrap:anywhere; color:#ffe0b5; }
dialog[data-type=office-desk] { width:min(670px,calc(100vw - 24px)); color:#252d2a; background:#e9e6da; border:1px solid #b3ac96; border-top:5px solid #897350; border-radius:4px; }
dialog[data-type=office-desk]>.dialog-label,dialog[data-type=office-desk] .dialog-label { font:600 .78rem var(--mono); color:#525d52; }
dialog[data-type=office-desk] h2 { margin-bottom:12px; color:#23312d; }
dialog[data-type=office-desk] .icon-only { color:#ebf0df; background:#30413a; border-color:#758375; }
.file-desk-state { border:1px solid #b2baaa; border-left:4px solid #718475; background:#f3f1e8; padding:11px 14px; }
.file-desk-state:is([data-desk-status=returned],[data-desk-status=wait],[data-desk-status=awaiting]) { background:#fcf0d4; border-left-color:#a46521; }
.file-desk-state:is([data-desk-status=blocked],[data-desk-status=interrupted]) { background:#fae5da; border-left-color:#ab5142; }
.file-desk-state:is([data-desk-status=working],[data-desk-status=review]) { background:#e0edeb; border-left-color:#38727c; }
.file-desk-state h3 { margin:6px 0 3px; color:#25332d; font:650 1.15rem/1.22 Inter,sans-serif; }
.file-reader .file-desk-state p,.file-reader .file-document-body p { color:#344239; font-size:.93rem; line-height:1.5; margin:4px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.file-context { justify-content:space-between; gap:8px; color:#515e54; font:.73rem var(--mono); }
.file-context span { gap:5px; }
.file-reviews { gap:6px 9px; margin:10px 0; flex-wrap:wrap; font-size:.82rem; }
.file-reviews label { font-weight:600; }
.file-reviews select,.file-reviews button { color:#314038; background:#f5f3e9; border:1px solid #a3ad9e; border-radius:3px; min-height:30px; padding:4px 8px; font:inherit; }
.file-reviews button { gap:4px; cursor:pointer; }
.file-reviews select { width:auto; max-width:100%; flex:1 1 180px; }
.file-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #a2a998; margin:14px 0 0; }
.file-tabs button { border:1px solid transparent; border-bottom:0; border-radius:4px 4px 0 0; padding:8px 9px; color:#48574e; background:transparent; font:600 .84rem Inter,sans-serif; cursor:pointer; }
.file-tabs button[aria-pressed=true] { background:#32433c; color:#f1efdf; }
.file-tabs button span { font:.76rem var(--mono); opacity:.85; }
.file-records { background:#f7f5ec; border:1px solid #acb3a5; border-top:0; }
.file-records[hidden],.file-alerts[hidden] { display:none; }
.file-empty,.file-reader .file-records>p { padding:15px; margin:0; color:#536154; }
.file-document { border-bottom:1px solid #cad0c1; }
.file-document:last-child { border:0; }
.file-document>summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:10px; align-items:center; cursor:pointer; padding:10px 12px; }
.file-document>summary::after { content:"+"; color:#516257; font:1.1rem var(--mono); }
.file-document[open]>summary::after { content:"−"; }
.file-document>summary:hover,.file-document[open]>summary { background:#e6ecdf; }
.file-document summary svg { color:#516e58; }
.file-document summary b,.file-document summary small { display:block; overflow-wrap:anywhere; }
.file-document summary b { font-size:.91rem; line-height:1.25; }
.file-document summary small,.file-document summary time { color:#556456; font:.74rem/1.35 var(--mono); margin-top:2px; }
.file-document-body { padding:9px 14px 13px 40px; }
.file-document-body>strong { color:#45614d; font-size:.8rem; }
.file-id { margin-top:7px; color:#586358; font-size:.75rem; overflow-wrap:anywhere; }
.file-fields { margin-top:7px; }
.file-report-notes { display:grid; grid-template-columns:repeat(auto-fit,minmax(148px,1fr)); margin:10px 0 9px; border-block:1px solid #c3cdba; }
.file-report-notes>div { padding:6px 8px 6px 0; }
.file-report-notes dt { color:#556354; font-size:.76rem; }
.file-report-notes dd { margin:2px 0; font-size:.9rem; font-weight:570; color:#2f4131; overflow-wrap:anywhere; }
.file-fields summary { color:#405c49; font-size:.82rem; font-weight:600; cursor:pointer; }
.file-fields dl { margin:7px 0 0; }
.file-fields dl>div { display:grid; grid-template-columns:minmax(85px,30%) minmax(0,1fr); gap:8px; padding:5px 0; border-top:1px solid #d4d8ca; font-size:.81rem; }
.file-fields dt,.file-fields dd { overflow-wrap:anywhere; min-width:0; }
.file-fields dd { margin:0; color:#33473a; white-space:pre-wrap; }
.file-reader :is(button,select,summary):focus-visible,.file-board button:focus-visible { outline:2px solid #b46a25; outline-offset:1px; }
@media(max-width:1000px) {
  .file-lane button { display:grid; justify-content:start; }
}
@media(max-width:650px) {
  .file-board { padding:9px 9px 10px; }
  .file-lanes { display:flex; overflow:auto; scrollbar-width:thin; scroll-snap-type:x proximity; }
  .file-lane { flex:1 0 9rem; scroll-snap-align:start; }
  .file-lane button { display:flex; min-height:28px; }
  .file-tabs { gap:1px; }
  .file-tabs button { padding:8px 5px; font-size:.78rem; }
  .file-document>summary { gap:6px; padding:9px 6px; }
  .file-document summary time { font-size:.68rem; }
  .file-document-body { padding-left:13px; }
  dialog[data-type=office-desk] { padding:13px 12px 18px; }
}
