/* FESLAB UI standard · feslab.css · pack 9
   Drawing-sheet house style for FESLAB apps. Paper space (light, monochrome) and model space
   (dark, AutoCAD index colours by pen). See the FESLAB UI Standard sheets for the rules.
   Load with feslab.js. Fonts are relative to this file (fonts/). */
@font-face { font-family: "osifont"; src: url("fonts/osifont.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Felix Markup"; src: url("fonts/FelixMarkup.woff2") format("woff2"); font-display: swap; }
/* Layout idea: every page is a drawing sheet. Thick border, content field, title block in the
   bottom-right corner that says where this page sits in the set. Clean CAD layer first; a red
   hand-drawn markup layer sits over it for commentary. Paper only; plot styles change ink and zones. */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --grey: #5c5c5c;      /* secondary text */
  --line: #9a9a9a;      /* thin rules */
  --tone: #e4e4e4;      /* grey tone: by others / read-only */
  --red: #c8281e;       /* markup pen + revision clouds */
  --hatch: rgba(20,20,20,.62);
  --hatch-l: rgba(20,20,20,.38);
  /* pens: one per line weight / type. Paper space plots them all in ink (monochrome);
     model space shows each in its AutoCAD index colour. */
  --c-bold: var(--ink); --c-med: var(--ink); --c-thin: var(--ink); --c-dash: var(--ink);
  --c-dim: var(--ink); --c-text: var(--ink); --c-active: var(--ink); --c-on-bold: var(--paper);
  --z1: transparent; --z2: transparent; --z3: transparent; --z4: transparent; --z5: transparent;
  --f-iso: "osifont", "Arial Narrow", sans-serif;
  --f-read: Arial, "Liberation Sans", Helvetica, sans-serif;
  --f-sketch: "Felix Markup", "Comic Neue", cursive;
  --f-code: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;   /* code, config, logs: columns must line up */
  /* chart series pens (paper): red, blue, magenta, then ink and greys */
  --s1: #c8281e; --s2: #1f4fbf; --s3: #ff7fff; --s4: #141414; --s5: #7a7a7a; --s6: #4b4b4b;
  --w-thin: 1px; --w-med: 1.5px; --w-bold: 3px;
  --t25: 11px; --t35: 15px; --t5: 22px; --t7: 31px;   /* ISO 3098 heights 2.5 / 3.5 / 5 / 7 mm */
  color-scheme: light;
}
:root[data-plot="pastel"] {
  --z1: #dbe9f4;  /* sky */
  --z2: #e2efdc;  /* sage */
  --z3: #f5eecb;  /* butter */
  --z4: #e9e1f3;  /* lilac */
  --z5: #f6e2d4;  /* peach */
}
:root[data-plot="contrast"] {   /* dark blue ink, magenta pen */
  --s2: #16255e; --s4: #5b6fb8; --s5: #46507a; --s6: #8c96bf;
  --ink: #16255e; --grey: #46507a; --line: #8c96bf; --tone: #dfe3f1;
  --red: #b0126a;
  --hatch: rgba(22,37,94,.7); --hatch-l: rgba(22,37,94,.42);
  --z1: #d6def6; --z2: #f5d4e6; --z3: #d6def6; --z4: #f5d4e6; --z5: #d6def6;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--f-read); padding: 12px; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--c-active); outline-offset: 3px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--c-active); }

:root[data-space="model"] {   /* model space: AutoCAD index colours, one per pen */
  --paper: #212830;                 /* AutoCAD default model background 33,40,48 */
  --ink: #ffffff;                   /* ACI 7  white   0.35  text */
  --c-text: #ffffff;
  --c-bold: #0000ff;                /* ACI 5  blue    0.50  bold continuous */
  --c-on-bold: #ffffff;
  --c-med: #00ff00;                 /* ACI 3  green   0.35  medium continuous */
  --c-thin: #ffff00;                /* ACI 2  yellow  0.18  thin rules */
  --c-dim: #00ffff;                 /* ACI 4  cyan    0.18  dimensions + leaders */
  --c-dash: #c0c0c0;                /* ACI 9  grey    0.25  dashed / pending */
  --c-active: #ff00ff;              /* ACI 6  magenta 0.35  you are here: current, pressed, focus */
  --red: #ff0000;                   /* ACI 1  red     0.25  clouds + markup */
  --hatch: #808080; --hatch-l: #808080;   /* ACI 8 grey 0.13 hatching */
  --grey: #c0c0c0; --line: #808080; --tone: #3b434e;
  --s1: #00ffff; --s2: #ffff00; --s3: #ff00ff; --s4: #00ff00; --s5: #ff7f00; --s6: #c0c0c0;   /* chart series: ACI 4, 2, 6, 3, 30, 9 */
  --z1: transparent; --z2: transparent; --z3: transparent; --z4: transparent; --z5: transparent;
  color-scheme: dark;
}
:root[data-space="model"] .plot.three button { opacity: .4; pointer-events: none; }

/* ---------- the sheet ---------- */
.sheet { display: grid; min-height: 100%; border: var(--w-bold) solid var(--c-bold);
  grid-template-columns: minmax(0, 1fr) 300px; }
.field { padding: 28px 28px 40px; display: grid; gap: 44px; align-content: start; min-width: 0; }
.strip { border-left: var(--w-med) solid var(--c-med); display: flex; flex-direction: column; justify-content: flex-end; }
.strip-inner { position: sticky; bottom: 0; }
@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; }
  .strip { border-left: 0; border-top: var(--w-med) solid var(--c-med); }
}

/* ---------- type ---------- */
.iso { font-family: var(--f-iso); text-transform: uppercase; letter-spacing: .04em; }
.iso-b { -webkit-text-stroke: .045em currentColor; }  /* pen weight, not a bolder face */
.sketch { font-family: var(--f-sketch); color: var(--red); letter-spacing: .04em; text-transform: uppercase; -webkit-text-stroke: .45px currentColor; }
.sketch.ink { color: var(--ink); }
.read { max-width: 68ch; }
p { margin: 0; }
p + p { margin-top: .6em; }
strong, b { font-weight: 700; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.grey { color: var(--grey); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

/* ---------- view title (headings) ---------- */
.view { display: grid; gap: 16px; min-width: 0; }
.vt { display: flex; align-items: center; gap: 12px; }
.vt h2 { font: 400 var(--t5)/1.15 var(--f-iso); text-transform: uppercase; letter-spacing: .04em; -webkit-text-stroke: .04em currentColor;
  display: inline-block; border-bottom: var(--w-bold) solid var(--c-bold); padding-bottom: 3px; }
.vt .meta { font: 400 var(--t25)/1.2 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin-top: 4px; }
.vt-title { display: grid; }

/* callout bubble = link to another view/sheet */
.bub { flex: none; width: 46px; height: 46px; border: var(--w-med) solid var(--c-med); border-radius: 50%; display: grid;
  grid-template-rows: 1fr 1fr; text-decoration: none; color: var(--ink); background: var(--paper); overflow: hidden;
  font: 400 12px/1 var(--f-iso); text-transform: uppercase; }
.bub span { display: grid; place-items: center; }
.bub span:first-child { border-bottom: var(--w-thin) solid var(--c-thin); font-size: 15px; padding-top: 3px; }
.bub span:last-child { font-size: 9.5px; padding-bottom: 3px; }
a.bub:hover { border-width: var(--w-bold); }
.bub.sm { width: 36px; height: 36px; }
.bub.sm span:first-child { font-size: 12px; }
.bub.sm span:last-child { font-size: 8px; }

/* ---------- hatches & tones (UI meanings, see legend) ---------- */
/* hatches are seamless tiles so they can run on hover: diagonal ones move left to right,
   horizontal lines (symmetric side to side) move downward */
.h-sel, .rowsel td { background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 50%); background-size: 10px 10px; }
.h-prog { background-image: linear-gradient(180deg, var(--hatch) 0 1px, transparent 1px); background-size: 6px 6px; }
.h-na   { background-image: repeating-linear-gradient(45deg, var(--hatch-l) 0 1px, transparent 1px 50%),
                            repeating-linear-gradient(-45deg, var(--hatch-l) 0 1px, transparent 1px 50%); background-size: 12px 12px; }
@keyframes run-x10 { from { background-position: 0 0; } to { background-position: 10px 0; } }
@keyframes run-x12 { from { background-position: 0 0, 0 0; } to { background-position: 12px 0, 12px 0; } }
@keyframes run-y6  { from { background-position: 0 0; } to { background-position: 0 6px; } }
.h-sel:hover, .rowsel:hover td { animation: run-x10 .7s linear infinite; }
.h-na:hover   { animation: run-x12 .9s linear infinite; }
.h-prog:hover { animation: run-y6 .5s linear infinite; }
.t-oth  { background-color: var(--tone); }
.l-pend { border-style: dashed !important; border-color: var(--c-dash) !important; }
.chip { display: inline-block; width: 44px; height: 26px; border: var(--w-thin) solid var(--c-thin); vertical-align: middle; }
.on-hatch { background: var(--paper); padding: 0 4px; }  /* text knock-out so hatch never sits under letters */

/* ---------- schedule (tables) ---------- */
.sched { display: grid; gap: 6px; justify-items: start; min-width: 0; max-width: 100%; }
.sched-t { font: 400 var(--t35)/1.2 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; justify-self: center; }
.sched-wrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; }
th, td { border: var(--w-thin) solid var(--c-thin); padding: 6px 10px; text-align: left; vertical-align: middle; }
th { font: 400 var(--t25)/1.25 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; }
thead tr:last-child th { border-bottom: var(--w-med) solid var(--c-med); }
table { border: var(--w-med) solid var(--c-med); }
td.num, th.num { text-align: center; font-family: var(--f-iso); font-variant-numeric: tabular-nums; }
td.iso { font-size: 13px; }

/* ---------- notes ---------- */
.notes { display: grid; gap: 8px; max-width: 70ch; }
.notes h3 { font: 400 var(--t35)/1.2 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; }
.notes ol { margin: 0; padding-left: 26px; display: grid; gap: 8px; }
.notes li::marker { font-family: var(--f-iso); }

/* ---------- buttons ---------- */
.btn { font: 400 14px/1 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px;
  border: var(--w-med) solid var(--c-med); background-color: var(--paper); color: var(--ink); cursor: pointer; border-radius: 0; }
.btn.pri { background-color: var(--c-bold); border-color: var(--c-bold); color: var(--c-on-bold); }
.btn:hover, .btn.is-hover { box-shadow: inset 0 0 0 1.5px var(--c-med); }
.btn.pri:hover, .btn.pri.is-hover { box-shadow: inset 0 0 0 1.5px var(--paper), 0 0 0 1.5px var(--c-bold); }
.btn.is-focus { outline: 1px solid var(--c-active); outline-offset: 3px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--c-active); }
.btn.is-busy { background-color: var(--paper); color: var(--ink); }
.btn.is-busy span, .btn[disabled] span { background: var(--paper); padding: 0 3px; }
.btn[disabled] { color: var(--grey); border-color: var(--grey); cursor: not-allowed; }
.states { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: flex-end; }
.states figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
figcaption, .lbl { font: 400 var(--t25)/1.3 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }

/* ---------- revision cloud + delta ---------- */
.cloud { position: relative; }
svg.cl { position: absolute; pointer-events: none; overflow: visible; }
.delta { position: absolute; width: 28px; height: 24px; display: grid; place-items: end center; padding-bottom: 3px;
  font: 400 12px/1 var(--f-iso); color: var(--red); }
.delta svg { position: absolute; inset: 0; }
.delta b { position: relative; font-weight: 400; }

/* ---------- title block ---------- */
.tb { font: 400 var(--t25)/1.25 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; }
.tb .row { border-top: var(--w-thin) solid var(--c-thin); padding: 6px 10px; display: grid; gap: 3px; }
.tb .row:first-child { border-top: 0; }
.tb .k { color: var(--grey); font-size: 9.5px; letter-spacing: .08em; }
.tb .v { font-size: 13px; }
.tb .v.big { font-size: 20px; line-height: 1.15; -webkit-text-stroke: .03em currentColor; }
.tb .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.tb .grid4 > div { padding: 5px 8px; border-left: var(--w-thin) solid var(--c-thin); display: grid; gap: 2px; min-width: 0; }
.tb .grid4 > div:first-child { border-left: 0; }
.dl { display: grid; gap: 2px; }
.dl a { display: grid; grid-template-columns: 52px 1fr; gap: 6px; text-decoration: none; padding: 2px 0; }
.dl a:hover .t { text-decoration: underline; }
.dl a.cur { -webkit-text-stroke: .04em currentColor; color: var(--c-active); }
.dl a.cur .n::before { content: "▸"; margin-left: -10px; margin-right: 2px; }
.keyplan { display: flex; gap: 4px; align-items: stretch; height: 30px; }
.keyplan a { flex: 1; border: var(--w-thin) solid var(--c-thin); display: grid; place-items: center; font-size: 9px; text-decoration: none; }
.keyplan a.cur { border: var(--w-med) solid var(--c-active); color: var(--c-active); }
.plot { display: flex; gap: 0; }
.plot button { flex: 1; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); color: var(--ink);
  border: var(--w-thin) solid var(--c-thin); padding: 5px 0; cursor: pointer; }
.plot button + button { border-left: 0; }
.plot.three button { font-size: 10px; }
.otp { display: grid; gap: 1px; }
.otp button, .otp span.i { all: unset; cursor: pointer; display: grid; grid-template-columns: 20px 1fr; gap: 6px; padding: 2px 0; font-size: 11px; }
.otp span.i { cursor: default; }
.otp button:hover .t { text-decoration: underline; }
.otp button:focus-visible { outline: 1px solid var(--c-active); outline-offset: 2px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.tb .grid4 .v, .tb .grid2 .v { white-space: nowrap; font-size: 12px; }
.tb .grid2 { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.tb .grid2 > div { padding: 5px 8px; border-left: var(--w-thin) solid var(--c-thin); display: grid; gap: 2px; }
.tb .grid2 > div:nth-child(odd) { border-left: 0; }
.tb .grid2 > div:nth-child(n+3) { border-top: var(--w-thin) solid var(--c-thin); }
.sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; margin-right: 5px; vertical-align: -1px; }
.sig i { width: 2px; background: var(--line); }
.sig i.on { background: var(--ink); }
.no-clouds svg.cl, .no-clouds .delta { display: none; }
.plot button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--c-active); color: var(--c-active); -webkit-text-stroke: .04em currentColor; }

/* ---------- links ---------- */
a.tl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.tl:hover { text-decoration-thickness: 2.5px; }
.em-red { color: var(--red); font-weight: 700; }

/* ---------- scrollbars: thin line, bold-pen thumb, leader arrowheads (Chromium/Safari) ---------- */
::-webkit-scrollbar { width: 14px; height: 14px; background: transparent; }
::-webkit-scrollbar-track:vertical { background: linear-gradient(90deg, transparent 6.5px, var(--line) 6.5px 7.5px, transparent 7.5px); }
::-webkit-scrollbar-track:horizontal { background: linear-gradient(180deg, transparent 6.5px, var(--line) 6.5px 7.5px, transparent 7.5px); }
::-webkit-scrollbar-thumb:vertical { background: linear-gradient(90deg, transparent 5.5px, var(--c-bold) 5.5px 8.5px, transparent 8.5px); min-height: 40px; }
::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(180deg, transparent 5.5px, var(--c-bold) 5.5px 8.5px, transparent 8.5px); min-width: 40px; }
::-webkit-scrollbar-thumb:vertical:hover { background: linear-gradient(90deg, transparent 4.5px, var(--c-bold) 4.5px 9.5px, transparent 9.5px); }
::-webkit-scrollbar-thumb:horizontal:hover { background: linear-gradient(180deg, transparent 4.5px, var(--c-bold) 4.5px 9.5px, transparent 9.5px); }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button:single-button { display: block; background-color: transparent; background-repeat: no-repeat; background-position: center; }
::-webkit-scrollbar-button:single-button:vertical { width: 14px; height: 16px; }
::-webkit-scrollbar-button:single-button:horizontal { width: 16px; height: 14px; }
::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 1 L9 12.5 L5 12.5 Z M6.5 12 h1 v4 h-1 Z' fill='%23141414'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 15 L9 3.5 L5 3.5 Z M6.5 0 h1 v4 h-1 Z' fill='%23141414'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:horizontal:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M1 7 L12.5 5 L12.5 9 Z M12 6.5 v1 h4 v-1 Z' fill='%23141414'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:horizontal:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M15 7 L3.5 5 L3.5 9 Z M0 6.5 v1 h4 v-1 Z' fill='%23141414'/%3E%3C/svg%3E"); }
:root[data-plot="contrast"] ::-webkit-scrollbar-button { color: inherit; }
[data-plot="contrast"]::-webkit-scrollbar-button:single-button:vertical:decrement, [data-plot="contrast"] ::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 1 L9 12.5 L5 12.5 Z M6.5 12 h1 v4 h-1 Z' fill='%2316255e'/%3E%3C/svg%3E"); }
[data-plot="contrast"]::-webkit-scrollbar-button:single-button:vertical:increment, [data-plot="contrast"] ::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 15 L9 3.5 L5 3.5 Z M6.5 0 h1 v4 h-1 Z' fill='%2316255e'/%3E%3C/svg%3E"); }
[data-plot="contrast"]::-webkit-scrollbar-button:single-button:horizontal:decrement, [data-plot="contrast"] ::-webkit-scrollbar-button:single-button:horizontal:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M1 7 L12.5 5 L12.5 9 Z M12 6.5 v1 h4 v-1 Z' fill='%2316255e'/%3E%3C/svg%3E"); }
[data-plot="contrast"]::-webkit-scrollbar-button:single-button:horizontal:increment, [data-plot="contrast"] ::-webkit-scrollbar-button:single-button:horizontal:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M15 7 L3.5 5 L3.5 9 Z M0 6.5 v1 h4 v-1 Z' fill='%2316255e'/%3E%3C/svg%3E"); }
[data-space="model"]::-webkit-scrollbar-button:single-button:vertical:decrement, [data-space="model"] ::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 1 L9 12.5 L5 12.5 Z M6.5 12 h1 v4 h-1 Z' fill='%2300ffff'/%3E%3C/svg%3E"); }
[data-space="model"]::-webkit-scrollbar-button:single-button:vertical:increment, [data-space="model"] ::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M7 15 L9 3.5 L5 3.5 Z M6.5 0 h1 v4 h-1 Z' fill='%2300ffff'/%3E%3C/svg%3E"); }
[data-space="model"]::-webkit-scrollbar-button:single-button:horizontal:decrement, [data-space="model"] ::-webkit-scrollbar-button:single-button:horizontal:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M1 7 L12.5 5 L12.5 9 Z M12 6.5 v1 h4 v-1 Z' fill='%2300ffff'/%3E%3C/svg%3E"); }
[data-space="model"]::-webkit-scrollbar-button:single-button:horizontal:increment, [data-space="model"] ::-webkit-scrollbar-button:single-button:horizontal:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M15 7 L3.5 5 L3.5 9 Z M0 6.5 v1 h4 v-1 Z' fill='%2300ffff'/%3E%3C/svg%3E"); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; } }   /* Firefox: thin bar, no arrowheads possible */
/* Chromium drops the styled bars on any element whose CSS sets scrollbar-width or scrollbar-color. Undo that on CAD pages. */
@supports selector(::-webkit-scrollbar) { html:not([data-ui="classic"]) *, html:not([data-ui="classic"]) { scrollbar-width: auto !important; scrollbar-color: auto !important; } }

/* ---------- leader labels: any element with data-ldr gets an ISO label in the margin ---------- */
.lhost { position: relative; }
.lhost > svg.ldr { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ldr-lbl { position: absolute; font: 400 11px/14px var(--f-iso); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.ldr-lbl.l { text-align: right; }
.lhost.ldr-off > svg.ldr, .lhost.ldr-off > .ldr-lbl { display: none; }

/* ---------- click feedback: a quick red pen ring ---------- */
svg.pen-ring { position: fixed; pointer-events: none; overflow: visible; z-index: 50; }

/* ---------- misc layout ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.legend { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; font-size: 14px; }
.legend .sym { display: flex; align-items: center; justify-content: center; min-width: 58px; }
.legend .meaning b { font-family: var(--f-iso); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.rule-line { width: 70px; border-top: 1px solid var(--ink); }
.panel { border: var(--w-med) solid var(--c-med); padding: 16px; background: var(--paper); }
.svgwrap { max-width: 100%; overflow-x: auto; }
svg text { font-family: var(--f-iso); text-transform: uppercase; }

/* typical screen (library-tidy) */
.app { border: var(--w-bold) solid var(--c-bold); display: grid; grid-template-columns: minmax(0,1fr) 210px; background: var(--paper); font-size: 15px; }
.app-field { padding: 18px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.app-strip { border-left: var(--w-med) solid var(--c-med); display: flex; flex-direction: column; justify-content: flex-end; }
.app-nav, .pagenav { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 12px; border: var(--w-med) solid var(--c-med); background: var(--z1); }
.app-nav a, .pagenav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 400 13px var(--f-iso); text-transform: uppercase; letter-spacing: .05em; }
.app-nav a.cur, .pagenav a.cur { -webkit-text-stroke: .04em currentColor; color: var(--c-active); }
.app-nav a.cur .bub, .pagenav a.cur .bub { border-color: var(--c-active); color: var(--c-active); }
:root:not([data-plot="mono"]) .zone2 { background-color: var(--z2); }
:root:not([data-plot="mono"]) .zone3 { background-color: var(--z3); }
:root:not([data-plot="mono"]) .zone4 { background-color: var(--z4); }
:root:not([data-plot="mono"]) .zone5 { background-color: var(--z5); }
.ring { position: relative; display: inline-block; }
.ring svg { position: absolute; left: -16px; top: -9px; width: calc(100% + 30px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.markrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app table { font-size: 14px; width: 100%; }
.app td .fn { font-family: var(--f-iso); font-size: 13px; letter-spacing: .02em; overflow-wrap: anywhere; }
.rowsel td > * { background: var(--paper); }
.rowsel td { box-shadow: inset 0 1.5px 0 var(--c-active), inset 0 -1.5px 0 var(--c-active); }
.rowsel td:first-child { box-shadow: inset 1.5px 1.5px 0 var(--c-active), inset 0 -1.5px 0 var(--c-active); }
.rowsel td:last-child { box-shadow: inset -1.5px 1.5px 0 var(--c-active), inset 0 -1.5px 0 var(--c-active); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acts .btn { padding: 7px 10px; font-size: 12px; }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .app-strip { border-left: 0; border-top: var(--w-med) solid var(--c-med); } }
.relbox { position: relative; }
.empty { border: var(--w-med) dashed var(--c-dash); padding: 26px; display: grid; gap: 6px; justify-items: start; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { body { padding: 0; } .strip .plot, .strip [data-stat] { display: none; } }

/* ---------- small helpers for app pages ---------- */
.fn { font-family: var(--f-iso); font-size: 13px; letter-spacing: .02em; overflow-wrap: anywhere; }
.err { font-weight: 700; }                       /* errors are said in words, in bold */
.err::before { content: "✕ "; font-family: var(--f-iso); }
table.wide { width: 100%; }

/* code keeps a true monospace so columns line up (config editors, diffs, logs) */
pre, code, kbd, samp, .code { font-family: var(--f-code); font-size: .92em; }
/* charts: canvas sits on paper; give it a frame like any component */
.chart-frame { border: var(--w-med) solid var(--c-med); padding: 12px; position: relative; }

/* loading: CAD cursor drawing (feslab.js animates any .cad-loader). sm inline · default panel · lg page */
.cad-loader { display: grid; grid-template-rows: 1fr auto; height: 150px; border: var(--w-thin) solid var(--c-thin); background: var(--paper); }
.cad-stage { position: relative; min-height: 0; overflow: hidden; }
.cad-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cad-loader.sm { display: inline-grid; grid-template-rows: 1fr; width: 3em; height: 1.5em; border: 0; background: transparent; vertical-align: -0.35em; }
.cad-loader.lg { grid-template-rows: 1fr auto auto; height: 100%; min-height: 360px; border: var(--w-med) solid var(--c-med); }
.cad-cmd { display: flex; justify-content: space-between; gap: 12px; border-top: var(--w-thin) solid var(--c-thin); padding: 3px 8px;
  font: 400 11px/1.4 var(--f-iso); letter-spacing: .04em; color: var(--ink); white-space: nowrap; overflow: hidden; }
.cad-cmd .lab { text-transform: uppercase; color: var(--grey); }
.cad-loader.lg .cad-cmd { font-size: 13px; order: 3; }
.cad-hist { order: 2; white-space: pre; border-top: var(--w-thin) solid var(--c-thin); padding: 4px 8px 0; font: 400 12px/1.5 var(--f-iso); color: var(--grey); min-height: 3em; overflow: hidden; }
.cad-xy { position: absolute; }
.cad-loader.lg { position: relative; }
.cad-loader.lg .cad-xy { right: 10px; top: 8px; font: 400 11px var(--f-iso); color: var(--grey); letter-spacing: .04em; }
:root[data-space="model"] .cad-loader { border-color: #ffffff; }
:root[data-space="model"] .cad-cmd, :root[data-space="model"] .cad-hist { border-top-color: #ffffff; color: #ffffff; }
:root[data-space="model"] .cad-cmd .lab, :root[data-space="model"] .cad-loader .cad-xy { color: #ffffff; }

/* =====================================================================================
   Pack 8 · sheets. One drawing sheet per page; nothing scrolls on a desktop. Views sit on
   white with their view titles, like details on a real sheet: no boxes round them. Notes
   top right, title block bottom right. A view opens full screen (feslab.js).
   ===================================================================================== */
html:has(body > .gasheet), body:has(> .gasheet) { height: 100%; }
body:has(> .gasheet) { overflow: hidden; }
.gasheet { height: 100%; border: var(--w-bold) solid var(--c-bold); display: grid;
  grid-template-columns: minmax(0, 1fr) 272px; grid-template-rows: minmax(0, 1fr); }
.field2 { grid-column: 1; grid-row: 1; min-height: 0; min-width: 0; padding: 20px 26px 18px; display: grid; gap: 22px 40px; }
.gstrip { grid-column: 2; grid-row: 1; border-left: var(--w-med) solid var(--c-med); display: flex; flex-direction: column;
  justify-content: space-between; min-height: 0; overflow-y: auto; }
.gstrip .tb { border-top: var(--w-med) solid var(--c-med); }

/* a view on the sheet */
.vw { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-width: 0; min-height: 0; }
.vw .vt { min-width: 0; }
.vw .vt h2 { font-size: 19px; white-space: nowrap; }
.vw .vt .bub { width: 42px; height: 42px; }
.vw .vt .bub span:first-child { font-size: 14px; } .vw .vt .bub span:last-child { font-size: 9px; }
.vw.open { cursor: pointer; }
.vw.open:hover .vt h2 { color: var(--c-active); border-bottom-color: var(--c-active); }
.vw.open:hover .vt .bub { border-color: var(--c-active); }
.vbody { position: relative; min-height: 0; min-width: 0; overflow: hidden; padding: 1px 2px 2px 1px; }
.fl-draw { position: relative; min-height: 0; }
.fl-draw > svg.dwg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vload { position: absolute; inset: 0; background: var(--paper); z-index: 2; }
.vload .cad-loader { height: 100%; min-height: 0; }
.vw > .vside, .vw [data-full] { display: none; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.plotted > * { animation: wipe .7s cubic-bezier(.3,.6,.4,1) both; }

/* drawing pens inside SVG */
svg.dwg text { font-family: var(--f-iso); fill: var(--ink); letter-spacing: .05em; text-transform: uppercase; }
svg.dwg .s11 { font-size: 11px; fill: var(--grey); letter-spacing: .06em; }
svg.dwg .s12 { font-size: 12px; }
svg.dwg .s14 { font-size: 14.5px; stroke: var(--ink); stroke-width: .5px; }
svg.dwg .eng * { vector-effect: non-scaling-stroke; }
.lb { stroke: var(--c-bold); stroke-width: 2.5; fill: none; stroke-linejoin: miter; }
.lm { stroke: var(--c-med); stroke-width: 1.5; fill: none; }
.lt { stroke: var(--c-thin); stroke-width: 1; fill: none; }
.lc { stroke: var(--c-thin); stroke-width: 1; fill: none; stroke-dasharray: 22 4 3 4; }   /* centre line: axes only */
.ld { stroke: var(--c-dim); stroke-width: 1; fill: none; }
.lg { stroke: var(--line); stroke-width: 1; fill: none; }
.lp { stroke: var(--c-dash); stroke-width: 1.5; fill: none; stroke-dasharray: 5 4; }       /* dashed: pending */
.fd { fill: var(--c-dim); stroke: none; }
.fp { fill: var(--paper); }
.fm { fill: var(--c-med); stroke: none; }
.hot { cursor: pointer; }
.hot:hover .s14 { fill: var(--c-active); stroke: var(--c-active); }
.hot:hover .cb { stroke: var(--c-active); stroke-width: 3; }
.hot:hover .ld { stroke: var(--c-active); } .hot:hover .fd { fill: var(--c-active); }
@keyframes run-yy { to { transform: translateY(6px); } }
svg.dwg:hover .prog { animation: run-yy .5s linear infinite; }

/* schedules inside views */
.vw table, .fs table { width: 100%; font-size: 13px; }
.vw th, .vw td, .fs th, .fs td { padding: 5px 9px; white-space: nowrap; }
.vw td.wrap, .fs td.wrap { white-space: normal; }
td.mk { font-family: var(--f-iso); letter-spacing: .05em; width: 1%; }
td.r, th.r { text-align: right; font-family: var(--f-iso); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
td.isoc { font-family: var(--f-iso); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.st { display: inline-block; width: 26px; height: 12px; border: 1px solid var(--c-thin); margin-right: 8px; vertical-align: -1px; }
.st.pend { border: 1.5px dashed var(--c-dash); }
tr:hover .st.h-prog { animation: run-y6 .5s linear infinite; }
.cbar { display: block; height: 11px; border: 1.5px solid var(--s1); background-image: repeating-linear-gradient(45deg, var(--s1) 0 1px, transparent 1px 50%); background-size: 7px 7px; }
.acts .btn, td .btn { padding: 6px 10px; font-size: 11.5px; }

/* big readings */
.read2 { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; align-content: start; }
.read2 dt { font: 400 var(--t25) var(--f-iso); letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.read2 dd { margin: 0; font: 400 var(--t5)/1.1 var(--f-iso); letter-spacing: .03em; font-variant-numeric: tabular-nums; text-align: right; }
.read2 dd small { font-size: 13px; color: var(--grey); margin-left: 5px; }
.read2 .tot dt, .read2 .tot dd { border-top: var(--w-med) solid var(--c-med); padding-top: 9px; }
.read2 > div { display: contents; }
.pbar { height: 22px; border: var(--w-med) solid var(--c-med); position: relative; }
.pbar i { position: absolute; inset: 0 auto 0 0; border-right: var(--w-med) solid var(--c-med); }
.pbar:hover i { animation: run-y6 .5s linear infinite; }
.stack { display: grid; gap: 14px; align-content: start; }
.lblrow { display: flex; justify-content: space-between; font: 400 12px var(--f-iso); letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .gasheet { height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .gstrip { grid-column: 1; grid-row: 2; border-left: 0; border-top: var(--w-med) solid var(--c-med); overflow: visible; }
  .field2 { display: flex; flex-direction: column; gap: 34px; padding: 18px 14px; }
  .fl-draw { height: 250px; }
  .vbody { overflow-x: auto; }
  .vw .vt h2 { white-space: normal; font-size: 17px; }
  .fs { inset: 6px; overflow-y: auto; grid-template-rows: auto auto; }
  .fs-top { flex-direction: column-reverse; }
  .mtb { width: auto; }
  .fs-main .fl-draw { height: 320px; }
}
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* title block cells */
.tb .grid2 { align-items: start; }
.tb .grid2 > div { align-content: start; }
.tb .grid2 .v.big { font-size: 20px; }
.vw td, .vw th { font-size: 12.5px; }

.read2 hr { grid-column: 1 / -1; border: 0; border-top: var(--w-med) solid var(--c-med); margin: 2px 0; width: 100%; }
.vw .vt .meta { white-space: nowrap; }
.vw .vt .vt-title { min-width: 0; }
.vw td, .vw th { padding: 5px 8px; }


svg.dwg .hd { text-transform: uppercase; font-size: 17px; letter-spacing: .04em; stroke: var(--ink); stroke-width: .45px; }
svg.dwg .hd.red { stroke: var(--red); }
.band { stroke: var(--c-thin); stroke-width: 1; }
.band:hover { stroke: var(--c-active); stroke-width: 1.5; }
/* handwriting on sheets: capitals only. .sketch = red (temporary), .sketch.ink = explanation */
.notebox .sketch, .vw .sketch { font-size: 18px; line-height: 1.3; margin: 0; }
.fs .sketch { font-size: 19px; line-height: 1.3; margin: 0; }
svg.dwg .hd { font-family: var(--f-sketch); text-transform: uppercase; font-size: 17px; letter-spacing: .04em; stroke: var(--ink); stroke-width: .45px; }
svg.dwg .hd.red { fill: var(--red); stroke: var(--red); }
svg.dwg .s14 { text-transform: uppercase; }
/* a view that holds a form or long text may scroll inside itself */
.vbody.scroll { overflow: auto; }

/* ---------- pack 9: right column of a main sheet ---------- */
.gpages { padding: 14px 12px 10px; display: grid; gap: 6px; font-family: var(--f-iso); letter-spacing: .05em; text-transform: uppercase; }
.gpages .k { font-size: 10px; letter-spacing: .1em; color: var(--grey); }
.gpages .dl a.cur::before, .gpages .dl a.cur .n::before { content: none; }
.gpages .dl { display: grid; gap: 1px; font-size: 13px; }
.gpages .dl a { display: grid; grid-template-columns: 52px 1fr; padding: 4px 4px; text-decoration: none; }
.gpages .dl a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.gpages .dl a.cur { color: var(--c-active); -webkit-text-stroke: .04em currentColor; box-shadow: inset 3px 0 0 var(--c-active); padding-left: 8px; grid-template-columns: 48px 1fr; }
.tb-ga .ifc { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-ga .ifc .plot { flex: 1 1 110px; }
.tb-ga .ifc .plot button { font-size: 10.5px; padding: 5px 2px; }
.tb-ga .grid4 > div:nth-child(n+5) { display: none; }
.tb-ga .grid4 .v { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ga .grid4 .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ga .grid4 > div { min-width: 0; padding-left: 7px; padding-right: 4px; }
.tb-ga .grid2 .v.big { font-size: 20px; }

/* notes: a box on the sheet, not in the right column */
.notebox { border: var(--w-thin) solid var(--c-thin); padding: 12px 14px; display: grid; gap: 10px; align-content: start; min-width: 0; min-height: 0; overflow: hidden; }
.notebox .notes h3 { font-size: 13px; }
.notebox .notes ol { font-size: 13px; line-height: 1.4; gap: 4px; padding-left: 20px; }

/* a main sheet at 1080p / 125 % is about 1536 x 730: keep the view titles compact */
.gasheet .field2 { padding: 16px 20px 14px; gap: 16px 30px; }
.gasheet .vw { gap: 9px; }
.gasheet .vw .vt h2 { font-size: 17px; }
.gasheet .vw .vt .bub { width: 38px; height: 38px; }
.gasheet .vw .vt .bub span:first-child { font-size: 13px; } .gasheet .vw .vt .bub span:last-child { font-size: 8.5px; }
.vw td, .vw th { padding: 3px 8px; }
.vmore { font: 400 11px var(--f-iso); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); padding: 5px 2px 0; }

/* ---------- detail view: full screen, small title block top right ---------- */
.fs { position: fixed; inset: 12px; z-index: 20; background: var(--paper); border: var(--w-bold) solid var(--c-bold); padding: 16px 20px 16px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; transition: transform .26s cubic-bezier(.3,.7,.3,1), opacity .18s; }
.fs[hidden] { display: none; }
.fs.out-l { transform: translateX(-36px); opacity: 0; } .fs.out-r { transform: translateX(36px); opacity: 0; }
.fs-top { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; min-width: 0; }
.fs-headl { min-width: 0; display: grid; gap: 12px; }
.fs-headl .vt h2 { font-size: var(--t5); }
.fs-headl .vside { display: flex; flex-wrap: wrap; gap: 8px 34px; align-items: flex-start; }
.fs-headl .vside .side-h { display: none; }
.fs-headl .vside .facts { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: auto auto; gap: 2px 26px; }
.fs-headl .vside .facts dd { text-align: left; }
.fs-headl .vside .sketch { max-width: 520px; }
.fs-main { min-height: 0; min-width: 0; display: grid; }
.fs-main .vbody { overflow: auto; }
.mtb { flex: none; width: 344px; border: var(--w-med) solid var(--c-med); font-family: var(--f-iso); letter-spacing: .05em; text-transform: uppercase; }
.mtb .mrow { padding: 5px 9px; border-bottom: var(--w-thin) solid var(--c-thin); display: grid; gap: 1px; }
.mtb .k { font-size: 10px; letter-spacing: .1em; color: var(--grey); }
.mtb .v { font-size: 13px; }
.mtb .dl { font-size: 12px; }
.mtb .dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.mtb .dl a { display: grid; grid-template-columns: 18px 1fr; padding: 1px 0; min-width: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtb .dl a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.mtb .dl a.cur { color: var(--c-active); -webkit-text-stroke: .04em currentColor; }
.mtb .mnav { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: var(--w-thin) solid var(--c-thin); }
.mtb .mnav button { height: 30px; background: var(--paper); border: 0; border-right: var(--w-thin) solid var(--c-thin); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.mtb .mnav button:last-child { border-right: 0; }
.mtb .mnav button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--c-med); }
.mtb .mnav button:disabled { color: var(--line); cursor: default; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; margin: 0; }
.facts dt { font: 400 var(--t25) var(--f-iso); letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; font: 400 var(--t35) var(--f-iso); letter-spacing: .03em; text-align: right; font-variant-numeric: tabular-nums; }
.side-h { font: 400 13px var(--f-iso); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hover text (text with a leader) and callouts (dashed box, leader, zoomed view) ---------- */
.fl-ov { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.fl-ovs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fl-dim { position: absolute; inset: 0; background: rgba(20, 20, 20, .09); opacity: 0; transition: opacity .15s; }
:root[data-space="model"] .fl-dim { background: rgba(0, 0, 0, .3); }
.fl-ov.co-open { pointer-events: auto; }
.fl-ov.co-open.dim .fl-dim { opacity: 1; }
.fl-tip { position: absolute; display: none; background: var(--paper); padding: 2px 5px; max-width: 280px; font: 400 12px/1.35 var(--f-iso); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.co-box { fill: none; stroke: var(--c-dash); stroke-width: 1.5; stroke-dasharray: 9 5; }
.co-ldr { stroke: var(--c-dim); stroke-width: 1; }
.fl-ovs text { font-family: var(--f-iso); fill: var(--ink); }
.fl-panel { position: absolute; display: none; background: var(--paper); border: var(--w-med) solid var(--c-med); overflow: auto; }
.fl-pbody { padding: 16px 18px; display: grid; gap: 12px; }
.fl-pbody.fl-zdraw { padding: 0; margin: 14px; }
.fl-panel .zoomed { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: 62ch; max-height: none !important; font-size: 16px; line-height: 1.5; }
.fl-panel table { font-size: 14px; }
.co-text { margin: 0; font: 400 15px/1.45 var(--f-read); }
.co-btns { display: flex; gap: 8px; }
[data-zoom] { cursor: zoom-in; }
.fs [data-sheet-only] { display: none; }
.fl-panel.zoomp .zoomed { max-width: 44ch; }

/* small loader: an animated diagonal hatch. The drawing cursor is only for things at least 1/8 of the page. */
.cad-loader.hatch { display: block; position: relative; background-color: var(--paper); background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 50%); background-size: 10px 10px; animation: run-x10 .7s linear infinite; }
.cad-loader.hatch .lab { position: absolute; left: 8px; bottom: 7px; background: var(--paper); padding: 2px 7px; font: 400 11px var(--f-iso); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.cad-loader.sm.hatch { display: inline-block; width: 2.6em; height: .85em; vertical-align: -.08em; border: 1px solid var(--c-thin); }
/* title block on a main sheet: pages, interface, 2 + 4 stat boxes, title, page number */
.gstrip { justify-content: flex-end; }
.tb-ga .ifc { flex-wrap: nowrap; }
.tb-ga .ifc .plot { flex: 1 1 0; }
.tb-ga .dl { font-size: 12px; }
.tb-ga .grid2[data-srv2] .v { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb .v.alert { color: var(--red); -webkit-text-stroke: .04em currentColor; }

/* detail title block: hard against the top right corner of the sheet border, like the main one.
   Left: title, source page, buttons. Right: an indented list of where this detail sits in the app. */
.fs .mtb { margin: -16px -20px 0 0; border: 0; border-left: var(--w-med) solid var(--c-med); border-bottom: var(--w-med) solid var(--c-med);
  width: 400px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.mtb .mleft { display: grid; grid-template-rows: auto auto 1fr; min-width: 0; }
.mtb .mleft .mnav { align-self: end; }
.mtb .mleft .mnav button { height: 32px; }
.mtb .v.mt { font-size: 17px; line-height: 1.15; -webkit-text-stroke: .05em currentColor; }
.mtb .mtree { border-left: var(--w-thin) solid var(--c-thin); padding: 5px 9px 7px; min-width: 0; }
.sitetree, .sitetree ul { list-style: none; margin: 0; padding: 0; }
.sitetree { font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.sitetree ul { padding-left: 13px; }
.sitetree li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.sitetree ul > li::before { content: ""; position: absolute; left: -9px; top: .62em; width: 5px; border-top: 1px solid var(--c-thin); }
.sitetree ul > li > ul { overflow: visible; }
.sitetree li.on, .sitetree li.st-root { overflow: visible; }
.sitetree .n { display: inline-block; min-width: 1.1em; margin-right: 6px; color: var(--grey); }
.sitetree a { text-decoration: none; }
.sitetree a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sitetree li.on { -webkit-text-stroke: .04em currentColor; }
.sitetree li.on > ul { -webkit-text-stroke: 0; }
.sitetree li.cur { color: var(--c-active); -webkit-text-stroke: .05em currentColor; }
.sitetree li.cur .n { color: inherit; }
.sitetree li.cur::before { border-top-width: 2px; border-color: var(--c-active); }
/* "Now": top of the right column on a main sheet */
.gstrip { justify-content: space-between; }
.gnow { padding: 12px 12px 8px; display: grid; gap: 7px; font-family: var(--f-iso); letter-spacing: .05em; text-transform: uppercase; }
.gnow .k { font-size: 10px; letter-spacing: .1em; color: var(--grey); }
.gnow a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; text-decoration: none; }
.gnow a .n { font-size: 11px; color: var(--grey); }
.gnow a .sketch { font-size: 17px; line-height: 1.2; }
.gnow a:hover .sketch { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- model space: more of the pens on show (pack 9) ----------
   dark blue  frames of the title blocks, chart gridlines, flow-band hatch (large, quiet areas)
   cyan       bubbles and callouts, leaders, pending (dashed) outlines
   yellow     thin rules, handwriting in ink
   red        state hatches (selected, in progress, loading), clouds, temporary notes
   green      medium object lines: tables, axes, nodes, buttons */
:root[data-space="model"] { --line: #0000ff; --hatch: #ff0000; --hatch-l: #ff0000; --c-dash: #00ffff; --band: #0000ff; }
:root[data-space="model"] .gstrip { border-left: var(--w-bold) solid var(--c-bold); }
:root[data-space="model"] .gstrip .tb { border-top: var(--w-bold) solid var(--c-bold); }
:root[data-space="model"] .fs .mtb { border-color: var(--c-bold); border-left-width: var(--w-bold); border-bottom-width: var(--w-bold); }
:root[data-space="model"] .bub, :root[data-space="model"] .vw.open:not(:hover) .vt .bub { border-color: var(--c-dim); }
:root[data-space="model"] .bub span:first-child { border-bottom-color: var(--c-dim); }
:root[data-space="model"] svg .cb { stroke: var(--c-dim); }
:root[data-space="model"] svg .cb + line { stroke: var(--c-dim); }
:root[data-space="model"] .sketch.ink { color: #ffff00; }
:root[data-space="model"] svg.dwg .hd:not(.red) { fill: #ffff00; stroke: #ffff00; }
:root[data-space="model"] pattern[id$="band"] line { opacity: 1; }
:root[data-space="model"] .sig i { background: #808080; } :root[data-space="model"] .sig i.on { background: var(--ink); }

.fl-audit { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(560px, 90vw); max-height: 70vh; overflow: auto; background: var(--paper); border: var(--w-med) solid var(--red); padding: 14px 16px; display: grid; gap: 10px; font: 400 14px/1.4 var(--f-read); }
.fl-audit ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
