@font-face { font-family: Barlow; src: url(assets/fonts/BarlowSemiCondensed-Medium.ttf); font-weight: 400 500; }
@font-face { font-family: Barlow; src: url(assets/fonts/BarlowSemiCondensed-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: Barlow; src: url(assets/fonts/BarlowSemiCondensed-Bold.ttf); font-weight: 700 800; }

:root {
  --navy: #1d4a66;
  --navy-deep: #153a52;
  --coral: #e2553b;
  --ink: #1b2733;
  --muted: #5b6b7a;
  --line: #d9e2ea;
  --paper: #ffffff;
  --bg: #eef3f7;
  --red: #dc2828;
  --green: #1e9f3c;
  --amber: #d98c0a;
  --sel: #e2553b;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(16, 42, 60, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100%;
  font: 16px/1.45 Barlow, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg);
}
button { font: inherit; cursor: pointer; }
a { color: var(--navy); }

/* top bar */
.bar { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--navy); color: #fff; }
.brand img { display: block; height: 40px; width: auto; }
.bar-title { font-weight: 600; font-size: 19px; opacity: .92; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.25); }
.private { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  background: rgba(255,255,255,.12); font-weight: 600; font-size: 15px; }
.private svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; }

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* start */
.start { width: 100%; }
/* welcome (option A): the tool on the left, the product on the right; the top bar only appears with results */
body.welcome .bar { display: none; }
.hero { display: grid; grid-template-columns: minmax(420px, 640px) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: #fff; }
.hero-left { padding: 40px 64px 36px; display: flex; flex-direction: column; gap: 22px; }
.hero-logo { height: 46px; width: auto; align-self: flex-start; }
.hero-left h1 { margin: 6px 0 0; font-size: 56px; line-height: 1.03; color: #12344a; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero-left h1 em { font-style: normal; color: var(--coral); }
.lead { margin: 0; font-size: 19px; color: #4d5d6b; max-width: 32em; }
.slots { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hero .slot { min-height: 0; padding: 18px 22px; background: #f8fafc; }
.trust { list-style: none; padding: 0; margin: -4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #4d5d6b; font-size: 15px; font-weight: 600; }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-right { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, #2f6f95 0%, #1d4a66 45%, #102c3e 100%); }
.hero-nav { position: absolute; top: 30px; right: 40px; display: flex; gap: 28px; z-index: 2; }
.hero-nav a { color: #d8e6f0; font-weight: 600; text-decoration: none; }
.hero-nav a:hover { color: #fff; text-decoration: underline; }
.hero-shot { position: absolute; left: 8%; top: 20%; width: 108%; max-width: none; height: auto; border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45); transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.hero-chip { position: absolute; z-index: 2; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 14px 34px rgba(0,0,0,.3);
  font-weight: 600; font-size: 15px; color: var(--ink); display: flex; flex-direction: column; }
.hero-chip b { font-size: 28px; line-height: 1.05; color: var(--navy); }
.hero-chip.c1 { right: 7%; top: 13%; } .hero-chip.c2 { left: 9%; bottom: 9%; }
.hero-chip.c3 { right: 9%; bottom: 17%; flex-direction: row; align-items: center; gap: 8px; }
.hero-chip svg { width: 17px; height: 17px; fill: none; stroke: var(--navy); stroke-width: 2; }
.below { max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px; }

/* how it works: the pipeline */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.how .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.how-kick { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--coral); text-transform: uppercase; margin-bottom: 6px; }
.how h2 { margin: 0; font-size: 40px; line-height: 1.05; color: #12344a; text-wrap: balance; }
.how-intro { margin: 10px 0 0; color: #4d5d6b; font-size: 18px; max-width: 46em; }
.how-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.flow { margin-top: 34px; display: grid; grid-template-columns: 210px 64px minmax(0, 1fr); align-items: center; }
.docs { display: grid; gap: 14px; }
.doc { margin: 0; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(16,42,60,.12); overflow: hidden; }
.doc img { display: block; width: 100%; height: 86px; object-fit: cover; }
.doc figcaption { padding: 8px 12px; font-weight: 600; font-size: 14px; }
.doc small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.flow-arrow { height: 3px; background: var(--navy); position: relative; margin: 0 10px 0 6px; }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border-left: 12px solid var(--navy); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; }
.flow-box { position: relative; display: grid; grid-template-columns: 300px 64px minmax(0, 1fr); align-items: center; padding: 22px 18px; }
.boundary { position: absolute; inset: 0; border: 2px dashed #9fb6c8; border-radius: 24px; pointer-events: none; }
.boundary span { position: absolute; top: -14px; left: 24px; background: var(--bg); padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.boundary .ico { width: 18px; height: 18px; }
.engine { background: linear-gradient(160deg, #24597a, #12344a); color: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 14px 34px rgba(16,42,60,.3); }
.engine h3 { margin: 0 0 12px; font-size: 22px; display: flex; align-items: center; gap: 10px; color: #fff; }
.engine .lock { color: var(--coral); }
.engine ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.engine li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; font-size: 15px; color: #d7e6f0; }
.engine li b { display: block; color: #fff; font-size: 16px; }
.engine li .ico { color: #8cc2e6; }
.outs { display: grid; gap: 16px; }
.out { border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.out .num { font-size: 40px; line-height: 1; font-weight: 700; grid-row: span 2; }
.out b { font-size: 20px; }
.out span { font-size: 14.5px; }
.out.real { background: #fff; border: 2px solid var(--coral); } .out.real .num, .out.real b { color: #c2412a; }
.out.lay { background: #e6ecf1; border: 2px dashed #a9b8c5; color: #5f6f7d; } .out.lay .num { color: #8a9aa8; }
.then { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: #4d5d6b; }
.then .how-tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d3dde6; border-radius: 99px; padding: 4px 12px; font-weight: 600; color: #12344a; }
.then .ico { width: 17px; height: 17px; }
@media (max-width: 1000px) {
  .flow, .flow-box { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs { grid-template-columns: 1fr 1fr; }
  .flow-arrow { width: 3px; height: 34px; margin: 6px auto; }
  .flow-arrow::after { right: -6px; top: auto; bottom: -2px; border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; border-top: 12px solid var(--navy); border-bottom: 0; }
  .how h2 { font-size: 30px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-left { padding: 28px 20px; }
  .hero-left h1 { font-size: 40px; }
  .hero-right { min-height: 340px; }
}
.slot { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; min-height: 150px;
  background: var(--paper); border: 2px dashed #b9c8d5; border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.slot:hover, .slot.drag { border-color: var(--navy); box-shadow: var(--shadow); }
.slot.drag { transform: translateY(-2px); }
.slot.has { border-style: solid; border-color: var(--navy); }
.slot-kind { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.slot-title { font-size: 24px; font-weight: 700; color: var(--navy); }
.slot-file { color: var(--muted); overflow-wrap: anywhere; }
.slot.has .slot-file { color: var(--ink); font-weight: 600; }
.slot-page { margin-top: 8px; align-self: flex-start; font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.go { display: flex; align-items: center; gap: 18px; margin: 26px 0 8px; flex-wrap: wrap; }
.hero .go { margin: 0; }
.primary { padding: 13px 38px; border: 0; border-radius: 99px; background: var(--coral); color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(226, 85, 59, .3); }
.primary:disabled { background: #c9d3dc; box-shadow: none; cursor: default; }
.engine { color: var(--muted); font-weight: 600; }
.engine.ok { color: var(--green); }
.engine.ok::before { content: "● "; }
.fine { margin: 0 0 26px; font-size: 14px; color: var(--muted); }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.points li { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); font-size: 15px; }
.points b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 2px; }

/* the notice when the page opens */
.notice { padding: 0; border: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(10, 30, 45, .35); }
.notice::backdrop { background: rgba(15, 30, 42, .55); }
.notice-top { background: var(--navy); padding: 18px 24px 14px; }
.notice-top img { display: block; height: 46px; width: auto; }
.notice-body { padding: 18px 24px 6px; color: var(--ink); }
.notice-body h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.notice-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.notice-fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.notice-bar { display: flex; justify-content: flex-end; padding: 10px 24px 20px; }
.notice-bar .primary { font-size: 17px; padding: 10px 28px; }
.notice.closing::backdrop { opacity: 0; transition: opacity .6s ease; }

/* where the notice goes after "I agree" — read it again from there */
.notice-again { font: inherit; cursor: pointer; border: 0; transition: opacity .2s; }
.notice-again.waiting { opacity: 0; }
.notice-again.arrived { animation: arrived 1.5s ease-out; }
@keyframes arrived { 0% { box-shadow: 0 0 0 0 rgba(226, 85, 59, .7); } 70% { box-shadow: 0 0 0 14px rgba(226, 85, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 85, 59, 0); } }
@media (prefers-reduced-motion: reduce) { .notice-again.arrived { animation: none; } }
/* the pill: in the welcome screen's links and in the results' top bar */
.notice-again.pill { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 99px;
  padding: 4px 14px; font-weight: 600; font-size: 15px; }
.notice-again.pill:hover { background: rgba(255,255,255,.26); }
.notice-again.pill.on-bar { margin-left: auto; }
.notice-again.pill.on-bar + .private { margin-left: 0; }
body.welcome .notice-again.on-bar { display: none; }


/* videos */
.videos { margin-top: 40px; }
.videos h2 { margin: 0 0 4px; color: var(--navy); font-size: 26px; }
.videos .fine { margin-bottom: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.video { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.video .poster { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.video .poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .module { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85; }
.video .play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--coral); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.video .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video .soon-tag { padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4); font-size: 14px; font-weight: 600; }
.video h3 { margin: 12px 14px 2px; font-size: 17px; color: var(--navy); }
.video p { margin: 0 14px 14px; font-size: 14px; color: var(--muted); }

/* working */
.working { max-width: 560px; margin: 70px auto; padding: 0 24px; text-align: center; }
.working h2 { color: var(--navy); margin: 18px 0 14px; font-size: 28px; }
.spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid #cfdbe5; border-top-color: var(--coral);
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.steps { list-style: none; padding: 0; margin: 0; text-align: left; display: inline-block; color: var(--muted); }
.steps li { padding: 3px 0 3px 26px; position: relative; }
.steps li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.steps li:last-child { color: var(--ink); font-weight: 600; }
.steps li:last-child::before { content: "›"; color: var(--coral); }

/* results */
.results { flex: 1; display: grid; grid-template-columns: 380px minmax(0, 1fr); min-height: 0; }
/* the results screen is exactly one window high: only the list and the drawings scroll, never the page */
body.has-results { height: 100vh; height: 100dvh; overflow: hidden; }
body.has-results main { min-height: 0; }
.list { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-right: 1px solid var(--line); }
.list-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.summary { font-size: 15px; color: var(--muted); }
.summary b { color: var(--navy); font-size: 26px; display: block; line-height: 1.1; }
.warn { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fff4df; color: #7a4b00; font-size: 14px; }
.groups { flex: 1; overflow: auto; outline: none; }
.group > h3 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 9px 18px; display: flex; align-items: center; gap: 8px;
  background: #f4f7fa; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--navy); cursor: pointer; user-select: none; }
.group > h3 .n { margin-left: auto; font-weight: 600; color: var(--muted); }
.group > h3 .tw { transition: transform .15s; display: inline-block; }
.group.closed > h3 .tw { transform: rotate(-90deg); }
.group.closed .rows { display: none; }
.group .note { font-weight: 500; color: var(--muted); font-size: 13px; }
.prog { height: 7px; border-radius: 9px; background: #e3e9ef; overflow: hidden; margin: 8px 0 10px; }
.prog i { display: block; height: 100%; width: 0; background: var(--green); transition: width .25s; }
.list-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.go-btn { border: 0; border-radius: 99px; padding: 7px 16px; background: var(--coral); color: #fff; font-weight: 700; }
.go-btn:disabled { background: #c9d3dc; cursor: default; }
.filter { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.filter select { font: inherit; padding: 4px 6px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.empty { padding: 18px; color: var(--muted); }

.row { border-bottom: 1px solid #eef2f5; border-left: 4px solid transparent; }
.row-main { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 14px 9px 10px; color: inherit; }
.row-main:hover { background: #f6f9fb; }
.row .no { font-weight: 700; font-size: 13px; color: #fff; border-radius: 99px; padding: 0 6px; text-align: center; line-height: 20px;
  background: var(--amber); align-self: center; }
.row[data-kind="removed"] .no { background: var(--red); }
.row[data-kind="added"] .no { background: var(--green); }
.row[data-kind="layout"] .no { background: #8a9aa8; }
.row[data-status="accepted"] .no, .row[data-status="rejected"] .no { opacity: .45; }
.row .txt { min-width: 0; }
.row .what { font-weight: 700; color: var(--ink); }
.row .chg { color: var(--navy); font-weight: 600; }
.row .val { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.chip { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; white-space: nowrap; align-self: center; }
.chip:empty { display: none; }
.chip.accepted { background: #e3f5e8; color: #17762f; }
.chip.rejected { background: #eef1f4; color: #5b6b7a; }
.row.has-note .txt::after { content: "✎ note"; display: block; font-size: 12px; color: var(--coral); font-weight: 600; }
.row.sel { background: #fdf0ec; border-left-color: var(--coral); }
.row.sel .row-main:hover { background: transparent; }
.acts { display: none; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px 48px; }
.row.sel .acts { display: flex; }
.act { padding: 5px 11px; border-radius: 8px; border: 1px solid #cfd9e2; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; }
.act:hover { border-color: var(--navy); }
.act.ok { background: var(--green); border-color: var(--green); color: #fff; }
.act.rej:hover { border-color: #5b6b7a; }
.act.undo { display: none; }
.row[data-status="accepted"] .act.undo, .row[data-status="rejected"] .act.undo { display: inline-block; }
.row[data-status="accepted"] .act.ok { background: #fff; color: var(--green); border-color: var(--green); }
.note-box { display: none; width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid #cfd9e2; resize: vertical; }
.row.sel.noting .note-box, .row.sel.has-note .note-box { display: block; }
.keys { padding: 7px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
kbd { font: 600 12px Barlow, "Segoe UI", sans-serif; border: 1px solid #cfd9e2; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px;
  background: #fff; color: var(--muted); }
.list-foot { display: grid; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.who input { flex: 1; min-width: 0; font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); }
.foot-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; }
.ghost:hover { border-color: var(--navy); }
.ghost.strong { border-color: var(--navy); }
.ghost.small { padding: 5px 12px; }

.viewer { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.view-tools { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.seg { display: inline-flex; background: #dbe5ed; border-radius: 99px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 16px; border-radius: 99px; color: var(--navy); font-weight: 600; }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.legend { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.k.red { background: var(--red); } .k.green { background: var(--green); } .k.black { background: #222; } .k.amber { background: var(--amber); }
.dim { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#fit { margin-left: auto; }

/* markup tools (on the revised drawing) */
.mark-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 14px 10px; }
.mt-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mark-tools .tools { display: inline-flex; flex-wrap: wrap; background: #dbe5ed; border-radius: 10px; padding: 3px; gap: 2px; }
.tool { border: 0; background: none; padding: 5px 10px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 14px; }
.tool:hover { background: rgba(255,255,255,.6); }
.tool.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.swatches { display: inline-flex; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c3cfd9; padding: 0; }
.swatch.red { background: #d1242f; } .swatch.blue { background: #1a5fd6; } .swatch.green { background: #1e8a45; }
.swatch.on { box-shadow: 0 0 0 2px var(--navy); }
.mark-tools .ghost:disabled { opacity: .45; cursor: default; }
.pane.drawing { cursor: crosshair; }
.stage svg.inks { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.mk-marker { mix-blend-mode: multiply; }
.mk-input { position: absolute; z-index: 3; min-width: 180px; font: 600 15px Arial, Helvetica, sans-serif; padding: 4px 8px;
  border: 2px solid var(--navy); border-radius: 6px; background: #fff; }
.panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; min-height: 0; }
.panes.single { grid-template-columns: 1fr; }
.pane { position: relative; overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(16,42,60,.12);
  cursor: grab; touch-action: none; }
.pane.dragging { cursor: grabbing; }
.pane-label { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 2px 10px; border-radius: 6px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--navy); pointer-events: none; }
.pane-label.ref { background: #2f6f95; } .pane-label.rev { background: #2e7d4f; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage img { display: block; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
/* marks on the drawing: sizes in screen pixels via --inv (1 / zoom) */
.marks { position: absolute; left: 0; top: 0; width: 0; height: 0; }
/* the pin's bottom centre sits on the top middle of the change; it keeps its screen size at any zoom */
.pin { position: absolute; transform: translate(-50%, calc(-100% - 2px)) scale(var(--inv, 1)); transform-origin: 50% 100%;
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px 12px 12px 3px;
  color: #fff; font: 700 13px Barlow, "Segoe UI", sans-serif; background: var(--amber); box-shadow: 0 2px 6px rgba(0,0,0,.3);
  border: 2px solid #fff; white-space: nowrap; cursor: pointer; }
.pin.removed { background: var(--red); } .pin.added { background: var(--green); } .pin.layout { background: #8a9aa8; }
.pin.accepted, .pin.rejected { opacity: .55; }
.pin:hover, .pin:focus-visible { opacity: 1; outline: 2px solid var(--navy); z-index: 2; }
.spot { position: absolute; border-radius: 6px; pointer-events: none;
  border: calc(3px * var(--inv, 1)) solid var(--amber); }
.spot.dim { box-shadow: 0 0 0 100000px rgba(20, 35, 50, .30); }
.spot.removed { border-color: var(--red); } .spot.added { border-color: var(--green); } .spot.layout { border-color: #8a9aa8; }
.tag { position: absolute; transform: translateY(-100%) scale(var(--inv, 1)); transform-origin: 0 100%; white-space: nowrap; pointer-events: none;
  background: #fff; color: var(--ink); border-radius: 8px; padding: 3px 10px; margin-top: -6px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); border-left: 4px solid var(--amber); }
.tag.removed { border-left-color: var(--red); } .tag.added { border-left-color: var(--green); } .tag.layout { border-left-color: #8a9aa8; }
.hint { margin: 6px 14px 10px; color: var(--muted); font-size: 13px; }

.error { max-width: 760px; margin: 24px auto; padding: 14px 18px; border-radius: 10px; background: #fde8e4; color: #8a1f0c; font-weight: 600; }

.foot { padding: 18px 24px 22px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); background: #f8fafc; }
.foot p { max-width: 980px; margin: 0 auto 6px; }
.foot .small { font-size: 13px; }
.soon { color: var(--coral); font-weight: 600; }
body.has-results .foot { display: none; }

@media (max-width: 860px) {
  .slots { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .points { grid-template-columns: 1fr; }
  .start h1 { font-size: 30px; }
  .bar-title { display: none; }
  .private { font-size: 13px; }
  .results { grid-template-columns: 1fr; grid-template-rows: 40% 60%; }
  .panes { grid-template-columns: 1fr; }
}
