
@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2");
             font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Regular.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Medium.woff2") format("woff2");
             font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fafafa; --surface: #ffffff; --ink: #0a0a0a; --ink-2: #4d4d4d; --muted: #737373; --line: #ebebeb;
  --line-strong: #d4d4d4; --hover: #f2f2f2; --focus: #0070f3; --link: #0060df;
  --btn: #059669; --btn-ink: #ffffff; --btn-hover: #047857;
  --accent: #059669; --accent-bg: rgba(5, 150, 105, .1);
  --ok: #006300; --ok-bg: #e9f7ec; --bad: #c4291c; --bad-bg: #fdecea; --warn: #8a5300; --warn-bg: #fff4dc;
  --chip: #f2f2f2; --edit: #0a0a0a; --view: #6e56cf;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4;
  --series-6: #008300; --series-other: #a3a3a3; --grid: #ededed; --axis: #d4d4d4;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --active: #ebebeb; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04); --ring: rgba(0, 0, 0, .08);
  --tt-moon: inline; --tt-sun: none;      
  --map-paper: #eef0f3; --map-zone: #ffffff; --map-zone-line: #d5dae0; --map-room: #e3e6ea; --map-ink: rgba(28, 33, 41, .3);
  --map-dept: #6b7580; --map-label: rgba(40, 48, 58, .62); --vol-lv: rgba(42, 120, 214, .13); --vol-hv: rgba(235, 104, 52, .17);
  
  --side-w: 240px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #111111; --ink: #ededed; --ink-2: #c7c7c7; --muted: #a1a1a1; --line: #242424;
  --line-strong: #3a3a3a; --hover: #1a1a1a; --focus: #3291ff; --link: #52a8ff;
  --btn: #10b981; --btn-ink: #ffffff; --btn-hover: #0e9f6e;
  --accent: #10b981; --accent-bg: rgba(16, 185, 129, .12);
  --ok: #3fbf5f; --ok-bg: #0d2614; --bad: #ff6b5e; --bad-bg: #2a0f0d; --warn: #f0b429; --warn-bg: #2a1f05;
  --chip: #1a1a1a; --edit: #ededed; --view: #9a8bf0;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181;
  --series-6: #008300; --series-other: #6b6b6b; --grid: #1c1c1c; --axis: #333333;
  --active: #1f1f1f; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .5);
  --card-shadow: none; --ring: rgba(255, 255, 255, .14);
  --tt-moon: none; --tt-sun: inline;
  --map-paper: #050505; --map-zone: #151618; --map-zone-line: #2b2e33; --map-room: #202226; --map-ink: rgba(225, 229, 235, .24);
  --map-dept: #7a838d; --map-label: rgba(215, 220, 226, .55); --vol-lv: rgba(57, 135, 229, .2); --vol-hv: rgba(217, 89, 38, .25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #111111; --ink: #ededed; --ink-2: #c7c7c7; --muted: #a1a1a1; --line: #242424;
  --line-strong: #3a3a3a; --hover: #1a1a1a; --focus: #3291ff; --link: #52a8ff;
  --btn: #10b981; --btn-ink: #ffffff; --btn-hover: #0e9f6e;
  --accent: #10b981; --accent-bg: rgba(16, 185, 129, .12);
  --ok: #3fbf5f; --ok-bg: #0d2614; --bad: #ff6b5e; --bad-bg: #2a0f0d; --warn: #f0b429; --warn-bg: #2a1f05;
  --chip: #1a1a1a; --edit: #ededed; --view: #9a8bf0;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181;
  --series-6: #008300; --series-other: #6b6b6b; --grid: #1c1c1c; --axis: #333333;
  --active: #1f1f1f; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .5);
  --card-shadow: none; --ring: rgba(255, 255, 255, .14);
  --tt-moon: none; --tt-sun: inline;
  --map-paper: #050505; --map-zone: #151618; --map-zone-line: #2b2e33; --map-room: #202226; --map-ink: rgba(225, 229, 235, .24);
  --map-dept: #7a838d; --map-label: rgba(215, 220, 226, .55); --vol-lv: rgba(57, 135, 229, .2); --vol-hv: rgba(217, 89, 38, .25);
  }
}
[hidden] { display: none !important; }   
html.no-anim, html.no-anim * { transition: none !important; }   

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 "Geist", system-ui, -apple-system,
       "Segoe UI", sans-serif; font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }


:root { --sb-rail: 48px; --sb-wide: 220px; }
.shell { display: grid; grid-template-columns: var(--sb-rail) minmax(0, 1fr); min-height: 100vh; }
html.sb-expanded .shell { grid-template-columns: var(--sb-wide) minmax(0, 1fr); }
.side { position: relative; min-width: 0; z-index: 40; }
.side-in { position: sticky; top: 0; height: 100vh; width: var(--sb-rail); display: flex; flex-direction: column;
           overflow: hidden; background: var(--surface); border-right: 1px solid var(--line);
           transition: width .2s ease-out .12s, box-shadow .2s ease-out .12s; }
html.sb-expanded .side-in { width: var(--sb-wide); }
@media (min-width: 601px) {
  html.sb-hover .side:hover .side-in, html.sb-hover .side:focus-within .side-in { width: var(--sb-wide); box-shadow: var(--shadow);
                                                                                    transition-delay: 0s; }
  
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) :is(.side-nav a > span, .side-group, .sb-btn > span) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) :is(.scope-name, .scope-role, .sb-chev, .theme-row, .me-who, .sb-items) {
    display: none; }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) :is(.side-nav a, .sb-head, .sb-btn) {
    justify-content: center; gap: 0; padding: 0; }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) :is(.side-head, .me) { justify-content: center; padding-left: 0; padding-right: 0; }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) .scope { flex: none; padding: .4rem; }
  
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) .sb-group:is(.has-on, .panel-on) > .sb-head { color: var(--accent); }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) .sb-group:is(.has-on, .panel-on) > .sb-head::before {
    content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--accent); }
  :is(html.sb-collapsed .side, html.sb-hover .side:not(:hover):not(:focus-within)) .sb-group.panel-on > .sb-head { background: var(--active); }
}
.side-head { display: flex; align-items: center; gap: .35rem; flex: none; height: 3rem; padding: 0 .6rem;
             border-bottom: 1px solid var(--line); }
.scope { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; padding: .4rem .35rem; border-radius: 8px;
         color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.scope:hover { background: var(--hover); text-decoration: none; }
.scope-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.scope-role { flex: none; font-size: .68rem; font-weight: 500; padding: .08rem .45rem; border-radius: 999px; color: var(--ink-2);
              background: var(--chip); border: 1px solid var(--line-strong); }

.mark { flex: none; width: 20px; height: 20px; fill: currentColor; color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem;
            margin: 0; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 6px; }
.icon-btn:hover { color: var(--ink); background: var(--hover); }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
     stroke-linejoin: round; }
.side-close { display: none; }

.find { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; width: 15rem; flex: none;
        height: 2rem; margin: 0 0 0 auto; padding: 0 .4rem 0 .6rem; font: inherit; font-size: .82rem; font-weight: 400;
        color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
        transition: border-color .15s, color .15s; }
.find:hover { color: var(--ink-2); background: var(--surface); border-color: var(--line-strong); }
.find .find-hint { flex: 1; text-align: left; }
kbd { font: 500 .68rem var(--mono); padding: .05rem .35rem; border: 1px solid var(--line-strong); border-radius: 4px;
      color: var(--muted); background: var(--bg); }
.find kbd { margin-left: auto; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 1px;
            padding: .4rem .375rem; scrollbar-width: none; }
.side-nav a, .sb-panel-items a { position: relative; display: flex; align-items: center; gap: .7rem; flex: none; height: 2.1rem;
              padding: 0 .65rem; border-radius: 6px; color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.side-nav a .i, .sb-head .i, .sb-btn .i { width: 18px; height: 18px; }
.side-nav a:hover, .sb-panel-items a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.side-nav a[aria-current="page"], .sb-panel-items a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }
.side-nav a[aria-current="page"]::before, .sb-panel-items a[aria-current="page"]::before { content: ""; position: absolute;
              left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--accent); }
.sb-div { display: block; flex: none; height: 1px; margin: .35rem .3rem; background: var(--line); }

.sb-group { display: grid; gap: 1px; }
.sb-head { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: .6rem; width: 100%; height: 2.1rem; margin: 0;
           padding: 0 .65rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit;
           cursor: pointer; }
.sb-head:hover { color: var(--ink); background: var(--hover); }
.sb-group.has-on > .sb-head { color: var(--ink-2); }
.side-group { flex: 1; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
              white-space: nowrap; overflow: hidden; }
.sb-chev { width: 14px !important; height: 14px !important; transform: rotate(-90deg); transition: transform .15s ease-out; }
.sb-group.open > .sb-head .sb-chev { transform: none; }
.sb-items { display: none; gap: 1px; padding-bottom: .25rem; }
.sb-group.open > .sb-items { display: grid; }

.side-foot { display: grid; gap: 2px; flex: none; padding: .4rem .375rem .6rem; border-top: 1px solid var(--line); }
.sb-btn { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; width: 100%; height: 2.1rem; margin: 0; padding: 0 .65rem;
          border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: .875rem;
          font-weight: 500; white-space: nowrap; cursor: pointer; }
.sb-btn:hover, .sb-btn[aria-expanded="true"] { color: var(--ink); background: var(--hover); }
.sb-out:hover { color: var(--bad); }
.side-foot form.inline { display: block; }
.theme-row { display: grid; gap: .4rem; padding: .25rem .3rem .45rem; }
.theme-label { font-size: .72rem; font-weight: 500; color: var(--muted); }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; border: 1px solid var(--line);
                border-radius: 8px; background: var(--bg); }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 1.75rem;
                       margin: 0; padding: 0 .3rem; border: 0; border-radius: 6px; font-size: .74rem; font-weight: 500;
                       color: var(--muted); background: transparent; }
.theme-switch button:hover { color: var(--ink); background: var(--hover); }
.theme-switch button[aria-pressed="true"] { color: var(--ink); background: var(--active); }
.theme-switch .i { width: 13px; height: 13px; }

.theme-toggle { margin-left: .25rem; }
.theme-toggle .tt-moon { display: var(--tt-moon); }
.theme-toggle .tt-sun { display: var(--tt-sun); }
.me { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .3rem .3rem 0; }
.me-av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-size: .72rem;
         font-weight: 600; color: var(--ink); background: var(--chip); border: 1px solid var(--line-strong); }
.me-who { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.me-name { font-size: .82rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-note { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sb-menu { position: fixed; z-index: 60; width: 13rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line-strong);
           border-radius: 12px; box-shadow: var(--shadow); }
.sb-menu[hidden], .sb-panel[hidden], .sb-tip[hidden] { display: none; }
.sb-menu-head { margin: 0 0 .25rem; padding: .35rem .5rem .5rem; font-size: .75rem; font-weight: 600; color: var(--ink);
                border-bottom: 1px solid var(--line); }
.sb-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; height: 2rem; margin: 0; padding: 0 .55rem;
                  border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem;
                  font-weight: 500; text-align: left; cursor: pointer; }
.sb-menu button span { flex: 1; }
.sb-menu button:hover { color: var(--ink); background: var(--hover); }
.sb-menu button[aria-pressed="true"] { color: var(--ink); }
.sb-menu .sb-check { visibility: hidden; width: 14px; height: 14px; }
.sb-menu button[aria-pressed="true"] .sb-check { visibility: visible; }
.sb-panel { position: fixed; top: 0; left: var(--sb-rail); z-index: 45; display: flex; flex-direction: column; width: var(--sb-wide);
            height: 100vh; background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow); }
.sb-panel-head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 3rem; padding: 0 .5rem 0 1rem;
                 border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink); }
.sb-panel-items { display: grid; align-content: start; gap: 1px; padding: .5rem .375rem; overflow-y: auto; }
.sb-tip { position: fixed; z-index: 60; transform: translateY(-50%); padding: .35rem .7rem; background: var(--surface);
          border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); color: var(--ink);
          font-size: .85rem; font-weight: 500; white-space: nowrap; pointer-events: none; }

.content { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; height: 3rem;
       padding: 0 1rem 0 1.25rem; background: color-mix(in srgb, var(--bg) 86%, transparent);
       backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.bar-scope { display: none; }
.crumbs { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .875rem; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .here { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--line-strong); }
.bar-day { padding-left: .5rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .bar-day { display: none; } }   
main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 1.6rem 2rem 2.5rem; flex: 1; }
.foot { width: 100%; max-width: 1600px; margin: 0 auto; padding: 1.25rem 1.75rem 2rem; color: var(--muted); font-size: .78rem;
        border-top: 1px solid var(--line); }

body:has(main.solo)::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 30%, #000 0%, transparent 100%); }
.solo-head { display: flex; flex-direction: column; align-items: center; gap: .85rem; margin-top: 13vh; font-size: 1.1rem;
             font-weight: 600; letter-spacing: -.02em; }
.mark-hero { width: 56px; height: 56px; }
main.solo { flex: none; padding-top: 0; }
main.solo .card.narrow { margin-top: 1.75rem; box-shadow: var(--shadow); }
main.solo .card.narrow button[type="submit"] { width: 100%; height: 2.5rem; }

.dock { display: none; }
@media (max-width: 600px) {
  .shell { display: block; }
  .side { position: fixed; display: block; top: auto; left: .5rem; right: .5rem; bottom: .5rem; height: auto;
          max-height: calc(100vh - 1rem); z-index: 60; background: var(--surface); border: 1px solid var(--line-strong);
          border-radius: 16px; box-shadow: var(--shadow); transform: translateY(calc(100% + 1rem)); visibility: hidden;
          transition: transform .22s ease, visibility 0s linear .22s; }
  html.menu-open .side { transform: none; visibility: visible; transition: transform .22s ease; }
  .side-in { position: static; width: auto; height: auto; max-height: calc(100vh - 1rem); overflow-y: auto; border-right: 0;
             background: transparent; box-shadow: none; transition: none; }
  .side-close { display: inline-flex; }
  .bar-day, [data-sb-control], .sb-menu, .sb-panel, .sb-tip, .sb-chev { display: none !important; }
  .sb-items { display: grid; }
  .sb-head { cursor: default; }
  .bar .find { width: 2rem; padding: 0; justify-content: center; }      
  .bar .find .find-hint, .bar .find kbd { display: none; }
  .bar-scope { display: inline-flex; }
  .bar { padding: 0 .9rem; }
  .content { padding-bottom: 5.5rem; }
  .dock { display: flex; position: fixed; left: 50%; bottom: .75rem; z-index: 50; transform: translateX(-50%); gap: 2px; padding: 4px;
          background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(180%) blur(14px);
          border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
          width: 3.7rem; height: 3rem; margin: 0; padding: 0; border: 0; border-radius: 999px; color: var(--muted);
          background: transparent; font-size: .64rem; font-weight: 500; }
  .dock a:hover, .dock button:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
  .dock a[aria-current="page"] { color: var(--ink); background: var(--active); }
  .dock .i { width: 18px; height: 18px; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .4); }
}


h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 .3rem; }
h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 .9rem; }
h3 { font-size: .9rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }
.lede { color: var(--muted); font-size: .8125rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 82ch; }
.muted { color: var(--muted); }
.mono, code, time, .num { font-family: var(--mono); font-size: .92em; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.page-head > :first-child { flex: 1 1 30rem; min-width: 0; }
.page-head .lede { margin: 0; }
.page-head .actions { margin-left: auto; flex: 0 1 auto; min-width: 0; }   


.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.25rem;
        margin: 0 0 1.25rem; box-shadow: var(--card-shadow); }
.card.narrow { max-width: 380px; margin: 4rem auto; padding: 2rem; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: 1.1rem; }

.card-head h2 { margin: 0; font-size: .95rem; }

.card > .table-wrap { margin: 0 -1.25rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.card > .table-wrap:first-child { margin-top: -1.2rem; border-top: 0; border-radius: 11px 11px 0 0; }
.card > .table-wrap:last-child { margin-bottom: -1.2rem; border-radius: 0 0 11px 11px; }
.card > .table-wrap:only-child { border-radius: 11px; }
.card > .table-wrap:not(:last-child) { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.card > .table-wrap .grid tr > :first-child { padding-left: 1.25rem; }
.card > .table-wrap .grid tr > :last-child { padding-right: 1.25rem; }

.card.zcard > .table-wrap { margin: 0; border: 0; border-radius: 0; background: transparent; }
.card.zcard > .table-wrap .grid tr > :first-child { padding-left: 1.5rem; }
.card.zcard > .table-wrap .grid tr > :last-child { padding-right: 1.5rem; }
.card-head .actions { margin-left: auto; }


.kpis.tiles { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
              box-shadow: var(--card-shadow); grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.nowrap { white-space: nowrap; }
.kpis.tiles .kpi, .kpis.tiles .kpi:last-child { display: grid; grid-template-columns: auto minmax(0, 1fr);
                   column-gap: .5rem; align-content: start; background: var(--surface); border: 0; border-radius: 0;
                   box-shadow: none; padding: 1.1rem 1.4rem 1.15rem; transition: background-color .15s; }
.kpis.tiles .kpi-icon { position: static; grid-column: 1; grid-row: 1; align-self: center; width: 13px; height: 13px; }
.kpis.tiles .kpi-label { grid-column: 2; grid-row: 1; padding-right: 0; font-size: .6875rem; font-weight: 600;
                         letter-spacing: .07em; text-transform: uppercase; }
.kpis.tiles .kpi-value, .kpis.tiles .kpi-note, .kpis.tiles .kpi-line { grid-column: 1 / -1; }
.kpis.tiles .kpi-value { margin: .55rem 0 .25rem; font-size: 1.875rem; letter-spacing: -.045em; }
.kpis.tiles a.kpi:hover { background: var(--hover); text-decoration: none; }
.kpis.tiles a.kpi-link::after { top: 1.2rem; right: 1.3rem; }

.kpis.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.tiles:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis.tiles:has(> :nth-child(4):last-child), .kpis.tiles:has(> :nth-child(3):last-child) {
  grid-template-columns: minmax(0, 1fr); } }        
.kpi-icon { position: absolute; top: 1.15rem; right: 1.25rem; color: var(--muted); }
.dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start;
        margin-bottom: 1.25rem; }
.dash-main, .dash-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; }

.dash .card { margin: 0; }

button, .button { font-weight: 600; }
.button .i, button .i { width: 15px; height: 15px; }
.kpi-line { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; font-size: .75rem; color: var(--muted); }
.kpi-line .i { width: 12px; height: 12px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.card.shortcut { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.05rem 1.25rem; color: inherit;
                 transition: border-color .15s, background .15s; }
.card.shortcut:hover { text-decoration: none; border-color: var(--line-strong); background: var(--hover); }
.sc-icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px;
           color: var(--accent); background: var(--accent-bg); }
.sc-icon .i { width: 20px; height: 20px; }
.sc-text { display: grid; gap: .15rem; min-width: 0; }
.sc-title { font-weight: 600; color: var(--ink); }
.sc-sub { font-size: .82rem; color: var(--muted); }
.sc-arrow { margin-left: auto; color: var(--muted); }
.card.shortcut:hover .sc-arrow { color: var(--ink); }
.view-all { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; font-size: .82rem; font-weight: 600;
            color: var(--ink); white-space: nowrap; }
.view-all .i { width: 14px; height: 14px; }
.view-all.accent { color: var(--accent); }
.card-head .view-all:hover { text-decoration: none; opacity: .8; }
.card-head .view-all + .view-all { margin-left: 0; }          
.ov-head { align-items: flex-start; }
.ov-head h2 { margin: 0; }
.ov-sub, .fl-sub { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }
.ov-head .legend { margin: 0 0 0 auto; }
.ov-head .legend ~ .view-all { margin-left: .5rem; }        
.ov-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem 1.25rem; margin-top: 1rem;
             padding-top: 1rem; border-top: 1px solid var(--line); }
.ov-totals div { display: grid; gap: .15rem; }
.ov-label { font-size: .78rem; color: var(--muted); }
.ov-value { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card.alert { display: flex; gap: .85rem; align-items: flex-start; }
.card.alert.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, var(--surface)); }
.card.alert.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.al-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 8px; color: var(--muted);
           background: var(--hover); }
.card.alert.bad .al-icon { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.card.alert.warn .al-icon { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.card.alert.good .al-icon { color: var(--accent); background: var(--accent-bg); }
.al-text { display: grid; gap: .2rem; font-size: .85rem; color: var(--ink-2); }
.al-text strong { color: var(--ink); font-size: .9rem; }
.card.alert.bad .al-text strong { color: var(--bad); }
.al-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; font-weight: 600; color: var(--ink); }
.card.alert.bad .al-link { color: var(--bad); }
.al-link .i { width: 14px; height: 14px; }
.card-head h2 { display: inline-flex; align-items: center; gap: .5rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-bg); }
.minimap-link { display: block; margin: .85rem 0 .75rem; border-radius: 10px; }
.minimap { display: block; width: 100%; height: auto; }
.minimap .mm-paper { fill: var(--map-paper); stroke: var(--line); stroke-width: 2; }
.minimap .mm-ink { fill: var(--map-ink); }
.minimap .mm-dot { fill: var(--line-strong); }
.minimap .mm-lit { stroke: var(--surface); stroke-width: 3; }
.minimap .s0 { fill: var(--series-other); } .minimap .s1 { fill: var(--series-1); } .minimap .s2 { fill: var(--series-2); }
.minimap .s3 { fill: var(--series-3); } .minimap .s4 { fill: var(--series-4); } .minimap .s5 { fill: var(--series-5); }
.minimap .s6 { fill: var(--series-6); }
.fl-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fl-people li { display: flex; align-items: center; gap: .55rem; font-size: .84rem; }
.fl-people .sw.s0 { background: var(--series-other); } .fl-people .sw.s1 { background: var(--series-1); }
.fl-people .sw.s2 { background: var(--series-2); } .fl-people .sw.s3 { background: var(--series-3); }
.fl-people .sw.s4 { background: var(--series-4); } .fl-people .sw.s5 { background: var(--series-5); }
.fl-people .sw.s6 { background: var(--series-6); }
.fl-name { font-weight: 500; }
.fl-wcs { margin-left: auto; color: var(--muted); font-size: .78rem; }
.ck-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; color: var(--accent);
           background: var(--accent-bg); }
.ck-icon .i { width: 15px; height: 15px; }
.ck-figs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .8rem 0 .4rem; font-size: .85rem; color: var(--muted); }
.ck-figs span { display: inline-flex; align-items: center; gap: .4rem; }
.ck-figs strong { color: var(--ink); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot.good { background: var(--accent); }
.ck-rows { list-style: none; margin: 0; padding: 0; }
.ck-rows li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.ck-av { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-size: .75rem;
         font-weight: 600; color: #fff; background: var(--series-other); }
.ck-av.s1 { background: var(--series-1); } .ck-av.s2 { background: var(--series-2); } .ck-av.s3 { background: var(--series-3); }
.ck-av.s4 { background: var(--series-4); } .ck-av.s5 { background: var(--series-5); } .ck-av.s6 { background: var(--series-6); }
.ck-who { display: grid; min-width: 0; line-height: 1.3; }
.ck-name { font-size: .86rem; font-weight: 500; }
.ck-span { font-size: .76rem; color: var(--muted); }
.ck-h { margin-left: auto; white-space: nowrap; font-size: .86rem; }
.seal { display: flex; align-items: center; gap: .45rem; margin: .9rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line);
        font-size: .76rem; color: var(--muted); }
.seal.bad { color: var(--bad); }
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } }

.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { padding-top: .1rem; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.row-main { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.row-title { font-size: .9rem; }
.row-title > span { color: var(--ink-2); margin-left: .3rem; }
.row-title > span.muted { color: var(--muted); }
.row-sub { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.row-sub.clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-fig { flex: none; text-align: right; font-size: .9rem; white-space: nowrap; }
.rows .dot { flex: none; width: .45rem; height: .45rem; margin-top: .45rem; border-radius: 50%; background: var(--muted); }
.rows .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }

.zfilter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.zsearch { position: relative; flex: 1 1 15rem; max-width: 24rem; margin: 0; font-weight: 400; color: var(--ink); }
.zsearch .i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.zsearch input { min-height: 2.3rem; padding-left: 2.2rem; border-radius: 9px; }
.zhint { position: absolute; left: 2.25rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .875rem;
         pointer-events: none; }
.zsearch input:valid + .zhint { display: none; }          
.zchips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px;
          background: var(--surface); }
.zchips button { display: inline-flex; align-items: center; height: 1.85rem; margin: 0; padding: 0 .7rem; border: 0;
                 border-radius: 7px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 500; }
.zchips button:hover { color: var(--ink); background: var(--hover); }
.zchips button[aria-pressed="true"] { color: var(--ink); background: var(--active); }
.zchip-n { margin-left: .45rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.zshown { font-size: .8rem; }
.card.zcard { padding: 0; overflow: hidden; }
.zlist { list-style: none; margin: 0; padding: 0; }
.zrow { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
        transition: background .12s; }
.zrow:last-child { border-bottom: 0; }
.zrow:hover { background: var(--hover); }
.zrow[hidden] { display: none; }
.zrow-main { display: grid; gap: .22rem; flex: 1; min-width: 0; color: inherit; }
a.zrow-main:hover { text-decoration: none; }
a.zrow-main:hover .zrow-title > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.zrow-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: .95rem; font-weight: 600;
              color: var(--ink); }
.zrow-sub { color: var(--muted); font-size: .84rem; }
.zrow-part { font-weight: 500; color: var(--ink-2); }
.zpeople { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }         
.zrow-note { color: var(--ink-2); font-size: .84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
             line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zrow-note.whole { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }  
.zrow-fig { flex: none; display: grid; justify-items: end; gap: .15rem; font-size: .9rem; text-align: right; white-space: nowrap; }
.zrow-fig .muted { font-size: .8rem; }
.zrow-edit { flex: none; align-self: center; font-size: .82rem; }
.zempty { margin: 0; padding: 1.25rem 1.5rem; color: var(--muted); }
.card.zcard > .card-head { margin: 0; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }

.zweek { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin-top: .4rem; }
.zday { display: grid; align-content: start; gap: .1rem; min-height: 3.4rem; padding: .45rem .6rem; border: 1px solid var(--line);
        border-radius: 8px; font-size: .78rem; color: var(--muted); }
.zday-d { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.zday-h { font-family: var(--mono); font-size: .92rem; font-weight: 600; color: var(--ink); }
.zday.closed { background: var(--hover); }
.zrow.ztotal { background: var(--hover); }
.zrow-fig.zfig-fixed { width: 6.5rem; }                   
@media (max-width: 640px) {
  .zrow { flex-wrap: wrap; padding: .9rem 1rem; gap: .35rem 1rem; }
  .zrow-fig { justify-items: start; text-align: left; }
  .zweek { grid-template-columns: 1fr; gap: .3rem; }
  .zday { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; min-height: 0; padding: .35rem .6rem; }
  .zday-d { min-width: 2.2rem; }
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1.25rem; }


.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin-bottom: 1.25rem;
        background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
        box-shadow: var(--card-shadow); }
.kpi { position: relative; padding: 1.15rem 1.35rem 1.1rem; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi-label { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.kpi-value { margin: .35rem 0 .2rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }

.kpi-note { color: var(--muted); font-size: .78rem; line-height: 1.45; }
a.kpi-link::after { content: ""; position: absolute; top: 1.25rem; right: 1.35rem; width: .42rem; height: .42rem;
                    border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); opacity: 0;
                    transform: translateX(-3px) rotate(45deg); transition: opacity .15s, transform .15s; }
a.kpi-link:hover::after, a.kpi-link:focus-visible::after { opacity: 1; transform: none; }


.ok { color: var(--ok); } .error { color: var(--bad); }
.notice, .flash { display: flex; gap: .65rem; align-items: baseline; padding: .75rem 1rem; border-radius: 10px;
                  margin: 0 0 1.25rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.notice strong, .flash { color: var(--ink); }
.notice.good::before, .notice.warn::before, .notice.bad::before, .flash::before { content: ""; flex: none; align-self: center;
       width: 8px; height: 8px; border-radius: 50%; }
.notice.good::before, .flash::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.notice.warn::before { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-bg); color: var(--bad); }
.notice.bad strong { color: var(--bad); }
.notice.bad::before { background: var(--bad); }
.notice .push { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 500; padding: .12rem .55rem;
        white-space: nowrap; border-radius: 999px; background: var(--chip); color: var(--ink-2); border: 1px solid var(--line); }
.pill.good, .pill.warn, .pill.bad { background: var(--surface); }
.pill.good::before, .pill.warn::before, .pill.bad::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.pill.good::before { background: var(--ok); } .pill.warn::before { background: var(--warn); } .pill.bad::before { background: var(--bad); }


label { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-2); margin: .9rem 0 .35rem; }
input, select, textarea { width: 100%; min-height: 2.5rem; padding: .55rem .7rem; font: inherit; color: var(--ink); background: var(--surface);
                          border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
textarea { min-height: 6.5rem; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 2.25rem;
         padding: 0 .95rem; margin-top: 1.1rem; font: inherit; font-weight: 500; color: var(--btn-ink); background: var(--btn);
         border: 1px solid var(--btn); border-radius: 6px; cursor: pointer; transition: background .15s; }
button:hover, .button:hover { background: var(--btn-hover); text-decoration: none; }
button.secondary, .button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--hover); }
button.danger { color: #fff; background: var(--bad); border-color: var(--bad); }
button.link { height: auto; margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 400; }
button.link:hover { color: var(--ink); background: none; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions form { margin: 0; }
.actions .button, .actions button { margin-top: 0; }
form.inline { display: inline; margin: 0; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink); }
label.check input { width: auto; min-height: 0; margin: 0; }
.button.small, button.small { height: 1.85rem; padding: 0 .7rem; font-size: .82rem; }
.small-note { font-size: .75rem; margin-top: .25rem; }


.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.grid { width: 100%; border-collapse: collapse; font-size: .875rem; }
.grid th { text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
           color: var(--muted); padding: .6rem .9rem;
           border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.grid td { padding: .72rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: var(--hover); }
.grid td.num, .grid th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.grid th.num { font-family: inherit; }
.grid tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.grid tr.closed td { color: var(--muted); }

.grid td.mono { white-space: nowrap; }
.grid td.mono.wraps { white-space: normal; }
.grid td.mono .small-note { display: block; }

.grid tr.has-note > td { border-bottom: 0; padding-bottom: .35rem; }
.grid tr.note-row > td { padding-top: 0; color: var(--ink-2); }
.grid tr.note-row > td > p { margin: 0; max-width: 88ch; line-height: 1.55; }
.grid tbody tr.has-note:hover + tr.note-row > td, .grid tbody tr.has-note:has(+ tr.note-row:hover) > td { background: var(--hover); }
code.detail { white-space: pre-wrap; word-break: break-word; font-size: .78rem; color: var(--muted); }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.events li > .mono { flex: none; white-space: nowrap; }   
.events time { color: var(--muted); white-space: nowrap; }
.pager { display: flex; gap: 1rem; margin-top: 1rem; }


.chart { display: block; max-width: 100%; height: auto; overflow: visible; font-family: "Geist", system-ui, sans-serif; }
.chart .s1 { fill: var(--series-1); } .chart .s2 { fill: var(--series-2); } .chart .s3 { fill: var(--series-3); }
.chart .s4 { fill: var(--series-4); } .chart .s5 { fill: var(--series-5); } .chart .s6 { fill: var(--series-6); }
.chart .s0 { fill: var(--series-other); }
.chart .gap { stroke: var(--surface); stroke-width: 2; }

.chart.stack { width: 100%; height: 12px; margin: .35rem 0 1rem; }
.chart .track { fill: var(--grid); }
.stack-legend { gap: .5rem 1.5rem; }
.stack-legend .v { margin-left: .25rem; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
.chart .tick, .chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart .value { fill: var(--ink-2); font-size: 11px; font-family: var(--mono); }
.chart .hero { fill: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.chart .hero-sub { fill: var(--muted); font-size: 11px; }
.chart path.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.chart .line.s1 { stroke: var(--series-1); } .chart .line.s2 { stroke: var(--series-2); } .chart .line.s3 { stroke: var(--series-3); }
.chart .line.s4 { stroke: var(--series-4); } .chart .line.s5 { stroke: var(--series-5); } .chart .line.s6 { stroke: var(--series-6); }
.chart .line.s0 { stroke: var(--series-other); }
.chart .dot, .chart .end-label { pointer-events: none; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover, .chart .hit:focus { fill: var(--hover); outline: none; }
.chart .mark { transition: opacity .12s; cursor: default; }
.chart .mark:hover, .chart .mark:focus { opacity: .82; outline: none; }
.chart-wrap { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1.25rem; align-items: center; }
@media (max-width: 560px) { .chart-wrap { grid-template-columns: 1fr; } .chart-wrap .chart { max-width: 240px; margin: 0 auto; } }

.cols-2 > * { min-width: 0; }
.table-view { overflow-x: auto; }


@container (max-width: 560px) {
  .chart.bars, .chart.hbars { min-width: 560px; }
  .chart.lines { min-width: 640px; }                    
}

.chart-scroll { container-type: inline-size; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart.chart-n, .chart.chart-x { display: none; }

.chart.chart-w { width: 100%; }
@container (max-width: 860px) {
  .chart.chart-w { display: none; }
  .chart.chart-n { display: block; width: 100%; }
}
@container (min-width: 1250px) {
  .chart.chart-w { display: none; }
  .chart.chart-x { display: block; width: 100%; }
}
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; max-width: 360px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: .55rem; align-items: center; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .sw.s1 { background: var(--series-1); } .legend .sw.s2 { background: var(--series-2); }
.legend .sw.s3 { background: var(--series-3); } .legend .sw.s4 { background: var(--series-4); }
.legend .sw.s5 { background: var(--series-5); } .legend .sw.s6 { background: var(--series-6); }
.legend .sw.s0 { background: var(--series-other); }
.legend .v { font-family: var(--mono); color: var(--ink); text-align: right; }
.legend .p { font-family: var(--mono); color: var(--muted); text-align: right; min-width: 3.2em; }
.legend.inline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; max-width: none; }
.legend.inline li { display: inline-flex; gap: .4rem; }
details.table-view { margin-top: .9rem; }
details.table-view summary { cursor: pointer; color: var(--muted); font-size: .8rem; }
details.table-view .grid { margin-top: .6rem; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--ink);
       border: 1px solid var(--line-strong); border-radius: 8px; padding: .45rem .6rem; font-size: .8rem;
       box-shadow: 0 6px 24px rgba(0, 0, 0, .12); display: none; max-width: 260px; }
.tip strong { display: block; font-family: var(--mono); font-size: .95rem; }
.tip .row { display: block; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }

@media (max-width: 640px) { main { padding: 1.25rem .9rem 2rem; } h1 { font-size: 1.45rem; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); } }


.zhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem;
         margin-bottom: 1.5rem; }
.zhead-main { flex: 1 1 32rem; min-width: 0; }
.zkicker { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; }
.zkicker a { color: inherit; }
.zhead h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0 0 .45rem; }
.zhead .lede { margin: 0; max-width: 62rem; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.zrecord { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; }
.zrecord-main, .zrecord-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; }
.zrecord .card { margin: 0; }
.zrecord { margin-bottom: 1.25rem; }                     
@media (max-width: 1000px) { .zrecord { grid-template-columns: minmax(0, 1fr); } }
.zfacts { display: grid; gap: .85rem; margin: 0; }
.zfacts div { display: grid; gap: .12rem; }
.zfacts dt { color: var(--muted); font-size: .78rem; }
.zfacts dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.zactivity { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.zactivity li { display: grid; gap: .1rem; padding-left: .85rem; border-left: 2px solid var(--line); }
.zact-title { font-size: .86rem; font-weight: 500; }
.zact-sub { font-size: .8rem; color: var(--muted); }
.zactivity time { font-size: .74rem; color: var(--muted); font-family: var(--mono); }
.zactivity .zact-none { border: 0; padding: 0; color: var(--muted); font-size: .86rem; }

.zact-main { display: grid; gap: .1rem; min-width: 0; }
a.zact-main { color: inherit; text-decoration: none; }
a.zact-main:hover .zact-title, a.zact-main:focus-visible .zact-title { text-decoration: underline; text-underline-offset: 3px; }
.zactivity li:has(> a.zact-main:hover) { border-left-color: var(--ink-2); }

.th-sort { all: unset; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
th.num .th-sort { flex-direction: row-reverse; }
.th-sort::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .28; transition: opacity .12s, transform .12s; }
.th-sort:hover::after { opacity: .6; }
th[aria-sort] .th-sort { color: var(--ink); }
th[aria-sort] .th-sort::after { opacity: 1; }
th[aria-sort="ascending"] .th-sort::after { transform: rotate(180deg); }


.summary { font-size: 1.05rem; line-height: 1.5; margin: 0 0 1.1rem; }
.details { white-space: pre-wrap; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem 1.25rem; padding-top: 1rem;
         border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ev { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ev img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--hover); }
.ev-doc { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--hover);
          font-family: var(--mono); color: var(--muted); }
.ev figcaption { padding: .65rem .75rem; font-size: .85rem; }
.ev-meta { font-size: .72rem; margin-top: .25rem; }
.upload { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.upload label.cleared { align-items: flex-start; gap: .55rem; margin: .2rem 0 .9rem; font-size: .86rem; color: var(--ink-2); line-height: 1.45; max-width: 60rem; }
.upload label.cleared input { width: 1rem; height: 1rem; min-height: 0; margin: .15rem 0 0; padding: 0; flex: none; }
.card.zcard .refs-form { margin: 0; padding: 1rem 1.5rem 1.25rem; }
.refs-form .small-note { margin: 0 0 .75rem; }

.ov-notes { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.ov-notes h3 { margin: 0 0 .45rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ov-notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ov-notes li { font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.ov-notes li .mono { color: var(--muted); margin-right: .35rem; }
input[type="file"] { padding: .4rem; }

.card h3 { margin-top: 1.25rem; }


.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.month { margin: 0; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8rem; }
.cal th { color: var(--muted); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: .3rem 0; }
.cal td { height: 3.1rem; vertical-align: top; padding: .3rem .35rem; border: 1px solid var(--line); }
.cal td.out { color: var(--line-strong); background: transparent; }
.cal td.out .hrs, .cal td.out .tag { display: none; }
.cal td.weekend { background: var(--hover); color: var(--muted); }
.cal td.closed { background: var(--warn-bg); }
.cal td.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal .dn { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.cal .hrs { display: block; font-family: var(--mono); font-weight: 600; color: var(--ink); margin-top: .15rem; }
.cal .tag { display: block; font-size: .7rem; font-weight: 600; color: var(--warn); margin-top: .15rem; }

.zday-made { font-size: .74rem; color: var(--muted); }           
.zwait { font-size: .78rem; font-weight: 600; color: var(--warn); }   
a.zday-d { color: inherit; text-decoration: none; } a.zday-d:hover { text-decoration: underline; }
.cal a.dn { color: var(--ink); text-decoration: none; }
.cal a.dn:hover { text-decoration: underline; }
.cal-marks { display: flex; gap: 3px; margin-top: .2rem; }
.cd { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; position: relative; }
.cd.cd-prod { background: var(--accent); } .cd.cd-find { background: var(--bad); } .cd.cd-maint { background: var(--warn); }   
.cal-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.cal-key > span { display: inline-flex; align-items: center; gap: .35rem; }
a.kpi-link { color: inherit; text-decoration: none; }
a.kpi-link:hover { background: var(--hover); text-decoration: none; }


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

.mapx { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: .75rem; height: calc(100vh - 4.75rem); min-height: 560px; margin-bottom: .75rem; }
.mapx-side { display: grid; grid-auto-rows: max-content; align-content: start; gap: .6rem; min-height: 0; overflow-y: auto; }
.mapx-group { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .85rem .9rem; }
.mapx-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .55rem; font-weight: 500; }
.mapx-group label.check { margin: .15rem 0; font-size: .85rem; }
.sw { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 3px; vertical-align: 1px; }
.sw.s1 { background: var(--series-1); } .sw.s2 { background: var(--series-2); } .sw.s3 { background: var(--series-3); }
.sw.s4 { background: var(--series-4); } .sw.s5 { background: var(--series-5); } .sw.s6 { background: var(--series-6); }
.sw.s0 { background: var(--series-other); }
main.wide { max-width: 1720px; }

body:has(main.wide) .foot { max-width: 1720px; }
.mapx-search { position: relative; flex: 0 1 20rem; min-width: 11rem; }
.mapx-results { position: absolute; z-index: 20; left: 0; right: 0; top: 2.4rem; margin: 0; padding: .3rem; list-style: none;
                background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.mapx-results li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 .5rem; padding: .4rem .5rem; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.mapx-results li.on, .mapx-results li:hover { background: var(--hover); }
.mapx-results .rk { grid-row: span 2; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: .15rem; }
.mapx-results .rs { font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px;
        font-size: .82rem; color: var(--ink-2); background: var(--surface); }
.chip:hover { text-decoration: none; background: var(--hover); }
.chip.on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mapx-key { display: grid; gap: .3rem; margin-top: .75rem; font-size: .75rem; color: var(--muted); }
.mapx-key > span { display: flex; align-items: center; gap: .45rem; }
.key-ring, .key-fill { display: inline-block; width: 16px; height: 9px; border-radius: 5px; border: 1.6px solid var(--series-1); }
.key-fill { background: var(--series-1); }
.mapx-foot .small-note { margin-top: .5rem; }
.mapx-stage { display: flex; flex-direction: column; gap: .5rem; min-width: 0; min-height: 0; }
.mapx-canvas { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--map-paper); border: 1px solid var(--line); border-radius: 12px; }
.shop { display: block; width: 100%; height: 100%; background: var(--map-paper);
        cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.shop.grabbing { cursor: grabbing; }
.shop:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.shop .paper { fill: var(--map-paper); }
.shop .under { display: none; opacity: .32; }
.shop.show-under .under { display: inline; }
.shop .zone { fill: var(--map-zone); stroke: var(--map-zone-line); stroke-width: .7; display: none; }
.shop.show-zones .zone { display: inline; }
.shop .zone.room { fill: var(--map-room); }
.shop.show-volume .zone.vol-lv { fill: var(--vol-lv); }
.shop.show-volume .zone.vol-hv { fill: var(--vol-hv); }
.shop .ink { fill: var(--map-ink); display: none; pointer-events: none; }
.shop.show-ink .ink { display: inline; }
.shop .dept { fill: none; stroke: var(--map-dept); stroke-width: 1.1; stroke-linejoin: round; stroke-dasharray: none; opacity: .75; display: none; pointer-events: none; }
.shop.show-depts .dept { display: inline; }
.shop .labels { display: none; pointer-events: none; }
.shop.show-labels .labels { display: inline; }
.shop .zlabel { font-family: "Geist", system-ui, sans-serif; font-weight: 600; letter-spacing: .5px; fill: var(--map-label); text-anchor: middle; dominant-baseline: central;
                paint-order: stroke; stroke: var(--map-zone); stroke-width: 1.6px; stroke-linejoin: round; }
.shop .dlabel { font: 700 6.2px "Geist", system-ui, sans-serif; letter-spacing: -.1px; fill: var(--ink); dominant-baseline: central;
                paint-order: stroke; stroke: var(--map-zone); stroke-width: 2.4px; stroke-linejoin: round; opacity: .82; }
.shop .notes { pointer-events: none; }
.shop .note { font: 500 3.6px var(--mono); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.shop .mk { cursor: pointer; }
.shop .mk .pill { fill: var(--surface); stroke: var(--ink-2); stroke-width: .5; transition: stroke-width .12s; }
.shop .mk .pt { font: 600 5.9px var(--mono); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.shop .mk:hover .pill, .shop .mk:focus .pill { stroke: var(--ink); stroke-width: 1; }
.shop .mk:focus { outline: none; }
.shop .mk.lit .pill { stroke-width: 1.5; }
.shop .mk.lit.s1 .pill { stroke: var(--series-1); } .shop .mk.lit.s2 .pill { stroke: var(--series-2); } .shop .mk.lit.s3 .pill { stroke: var(--series-3); }
.shop .mk.lit.s4 .pill { stroke: var(--series-4); } .shop .mk.lit.s5 .pill { stroke: var(--series-5); } .shop .mk.lit.s6 .pill { stroke: var(--series-6); }
.shop .mk.lit.s0 .pill { stroke: var(--series-other); }
.shop .mk.lit.trained.s1 .pill { fill: var(--series-1); } .shop .mk.lit.trained.s2 .pill { fill: var(--series-2); }
.shop .mk.lit.trained.s3 .pill { fill: var(--series-3); } .shop .mk.lit.trained.s4 .pill { fill: var(--series-4); }
.shop .mk.lit.trained.s5 .pill { fill: var(--series-5); } .shop .mk.lit.trained.s6 .pill { fill: var(--series-6); }
.shop .mk.lit.trained.s0 .pill { fill: var(--series-other); }
.shop .mk.lit.trained .pt { fill: #ffffff; }
.shop .mk.lit.trained.s4 .pt { fill: #0b0b0b; }
.shop .mk.focus .pill { stroke: var(--ink); stroke-width: 1.8; }
.shop .mk.focus { filter: drop-shadow(0 0 2.5px rgba(0, 0, 0, .35)); }

@keyframes mk-pulse { 0%, 100% { stroke-width: 1.8; } 50% { stroke-width: 5.5; } }
.shop .mk.focus .pill { animation: mk-pulse 1.1s ease-in-out .35s 3; }
@media (prefers-reduced-motion: reduce) { .shop .mk.focus .pill { animation: none; } }
.shop .dot { stroke: var(--map-paper); stroke-width: .6; }
.shop .dot.s1 { fill: var(--series-1); } .shop .dot.s2 { fill: var(--series-2); } .shop .dot.s3 { fill: var(--series-3); }
.shop .dot.s4 { fill: var(--series-4); } .shop .dot.s5 { fill: var(--series-5); } .shop .dot.s6 { fill: var(--series-6); }
.shop .dot.s0 { fill: var(--series-other); }
.mapx-tools { position: absolute; z-index: 5; left: .6rem; top: .6rem; display: grid; gap: .3rem; }
.mapx-tools .tool { width: 2.1rem; height: 2.1rem; margin: 0; padding: 0; font-size: 1.05rem; color: var(--ink); background: var(--surface);
                    border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.mapx-tools .tool:hover { background: var(--hover); }
.mapx-panel { position: absolute; z-index: 8; right: .75rem; top: .75rem; width: 320px; max-height: calc(100% - 1.5rem); overflow: auto;
              background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 1rem 1.1rem;
              box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.mapx-panel h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 .2rem; }
.mapx-close { position: absolute; right: .5rem; top: .45rem; width: 1.9rem; height: 1.9rem; margin: 0; padding: 0; font-size: 1.2rem;
              color: var(--muted); background: transparent; border: 0; }
.mapx-close:hover { color: var(--ink); background: var(--hover); }
.panel-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .9rem 0 .35rem; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .86rem; }
.mapx-panel .actions { margin-top: 1rem; }
@media (max-width: 900px) {
  .mapx-panel { position: fixed; left: .5rem; right: .5rem; top: auto; bottom: .5rem; width: auto; max-height: 55vh; }
}
@media (max-width: 600px) {
  .mapx-panel { bottom: 4.6rem; }                     
}


pre.code { margin: .5rem 0 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px;
           background: var(--hover); overflow-x: auto; }
pre.code code { font-size: .82rem; color: var(--ink); }
.ev figcaption a.small-note { display: inline-block; }


.jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.5rem 0 1.75rem; }
.sheet { margin: 0 0 3rem; scroll-margin-top: 4.5rem; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-bottom: 1rem; padding-bottom: .7rem;
              border-bottom: 1px solid var(--line); }
.sheet-head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.sheet-head h2 .sw { width: 12px; height: 12px; }
.sheet-head .links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-left: auto; font-size: .85rem; }
.sheet-top { margin-bottom: 1.25rem; }
.sheet-top .card { margin-bottom: 0; }
.sheet-top h3 { margin: 0; font-size: 1rem; }
.types { margin: 0; }
.types dt { margin: .9rem 0 .2rem; font-size: .72rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.types dt:first-child { margin-top: 0; }
.types dd { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.types .tname { font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.types .tlist { color: var(--ink-2); margin-top: .1rem; }
.types .sep { color: var(--line-strong); margin: 0 .45rem; }
.wcref { font-family: var(--mono); font-size: .85em; font-weight: 600; color: var(--ink); white-space: nowrap; }
a.wcref:hover { color: var(--link); }
ul.notes { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .88rem; }
ul.notes li { margin: .2rem 0; }
.small-note { font-size: .78rem; }
.shop.locator { height: auto; min-height: 0; aspect-ratio: 1.6; cursor: default; touch-action: auto; user-select: auto;
                -webkit-user-select: auto; }
.shop.locator .mk.dim { opacity: .42; }
.shop.locator .mk.lit .pill { stroke-width: 1.8; }
.key-ring.s1, .key-fill.s1 { border-color: var(--series-1); } .key-fill.s1 { background: var(--series-1); }
.key-ring.s2, .key-fill.s2 { border-color: var(--series-2); } .key-fill.s2 { background: var(--series-2); }
.key-ring.s3, .key-fill.s3 { border-color: var(--series-3); } .key-fill.s3 { background: var(--series-3); }
.key-ring.s4, .key-fill.s4 { border-color: var(--series-4); } .key-fill.s4 { background: var(--series-4); }
.key-ring.s5, .key-fill.s5 { border-color: var(--series-5); } .key-fill.s5 { background: var(--series-5); }
.key-ring.s6, .key-fill.s6 { border-color: var(--series-6); } .key-fill.s6 { background: var(--series-6); }
.key-dim { display: inline-block; width: 16px; height: 9px; border-radius: 5px; border: 1px solid var(--ink-2); opacity: .42; }
.sheet .mapx-key { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(370px, 100%), 1fr)); gap: 1rem; }
.wc-card { margin: 0; break-inside: avoid; scroll-margin-top: 4.5rem; }
.wc-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.wc-no { margin-right: .3rem; font-family: var(--mono); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.where { margin: .3rem 0 .85rem; color: var(--ink-2); }
.mlist { list-style: none; margin: 0 0 .9rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.mlist li { padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.mlist li:last-child { border-bottom: 0; }
.mname { font-family: var(--mono); font-weight: 600; }
.msub { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .1rem; color: var(--ink-2); font-size: .84rem; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; margin: 0; font-size: .85rem; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.who-run, .gl { white-space: nowrap; }  
.who-run .sw { margin-right: .3rem; }
.card-note { margin: .8rem 0 0; padding: .5rem .7rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; }
.nw { white-space: nowrap; }            
.print-only { display: none; }


@media print {
  
  :root[data-theme], :root:not([data-theme]) { color-scheme: light; --bg: #ffffff; --surface: #ffffff; --ink: #0a0a0a; --ink-2: #333333; --muted: #5f5f5f; --line: #dddddd;
          --line-strong: #c4c4c4; --chip: #f2f2f2; --hover: #f5f5f5; --warn: #7a4a00; --warn-bg: #fff4dc; --ok: #006300;
          --ok-bg: #e9f7ec; --map-paper: #f3f4f6; --map-zone: #ffffff; --map-zone-line: #cfd4da; --map-room: #e6e8eb;
          --map-ink: rgba(28, 33, 41, .32); --map-label: rgba(40, 48, 58, .7); }
  html { font-size: 12px; }                     
  body { background: #fff; font-size: 11px; }
  .side, .bar, .dock, .scrim, .foot, .tip, .page-head .actions, .jump, .sheet-head .links { display: none !important; }
  .map-tab, .mapdrawer, .rtabs a:not([aria-current="page"]), .rinsights .view-all { display: none !important; }   
  .rgrid { grid-template-columns: 1fr 1fr; }
  .shell, .content { display: block; min-height: 0; }
  main { max-width: none; padding: 0; }
  .sheet { break-before: page; margin: 0; }
  .sheet:first-of-type { break-before: auto; }
  .card, .kpis, .wc-card, .sheet-top > * { break-inside: avoid; box-shadow: none; }
  .wc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }   
  .kpi-value { font-size: 1.3rem; }
  a { color: inherit; }
  .screen-only { display: none !important; }        
  .print-only { display: inline; }
  
  .sheet-top.cols-2 { grid-template-columns: 1fr; gap: .6rem; }
  .shop.locator .mk { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }
  
  .kpis.tiles, .kpis.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
  .kpis.tiles .kpi { padding: .55rem .7rem; }
  .sheet-top > .card:last-child { order: -1; }
  .sheet-top > .card:first-child { break-inside: auto; }
}

@page {
  margin: 12mm 11mm 13mm;
  @bottom-left { content: "AMAGEAR"; font: 8px sans-serif; color: #6b6b6b; }
  @bottom-right { content: "page " counter(page) " of " counter(pages); font: 8px sans-serif; color: #6b6b6b; }
}


.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg-b { padding: .3rem .7rem; font-size: .82rem; color: var(--ink-2); background: var(--surface); }
.seg-b + .seg-b { border-left: 1px solid var(--line-strong); }
.seg-b:hover { text-decoration: none; background: var(--hover); }
.seg-b.on { color: var(--btn-ink); background: var(--btn); }
.mapx-group .seg { display: flex; }                  
.mapx-group .seg-b { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.mapx-h-gap { margin-top: .9rem; }
.ckeys { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .35rem; font-size: .84rem; }
.ckeys li { display: grid; grid-template-columns: 18px 1fr auto; gap: .5rem; align-items: center; }
.cool-off li { display: grid; grid-template-columns: 18px 1fr; gap: .5rem; align-items: start; }
.ckey { display: inline-block; width: 16px; height: 9px; border-radius: 5px; border: 1px solid var(--ink-2); background: var(--surface); vertical-align: middle; }
.ckey.done { border-color: transparent; }
.ckey.done.k1 { background: var(--series-1); } .ckey.done.k2 { background: var(--series-2); } .ckey.done.k3 { background: var(--series-3); }
.ckey.done.k4 { background: var(--series-4); } .ckey.done.k5 { background: var(--series-5); } .ckey.done.k6 { background: var(--series-6); }
.ckey.done.k0 { background: var(--series-other); }
.ckey.part { border-width: 2px; border-color: var(--ink-2); }
.ckey.pending { border-style: dashed; }
.ckey.redo { border: 2px solid var(--bad); background: var(--bad-bg); }
.ckey.none { opacity: .38; }
.shop.view-coolant .mk.c-none { opacity: .38; }
.shop.view-coolant .mk.c-done .pill { stroke-width: 1.2; }
.shop.view-coolant .mk.c-done.k1 .pill { fill: var(--series-1); stroke: var(--series-1); } .shop.view-coolant .mk.c-done.k2 .pill { fill: var(--series-2); stroke: var(--series-2); }
.shop.view-coolant .mk.c-done.k3 .pill { fill: var(--series-3); stroke: var(--series-3); } .shop.view-coolant .mk.c-done.k4 .pill { fill: var(--series-4); stroke: var(--series-4); }
.shop.view-coolant .mk.c-done.k5 .pill { fill: var(--series-5); stroke: var(--series-5); } .shop.view-coolant .mk.c-done.k6 .pill { fill: var(--series-6); stroke: var(--series-6); }
.shop.view-coolant .mk.c-done.k0 .pill { fill: var(--series-other); stroke: var(--series-other); }
.shop.view-coolant .mk.c-done .pt { fill: #ffffff; }
.shop.view-coolant .mk.c-done.k4 .pt { fill: #0b0b0b; }
.shop.view-coolant .mk.c-part .pill { stroke-width: 1.7; }
.shop.view-coolant .mk.c-part.k1 .pill { stroke: var(--series-1); } .shop.view-coolant .mk.c-part.k2 .pill { stroke: var(--series-2); }
.shop.view-coolant .mk.c-part.k3 .pill { stroke: var(--series-3); } .shop.view-coolant .mk.c-part.k4 .pill { stroke: var(--series-4); }
.shop.view-coolant .mk.c-part.k5 .pill { stroke: var(--series-5); } .shop.view-coolant .mk.c-part.k6 .pill { stroke: var(--series-6); }
.shop.view-coolant .mk.c-part.k0 .pill { stroke: var(--series-other); }
.shop.view-coolant .mk.c-pending .pill { stroke: var(--ink-2); stroke-width: .9; stroke-dasharray: 1.6 1.1; }
.shop.view-coolant .mk.c-redo .pill { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 1.6; }
.shop.view-coolant .mk.c-redo .pt { fill: var(--bad); }
.shop.view-coolant .mk.focus .pill { stroke: var(--ink); stroke-width: 1.8; }

.shop .mk .strike { stroke: var(--bad); stroke-width: 1.3; stroke-linecap: round; pointer-events: none; }
.shop .mk.oos-part .strike { stroke-dasharray: 1.8 1.3; }
.shop .mk.oos .pt { fill: var(--muted); }
.shop .mk.oos .pill { stroke: var(--bad); }
.shop.view-coolant .mk.oos.c-none, .shop.view-coolant .mk.oos-part.c-none { opacity: 1; }   

.shop.view-open .mk.o-none { opacity: .38; }
.shop.view-open .mk.oos.o-none, .shop.view-open .mk.oos-part.o-none { opacity: 1; }
.shop.view-open .mk.o-maint .pill { fill: var(--warn-bg); stroke: var(--warn); stroke-width: 1.4; }
.shop.view-open .mk.o-maint .pt { fill: var(--warn); }
.shop.view-open .mk.o-find .pill { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 1.4; }
.shop.view-open .mk.o-find .pt { fill: var(--bad); }
.shop.view-open .mk.focus .pill { stroke: var(--ink); stroke-width: 1.8; }
.shop .odot { fill: var(--warn); stroke: var(--map-paper); stroke-width: .6; }
.ckey.ofind { border: 2px solid var(--bad); background: var(--bad-bg); }
.ckey.omaint { border: 2px solid var(--warn); background: var(--warn-bg); }
.ckey.oboth { position: relative; }
.ckey.oboth::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; margin-left: -2.5px;
                     border-radius: 50%; background: var(--warn); }
.open-list a, .open-off a { font-weight: 600; }
.ckey.oos { border-color: var(--bad); background: linear-gradient(to top right, transparent calc(50% - .8px), var(--bad) calc(50% - .8px),
  var(--bad) calc(50% + .8px), transparent calc(50% + .8px)), var(--surface); }
.shop .cdot { stroke: var(--map-paper); stroke-width: .6; }
.shop .cdot.k1 { fill: var(--series-1); } .shop .cdot.k2 { fill: var(--series-2); } .shop .cdot.k3 { fill: var(--series-3); }
.shop .cdot.k4 { fill: var(--series-4); } .shop .cdot.k5 { fill: var(--series-5); } .shop .cdot.k6 { fill: var(--series-6); }
.shop .cdot.k0 { fill: var(--series-other); }
.section-head { margin-top: 2.75rem; margin-bottom: 1.25rem; scroll-margin-top: 4.5rem; }
.section-head h2 { margin: 0 0 .3rem; font-size: 1.35rem; letter-spacing: -.02em; }


.tabs { display: flex; gap: .25rem; margin: -.5rem 0 1.5rem; border-bottom: 1px solid var(--line); overflow-x: auto;
        scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .65rem .8rem;
          color: var(--muted); font-size: .9rem; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: -1px; height: 2px;
                                       background: var(--ink); border-radius: 2px; }
.tabs .count { font: 500 .72rem var(--mono); padding: .05rem .42rem; border-radius: 999px; color: var(--ink-2);
               background: var(--chip); border: 1px solid var(--line); }


@media (max-width: 640px) {
  .grid.stacks thead { display: none; }
  .grid.stacks, .grid.stacks tbody, .grid.stacks tr { display: block; width: 100%; }
  .grid.stacks tr { padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  .card > .table-wrap .grid.stacks tr { padding: .85rem 1.25rem; }
  .card.zcard > .table-wrap .grid.stacks tr { padding: .85rem 1.25rem; }
  .card.zcard > .table-wrap .grid.stacks tr > td { padding: .2rem 0; }   
  .grid.stacks td:empty, .card > .table-wrap .grid.stacks tr > td:empty { display: none; }   
  .grid.stacks tbody tr:last-child { border-bottom: 0; }
  .grid.stacks tbody tr:hover td { background: none; }
  .grid.stacks td, .card > .table-wrap .grid.stacks tr > td { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr);
       gap: .75rem; padding: .2rem 0; border: 0; text-align: left; white-space: normal; }
  .grid.stacks td::before { content: attr(data-label); color: var(--muted); font: 500 .75rem "Geist", system-ui, sans-serif;
       padding-top: .1rem; }
  .grid.stacks td[data-label=""], .card > .table-wrap .grid.stacks tr > td[data-label=""] { display: block; padding-top: .35rem; }
  .grid.stacks td[data-label=""]::before { content: none; }
  .grid.stacks td > * { justify-self: start; }          
  .grid.stacks td.long, .card > .table-wrap .grid.stacks tr > td.long { display: block; }   
  .grid.stacks td.long::before { display: block; margin-bottom: .2rem; }
  
  .grid.stacks tr.has-note, .card > .table-wrap .grid.stacks tr.has-note { border-bottom: 0; padding-bottom: .2rem; }
  .grid.stacks tr.note-row, .card > .table-wrap .grid.stacks tr.note-row { padding-top: 0; }
}


.palette { width: min(640px, calc(100vw - 2rem)); max-height: min(560px, calc(100vh - 6rem)); margin: 12vh auto auto; padding: 0;
           color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
           box-shadow: var(--shadow); overflow: hidden; }
.palette[open] { display: flex; flex-direction: column; }
.palette::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(2px); }
.palette-in { position: relative; display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem;
              border-bottom: 1px solid var(--line); }
.palette-in .i { color: var(--muted); }
.palette-in input, .palette-in input:hover, .palette-in input:focus { flex: 1; width: auto; height: 1.6rem; min-height: 0; padding: 0;
              font-size: 1rem; background: transparent; border: 0; box-shadow: none; outline: none; }
.palette-hint { position: absolute; left: 2.65rem; color: var(--muted); font-size: 1rem; pointer-events: none;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 4rem; }
.palette-in.has-q .palette-hint { display: none; }
.palette-list { flex: 1; min-height: 0; overflow-y: auto; padding: .35rem .45rem .5rem; }
.palette-group { padding: .65rem .6rem .3rem; font-size: .72rem; font-weight: 500; color: var(--muted); }
.palette-opt { display: grid; grid-template-columns: 16px minmax(0, max-content) minmax(0, 1fr); align-items: center; gap: .7rem;
               padding: .55rem .6rem; border-radius: 8px; color: var(--ink); }
.palette-opt:hover { text-decoration: none; }
.palette-opt[aria-selected="true"] { background: var(--active); }
.palette-opt .i { color: var(--muted); }
.palette-opt[aria-selected="true"] .i { color: var(--ink); }
.palette-opt .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-opt .s { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-empty { margin: 0; padding: 1.75rem 1rem; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 1.1rem; padding: .55rem 1rem; border-top: 1px solid var(--line); color: var(--muted);
                font-size: .75rem; }
.palette-foot kbd { margin-right: .25rem; }
@media (max-width: 640px) {
  .palette { margin-top: 3vh; width: calc(100vw - 1rem); max-height: calc(100vh - 6vh); }
  .palette-opt { grid-template-columns: 16px minmax(0, 1fr); }
  .palette-opt .s { grid-column: 2; }
  .palette-foot { display: none; }
}


.prose { max-width: 88ch; color: var(--ink-2); line-height: 1.6; }
ol.sources { margin: 0; padding-left: 1.4rem; } ol.sources li { margin: .35rem 0; line-height: 1.5; }

ol.steps { margin: 0 0 1rem; padding-left: 1.3rem; } ol.steps li { margin: .55rem 0; line-height: 1.55; }
svg.setup-qr { display: block; width: 14rem; height: 14rem; margin: .6rem 0; border-radius: 8px; }  
code.setup-key { display: inline-block; margin-top: .45rem; padding: .45rem .7rem; font: 600 1.05rem var(--mono);
                 letter-spacing: .06em; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
ol.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .45rem 1.5rem; margin: 1rem 0;
           padding-left: 1.5rem; } ol.codes code { font: 500 .95rem var(--mono); letter-spacing: .04em; }
form.stack { display: grid; align-content: start; } form.stack button { justify-self: start; margin-top: .75rem; }
form.narrow-form { max-width: 22rem; margin-bottom: .75rem; }
.prose p { margin: 0 0 .85rem; }
.prose h3 { margin: 1.4rem 0 .5rem; font-size: .95rem; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.meas-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 .6rem; font-size: .9rem; }
.card-head + .meas-head { margin-top: .2rem; }
.grid td.nowrap { white-space: nowrap; }      


.map-tab { position: fixed; z-index: 35; bottom: 0; left: calc(50% + var(--sb-rail) / 2); transform: translateX(-50%);
           display: inline-flex; align-items: center; gap: .45rem; height: 2.3rem; margin: 0; padding: 0 1rem;
           border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface);
           color: var(--ink); font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); }
.map-tab:hover { background: var(--hover); }
.map-tab .i { width: 15px; height: 15px; }
.map-tab kbd { padding: 0 .35rem; border: 1px solid var(--line-strong); border-radius: 4px; font: 500 .68rem var(--mono);
               color: var(--muted); }                     
.map-tab .map-tab-chev { transform: rotate(180deg); transition: transform .2s; }
html.md-open .map-tab { visibility: hidden; }
.mapdrawer, .mapdrawer[hidden] { position: fixed; z-index: 36; left: var(--sb-rail); right: 0; bottom: 0; height: min(74vh, 780px);
             display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong);
             border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -16px 48px rgba(0, 0, 0, .45);
             visibility: hidden; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s; }
html.sb-expanded .mapdrawer { left: var(--sb-wide); }
html.md-open .mapdrawer { visibility: visible; transform: none; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.md-head { position: relative; display: flex; align-items: center; gap: .55rem; flex: none; height: 3.1rem; padding: .25rem .6rem 0 1rem;
           border-bottom: 1px solid var(--line); font-size: .9rem; }
.md-head .i { width: 16px; height: 16px; color: var(--accent); }
.md-grip { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px;
           background: var(--line-strong); }
.md-where { font-size: .82rem; }
.md-full { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; font-size: .82rem; font-weight: 600;
           color: var(--accent); white-space: nowrap; }
.md-full .i { width: 14px; height: 14px; }
.md-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--bg); }
.foot { padding-bottom: 3.25rem; }                   
main.frameless { max-width: none; padding: .6rem .75rem .75rem; }
.zrow-map { flex: none; align-self: center; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px;
            color: var(--muted); }
.zrow-map:hover { color: var(--accent); background: var(--accent-bg); }
.md-head { cursor: ns-resize; touch-action: none; user-select: none; }
.md-head a, .md-head button { cursor: pointer; }
html.md-dragging .mapdrawer { transition: none; }
html.md-dragging, html.md-dragging * { cursor: ns-resize !important; }
main.frameless .mapx-panel { bottom: .5rem; }       
@media (max-width: 600px) {
  .map-tab { display: none; }
  .mapdrawer, .mapdrawer[hidden] { left: 0; height: 88vh; z-index: 52; }
  html.md-open .dock { display: none; }             
}


.rp-period { display: flex; gap: .5rem; align-items: center; margin: 0; }
.rp-select { position: relative; display: inline-flex; }
.rp-select select { appearance: none; height: 2.25rem; margin: 0; padding: 0 2.3rem 0 .9rem; border: 1px solid var(--line-strong);
                    border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer; }
.rp-select .i { position: absolute; right: .7rem; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted);
                pointer-events: none; }
.rtabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }   
.rtabs a { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 8px;
           background: var(--chip); color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.rtabs a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.rtabs a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.rtabs .i { width: 16px; height: 16px; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 1.25rem; }
.rgrid .card { margin: 0; }
.rcard-sub { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted); }
.rbody { margin: 0; padding: 1.25rem 1.5rem; list-style: none; }
.rbars { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: .75rem 1rem; align-items: center; }
.rbars li { display: contents; }
.rbar-label { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.rbar-label a { color: inherit; }
.rbar-label a:hover { color: var(--ink); }
.rbar-track { display: block; height: 2rem; border-radius: 8px; background: var(--chip); overflow: hidden; }
.rbar-track svg, .rcat-track svg { display: block; width: 100%; height: 100%; }
.rbar-fill { fill: var(--btn); }
.rbar-value { font-size: .875rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcats { display: grid; gap: 1.1rem; }
.rcat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; font-size: .875rem; }
.rcat-name { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.rcat-name a { color: inherit; }
.rcat-value { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rcat-track { display: block; height: .5rem; border-radius: 999px; background: var(--chip); overflow: hidden; }
.rcat-line { margin: .35rem 0 0; font-size: .75rem; color: var(--muted); }
.rfill.s0 { fill: var(--series-other); } .rfill.s1 { fill: var(--series-1); } .rfill.s2 { fill: var(--series-2); }
.rfill.s3 { fill: var(--series-3); } .rfill.s4 { fill: var(--series-4); } .rfill.s5 { fill: var(--series-5); }
.rfill.s6 { fill: var(--series-6); }
.rinsights { margin: 0; padding: 0; list-style: none; }
.rinsights li { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; }
.rinsights li:first-child { border-top: 0; }
.ri-icon { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--accent-bg);
           color: var(--accent); }
.ri-icon .i { width: 16px; height: 16px; }
.ri-text { flex: 1; min-width: 0; line-height: 1.5; }
.rinsights .view-all { flex: none; margin-left: 0; }
.rtable .grid th { padding-top: .8rem; padding-bottom: .8rem; }   
.rtable .grid td { padding-top: .9rem; padding-bottom: .9rem; }
.rtable .grid td .sw { vertical-align: -1px; }
.rtable .zrow-map { margin: -.45rem 0; }
@media (max-width: 900px) { .rgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .rbody { padding: 1rem 1.1rem; }
  .rbar-track { height: 1.5rem; }
  .rbars { gap: .6rem .75rem; }
  .rinsights li { align-items: flex-start; padding: .8rem 1.1rem; }
  .rinsights .view-all { align-self: center; }
  .rtabs { margin-bottom: 1.1rem; }
}


.pfigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: .75rem 0 .35rem; overflow: hidden;
         border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.pfigs > div { display: grid; gap: .1rem; padding: .55rem .7rem; background: var(--surface); }
.pf-v { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-l { font-size: .72rem; color: var(--muted); }
.plist .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day-step { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.day-step .button { gap: .35rem; }
.i.flip { transform: rotate(180deg); }
.day-head { margin: 0 0 .45rem; font-size: .85rem; }
.day-people { margin-bottom: .8rem; }
.day-recent { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .65rem; }
.map-qhint { display: none; }
.mapx-search input { height: 2.1rem; margin: 0; box-shadow: var(--shadow); }
.map-qhint { display: block; position: absolute; left: .85rem; top: 1.05rem; transform: translateY(-50%); color: var(--muted);
             font-size: .85rem; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 1.7rem); }
.mapx-search input:valid + .map-qhint { display: none; }


main:has(> #mapx) { max-width: none; padding: .75rem; }
body:has(#mapx) .foot { max-width: none; }
body:has(#mapx) .map-tab { display: none; }           
main.frameless:has(> #mapx) { padding: .5rem; }
main.frameless .mapx { height: calc(100vh - 1rem); min-height: 300px; margin: 0; }
.s0 { --c: var(--series-other); } .s1 { --c: var(--series-1); } .s2 { --c: var(--series-2); } .s3 { --c: var(--series-3); }
.s4 { --c: var(--series-4); } .s5 { --c: var(--series-5); } .s6 { --c: var(--series-6); }
.mapx-bar { position: absolute; z-index: 7; top: .6rem; left: 3.3rem; right: .6rem; display: flex; flex-wrap: wrap; align-items: center;
            gap: .5rem; pointer-events: none; }
.mapx-bar > * { pointer-events: auto; }
.mapx-bar .seg { background: var(--surface); box-shadow: var(--shadow); }
.mapx-head { position: absolute; z-index: 4; left: 3.3rem; top: 3.15rem; max-width: calc(100% - 4rem); padding: .3rem .6rem; font-size: .8rem;
             background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
#mh-sub { color: var(--muted); }
.mh-clear { height: auto; margin: 0 0 0 .5rem; padding: 0; font-size: .78rem; color: var(--link); background: none; border: 0; cursor: pointer; }
.mh-clear:hover { text-decoration: underline; background: none; }


.shop .mk { transition: opacity .18s; }
.shop .mk.uncov .pill { fill: var(--map-paper); stroke: var(--line-strong); }
.shop .mk.uncov .pt { fill: var(--muted); }
.shop .mk .halo { display: none; fill: none; stroke: var(--c, var(--accent)); stroke-width: 1.2; }
.shop .mk.worked .halo { display: inline; animation: mk-halo 2.2s ease-in-out infinite; }
@keyframes mk-halo { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.shop .mk.lit.backup .pill { stroke-dasharray: 1.6 1.1; }
.shop .mk.lit.svc .pill { fill: var(--c); stroke: var(--c); }
.shop .mk.lit.svc .pt { fill: #ffffff; }
.shop .mk.lit.svc.s4 .pt { fill: #0b0b0b; }
.shop .av circle { fill: var(--c); stroke: var(--map-paper); stroke-width: .7; }
.shop .av text { font: 700 4.5px var(--mono); text-anchor: middle; fill: #ffffff; pointer-events: none; }
.shop .av.s4 text { fill: #0b0b0b; }
.shop .av.training circle { fill: var(--surface); stroke: var(--c); stroke-width: 1.2; }
.shop .av.training text { fill: var(--ink); }
.shop .av.backup circle { fill: var(--surface); stroke: var(--c); stroke-width: .8; stroke-dasharray: 1.5 1; }
.shop .av.backup text { fill: var(--ink-2); }
.shop.lens .ink { opacity: .5; }
.shop.lens .mk:not(.inlens):not(:hover) { opacity: .14; }
.shop.lens .av:not(.sel) { display: none; }
.shop.typed .mk.t-dim:not(:hover) { opacity: .14; }
.shop .mk.ping .pill { stroke: var(--ink); stroke-width: 2; }
.shop .mn { display: none; font: 500 4.5px "Geist", system-ui, sans-serif; text-anchor: middle; fill: var(--ink); pointer-events: none;
            paint-order: stroke; stroke: var(--map-paper); stroke-width: 1.3px; stroke-linejoin: round; }
.shop.names .zlabel, .shop.names .dlabel { opacity: .5; }   
.shop.names .mn, .shop.lens .mk.inlens .mn, .shop.typed .mk.t-match .mn, .shop .mk:hover .mn, .shop .mk.focus .mn { display: inline; }
.shop .reach path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85;
                    pointer-events: none; animation: reach-in .3s ease-out; }
.shop .reach .rl.training { stroke-dasharray: 1 5; stroke-width: 2.4; }
.shop .reach .rl.backup { stroke-dasharray: 5 5; opacity: .55; }
.shop .reach .rl.moved { stroke-width: 2.4; opacity: 1; }
.shop .arrow-head { fill: context-stroke; }
@keyframes reach-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .shop .mk.worked .halo, .shop .reach path { animation: none; } }

.shop .bub { fill: var(--accent); fill-opacity: .24; stroke: var(--accent); stroke-width: .7; transition: r .3s ease-out; }
.shop .bubn { font: 700 5.2px var(--mono); text-anchor: middle; fill: var(--ink); pointer-events: none;
              paint-order: stroke; stroke: var(--map-paper); stroke-width: 1.5px; stroke-linejoin: round; }
.shop.view-production .mk.p-none { opacity: .3; }


.mapx-card { position: absolute; z-index: 8; width: 290px; padding: .65rem .8rem; font-size: .8rem; pointer-events: none; background: var(--surface);
             border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.mc-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 600; }
.mc-sub { color: var(--muted); font-size: .75rem; }
.mc-sec { display: grid; gap: .28rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.mc-row { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.mc-row > .mc-grow { flex: 1; min-width: 0; }
.mc-state { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.mc-more { margin-top: .45rem; color: var(--muted); font-size: .72rem; }


.pav { flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c); color: #ffffff;
       font: 700 .62rem var(--mono); }
.pav.s4 { color: #0b0b0b; }
.pav.small { width: 1.3rem; height: 1.3rem; font-size: .55rem; }
.pav.training { background: transparent; box-shadow: inset 0 0 0 2px var(--c); color: var(--ink); }
.pav.backup { background: transparent; border: 1.5px dashed var(--c); color: var(--ink-2); }
.mapx-figs { margin: 0; }
.mapx-h .ppl-all { float: right; font-size: .75rem; letter-spacing: 0; text-transform: none; }
.pcards { display: grid; gap: .1rem; margin: 0 -.45rem; padding: 0; list-style: none; }
.pcard { padding: .45rem; border: 1px solid transparent; border-radius: 8px; transition: background .12s; }
.pcard:hover { background: var(--hover); }
.pcard.on { border-color: var(--ink); }
.pc-head { display: flex; align-items: center; gap: .5rem; color: var(--ink); }
.pc-head:hover { text-decoration: none; }
.pc-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; }
.pc-hours { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-last { margin: .12rem 0 .35rem 2.1rem; font-size: .73rem; color: var(--muted); }
.pc-wcs { display: flex; flex-wrap: wrap; gap: .22rem; margin-left: 2.1rem; }
.wcchip { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.3rem; padding: 0 .36rem; border: 1.5px solid transparent;
          border-radius: 999px; font: 600 .68rem var(--mono); color: var(--ink); }
a.wcchip:hover { text-decoration: none; filter: brightness(1.2); }
.wcchip.trained, .wcchip.svc { background: var(--c); color: #ffffff; }
.wcchip.trained.s4, .wcchip.svc.s4 { color: #0b0b0b; }
.wcchip.training { border-color: var(--c); }
.wcchip.backup { border: 1.5px dashed var(--c); color: var(--ink-2); }
.mapx-key { padding-top: .6rem; border-top: 1px solid var(--line); }
.mapx-group button.chip { height: auto; margin: 0; font-size: .78rem; cursor: pointer; }
.mapx-group button.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mapx-more summary { margin: 0; cursor: pointer; }
.mapx-more[open] summary { margin-bottom: .55rem; }
.mapx-dl { margin: .55rem 0 .4rem; }
.day-pick { margin-top: .6rem; }


.mapx-days { flex: none; display: flex; align-items: center; gap: .35rem; padding: .3rem .5rem; overflow-x: auto; background: var(--surface);
             border: 1px solid var(--line); border-radius: 12px; }
.mapx-days #map-play { flex: none; margin: 0; white-space: nowrap; }
.dlist { flex: 1; display: flex; align-items: flex-end; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.dcell { display: grid; justify-items: center; gap: .08rem; min-width: 3.5rem; padding: .2rem .35rem; border-radius: 8px; color: var(--ink-2); }
.dcell:hover { background: var(--hover); text-decoration: none; }
.dcell.on { background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.dbar { display: block; width: 14px; height: 28px; }
.dfill { fill: var(--series-other); }
.dcell.on .dfill { fill: var(--accent); }
.dnum { font-size: .78rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlab { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.dstep { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; color: var(--ink-2); }
.dstep:hover { background: var(--hover); }
.dstep[hidden] { display: none; }
.prank { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: .45rem .6rem; align-items: center; margin: 0; padding: 0; font-size: .82rem; list-style: none; }
.prank li { display: contents; }
.pbar { display: block; width: 100%; height: 6px; }
.pfill { fill: var(--accent); }
.pnum { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }


@media (max-width: 1100px) {
  .mapx, main.frameless .mapx { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .mapx-side { display: contents; }
  .mapx-stage { height: calc(100vh - 13.5rem); min-height: 420px; }
  main.frameless .mapx-stage { height: calc(100vh - 9.5rem); min-height: 320px; }
  .mapx-side > * { width: 100%; }
  .mapx-people { order: -1; padding: .45rem .5rem; }
  .mapx-people > .mapx-h, .mapx-people > .mapx-key { display: none; }
  .mapx-people .pcards { display: flex; gap: .3rem; margin: 0; overflow-x: auto; }
  .mapx-people .pcard { flex: 0 0 14.5rem; background: var(--bg); }
  .mapx-figs { order: 1; }
  .mapx-head { display: none; }
}
@media (max-width: 600px) {
  .mapx-stage { height: calc(100vh - 15rem); min-height: 380px; }
  .mapx-bar { left: 3.1rem; }
  .mapx-search { flex: 1 1 100%; }
  .mapx-card { display: none; }
}


.walks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem 1.5rem; }
.walk-fig { margin: 0; min-width: 0; }
.walk-fig figcaption { margin-bottom: .35rem; font-size: .85rem; font-weight: 600; }
.chart.walk { width: 100%; height: auto; }
.chart.walk .band { fill: var(--ok-bg); stroke: var(--ok); stroke-width: .8; stroke-dasharray: 3 2; }
.chart.walk .lim { stroke: var(--ok); stroke-width: 1; stroke-dasharray: 3 2; }
.chart.walk .pt { stroke: var(--surface); stroke-width: 1; }
.chart.walk .pt.in { fill: var(--ok); } .chart.walk .pt.out { fill: var(--bad); } .chart.walk .pt.nj { fill: var(--muted); }
.chart.walk .mean { stroke: var(--ink); stroke-width: 1.6; }
.chart.walk .walk-line { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .5; }   
.walk-note { margin: .35rem 0 0; font-size: .75rem; color: var(--muted); line-height: 1.5; }

.timesheet td, .timesheet th { vertical-align: top; }
.timesheet .ts-h { font-weight: 600; font-variant-numeric: tabular-nums; }
.timesheet .ts-t { color: var(--muted); font-size: .75rem; white-space: nowrap; margin-top: .1rem; }
.timesheet .ts-t + .ts-h { margin-top: .4rem; }
.timesheet .pill { margin-top: .3rem; }
.grid tfoot th { font-weight: 600; border-top: 1px solid var(--line-strong); background: var(--surface); }

#issue-table td.ref { width: 11rem; max-width: 11rem; }
#issue-table td:nth-child(3) { min-width: 18rem; }

.grid .ts-t { color: var(--muted); font-size: .75rem; margin-top: .1rem; }
#crew-table .ts-t { white-space: nowrap; }


main:not(.solo) .page-head { margin-bottom: 1.1rem; }
.sec { margin: 0 0 2.5rem; border-top: 1px solid var(--line-strong); padding-top: .7rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: 0 0 .7rem; }
.sec-head h2, main:not(.solo) .card-head h2 { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sec-head h2 a { color: inherit; }
.sec-count { font-family: var(--mono); font-size: .75rem; color: var(--ink); }
.sec-note { margin: -1rem 0 2rem; font-size: .8125rem; color: var(--muted); }
.go { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.go .i { width: 13px; height: 13px; }
.go:hover { color: var(--ink); text-decoration: none; }
.tag { display: inline-block; margin-left: .5rem; padding: 0 .35rem; border: 1px solid var(--line-strong); border-radius: 3px; font-size: .625rem; font-weight: 500; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase; color: var(--muted); vertical-align: .08em; }


.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); grid-template-areas: "lead lead" "main side"; gap: 0 3rem; align-items: start; }
.sheet-lead { grid-area: lead; }
.sheet-main { grid-area: main; min-width: 0; }
.sheet-side { grid-area: side; min-width: 0; position: sticky; top: 4rem; }
@media (max-width: 1180px) { .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "side" "main"; } .sheet-side { position: static; margin-bottom: 2.5rem; } }
.lead { margin: 0 0 2.25rem; }
.lead-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 0 0 .55rem; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lead-kicker .mono { font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.lead-kicker .go { font-weight: 400; letter-spacing: 0; text-transform: none; }
.lead-line { max-width: 44ch; margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 400; line-height: 1.22; letter-spacing: -.025em; color: var(--muted); }
.lead-line strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }


.cov { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8125rem; }
.cov th { font-size: .6875rem; font-weight: 500; color: var(--muted); text-align: left; padding: 0 0 .25rem; vertical-align: bottom; }
.cov td { padding: 0; vertical-align: middle; border-top: 1px solid var(--line); }
.cov .cov-who { width: 13.5rem; white-space: nowrap; }
.cov td.cov-who a { color: var(--ink); font-weight: 500; }
.cov .cov-time { width: 10.5rem; padding-left: 1.25rem; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.cov th.cov-time { font-family: inherit; font-size: .6875rem; color: var(--muted); }
.cov .cov-hours { width: 4rem; text-align: right; }
.cov .cov-wc { width: 7.5rem; padding-left: 1.25rem; color: var(--ink-2); font-size: .75rem; }
.cov th.cov-wc { font-size: .6875rem; color: var(--muted); }
.cov .cov-plot { padding: 0; }
.cov svg { display: block; overflow: visible; }
.cov-axis text { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.cov .tick { stroke: var(--grid); stroke-width: 1; }
.cov .tick.mid { stroke: var(--line-strong); }
.cov .bar { fill: var(--ink); }
.cov .bar.train { fill: var(--muted); opacity: .55; }
.cov tfoot th { padding: .5rem 0 0; border-top: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.cov tfoot th.cov-hours { font-family: var(--mono); font-size: .92em; }
@media (max-width: 900px) {
  .cov, .cov tbody, .cov thead, .cov tfoot { display: block; }
  .cov thead tr { display: block; }
  .cov thead th { display: none; }
  .cov thead th.cov-plot { display: block; }
  .cov tbody tr, .cov tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: .55rem 0 .35rem; border-top: 1px solid var(--line); }
  .cov td { display: block; border: 0; }
  .cov .cov-who, .cov .cov-time, .cov .cov-hours, .cov .cov-wc { width: auto; padding-left: 0; }
  .cov td.cov-who { grid-column: 1; grid-row: 1; }
  .cov td.cov-hours { grid-column: 2; grid-row: 1; }
  .cov td.cov-time { grid-column: 1; grid-row: 2; white-space: normal; }
  .cov td.cov-wc { grid-column: 2; grid-row: 2; text-align: right; }
  .cov td.cov-plot { grid-column: 1 / -1; grid-row: 3; margin-top: .2rem; }
  .cov td.cov-plot svg { height: 22px; }
  .cov tfoot th { display: block; border: 0; padding: 0; }
  .cov tfoot th.cov-plot, .cov tfoot th.cov-time, .cov tfoot th.cov-wc { display: none; }
  .cov tfoot tr { border-top: 1px solid var(--line-strong); }
}


.ledger { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.ledger thead th { padding: 0 1rem .4rem 0; font-size: .6875rem; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.ledger th.num, .ledger td.num { text-align: right; padding-right: 0; padding-left: 1rem; }
.ledger .lg-wc-h { width: 8rem; }
.lg-group { border-top: 1px solid var(--line); }
.lg-group > tr > td { padding: .55rem 1rem .55rem 0; vertical-align: baseline; }
.lg-group > tr > td.num { padding-right: 0; padding-left: 1rem; }
th.lg-wc { padding: .55rem 1rem .55rem 0; text-align: left; vertical-align: baseline; font-family: var(--mono); font-size: .875rem; font-weight: 600; white-space: nowrap; }
th.lg-wc a:first-child { color: var(--ink); }
.lg-map { margin-left: .45rem; color: var(--muted); opacity: .75; }
.lg-map .i { width: 12px; height: 12px; vertical-align: -1px; }
.lg-map:hover { color: var(--ink); opacity: 1; }
.lg-pn { font-family: var(--mono); font-size: .8125rem; color: var(--ink); white-space: nowrap; }
.lg-who { display: block; font-size: .75rem; color: var(--muted); }
.lg-op { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }
.lg-wo { display: inline-block; margin-right: .9rem; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.lg-wo b { font-weight: 500; color: var(--ink); }
.lg-qty { font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--ink); }
.lg-setups { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }
.lg-group > tr.lg-note > td { padding: 0 0 .65rem; }
.lg-note p { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.ledger tfoot th, .ledger tfoot td { padding: .55rem 0 0; border-top: 1px solid var(--line-strong); font-weight: 600; }
.ledger tfoot .num { padding-left: 1rem; }
@media (max-width: 760px) {
  .ledger, .ledger tbody, .ledger tfoot { display: block; }
  .ledger thead { display: none; }
  .lg-group { display: block; padding: .55rem 0; }
  th.lg-wc { display: block; padding: 0 0 .25rem; }
  .lg-group > tr.lg-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .9rem; padding: .25rem 0; }
  .lg-group > tr.lg-line > th.lg-wc { grid-column: 1 / -1; }
  .lg-group > tr > td, .lg-group > tr > td.num { display: block; padding: 0; }
  .lg-part { grid-column: 1; }
  .lg-op { display: none; }
  .lg-orders { grid-column: 1 / -1; grid-row: 3; }
  .lg-group > tr.lg-note { display: block; }
  .lg-group > tr.lg-note > td { padding: .1rem 0 .4rem; }
  .ledger tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .9rem; }
  .ledger tfoot td[colspan] { display: none; }
  .ledger tfoot th, .ledger tfoot td { display: block; }
}


.opn-panel { border-top: 1px solid var(--line-strong); padding-top: .7rem; }
.opn { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .1rem .4rem; padding: .85rem 0 .9rem; border-top: 1px solid var(--line); color: inherit; }
.opn:hover { text-decoration: none; background: var(--hover); box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); }
.opn-n { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.opn-body { display: grid; gap: .2rem; min-width: 0; }
.opn-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.opn-title .i { flex: none; width: 14px; height: 14px; color: var(--muted); }
.opn:hover .opn-title .i { color: var(--ink); }
.opn-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.opn-sub { font-size: .75rem; line-height: 1.4; color: var(--muted); }


.oplist, .qlist { list-style: none; margin: 0; padding: 0; }
.oplist > li, .qlist > li { border-top: 1px solid var(--line); }
.opr { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 11.5rem 7rem; gap: 0 1.25rem; align-items: baseline; padding: .65rem 0; color: inherit; }
.opr:hover, .qr-main:hover { background: var(--hover); box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); text-decoration: none; }
.opr-ref, .qr-code { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.opr-text { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.opr-status { display: flex; align-items: baseline; gap: .4rem; font-size: .75rem; color: var(--ink-2); }
.opr-status .dot { flex: none; align-self: center; }
.opr-age { display: grid; gap: .3rem; }
.opr-days { font-family: var(--mono); font-size: .75rem; color: var(--ink); text-align: right; }
.opr-age svg { display: block; }
.opr-age .track { fill: var(--line); }
.opr-age .fill { fill: var(--ink-2); }
.oplist-none { padding: .65rem 0; font-size: .8125rem; color: var(--muted); }
.qr { display: flex; align-items: baseline; gap: .5rem; }
.qr-main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 5rem minmax(0, 1fr) 9.5rem 6.25rem 4.25rem; gap: 0 1.25rem; align-items: baseline; padding: .75rem 0; color: inherit; }
.qr-body { display: grid; gap: .15rem; min-width: 0; }
.qr-part { font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--ink); }
.qr-head { display: flex; flex-wrap: wrap; gap: 0 .9rem; align-items: baseline; }
.qr-head:empty { display: none; }
.qr-wc { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.qr-text { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.qr-who { font-size: .75rem; color: var(--ink-2); }
.qr-date { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.qr-age { font-family: var(--mono); font-size: .75rem; color: var(--ink); text-align: right; white-space: nowrap; }
.zrow-map-none { flex: none; width: 15px; }
.qr .zrow-map { flex: none; align-self: center; }
@media (max-width: 1100px) {
  .opr { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .9rem; }
  .opr-ref { grid-column: 1; }
  .opr-age { grid-column: 2; grid-row: 1; min-width: 4.5rem; }
  .opr-text { grid-column: 1 / -1; }
  .opr-status { grid-column: 1 / -1; }
  .qr-main { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .9rem; }
  .qr-code { grid-column: 1; }
  .qr-age { grid-column: 2; grid-row: 1; }
  .qr-body { grid-column: 1 / -1; }
  .qr-who { grid-column: 1; }
  .qr-date { grid-column: 2; }
}


.rec-head { margin-bottom: .9rem; }
.rec-head h1 { font-family: var(--mono); font-size: 1.75rem; letter-spacing: -.04em; margin: 0; }
.tblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; margin: 1px 1px 1.4rem; }
.tblock > div { padding: .55rem .75rem .65rem; background: var(--bg); min-width: 0; box-shadow: 0 0 0 1px var(--line-strong); }
.tblock dt { margin: 0 0 .2rem; font-size: .625rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tblock dd { margin: 0; font-size: .875rem; color: var(--ink); overflow-wrap: anywhere; }
.tblock dd .dot { margin-right: .35rem; }
#timesheet th a { color: inherit; }
section.sheet { display: block; }
.sheet-head .links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 26rem; gap: 2rem; align-items: start; }
.sh-side { display: grid; gap: 1.25rem; min-width: 0; }
.shl { list-style: none; margin: 0; padding: 0; }
.shr { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 12rem; gap: .15rem 1rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 4rem; }
.shr-wc { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.shr-m, .shr-t { font-size: .8125rem; color: var(--ink); }
.shr-t { font-size: .75rem; color: var(--ink-2); }
.shr-line { display: block; }
.shr-sub { grid-column: 2 / -1; font-size: .75rem; line-height: 1.45; color: var(--muted); }
.shr-note { color: var(--ink-2); }
.shr-lede { margin: 0 0 .9rem; max-width: 82ch; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1100px) { .sh-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .shr { grid-template-columns: minmax(0, 1fr); } .shr-sub { grid-column: 1; } }
#settings-table td a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tl-day { padding: 1.4rem 0 .45rem; border-bottom: 1px solid var(--line-strong); list-style: none; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tl-day:first-child { padding-top: .25rem; }
#timeline-list .zrow { padding-top: 0; padding-bottom: 0; }
#timeline-list .zrow-main { display: flex; flex-flow: row wrap; align-items: baseline; gap: 0 .75rem; padding-top: .45rem; padding-bottom: .45rem; }
#timeline-list .zrow-fig { display: flex; flex-direction: row; align-items: baseline; gap: 1.25rem; font-family: var(--mono); font-size: .75rem; }
.pager a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cal .tag { border: 0; padding: 0; background: none; font-size: .625rem; letter-spacing: .04em; }
#prod-days .zrow-edit { color: var(--muted); }
.tblock dd a, .zrow-title a, #wc-table td a, #crew-table td a, #timesheet td a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
#wc-table td:first-child a { font-family: var(--mono); font-size: .8125rem; font-weight: 600; }
.jr-main.pm { grid-template-columns: 7.5rem 11rem minmax(0, 1fr) 4.25rem; }
.rec-summary { max-width: 78ch; margin: 0 0 2rem; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.008em; color: var(--ink); }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.ev { border: 0; border-radius: 0; background: transparent; }
.ev img { aspect-ratio: 4 / 3; border-radius: 0; }
.ev figcaption { padding: .5rem 0 0; font-size: .8125rem; line-height: 1.4; }
.ev-data { margin-top: .15rem; }
.ev-data summary { cursor: pointer; font-size: .6875rem; color: var(--muted); }


main:not(.solo) .card:not(.alert):not(.narrow) { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; padding: .7rem 0 0; margin: 0 0 2.5rem; overflow: visible; }
main:not(.solo) .card-head { margin-bottom: .7rem; padding: 0; border: 0; background: transparent; }
main:not(.solo) .card > .table-wrap, main:not(.solo) .card.zcard > .table-wrap { margin: 0; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
main:not(.solo) .card > .table-wrap .grid tr > :first-child, main:not(.solo) .card.zcard > .table-wrap .grid tr > :first-child { padding-left: 0; }
main:not(.solo) .card > .table-wrap .grid tr > :last-child, main:not(.solo) .card.zcard > .table-wrap .grid tr > :last-child { padding-right: 0; }
main:not(.solo) .zrow { padding: .75rem 0; }
main:not(.solo) .zrow:hover { box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); }
main:not(.solo) .zcard .zempty { padding: .75rem 0; }
.seal { max-width: none; font-size: .75rem; border-top: 1px solid var(--line-strong); }

.cov .cov-tick { stroke: var(--grid); stroke-width: 1; }
.cov .cov-tick.mid { stroke: var(--line-strong); }
.cov .cov-span { fill: var(--ink); }
.cov .cov-span.train { fill: var(--muted); opacity: .6; }
.lead-line { text-wrap: balance; }
.sec .dot, .tblock .dot { display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--muted); vertical-align: .08em; }
.sec .dot.warn, .tblock .dot.warn { background: var(--warn); }
.sec .dot.good, .tblock .dot.good { background: var(--accent); }
main:not(.solo) .card.zcard > .card-head { margin: 0 0 .7rem; padding: 0; border: 0; }
.qr .zrow-map, .zrow-map-none, .jr .zrow-map { flex: none; width: 2rem; }
.zrecord-main .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .zrecord-main .gallery { grid-template-columns: minmax(0, 1fr); } }

.kpis.tiles { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; gap: 0; }
.kpis.tiles .kpi, .kpis.tiles .kpi:last-child { background: transparent; border: 0; padding: .7rem 1.25rem .8rem 0; }
.kpis.tiles .kpi-icon { display: none; }
.kpis.tiles .kpi-label { grid-column: 1 / -1; font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; }
.kpis.tiles .kpi-value { font-size: 1.5rem; letter-spacing: -.03em; }

.jlist { list-style: none; margin: 0; padding: 0; }
.jr { display: flex; align-items: baseline; gap: .5rem; border-top: 1px solid var(--line); }
.jr-main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 7.5rem 11rem minmax(0, 1fr) 9.5rem 4.25rem; gap: 0 1.25rem; align-items: baseline; padding: .6rem 0; color: inherit; }
.jr-main:hover { background: var(--hover); box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); text-decoration: none; }
.jr-day { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.jr-where { font-size: .8125rem; font-weight: 500; color: var(--ink); }
.jr-what { font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.jr-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-top: .1rem; font-size: .75rem; color: var(--muted); }
.jr-who { font-size: .75rem; color: var(--ink-2); }
.jr-fig { font-family: var(--mono); font-size: .75rem; color: var(--ink); text-align: right; white-space: nowrap; }
.jr .zrow-map { align-self: center; }
.wk { border-top: 1px solid var(--line); }
.wk > summary { display: grid; grid-template-columns: 11rem 4.5rem minmax(0, 1fr) 1rem; gap: 0 1.25rem; align-items: baseline; padding: .6rem 0; cursor: pointer; list-style: none; }
.wk > summary::-webkit-details-marker { display: none; }
.wk > summary:hover { background: var(--hover); box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); }
.wk-mon { font-size: .8125rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.wk-n { font-family: var(--mono); font-size: .75rem; color: var(--ink); white-space: nowrap; }
.wk-where { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-chev { width: 13px; height: 13px; color: var(--muted); align-self: center; transition: transform .12s; }
.wk[open] > summary .wk-chev { transform: rotate(90deg); }
.wk[open] > .jlist { padding-bottom: .5rem; }
@media (max-width: 1100px) {
  .jr-main { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .9rem; }
  .jr-where { grid-column: 1; grid-row: 1; }
  .jr-fig { grid-column: 2; grid-row: 1; }
  .jr-what { grid-column: 1 / -1; }
  .jr-day { grid-column: 1; }
  .jr-who { grid-column: 2; text-align: right; }
  .wk > summary { grid-template-columns: minmax(0, 1fr) auto 1rem; gap: .1rem .75rem; }
  .wk-where { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
}

.prog-line { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; color: var(--muted); }
.prog-line strong { font-weight: 600; color: var(--ink); }
.prog { display: block; }
.prog .track { fill: var(--line); }
.prog .fill { fill: var(--ink); }
.cl-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 11.5rem auto; gap: 0 1.25rem; align-items: baseline; padding: .65rem 0; border-top: 1px solid var(--line); }
.clgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cl-cell { display: grid; align-content: start; gap: .1rem; min-width: 0; padding: .5rem .75rem .55rem 0; }
.cl-noted { margin-top: 0; }
.opr-ref a, .cl-wc a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cl-wc { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cl-sub, .cl-note, .cl-date { font-size: .6875rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.cl-note { color: var(--ink-2); font-size: .75rem; }
.cl-date { font-family: var(--mono); }
@media (max-width: 760px) { .cl-row { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .9rem; } .cl-row .opr-text { grid-column: 1 / -1; grid-row: 2; } }
.cl-row .opr-ref { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .lg-group > tr.lg-line { grid-template-columns: minmax(0, 1fr) auto; }
  .lg-group > tr.lg-line > .lg-part { grid-column: 1; grid-row: 1; }
  .lg-group > tr.lg-line > .lg-qty { grid-column: 2; grid-row: 1; }
  .lg-group > tr.lg-line > .lg-op { grid-column: 1; grid-row: 2; font-size: .75rem; color: var(--muted); }
  .lg-group > tr.lg-line > .lg-op:not(:empty)::before { content: "Op "; }
  .lg-group > tr.lg-line > .lg-setups { grid-column: 2; grid-row: 2; font-size: .75rem; color: var(--muted); }
  .lg-group > tr.lg-line > .lg-setups:not(:empty)::before { content: "Setups "; }
  .lg-group > tr.lg-line > .lg-orders { grid-column: 1 / -1; grid-row: 3; }
  .ledger tfoot tr { padding-top: .5rem; border-top: 1px solid var(--line-strong); }
  .ledger tfoot th, .ledger tfoot td { border: 0; padding: 0; }
}


.opr, .qr-main, .jr-main { position: relative; padding-right: 1.4rem; }
.opr::after, .qr-main::after, .jr-main::after { content: ""; position: absolute; right: .35rem; top: 1.1rem; width: .36rem; height: .36rem; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.opr:hover::after, .qr-main:hover::after, .jr-main:hover::after { border-color: var(--ink); }
.cov-extra { display: block; font-size: .6875rem; color: var(--muted); white-space: nowrap; }
.day-rows { margin: 0 0 2.5rem; border-bottom: 1px solid var(--line); }
.day-rows .wk-where { font-size: .75rem; }

.wc-dept th { padding: 1.5rem 0 .45rem; border-bottom: 1px solid var(--line-strong); background: transparent; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-align: left; text-transform: uppercase; color: var(--muted); }
.wc-dept .sec-count { margin-left: .6rem; letter-spacing: 0; }
#wc-list > tr.wc-dept:first-child th { padding-top: .25rem; }

.tm { border-collapse: collapse; font-size: .8125rem; }
.tm thead th { padding: 0 1.1rem .5rem 0; font-size: .75rem; font-weight: 500; line-height: 1.25; text-align: center; vertical-align: bottom; }
.tm thead th a { color: var(--ink-2); }
.tm th.tm-wc { padding-right: 2rem; text-align: left; white-space: nowrap; font-family: var(--mono); font-size: .8125rem; font-weight: 600; }
.tm thead th.tm-wc { font-family: inherit; font-size: .75rem; font-weight: 500; color: var(--muted); vertical-align: bottom; }
.tm tbody th a { color: var(--ink); }
.tm tbody tr { border-top: 1px solid var(--line); }
.tm tbody th, .tm tbody td { padding: .42rem 1.1rem .42rem 0; }
.tm tbody td { min-width: 5.25rem; text-align: center; line-height: 0; }
.tm-full { fill: var(--ink); }
.tm-ring { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.tm-half { fill: var(--ink); }
.tm-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; margin-left: auto; font-size: .75rem; color: var(--muted); }
.tm-legend svg { margin-left: .7rem; }

.rbar-track { height: .5rem; border-radius: 2px; background: var(--line); }
.rbar-fill { fill: var(--ink); }
.ri-icon { display: none; }
@media (max-width: 760px) { .rbar-track { height: .5rem; } }
.sec .table-wrap { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
@media (max-width: 760px) { .zrow-map-none { display: none; } }


.lead-small { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.wklist { list-style: none; margin: 0; padding: 0; }
.wkr { display: flex; align-items: baseline; gap: .75rem; border-top: 1px solid var(--line); }
.wkr .zrow-edit { font-size: .75rem; }
.wkr-main { position: relative; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 11.5rem minmax(4rem, 1fr) 5rem minmax(0, 15rem); gap: 0 1.25rem; align-items: center; padding: .6rem 1.4rem .6rem 0; color: inherit; }
.wkr-main::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .36rem; height: .36rem; margin-top: -.18rem; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.wkr-main:hover { background: var(--hover); box-shadow: -.6rem 0 0 var(--hover), .6rem 0 0 var(--hover); text-decoration: none; }
.wkr-main:hover::after { border-color: var(--ink); }
.wkr-mon { font-size: .8125rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.wkr-bar svg { display: block; }
.wkr-bar .track { fill: var(--line); }
.wkr-bar .fill { fill: var(--ink); }
.wkr-fig { font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--ink); text-align: right; white-space: nowrap; }
.wkr-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-head h2 .mono { font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (max-width: 760px) {
  .wkr-main { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .9rem; }
  .wkr-mon { grid-column: 1; grid-row: 1; }
  .wkr-fig { grid-column: 2; grid-row: 1; }
  .wkr-bar { grid-column: 1 / -1; grid-row: 2; }
  .wkr-sub { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
}

.hledger { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.hledger th, .hledger td { padding: .5rem 0 .5rem 1.1rem; border-top: 1px solid var(--line); white-space: nowrap; }
.hledger th:first-child { padding-left: 0; text-align: left; font-weight: 500; }
.hledger th a { color: inherit; }
.hledger thead th { padding-top: 0; border-top: 0; font-size: .6875rem; font-weight: 500; color: var(--muted); text-align: right; }
.hledger thead th:first-child { text-align: left; }
.hledger tbody th a { color: var(--ink); }
.hledger td { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); text-align: right; }
.hledger .hl-total { color: var(--ink); font-weight: 600; }
.hledger tfoot th, .hledger tfoot td { border-top: 1px solid var(--line-strong); font-weight: 600; color: var(--ink); }

main:not(.solo) .pill { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .75rem; font-weight: 500; color: var(--ink-2); }
main:not(.solo) .pill.warn { color: var(--ink-2); }
main:not(.solo) .pill.bad { color: var(--bad); }
main:not(.solo) .zrow-title { font-size: .875rem; }
main:not(.solo) .zrow-sub { font-size: .8125rem; }
main:not(.solo) .zrow-note { font-size: .8125rem; }
main:not(.solo) .zrow-fig { font-size: .8125rem; }
main:not(.solo) .details { font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.zrecord { gap: 2.5rem; }

.rtabs a { padding: .45rem .75rem; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: .8125rem; }
.rtabs a:hover { background: transparent; color: var(--ink); text-decoration: none; }
.rtabs a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.rtabs .i { display: none; }
.rtabs { border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; gap: 0; }
.rgrid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }


main.gl-main { max-width: none; margin: 0; padding: 0; }
.gl { position: fixed; inset: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 30rem; align-items: center; overflow: hidden auto; color: #f2f3f5;
  background: radial-gradient(70% 90% at 30% 50%, #171a1e 0%, #0d0f12 52%, #07080a 100%); }
.gl-stage { position: fixed; inset: 0; }
.gl-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.gl-on .gl-canvas { opacity: 1; }
.gl-fallback { position: absolute; top: 50%; left: 30%; width: min(92vh, 62vw); height: auto; margin: 0; transform: translate(-50%, -50%); animation: gl-turn 60s linear infinite; }
.gl-on .gl-fallback { display: none; }
@keyframes gl-turn { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gl-fallback { animation: none; } .gl-canvas { transition: none; } }
.gl-panel { position: relative; z-index: 2; grid-column: 2; padding: 5rem 4rem 2rem 2rem; white-space: normal; }  
.gl-panel h1 { margin: 0 0 2.25rem; font-size: 2rem; font-weight: 600; letter-spacing: -.025em; color: #fff; }
.gl-panel label { display: block; margin: 0 0 .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #8d939b; }
.gl-panel input:not([type="hidden"]) { display: block; width: 100%; height: 2.75rem; padding: 0; background: transparent; border: 0; border-bottom: 1px solid #3b4047; border-radius: 0; box-shadow: none; font-size: 1rem; color: #fff; caret-color: #fff; transition: border-color .2s; }
.gl-panel input:not([type="hidden"]):focus { outline: 0; border-bottom-color: #fff; box-shadow: none; }
.gl-panel input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.gl-panel button[type="submit"] { display: block; width: 100%; height: 2.75rem; margin-top: 2rem; background: #f2f3f5; border: 0; border-radius: 2px; font-size: .875rem; font-weight: 600; color: #08090a; cursor: pointer; transition: background .2s; }
.gl-panel button[type="submit"]:hover { background: #fff; }
.gl-panel button[type="submit"]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gl-panel .error { margin: 0 0 1.5rem; font-size: .8125rem; color: #ff8a80; }
.gl-panel label + input + label { margin-top: 1.5rem; }
.acct { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.acct-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; font-size: .875rem; color: var(--ink); }
.acct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 16rem)) max-content; gap: .75rem; align-items: end; }
.acct-form button { width: auto; margin: 0; }
.acct-form label { display: block; margin: 0 0 .2rem; font-size: .75rem; color: var(--muted); }
@media (max-width: 760px) { .acct-form { grid-template-columns: minmax(0, 1fr); } }
.gl-help { margin-top: 1.5rem; font-size: .8125rem; color: #8d939b; }
.gl-help summary { cursor: pointer; list-style: none; }
.gl-help summary::-webkit-details-marker { display: none; }
.gl-help summary:hover { color: #c8ccd2; }
.gl-help p { margin: .5rem 0 0; line-height: 1.5; }
.gl-note { margin: 0 0 1.5rem; font-size: .8125rem; line-height: 1.5; color: #8d939b; }
.gl-note a { color: #c8ccd2; }
body:has(.gl) .solo-head { position: fixed; top: 2.25rem; right: 0; left: auto; z-index: 3; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; width: 30rem; margin: 0; padding: 0 4rem 0 2rem; background: none; border: 0; font-size: .9375rem; letter-spacing: .01em; color: #fff; }
body:has(.gl) .solo-head .mark { display: none; }
body:has(.gl) .solo-head { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; }
main.gl-main .flash { position: fixed; top: 1rem; left: 50%; z-index: 5; transform: translateX(-50%); }
@media (max-width: 900px) {
  .gl { position: fixed; display: block; overflow: auto; }
  .gl-stage { position: relative; inset: auto; height: 44vh; margin-top: 3rem; }
  .gl-fallback { left: 50%; width: min(42vh, 86vw); }
  .gl-panel { padding: .5rem 1.5rem 2.5rem; max-width: 30rem; margin: 0 auto; }
  main.gl-main .flash { top: 3rem; width: max-content; max-width: 90vw; }
  body:has(.gl) .solo-head { top: 1rem; right: auto; left: 0; width: auto; padding: 0 1.25rem; }
}


main a:not([class]), .mapx a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
main a:not([class]):hover, .mapx a:not([class]):hover { text-decoration-color: currentColor; }
main nav a:not([class]), .rtabs a, .tabs a { text-decoration: none; }
.mapx-panel a:not(.button) { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.mapx:has(.mapx-panel:not([hidden])) .mapx-head { display: none; }
.mapx:has(.mapx-panel:not([hidden])) .mapx-bar { right: 346px; }   
.zrow-edit { color: var(--muted); }
main { overflow-wrap: break-word; }
@media print {
  .sh-grid { display: flex; flex-direction: column-reverse; gap: .75rem; }
  .sh-side .sec, .shr { break-inside: avoid; }
  .sec-head { break-after: avoid; }
  .day-step { display: none; }
}
