/* G-SMaRT BIR Integration System
   Visual idea: BIR paper forms on a desk. Sheets of paper with real depth sit on a cool form-grey
   surface; carbon-copy ink is the accent; a canary highlighter marks what needs attention.
   The one loud element is the segmented TIN box, borrowed from the forms themselves. */

/* Fonts are bundled (SIL Open Font License, see assets/fonts) so the app works offline and makes no third-party requests. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/public-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/public-sans-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #e6e9ef;
  --bg-deep: #dce0e8;
  --sheet: #ffffff;
  --sheet-2: #f5f6f9;
  --sheet-3: #eceef3;
  --line: #d6dae3;
  --line-strong: #b9bfcc;
  --ink: #191c29;
  --ink-2: #474d61;
  --ink-3: #6c7286;
  --accent: #2f3478;
  --accent-2: #3f46a3;
  --accent-ink: #ffffff;
  --accent-soft: #e6e7f5;
  --accent-edge: #1f2358;
  --canary: #f3d54e;
  --canary-soft: #fdf5c9;
  --ok: #1b7446;
  --bad: #b02424;
  --wait: #855700;
  --info: #2d5a97;
  --muted: #7a8094;
  --ok-soft: #e2f2e9;
  --bad-soft: #fae6e6;
  --wait-soft: #fbf0d8;
  --focus: 0 0 0 3px rgba(63, 70, 163, .35);
  --sheet-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 1px rgba(22, 26, 44, .06), 0 2px 4px rgba(22, 26, 44, .05), 0 14px 28px -18px rgba(22, 26, 44, .45);
  --lift-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 3px rgba(22, 26, 44, .08), 0 22px 40px -22px rgba(22, 26, 44, .55);
  --inset: inset 0 1px 2px rgba(22, 26, 44, .10);
  --key-edge: #a9afbe;
  --r-sheet: 12px;
  --r-ctl: 7px;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12141b;
  --bg-deep: #0d0f15;
  --sheet: #1a1d28;
  --sheet-2: #212532;
  --sheet-3: #282d3c;
  --line: #2d3243;
  --line-strong: #3d4459;
  --ink: #e7e9f1;
  --ink-2: #b4b9cb;
  --ink-3: #8b91a8;
  --accent: #9ca1ff;
  --accent-2: #b7baff;
  --accent-ink: #11132a;
  --accent-soft: #262a4c;
  --accent-edge: #6d72d6;
  --canary: #e4c43c;
  --canary-soft: #3a3414;
  --ok: #63d39b;
  --bad: #ff8d8d;
  --wait: #f1c463;
  --info: #8fb6f2;
  --muted: #8b91a8;
  --ok-soft: #15302a;
  --bad-soft: #3a1c22;
  --wait-soft: #3a2f15;
  --focus: 0 0 0 3px rgba(156, 161, 255, .40);
  --sheet-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 1px 2px rgba(0, 0, 0, .45), 0 16px 30px -18px rgba(0, 0, 0, .9);
  --lift-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 3px 6px rgba(0, 0, 0, .5), 0 24px 44px -20px rgba(0, 0, 0, .95);
  --inset: inset 0 1px 2px rgba(0, 0, 0, .45);
  --key-edge: #0b0d13;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .75em; }
code { font-family: var(--mono); font-size: .88em; background: var(--sheet-3); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 14px -12px rgba(22,26,44,.45);
}
.topbar-row { display: flex; align-items: center; gap: 18px; padding: 10px 22px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { border-radius: 8px; box-shadow: 0 2px 0 var(--accent-edge); }
.brand-text { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.brand-text strong { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.client-switch { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.client-switch select {
  width: auto; max-width: 380px; font-weight: 650; border: 1px solid var(--line); background: var(--sheet-2);
  padding: 7px 30px 7px 10px; border-radius: var(--r-ctl);
}
.topbar-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 9px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; font: inherit;
}
.tool:hover { background: var(--sheet-2); border-color: var(--line); color: var(--ink); }
.tool .count, .tab-btn .count {
  position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--canary); color: #3b3000; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center;
}
.tab-btn .count { position: static; margin-left: 4px; }
[data-theme="light"] .ico-moon, [data-theme="dark"] .ico-sun { display: none; }
.user-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-search { display: flex; align-items: center; gap: 6px; background: var(--sheet-2); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; height: 36px; box-shadow: var(--inset); }
.quick-search .ico { color: var(--ink-3); width: 16px; height: 16px; }
.quick-search input[type=search] { border: 0; background: transparent; box-shadow: none; padding: 0; width: 170px; height: 34px; color: var(--ink); }
.quick-search input[type=search]:focus { box-shadow: none; outline: none; background: transparent; }
.quick-search:focus-within { box-shadow: var(--inset), var(--focus); border-color: var(--accent-2); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--sheet); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--lift-shadow); padding: 8px; z-index: 50;
}
.menu-panel a, .menu-btn { display: block; width: 100%; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-btn:hover { background: var(--sheet-2); }
.menu-who { padding: 6px 10px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.menu-who span { display: block; color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ TIN boxes (signature element) */
.tin-boxes { display: inline-flex; align-items: stretch; gap: 3px; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.tin-boxes span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 5px;
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink);
  box-shadow: 0 1px 0 var(--line-strong);
}
.tin-boxes .tin-branch { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); min-width: 44px; margin-left: 4px; }
.tin-boxes.tin-empty { color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.tin-boxes.small span { height: 22px; min-width: 28px; font-size: 12px; }

/* ------------------------------------------------------------------ folder tabs */
.tabs { display: flex; gap: 4px; padding: 0 22px; max-width: 1440px; margin: 0 auto; position: relative; top: 1px; }
.tab { position: relative; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 10px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 10px 10px 0 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.tab-btn:hover { color: var(--ink); background: var(--sheet-2); }
.tab.is-active .tab-btn {
  background: var(--bg); color: var(--ink); border-color: var(--line);
  box-shadow: 0 -2px 0 var(--accent) inset;
}
.tab.is-active .tab-btn { box-shadow: inset 0 3px 0 var(--accent); }
.tab-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; z-index: 45;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 0 12px 12px 12px; box-shadow: var(--lift-shadow);
}
.tab.open .tab-menu { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .tab:hover .tab-menu, .tab:focus-within .tab-menu { display: block; }
}
.tab-menu a { display: block; padding: 8px 11px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.tab-menu a:hover { background: var(--sheet-2); }
.tab-menu a.is-current { background: var(--accent-soft); color: var(--accent); font-weight: 650; }

/* ------------------------------------------------------------------ layout */
.sheet-wrap { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px 22px 40px; }
.bare-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.pagebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; flex-wrap: wrap; }
.pagebar h1 { font-size: 23px; font-weight: 750; overflow-wrap: anywhere; }
.pagebar-text { min-width: 0; }
.pagebar-context { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.pagebar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sheet {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--sheet-shadow);
  margin-bottom: 18px; overflow: hidden;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-head h2 { font-size: 16px; font-weight: 700; }
.sheet-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.sheet-body { padding: 18px; }
.sheet-body.tight { padding: 0; }
.sheet-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--sheet-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.sheet.flat { box-shadow: none; }
.stack > * + * { margin-top: 12px; }

.cols { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.cols-side { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 1100px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-main, .cols-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* figures row: plain numbers with their label below, not cards */
.figures { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.figures > div { flex: 1 1 160px; padding: 14px 18px; border-right: 1px solid var(--line); }
.figures > div:last-child { border-right: 0; }
.figures strong { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.01em; }
.figures span { color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ forms */
label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=month], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--sheet-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 8px 10px; box-shadow: var(--inset);
  min-height: 38px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: var(--inset), var(--focus); background: var(--sheet); }
input[readonly] { color: var(--ink-3); }
input.num, td.num, th.num, .num { text-align: right; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field .hint { color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.field .err { color: var(--bad); font-size: 13px; }
.field.has-err input, .field.has-err select { border-color: var(--bad); background: var(--bad-soft); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .half { grid-column: span 2; }
@media (max-width: 560px) { .form-grid .half { grid-column: 1 / -1; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; color: var(--ink); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 160px; }
.inline-form .field.grow { flex: 3 1 260px; }

/* ------------------------------------------------------------------ buttons (keycaps) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 7px 14px;
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 2px 0 var(--key-edge), 0 1px 0 rgba(255,255,255,.7) inset;
  transition: transform .06s ease, box-shadow .06s ease, background .12s ease;
}
.btn:hover { background: var(--sheet-2); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--key-edge); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); box-shadow: 0 2px 0 var(--accent-edge), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-quiet:hover { background: var(--sheet-3); border-color: var(--line); }
.btn-quiet:active { transform: none; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ status text (plain, no capsules) */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; flex: none; }
.st-ok { color: var(--ok); } .st-bad { color: var(--bad); } .st-wait { color: var(--wait); }
.st-info { color: var(--info); } .st-muted { color: var(--muted); }
.conf { font-size: 12.5px; color: var(--ink-3); }
.conf-official, .conf-validated { color: var(--ok); }
.conf-medium { color: var(--info); }
.conf-low { color: var(--wait); }
.conf-analog { color: var(--bad); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; }
.hl { background: var(--canary-soft); box-shadow: inset 3px 0 0 var(--canary); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--sheet-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: var(--sheet-2); }
.table tfoot td { font-weight: 750; background: var(--sheet-2); border-top: 2px solid var(--line-strong); }
.table td.actions { white-space: nowrap; text-align: right; }
.table .void td { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.table tr.row-error td { background: var(--bad-soft); }
.table tr.row-dup td { background: var(--wait-soft); }
.table tr.row-ok td { background: var(--ok-soft); }
.table .sub { display: block; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 760px) {
  table.table-stack thead { display: none; }
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100%; }
  table.table-stack tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  table.table-stack td { border: 0; padding: 4px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; text-align: right; }
  table.table-stack td > .sub { flex-basis: 100%; }
  table.table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink-3); text-align: left; flex: none; max-width: 45%; }
  table.table-stack td.actions { justify-content: flex-end; }
  table.table-stack td.actions::before { content: none; }
  table.table-stack tfoot { display: block; }
  table.table-stack tfoot tr { display: block; }
}

/* ------------------------------------------------------------------ notices, empty states */
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin: 0 0 14px; border-radius: 10px;
  background: var(--sheet); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--info), var(--sheet-shadow); font-size: 14.5px;
}
.notice-success { box-shadow: inset 4px 0 0 var(--ok), var(--sheet-shadow); }
.notice-error { box-shadow: inset 4px 0 0 var(--bad), var(--sheet-shadow); background: var(--bad-soft); }
.notice-warning { box-shadow: inset 4px 0 0 var(--canary), var(--sheet-shadow); background: var(--canary-soft); }
.notice-x { margin-left: auto; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0; }
.callout { padding: 12px 14px; border-radius: 9px; background: var(--sheet-2); border: 1px dashed var(--line-strong); font-size: 14px; }
.callout.warn { background: var(--canary-soft); border: 1px solid var(--canary); }
.callout.bad { background: var(--bad-soft); border: 1px solid var(--bad); }
.callout.good { background: var(--ok-soft); border: 1px solid var(--ok); }
.empty { padding: 34px 24px; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.empty p { max-width: 460px; margin: 0 auto 14px; }

.issues { list-style: none; margin: 0; padding: 0; }
.issues li { padding: 8px 18px 8px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.issues li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 8px; height: 8px; border-radius: 2px; }
.issues li.error::before { background: var(--bad); }
.issues li.warning::before { background: var(--canary); }
.issues .where { color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }

/* ------------------------------------------------------------------ key/value */
.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ progress tracker (a real sequence) */
.track { display: flex; list-style: none; margin: 0; padding: 14px 18px; gap: 0; overflow-x: auto; counter-reset: step; }
.track li { flex: 1 0 auto; min-width: 112px; position: relative; padding: 26px 6px 0; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); text-align: center; counter-increment: step; }
.track li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%;
  background: var(--sheet-3); border: 1px solid var(--line-strong); font-size: 11px; font-weight: 700; line-height: 20px; color: var(--ink-3); z-index: 1; }
.track li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.done { color: var(--ink-2); }
.track li.done::before { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); content: "\2713"; }
.track li.done::after, .track li.now::after { background: var(--accent); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background: var(--canary); border-color: #b09000; color: #3b3000; }
.track li.fail::before { background: var(--bad); border-color: var(--bad); color: #fff; content: "!"; }

/* ------------------------------------------------------------------ filing calendar */
.cal { display: grid; grid-template-columns: 120px repeat(12, minmax(46px, 1fr)); font-size: 12.5px; min-width: 760px; }
.cal > div { padding: 8px 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.cal .cal-h { font-weight: 700; color: var(--ink-2); background: var(--sheet-2); }
.cal .cal-row { text-align: left; font-weight: 650; color: var(--ink); padding-left: 14px; }
.cal .cal-now { box-shadow: inset 0 -3px 0 var(--canary); }
.mark { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--sheet-3); vertical-align: middle; }
.mark.m-ok { background: var(--ok); border-color: var(--ok); }
.mark.m-wait { background: var(--canary); border-color: #b09000; }
.mark.m-bad { background: var(--bad); border-color: var(--bad); }
.mark.m-info { background: var(--info); border-color: var(--info); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); padding: 10px 18px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 12px 18px 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.bars .bar span { font-size: 11.5px; color: var(--ink-3); }

/* queue list */
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.queue li:last-child { border-bottom: 0; }
.queue .q-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.queue .q-main a { font-weight: 650; text-decoration: none; color: var(--ink); }
.queue .q-main a:hover { color: var(--accent); }
.queue .q-sub { color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ DAT viewer */
.dat-raw { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: var(--sheet-2); overflow: auto; max-height: 520px; margin: 0; padding: 0; counter-reset: ln; }
.dat-raw div { white-space: pre; padding: 0 14px 0 0; }
.dat-raw div::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 10px; margin-right: 10px; text-align: right; color: var(--ink-3); border-right: 1px solid var(--line); background: var(--sheet-3); }
.dat-raw .d-h { color: var(--accent); }
.dat-raw .d-c { color: var(--ok); }

/* ------------------------------------------------------------------ progress */
.progress { height: 12px; border-radius: 7px; background: var(--sheet-3); box-shadow: var(--inset); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }

/* ------------------------------------------------------------------ auth pages */
.auth { width: 100%; max-width: 430px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-brand img { border-radius: 10px; box-shadow: 0 3px 0 var(--accent-edge); }
.auth-brand div { font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.auth-brand strong { display: block; font-size: 19px; color: var(--ink); }
.auth .sheet-body { padding: 24px; }
.auth h1 { font-size: 21px; margin-bottom: 4px; }
.auth .lead { color: var(--ink-2); margin-bottom: 18px; }
.auth form .field { margin-bottom: 13px; }
.auth .alt { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.auth-paper { background: repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px); }

/* ------------------------------------------------------------------ drawer, dock, sheet */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(12, 14, 24, .35); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(460px, 100%); height: 100%; background: var(--sheet); box-shadow: var(--lift-shadow); display: flex; flex-direction: column; animation: slidein .18s ease-out; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px; overflow: auto; }
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .bottom-sheet { animation: none; } .btn { transition: none; } }
.prose { font-size: 14.5px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 5px; }

.dock { display: none; }
.sheet-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(12, 14, 24, .4); display: flex; align-items: flex-end; }
.sheet-overlay[hidden] { display: none; }
.bottom-sheet { width: 100%; max-height: 80vh; overflow: auto; background: var(--sheet); border-radius: 16px 16px 0 0; padding: 6px 16px 24px; animation: rise .18s ease-out; }
@keyframes rise { from { transform: translateY(30px); } to { transform: none; } }
.bottom-sheet .sheet-head { padding: 10px 0; border: 0; }
.sheet-group h3 { font-size: 13px; color: var(--ink-3); margin: 12px 0 4px; }
.sheet-group a { display: block; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1440px; width: 100%; margin: 0 auto; padding: 16px 22px 26px; color: var(--ink-3); font-size: 12.5px; }

/* pager */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 18px; }
.pager-info { color: var(--ink-3); font-size: 13px; margin: 0 auto 0 0; padding: 12px 18px; }
.pager .pager-info { padding: 0; }

/* filters bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--sheet-2); }
.filters .field { flex: 1 1 150px; max-width: 240px; }
.filters .field.grow { max-width: none; flex: 2 1 220px; }

/* grid entry */
.grid-entry input, .grid-entry select { min-height: 32px; padding: 5px 7px; font-size: 13.5px; border-radius: 5px; }
.grid-entry td { padding: 4px 5px; }
.grid-entry .msg { font-size: 12px; color: var(--bad); max-width: 220px; }
.grid-entry tr.saved td { background: var(--ok-soft); }

/* help center */
.help-list a { display: block; padding: 8px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); }
.help-list a.is-current, .help-list a:hover { background: var(--accent-soft); color: var(--accent); }
.help-list h3 { font-size: 12.5px; color: var(--ink-3); margin: 14px 12px 4px; }

/* ------------------------------------------------------------------ responsive chrome */
@media (max-width: 1180px) { .brand-text { display: none; } .quick-search input { width: 120px; } }
@media (max-width: 900px) {
  .tabs { display: none; }
  .topbar-row { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }
  .client-switch { order: 3; flex-basis: 100%; }
  .client-switch select { max-width: none; flex: 1; }
  .quick-search { display: none; }
  .user-name { display: none; }
  .sheet-wrap { padding: 16px 14px 96px; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--sheet); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.4);
  }
  .dock a, .dock button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-3); text-decoration: none; font: inherit; font-size: 11.5px; font-weight: 600; background: none; border: 0; border-radius: 8px; }
  .dock .is-active { color: var(--accent); background: var(--accent-soft); }
  .foot { padding-bottom: 90px; }
  .pagebar h1 { font-size: 20px; }
}
@media (max-width: 560px) {
  .client-switch { flex-wrap: wrap; gap: 8px; }
  .client-switch select { flex: 1 1 100%; }
  .client-switch .tin-boxes span { min-width: 28px; font-size: 12px; height: 24px; }
  .sheet-head { padding: 12px 14px; }
  .sheet-body { padding: 14px; }
  .filters { padding: 12px 14px; }
  .figures > div { flex-basis: 50%; border-bottom: 1px solid var(--line); }
  .pagebar-actions { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
/* ------------------------------------------------------------------ User's Manual */
.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; }
.manual { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.manual-side { position: sticky; top: 116px; padding: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 132px); }
.manual-search { position: relative; margin-bottom: 8px; }
.manual-search input { width: 100%; padding-left: 36px; }
.manual-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: flex; pointer-events: none; }
.manual-search-icon svg { width: 17px; height: 17px; }
.manual-toc { min-height: 0; display: flex; flex-direction: column; }
.manual-toc > summary { list-style: none; display: none; cursor: pointer; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--sheet-2); border: 1px solid var(--line); font-weight: 600; justify-content: space-between; gap: 10px; align-items: center; }
.manual-toc > summary::-webkit-details-marker { display: none; }
.manual-toc nav { position: relative; overflow: auto; padding: 2px 2px 6px; }
.toc-ch { padding: 4px 0 6px; border-top: 1px solid var(--line); }
.toc-ch:first-child { border-top: 0; }
.toc-ch-title { margin: 8px 6px 4px; font-weight: 700; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.toc-ch-title .toc-no { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--sheet); border: 1px solid var(--key-edge); border-bottom-width: 2px; font-size: 12px; color: var(--ink-2); }
.toc-ch.is-here .toc-ch-title .toc-no { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-edge); }
.toc-ch ol { list-style: none; margin: 0; padding: 0; }
.toc-ch a { display: flex; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; border-left: 3px solid transparent; }
.toc-ch a:hover { background: var(--sheet-2); color: var(--ink); }
.toc-ch a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.toc-ch a .toc-no, .result-list .toc-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); min-width: 28px; padding-top: 1px; }
.manual-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.manual-article { padding: 0; overflow: hidden; }
.manual-head { padding: 22px 28px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--sheet), var(--sheet-2)); }
.manual-crumb { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); }
.manual-head h2 { margin: 0; font-size: 26px; line-height: 1.2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.manual-num { font-family: var(--mono); font-size: 15px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--sheet); box-shadow: var(--inset); color: var(--ink-2); }
.manual-summary { margin: 8px 0 12px; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.manual-body { padding: 22px 28px 8px; max-width: 80ch; font-size: 15px; line-height: 1.65; }
.manual-body h3, .mp-section h3:not(.mp-sec-title) { font-size: 17px; margin: 26px 0 8px; }
.manual-body p, .mp-section p { margin: 0 0 12px; }
.manual-body figure, .mp-section figure, .drawer-body figure { margin: 18px 0 22px; }
.manual-body figure img, .mp-section figure img, .drawer-body figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: var(--lift-shadow); cursor: zoom-in; background: #fff; }
.manual-body figcaption, .mp-section figcaption, .drawer-body figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.manual-body figure.narrow, .mp-section figure.narrow { max-width: 300px; }
.mshots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mshots figure { margin: 10px 0; }
ol.steps { list-style: none; counter-reset: step; padding-left: 0; margin: 4px 0 16px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 10px 42px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--sheet); border: 1px solid var(--key-edge); border-bottom-width: 3px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; border-left: 1px dashed var(--line-strong); }
.mnote, .mwarn { margin: 16px 0; padding: 12px 16px; border-radius: 9px; font-size: 14.5px; border: 1px solid var(--line); border-left-width: 4px; }
.mnote { background: var(--accent-soft); border-left-color: var(--accent); }
.mwarn { background: var(--canary-soft); border-color: var(--canary); border-left-color: var(--wait); }
.mtable { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; }
.mtable th, .mtable td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mtable th { background: var(--sheet-2); font-size: 13px; color: var(--ink-2); }
.mtable td:first-child { font-weight: 600; white-space: nowrap; }
.mtable code { white-space: nowrap; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; font: 600 12px/1.6 var(--mono); text-align: center; border-radius: 5px; background: var(--sheet); border: 1px solid var(--key-edge); border-bottom-width: 2px; color: var(--ink); }
.prose mark, .result-list mark { background: var(--canary-soft); color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--canary); }
.manual-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 28px 24px; border-top: 1px solid var(--line); margin-top: 14px; }
.manual-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet-2); text-decoration: none; color: var(--ink); box-shadow: var(--sheet-shadow); }
.manual-pager a:hover { border-color: var(--accent-2); }
.manual-pager .pager-next { text-align: right; grid-column: 2; }
.result-list { list-style: none; margin: 0; padding: 4px 18px 12px; }
.result-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-list li:last-child { border-bottom: 0; }
.result-list a { display: inline-flex; gap: 6px; text-decoration: none; color: var(--accent); margin-right: 8px; }
.result-list p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.drawer-summary { font-size: 15px; color: var(--ink-2); }
.drawer-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-body .mtable td:first-child { white-space: normal; }
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 20, .82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.zoom[hidden] { display: none; }
.zoom figure { margin: 0; max-width: 96vw; text-align: center; }
.zoom img { max-width: 100%; max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: #fff; }
.zoom figcaption { color: #e7e9f1; margin-top: 10px; font-size: 14px; }
.zoom .tool { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
/* printable edition */
.manual-print { max-width: 900px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--sheet-shadow); padding: 40px 48px; }
.mp-cover { text-align: center; padding: 30px 0 34px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.mp-cover h1 { font-size: 30px; margin: 14px 0 4px; }
.mp-sub { font-size: 20px; color: var(--ink-2); margin: 0 0 10px; }
.mp-toc h2 { font-size: 20px; }
.mp-toc-ch { margin-bottom: 12px; }
.mp-toc ol { list-style: none; padding: 0; margin: 4px 0 0; columns: 2; column-gap: 28px; }
.mp-toc li a { display: flex; gap: 8px; padding: 2px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.mp-toc li span, .mp-sec-title span, .mp-ch-title span { font-family: var(--mono); color: var(--ink-3); }
.mp-chapter { margin-top: 34px; }
.mp-ch-title { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; gap: 12px; }
.mp-sec-title { font-size: 19px; margin: 28px 0 10px; display: flex; gap: 10px; }
.mp-section { line-height: 1.6; }
.mp-section figure img { max-height: 520px; object-fit: contain; object-position: left top; }
@media (max-width: 960px) {
  .manual { grid-template-columns: 1fr; }
  .manual-side { position: static; max-height: none; }
  .manual-toc > summary { display: flex; }
  .manual-toc nav { max-height: 60vh; margin-top: 8px; }
  .manual-head { padding: 18px 16px 14px; }
  .manual-head h2 { font-size: 22px; }
  .manual-body { padding: 16px 16px 4px; font-size: 15px; }
  .manual-pager { grid-template-columns: 1fr; padding: 14px 16px 18px; }
  .manual-pager .pager-next { grid-column: 1; }
  .mshots { grid-template-columns: 1fr; }
  .mtable td:first-child { white-space: normal; }
  .manual-print { padding: 22px 16px; }
  .mp-toc ol { columns: 1; }
}
@media print {
  .manual-print { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .no-print, .zoom, .drawer { display: none !important; }
  .mp-cover { page-break-after: always; border: 0; padding-top: 30vh; }
  .mp-toc { page-break-after: always; }
  .mp-chapter { page-break-before: always; margin-top: 0; }
  .mp-section { page-break-inside: auto; }
  .mp-sec-title, .mp-section h3, .mp-ch-title { page-break-after: avoid; break-after: avoid; }
  .mp-sec-title + figure, .mp-section h3 + figure { page-break-before: avoid; break-before: avoid; }
  .mp-section figure { page-break-inside: avoid; }
  .mp-section figure img { box-shadow: none; max-height: 380px; }
  .mp-toc li a { color: #000; }
  .mnote, .mwarn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media print {
  .topbar, .dock, .foot, .pagebar-actions, .notice { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; border-color: #999; }
}
