/* EŞİK portal mockups: layout.css.
   Three layouts, not one squeezed: desktop 1100px and wider (rail, sheet, side), tablet 640 to 1099px
   (top strip, sheet, details under it), phone under 640px (thumb bar, the sheet framed for portrait,
   details in a bottom sheet). Tokens and drawing classes come from base.css. */

.skip { position: absolute; left: 8px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--paper); border: 1.5px solid var(--ink); font-weight: 650; text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.app { display: grid; min-height: 100dvh; }
.top { display: none; }
.brand { margin: 0; font-weight: 700; font-stretch: 75%; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; font-stretch: 90%; color: var(--ink-2); letter-spacing: 0; }

/* ---------- rail: the depth gauge of the section ---------- */
.rail { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 20px 0 16px 16px; border-right: 1px solid var(--line); }
.depth { position: relative; flex: 1; min-height: 380px; }
.key { position: absolute; left: 0; top: 0; width: 30px; height: 100%; overflow: visible; }
.key * { vector-effect: non-scaling-stroke; fill: none; }
.key .k-d { stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 2 1 2; }
.key .k-b { stroke: var(--ink); stroke-width: 1.25; }
.key .k-f { stroke: var(--line); stroke-width: 1; }
.key .k-g { stroke: var(--ink); stroke-width: 2; }
.key .k-t { stroke: var(--ink); stroke-width: 1.25; fill: var(--paper); }
.key .k-p { stroke: var(--ink-2); stroke-width: 1; }
.key .k-s { stroke: var(--ink); stroke-width: 1; }
.key .k-w { stroke: var(--sill); stroke-width: 3; }
.key .k-w2 { stroke: var(--ink); stroke-width: 1; }
.rail-slot { position: absolute; inset: 0 0 0 38px; }
.stops { list-style: none; margin: 0; padding: 0; }
.rail .stops li { position: absolute; left: 0; right: 8px; transform: translateY(-50%); }
.stop {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  width: 100%; min-height: var(--tap); padding: 4px 6px 4px 10px; border: 0; border-radius: var(--r-ctl); background: none;
  text-align: left; cursor: pointer; font-stretch: 82%; font-weight: 600; font-size: 15px; line-height: 1.15;
}
.stop small { font-size: 12px; font-weight: 500; color: var(--ink-2); font-stretch: 90%; }
.stop::before { content: ""; position: absolute; left: -10px; top: 50%; width: 14px; border-top: 1.5px solid var(--ink); }
.stop[aria-current="true"]::after {
  content: ""; position: absolute; left: -16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--sill); box-shadow: 0 0 0 1.5px var(--ink);
}
.stop[aria-current="true"] .lng, .stop[aria-current="true"] .sht { font-weight: 750; }
.stop:hover { background: var(--tone); }
.stop .sht, .stop .stop-n { display: none; }
.legend { margin: 0; padding-right: 12px; font-size: 12px; color: var(--ink-2); font-stretch: 90%; }
.rail-end { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 12px; }
.theme { font-size: 14px; }
.keys { font-size: 12.5px; color: var(--ink-2); }
.keys summary { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); cursor: pointer; font-weight: 650; color: var(--ink); font-stretch: var(--wd-ui); }
.keys dl { margin: 2px 0 0; display: grid; gap: 2px 0; }
.keys dt { font-weight: 650; color: var(--ink); font-stretch: var(--wd-ui); }
.keys dd { margin: 0 0 4px; }

/* ---------- the stage: the sheet and its strip ---------- */
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vp { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.vp.is-panning { cursor: grabbing; }
#sheet, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overlay { pointer-events: none; --u: 1px; overflow: visible; }
#sheet.is-loading { opacity: .35; }
#sheet .mpath { pointer-events: none; }
.sticky-lbl { font-size: 12.5px; }
.cur-ring-in.is-deny { stroke: var(--red); stroke-width: 2px; }
/* the money layer: accounts on the level lines, flows with their real amounts */
.mflow { fill: none; stroke: var(--ink); stroke-width: 1.6px; stroke-linejoin: round; }
.mflow.is-each { stroke-dasharray: 6 3; }
.mflow-head { fill: none; stroke: var(--ink); stroke-width: 1.5px; }
.mtoken { fill: var(--ink); }
.mnode { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4px; }
.mnode.is-on { fill: var(--ink); }

.status { position: absolute; left: 16px; bottom: 64px; margin: 0; max-width: 46%; font-size: 13px; font-stretch: var(--wd-ui); color: var(--ink-2); pointer-events: none; text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper); }
.vp-ctl { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 6px; align-items: flex-end; }
/* the title block: one line under the timeline, so it never covers the drawing */
.strip .tblock { display: flex; align-items: center; border: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 2px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.strip .tblock > div { min-width: 0; flex: 0 1 auto; padding: 2px 10px 2px 0; margin-right: 10px; border: 0; border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; }
.strip .tblock > div:last-child { border-right: 0; flex: none; }
.strip .tblock .k { display: inline; font-size: 12px; }
.vp-ctl .btn { min-width: var(--tap); font-size: 18px; padding: 0 10px; }
.vp-ctl #zfit { font-size: 14px; }
.vp-ctl .follow { font-size: 14px; background: var(--ink); color: var(--on-ink); }
.vp-ctl .follow:hover { background: var(--ink-2); }
.vp-ctl .btn[hidden] { display: none; }

/* the closing card: what the tests measured, set like a schedule of the sheet */
.card {
  position: absolute; right: 16px; bottom: 14px; z-index: 4; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 110px); overflow: auto;
  padding: 14px 18px 12px; background: var(--paper); border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  animation: card-in 340ms var(--ease) both;
}
.card[hidden] { display: none; }
.card-t { margin: 0 0 8px; font-size: 22px; line-height: 1.1; font-weight: 700; font-stretch: var(--wd-word); }
.card-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.card-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 5px 0; border-top: 1px solid var(--tone); }
.card-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-m { margin: 8px 0; font-size: 13px; color: var(--ink-2); }
.card-x { font-size: 14px; }
@keyframes card-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* chapter titles set into the sky on their level line, ink and no box */
#overlay .ch-n { font-size: 24px; font-weight: 750; font-stretch: 70%; fill: var(--ink); font-variant-numeric: tabular-nums; }
#overlay .ch-t { font-size: 40px; font-weight: 700; font-stretch: 72%; fill: var(--ink); }
#overlay .ch-m { font-size: 13.5px; font-stretch: var(--wd-ui); fill: var(--ink-2); }
#overlay .snote-meta { font-size: 12.5px; }
/* the opening: the sheet draws itself from the sky down, under a pen line */
#sheet .veil { fill: var(--paper); }
#sheet .pen { stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
#overlay .leader-real { fill: none; stroke: var(--ink-2); stroke-width: 1.2px; stroke-dasharray: 4 3; }
#overlay .link-broken { stroke: var(--red); stroke-width: 1.6px; stroke-dasharray: 6 3; }
.how { margin: -2px 12px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); font-stretch: var(--wd-ui); }
.strip { padding: 4px 20px 8px; border-top: 1px solid var(--line); }
.tl { position: relative; height: 64px; cursor: pointer; touch-action: none; border-radius: 2px; }
.tl svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl-base { stroke: var(--ink); stroke-width: 1.25; }
.tl-tick { stroke: var(--ink); stroke-width: 1.2; }
.tl-tick.is-fut { stroke: var(--line); }
.tl-tick.is-deny { stroke: var(--red); stroke-width: 1.8; }
.tl-tick.is-deny.is-fut { stroke-width: 1px; }
.tl-ch { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.tl-ch.is-cur { stroke: var(--ink); stroke-width: 2; }
.tl-cn { font-size: 12px; fill: var(--ink-2); font-stretch: var(--wd-ui); font-variant-numeric: tabular-nums; }
.tl-cn.is-cur { fill: var(--ink); font-weight: 700; }
.tl-h { font-size: 12px; fill: var(--ink-2); font-stretch: var(--wd-ui); font-variant-numeric: tabular-nums; }
.tl-head { fill: var(--sill); stroke: var(--ink); stroke-width: 1.5; }

/* ---------- side: clock, player, decision, the panel of the screen ---------- */
.side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--paper); }
.bsheet-handle { display: none; }
.head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: relative; }
.crumb { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-stretch: var(--wd-ui); color: var(--ink-2); }
.crumb b { color: var(--ink); font-weight: 650; }
.crumb > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { display: flex; flex-direction: column; }
.clock time { font-size: var(--fs-time); line-height: .95; font-weight: 600; font-stretch: var(--wd-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.clock span { margin-top: 4px; font-size: 13px; color: var(--ink-2); font-stretch: 90%; }
.ctl { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; justify-content: end; }
.ctl .play { min-width: 76px; }
.ctl .speed, .ctl .chbtn { font-size: 14px; }
.ctl .chbtn { grid-column: span 2; }
.chapters {
  position: fixed; inset: auto; margin: 0; padding: 12px 0 8px; width: min(360px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 40px)); overflow: auto;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 10px 28px rgb(0 0 0 / .14);
}
.chapters:popover-open { top: 120px; right: 24px; left: auto; }
.chapters[hidden] { display: none; }
.chapters:not([popover]) { position: absolute; right: 20px; top: 100%; z-index: 40; }
.chapters-h { margin: 0 16px 6px; font-size: 14px; font-weight: 650; font-stretch: var(--wd-ui); color: var(--ink-2); }
.chapters-list { list-style: none; margin: 0; padding: 0; }
.chap { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; width: 100%; min-height: var(--tap); padding: 6px 16px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; }
.chap:hover { background: var(--tone); }
.chap-n { font-weight: 750; font-stretch: 70%; font-size: 20px; font-variant-numeric: tabular-nums; }
.chap-t { font-weight: 600; font-stretch: var(--wd-ui); }
.chap-m { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.now { flex: none; padding: 16px 20px 18px; border-bottom: 1px solid var(--line); min-height: 150px; max-height: 58%; overflow: auto; overscroll-behavior: contain; }
.panel { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 20px 24px; }
.panel .back { margin: 0 0 10px; font-size: 14px; }

/* ---------- desktop ---------- */
@media (min-width: 1100px) {
  .app { grid-template-columns: 148px minmax(0, 1fr) 400px; height: 100dvh; overflow: hidden; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .app { grid-template-columns: 128px minmax(0, 1fr) 356px; }
  .stop { font-size: 14px; }
  .clock time { font-size: 48px; }
  .strip .tblock > div:nth-child(2), .strip .tblock > div:nth-child(3) { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) and (max-width: 1099.98px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top top" "head head" "stage stage" "now panel"; align-content: start; }
  .top { grid-area: top; display: flex; align-items: center; gap: 20px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
  .top .brand { font-size: 26px; }
  .strip-slot { flex: 1; min-width: 0; }
  .rail { display: none; }
  .stops { display: flex; gap: 2px; margin-top: 10px; border-top: 1.5px solid var(--ink); }
  .stops li { flex: 1; min-width: 0; }
  .stop { padding: 8px 6px 2px; font-size: 14px; }
  .stop::before { left: 0; top: -8px; width: 0; height: 10px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .stop[aria-current="true"]::after { left: -6px; top: -10px; margin-top: 0; }
  .side { display: contents; }
  .head { grid-area: head; grid-template-columns: auto 1fr auto; align-items: center; padding: 10px 20px; }
  .crumb { grid-column: 2; grid-row: 1; flex-direction: column; gap: 0; }
  .clock { grid-column: 1; grid-row: 1; flex-direction: row; align-items: baseline; gap: 10px; }
  .clock time { font-size: 40px; }
  .ctl { grid-column: 3; grid-row: 1; grid-template-columns: repeat(5, auto); }
  .ctl .chbtn { grid-column: auto; }
  .chapters:popover-open { top: 132px; right: 20px; }
  .stage { grid-area: stage; border-bottom: 1px solid var(--line); }
  .vp { flex: none; height: clamp(380px, calc(100dvh - 300px), 720px); touch-action: pan-y; }
  .strip { padding: 4px 20px 8px; }
  .strip .tblock > div:nth-child(2), .strip .tblock > div:nth-child(3) { display: none; }
  .now { grid-area: now; border-bottom: 0; border-right: 1px solid var(--line); }
  .panel { grid-area: panel; overflow: visible; }
  .top-stamp { flex: none; }
  .top .theme { flex: none; font-size: 13px; padding: 0 10px; }
}
@media (min-width: 1000px) and (max-width: 1099.98px) {
  .app { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "top top" "stage side"; height: 100dvh; overflow: hidden; }
  .side { display: flex; grid-area: side; min-height: 0; }
  .head { grid-template-columns: 1fr; padding: 10px 16px; }
  .crumb { grid-column: 1; grid-row: auto; flex-direction: row; }
  .clock { grid-column: 1; grid-row: auto; }
  .ctl { grid-column: 1; grid-row: auto; grid-template-columns: repeat(5, auto); justify-content: start; }
  .stage { grid-area: stage; border-bottom: 0; min-height: 0; }
  .vp { flex: 1; height: auto; }
  .now { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel { overflow: auto; }
  .chapters:popover-open { top: 120px; right: 16px; }
}
@media (min-width: 640px) and (max-width: 839.98px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "head" "stage" "now" "panel"; }
  .now { border-right: 0; border-bottom: 1px solid var(--line); }
  .stop small { display: none; }
  .ctl .speed { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 639.98px) {
  .app { display: block; }
  .top { display: flex; position: fixed; z-index: 20; inset: 0 0 auto; height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .top .brand { font-size: 22px; }
  .top .strip-slot { display: none; }
  .top .theme { min-height: var(--tap); font-size: 13px; padding: 0 10px; margin-left: auto; }
  .top-stamp > span { font-size: 11.5px; }
  .rail { position: fixed; z-index: 22; inset: auto 0 0; height: calc(60px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); border: 0; border-top: 1px solid var(--ink); background: var(--paper); flex-direction: row; }
  .rail > .brand, .rail .legend, .rail .key, .rail .rail-end { display: none; }
  .depth { min-height: 0; flex: 1; }
  .rail-slot { position: static; height: 100%; }
  .rail .stops { display: flex; height: 100%; }
  .rail .stops li { position: static; transform: none; flex: 1; min-width: 0; }
  .stop { height: 100%; padding: 8px 2px 6px; align-items: center; text-align: center; font-size: 12.5px; border-radius: 0; }
  .stop small, .stop .lng { display: none; }
  .stop .sht { display: inline; }
  .stop::before { left: 50%; top: 0; width: 0; height: 7px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .stop[aria-current="true"]::after { left: 50%; top: auto; bottom: 5px; margin: 0 0 0 -5px; width: 10px; height: 10px; }
  .stage { position: fixed; z-index: 1; top: 48px; left: 0; right: 0; bottom: calc(60px + var(--peek, 178px) + env(safe-area-inset-bottom)); }
  .strip { padding: 2px 10px 4px; }
  .tl { height: 54px; }
  .strip .tblock { display: none; }
  .status { display: none; }
  .vp-ctl { left: auto; right: 8px; bottom: 8px; }
  .vp-ctl #zin, .vp-ctl #zout { display: none; }
  .card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100% - 16px); }
  #overlay .ch-n { font-size: 17px; }
  #overlay .ch-t { font-size: 22px; }
  .how { display: none; }
  .side { position: fixed; z-index: 21; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 120px); border: 0; border-top: 1.5px solid var(--ink); box-shadow: 0 -6px 18px rgb(0 0 0 / .08); }
  .bsheet-handle { display: flex; min-height: var(--tap); }
  .head { grid-template-columns: auto 1fr; padding: 6px 12px 8px; gap: 2px 10px; }
  .crumb { display: none; }
  .clock time { font-size: 34px; }
  .clock span { display: none; }
  .ctl { grid-template-columns: repeat(4, auto); gap: 6px; }
  .ctl .speed { display: none; }
  .ctl .chbtn { grid-column: auto; padding: 0 10px; }
  .ctl .play { min-width: 68px; }
  .chapters:popover-open { inset: auto 8px calc(70px + env(safe-area-inset-bottom)) 8px; width: auto; max-height: 70dvh; }
  .now { padding: 8px 14px 10px; min-height: 0; border-bottom: 0; }
  .side[data-open="false"] .now .note-says, .side[data-open="false"] .now .note-meta, .side[data-open="false"] .now .chain { display: none; }
  .side[data-open="false"] .panel { display: none; }
  .side[data-open="false"] .now .note-reason { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .side[data-open="true"] { overflow: auto; }
  .side > * { flex: none; }
  .side .now { max-height: none; overflow: visible; }
  .side[data-open="true"] .panel { overflow: visible; border-top: 1px solid var(--line); }
}
@media (max-width: 379.98px) {
  .ctl .chbtn { font-size: 13px; padding: 0 8px; }
  .clock time { font-size: 30px; }
  .stop { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
/* seats of line1, drawn by the player: ink blocks; held = hollow; a locked bar = a heavier edge */
.seat { cursor: pointer; }
.seat.is-locked { stroke: var(--ink); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.seat:focus-visible { outline: none; stroke: var(--sill); stroke-width: 4px; vector-effect: non-scaling-stroke; }
.mflow.is-refused { stroke: var(--red); stroke-dasharray: 3 3; }
.mflow.is-wait { stroke-dasharray: 8 4; }
.mflow-x { fill: none; stroke: var(--red); stroke-width: 1.8px; }
.link { fill: none; stroke: var(--ink); stroke-width: 1.4px; stroke-dasharray: 6 3 1.5 3; }
.cutmark { fill: none; stroke: var(--red); stroke-width: 1.6px; }
/* machines: a revoked licence crosses the figure; on a seat only the name stays, the seat is the mark */
.actor { cursor: pointer; }
.actor .fig-x { display: none; fill: none; stroke: var(--red); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.actor.is-revoked .fig-x { display: inline; }
.actor.is-revoked .fig { opacity: .45; }
.actor.is-seated .fig, .actor.is-seated .fig-x { display: none; }
.actor:focus-visible { outline: none; }
.actor:focus-visible .fig { stroke: var(--sill); stroke-width: 5px; vector-effect: non-scaling-stroke; paint-order: stroke; }
/* only the side panel takes part in the view transition; the page stays put */
.side { view-transition-name: esik-side; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(esik-side), ::view-transition-new(esik-side) { animation-duration: 200ms; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
/* a label that would cover another one at this zoom (see declutter in player.js) */
#sheet text[data-off] { visibility: hidden; }
.vp[data-boot]::after { content: "Reading the sample day ..."; position: absolute; left: 50%; top: 45%; transform: translateX(-50%); font-size: 15px; color: var(--ink-2); }
/* machines and seats: a pad of 44 px or more for a finger or a cursor */
#sheet .apad { fill: transparent; stroke: none; pointer-events: all; }
/* the chapter title is set on paper: a level line never runs through it */
#overlay .ch-n, #overlay .ch-t, #overlay .ch-m { paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
/* paper bands: behind the pinned levels, and under the zoom buttons when the ledger is the drawing */
#overlay .band { fill: var(--paper); stroke: none; }
#overlay .band-b { stroke: var(--line); stroke-width: 1px; }
/* the opening draws the section with the titles of its drawings only */
#sheet[data-opening] text:not(.title) { visibility: hidden; }

/* ---------- the film: the plumb line, the stamp band, the drawing titles, the inserts ---------- */
/* the zoom buttons stand in the strip, right of the timeline: the drawing room keeps no control */
.strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.strip .tl { grid-column: 1; grid-row: 1; min-width: 0; }
.strip .vp-ctl { position: static; grid-column: 2; grid-row: 1; }
.strip .tblock { grid-column: 1 / -1; }
.ctl .chbtn { grid-column: auto; }
.ctl .cut { font-size: 14px; }
.ctl .cut[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (min-width: 640px) and (max-width: 1099.98px) { .ctl { grid-template-columns: repeat(6, auto); } }
@media (min-width: 1000px) and (max-width: 1099.98px) { .ctl { grid-template-columns: repeat(3, auto); } }
@media (max-width: 839.98px) { .ctl .cut { display: none; } }
@media (max-width: 639.98px) { .strip .vp-ctl { gap: 4px; } }
#overlay .band-rule { stroke: var(--line); stroke-width: 1px; }
#overlay .plumb { stroke: var(--ink); stroke-width: 1.4px; }
#overlay .plumb.is-deny { stroke: var(--red); }
#overlay .trace.is-faint, #overlay .lead.is-faint { stroke: var(--line); stroke-dasharray: 3 3; }
#overlay .bob { fill: var(--ink); stroke: var(--ink); stroke-width: 1px; stroke-linejoin: round; }
#overlay .bob.is-deny { fill: var(--paper); stroke: var(--red); stroke-width: 1.6px; }
#overlay .bob.is-open { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4px; }
#overlay .stamp-tick { stroke: var(--ink); stroke-width: 1px; }
#overlay .stamp.is-deny .stamp-tick { stroke: var(--red); }
#overlay .stamp.is-read .snote-word { font-size: 22px; fill: var(--ink-2); }
#overlay .snote-meta.b { font-weight: 650; fill: var(--ink); }
#overlay .ch-u { stroke: var(--ink); stroke-width: 2px; }
#overlay .ch-u2 { stroke: var(--ink); stroke-width: 1px; }
#overlay .ch-b { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5px; }
#overlay .ch-t, #overlay .ch-m, #overlay .ch-n { paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
#overlay .callout { fill: var(--ink); }
#overlay .dbubble { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5px; }
#overlay .dbubble-t { font-size: 12.5px; font-weight: 700; }
#overlay .ghost { fill: none; stroke: var(--red); stroke-width: 1.3px; stroke-dasharray: 3 2; }
#overlay .opening-plumb { stroke-width: 1.2px; }
#overlay .closing-sum { font-size: 15px; font-weight: 650; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
#overlay .notes-t { font-size: 18px; font-weight: 700; font-stretch: var(--wd-word); fill: var(--ink); }
#overlay .notes-l, #overlay .notes-n, #overlay .notes-r { font-size: 13.5px; fill: var(--ink); }
#overlay .notes-n, #overlay .notes-r { font-weight: 700; font-variant-numeric: tabular-nums; }
#overlay .notes-s { font-size: 12.5px; fill: var(--ink-2); }
#sheet .lexp-l { stroke: var(--ink-2); stroke-width: .75px; vector-effect: non-scaling-stroke; opacity: .55; }
#sheet .lexp-l.is-deny { stroke: var(--red); opacity: .8; }
/* the fire: the sills change floor by floor (the delay is set per sill by the player) */
#sheet .is-sweep .sill { transition: fill 140ms var(--ease); }
/* the insert: a detail drawing in a window; it opens from the side of its bubble */
.insert { position: absolute; z-index: 2; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--ink); pointer-events: none; clip-path: inset(0 0 0 100%); }
.insert[hidden] { display: none; }
.insert.is-shown { clip-path: inset(0 0 0 0); }
.insert.is-anim { transition: clip-path 160ms var(--ease); }
.insert-t { flex: none; margin: 0; padding: 6px 10px 5px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.25; font-stretch: var(--wd-ui); }
.insert-t b { font-weight: 700; margin-right: 8px; }
.insert-t span { color: var(--ink-2); }
.insert-s { flex: 1; width: 100%; min-height: 0; display: block; }
@media (prefers-reduced-motion: reduce) { .insert.is-anim { transition: none; } }
/* the night: the sheet turns dark in one crossfade */
.vt-night::view-transition-old(root) { animation: vt-out 600ms var(--ease) both; }
.vt-night::view-transition-new(root) { animation: vt-in 600ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
#overlay .mtick { stroke: var(--ink); stroke-width: 1px; fill: none; }
#overlay .money-l { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
#overlay .jobtag { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25px; }
#overlay .jobtag-t { font-size: 12.5px; font-weight: 650; }
#sheet[data-closing] text:not(.title) { visibility: hidden; }
.tl-tick.is-cut { stroke: var(--line); stroke-width: .8; }
.chapters .cut-in { display: flex; margin: 2px 16px 10px; font-size: 14px; }
.chapters .cut-in[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
/* the yearly payment seen on the whole row: only the titles of the drawings stay */
#sheet[data-wide] text:not(.title) { visibility: hidden; }
