/* The prototype shell: the review board's look (Lato, CT ink and blue, white cards on a light
   canvas). The product screens inside the frame keep their own CSS. */
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url("../../assets/files/c82e22dde971.woff2") format("woff2"); }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url("../../assets/files/8a49976f2470.woff2") format("woff2"); }
@font-face { font-family: Lato; font-style: normal; font-weight: 300; font-display: swap; src: url("../../assets/files/f48e6d698147.woff2") format("woff2"); }
:root {
  --ink: #0d364a; --ink-2: #2b4a5c; --text: #3b5466; --muted: #5f7889; --line: #dbe4ea; --line-2: #e9eff3;
  --blue: #1691c6; --blue-soft: #e8f3f9; --green: #3a8f16; --green-soft: #edf7e8; --red: #c6362f; --red-soft: #fbecec;
  --grey: #7a92a8; --grey-soft: #eef2f5; --amber: #f5a623;
  --canvas: #f3f6f8; --card: #fff; --r: 10px; --rail: 368px; --top: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 14px/1.45 Lato, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.top { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 18px; height: var(--top); padding: 0 16px 0 18px; }
.brand img { display: block; height: 22px; width: auto; }
.ttl { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.ttl b { color: var(--ink); font-size: 15px; }
.ttl span { color: var(--muted); font-size: 12.5px; }
.clock { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); }
.clock .ic { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.clock time { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 152px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, transform .1s; }
.tb:hover { border-color: var(--blue); color: var(--blue); }
.tb:active { transform: translateY(1px); }
.tb[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tb[aria-pressed="true"] b { color: #fff; }
.tb b { font-weight: 700; color: var(--muted); }
.tb-link { color: var(--blue); }
/* Shorter labels where the top bar runs out of room (it must never scroll sideways). */
.tb-link .sm { display: none; }
@media (max-width: 1280px) { .tb-link .lg { display: none; } .tb-link .sm { display: inline; } }
.sw { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-ui { width: 30px; height: 18px; border-radius: 9px; background: #c9d5de; position: relative; transition: background .2s; flex: none; }
.sw-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(13, 54, 74, .3); }
.sw input:checked + .sw-ui { background: var(--green); }
.sw input:checked + .sw-ui::after { transform: translateX(12px); }
.sw input:focus-visible + .sw-ui { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); height: calc(100dvh - var(--top)); }
.app.rail-closed { grid-template-columns: minmax(0, 1fr) 0; }
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; outline: none; }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 52px; border-bottom: 1px solid var(--line-2); background: rgba(255, 255, 255, .6); }
.where { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); }
.where .av { flex: none; }
.where .w-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where b { color: var(--ink); }
.stage-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.seg button { border: 0; background: transparent; height: 26px; padding: 0 11px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg[hidden] { display: none; }
.btn-book { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-book[aria-disabled="true"] { background: #fff; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 16px; }
.viewport.scroll { overflow: auto; }
.device { margin: 0 auto; transform-origin: top center; }
.clip { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(13, 54, 74, .06), 0 12px 32px -16px rgba(13, 54, 74, .28); }
.clip iframe { display: block; border: 0; transform-origin: 0 0; background: #fff; }
.device.phone .clip { border: 9px solid #dfe7ed; border-radius: 34px; box-shadow: 0 0 0 1px #c9d5de, 0 18px 40px -18px rgba(13, 54, 74, .45); }
.loading .clip::after { content: "Loading the screen"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--muted); font-weight: 700; }

/* ---------- toasts ---------- */
.toasts { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 20; width: min(560px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 10px 30px -10px rgba(13, 54, 74, .5); animation: toast-in .25s var(--ease); }
.toast.ok { background: #1f5f2b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- rail ---------- */
.rail { position: relative; border-left: 1px solid var(--line); background: #fff; min-height: 0; overflow: hidden; }
.app.rail-closed .rail { border-left: 0; }
.rail-in { height: 100%; overflow-y: auto; padding: 4px 0 40px; overscroll-behavior: contain; }
.sheet-bar { display: none; }
.r-sec { padding: 16px 18px 6px; }
.r-sec + .r-sec { border-top: 1px solid var(--line-2); }
.r-sec h2 { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.3; }
.h-sub { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.r-note { margin: -4px 0 10px; color: var(--muted); font-size: 12.5px; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.person:hover { border-color: #b9cdda; }
.person[aria-pressed="true"] { border-color: var(--ink); background: #f6fafc; box-shadow: inset 4px 0 0 var(--ink); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--ink); }
.av.m { background: var(--blue); }
.av.c { background: #4c6a7d; }
.av.a { background: #2d7a57; }
.pn { min-width: 0; display: grid; }
.pn b { color: var(--ink); font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.pn b em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 9px; padding: 0 7px; }
.pn .role { color: var(--muted); font-size: 12.5px; }
.pn .at { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn .at::before { content: "Now: "; color: var(--muted); }
.pn .gone { color: var(--red); font-size: 12px; }
.places { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px 44px; }
.places button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.places button:hover { border-color: var(--blue); color: var(--blue); }
.places button[aria-current="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); }

.diagram svg { display: block; width: 100%; height: auto; }
.diagram .node rect.box { fill: #fff; stroke-width: 2; transition: fill .3s, stroke-width .3s; }
.diagram .node.now rect.box { stroke-width: 4; }
.diagram .now-tag { opacity: 0; }
.diagram .node.now .now-tag { opacity: 1; }
#state-now { color: var(--ink); font-weight: 700; }

.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hist li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.hist li:last-child { border-bottom: 0; }
.hist li.new { animation: row-in .5s var(--ease); }
@keyframes row-in { from { background: var(--blue-soft); } to { background: transparent; } }
.hist time { color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.35; }
.hist .ev { color: var(--ink); }
.hist .ev b { font-weight: 700; }
.hist .meta { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.hist .empty { display: block; color: var(--muted); padding: 6px 0 10px; border: 0; }
.books { margin-top: 12px; padding: 10px 12px; background: var(--canvas); border-radius: 8px; font-size: 12.5px; }
.books h3 { margin: 0 0 6px; font-size: 12.5px; color: var(--ink); }
.books ul { margin: 0; padding-left: 16px; }
.books li { margin: 3px 0; }

.presets { display: grid; gap: 6px; }
.presets button { text-align: left; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.presets button span { color: var(--muted); font-weight: 400; font-size: 12px; }
.presets button:hover { border-color: var(--blue); }

/* ---------- the tour panel ---------- */
.tour { margin: 12px 12px 4px; border-radius: 12px; background: var(--ink); color: #dbe9f1; padding: 14px 14px 12px; }
.tour[hidden] { display: none; }
.tour-head { display: flex; align-items: center; gap: 8px; }
.tour-head select { flex: 1; min-width: 0; height: 30px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 8px; font-weight: 700; font-size: 13px; }
.tour-head select option { color: var(--ink); }
.tour-count { font-size: 12px; color: #a9c6d6; white-space: nowrap; }
.tour-kicker { margin-top: 12px; font-size: 12px; font-weight: 700; color: #8fd0f0; }
.tour h3 { margin: 2px 0 6px; color: #fff; font-size: 17px; line-height: 1.25; }
.tour .who { font-size: 13px; color: #c6dbe7; }
.tour .who b { color: #fff; }
.tasks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.tasks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; color: #a9c6d6; }
.tasks li .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #5b7f93; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; margin-top: 1px; }
.tasks li.done .tick { background: #3fa318; border-color: #3fa318; }
.tasks li.done { color: #a9c6d6; text-decoration: line-through; text-decoration-color: rgba(169, 198, 214, .5); }
.tasks li.cur { color: #fff; font-weight: 700; }
.tasks li.cur .tick { border-color: var(--amber); background: rgba(245, 166, 35, .15); }
.task-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 30px; }
.tour .b { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.tour .b:hover { background: rgba(255, 255, 255, .1); }
.tour .b.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tour .b.primary:hover { background: #f7b84a; }
.tour .b[disabled] { opacity: .45; cursor: not-allowed; }
.tour-notes { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 8px; }
.tour-notes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13px; color: #dbe9f1; }
.tour-notes .n { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.tour-notes-h { margin-top: 14px; font-size: 12px; font-weight: 700; color: #8fd0f0; }
.tour-nav { display: flex; gap: 8px; margin-top: 14px; }
.tour-nav .sp { flex: 1; }
.tour-msg { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 13px; color: #fff; }
.tour-done { margin-top: 10px; font-weight: 700; color: #b8f09a; }

/* A tour target in the shell itself: outline plus a text label, never colour alone. */
.tour-target { position: relative; outline: 3px solid var(--ink) !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(245, 166, 35, .85) !important; }
.tour-target::after { content: attr(data-tour-label); position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); background: var(--ink); color: #fff; font: 700 12.5px/1.2 Lato, sans-serif; padding: 6px 9px; border-radius: 6px; white-space: nowrap; z-index: 40; box-shadow: 0 0 0 2px #fff; pointer-events: none; }

/* ---------- responsive: a drawer under 1180px, a bottom sheet at phone widths ---------- */
@media (max-width: 1180px) {
  .app, .app.rail-closed { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; top: var(--top); right: 0; bottom: 0; width: min(var(--rail), 92vw); z-index: 25; box-shadow: -12px 0 32px -16px rgba(13, 54, 74, .4); transform: translateX(0); transition: transform .3s var(--ease); }
  .app.rail-closed .rail { transform: translateX(105%); }
  .ttl span { display: none; }
  .brand { display: none; }
  .clock { margin-left: 0; }
}
@media (max-width: 860px) {
  :root { --top: 104px; }
  .top-row { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px 10px; }
  .clock { margin-left: auto; }
  .clock time { min-width: 0; }
  .tools { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
}
@media (max-width: 640px) {
  :root { --top: 100px; }
  body { font-size: 14px; }
  .top-row { padding: 8px 10px; }
  .ttl, .brand { display: none; }
  .sw .lg { display: none; }
  .clock { margin-left: 0; width: 100%; justify-content: space-between; }
  .clock time { font-size: 13px; }
  .stage-bar { flex-wrap: wrap; padding: 8px 10px; gap: 6px; min-height: 0; }
  .where { width: 100%; font-size: 13px; }
  .stage-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  #btn-rail { display: none; }
  .viewport { padding: 8px 8px 74px; }
  .device.phone .clip { border-width: 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
  .rail { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(78dvh, 640px); border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px -16px rgba(13, 54, 74, .45); transform: translateY(calc(100% - 58px)); }
  .app.rail-closed .rail { transform: translateY(calc(100% - 58px)); }
  .app.sheet-open .rail { transform: translateY(0); }
  .sheet-bar { display: flex; align-items: center; gap: 8px; height: 58px; padding-right: 12px; background: #fff; border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--line-2); }
  .sheet-handle { display: flex; flex: 1; min-width: 0; height: 58px; align-items: center; gap: 10px; padding: 0 8px 0 16px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--ink); font-weight: 700; font-size: 13.5px; }
  .sheet-doit { flex: none; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--amber); background: var(--amber); color: var(--ink); font-weight: 700; cursor: pointer; }
  .sheet-doit[hidden] { display: none; }
  .sheet-handle .grip { width: 36px; height: 5px; border-radius: 3px; background: #c9d5de; flex: none; }
  #sheet-peek { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail-in { height: calc(100% - 58px); }
  .toasts { bottom: 70px; }
  .tour-target::after { white-space: normal; width: max-content; max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- E3 additions ---------- */
.av-margaret { background: var(--blue); }
.av-daniel { background: var(--ink); }
.av-aisha { background: #2d7a57; }
.av-compliance { background: #4c6a7d; }
.places .leave { border-style: dashed; color: var(--red); }
.places .leave:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.places .gone { align-self: center; color: var(--red); font-size: 12px; font-weight: 700; }
.aus { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aus li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; }
.aus li b { color: var(--ink); }
.aus li span { grid-column: 1; color: var(--muted); }
.aus li em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; font-size: 12px; text-align: right; }
.aus li.ok em { color: var(--green); }
.aus li.no { background: var(--canvas); }
.aus li.no em { color: var(--red); }
.aus li.empty { display: block; color: var(--muted); border: 0; padding: 4px 0; }
.nth { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--grey); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.nth[hidden] { display: none; }
@media (max-width: 1100px) { .seg-zoom { display: none; } }
@media (max-width: 860px) { .tb-e2 .lg { display: none; } .tb-e2 .sm { display: inline; } }
@media (max-width: 640px) { .stage-tools { flex-wrap: wrap; justify-content: flex-start; } .nth { display: none; } }
/* Capture mode (the board's screenshots): only the screen, at 1:1. */
html.capture body { overflow: visible; }
html.capture .top, html.capture .stage-bar, html.capture .rail, html.capture .toasts, html.capture .skip { display: none !important; }
html.capture .app { display: block; height: auto; }
html.capture .viewport { padding: 0; overflow: visible; }
html.capture .device { margin: 0; }
html.capture .clip { border: 0; border-radius: 0; box-shadow: none; }
html.capture .loading .clip::after { display: none; }
.diagram .halo { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
/* The tour's Back, Restart step and Next stay in reach while the panel scrolls (the phone sheet too). */
.tour-nav { position: sticky; bottom: 0; z-index: 2; margin: 14px -14px -12px; padding: 10px 14px 12px; background: var(--ink); border-radius: 0 0 12px 12px; box-shadow: 0 -8px 12px -10px rgba(0, 0, 0, .5); }
/* As a drawer (641 to 1180px) the panel opens below the stage bar, so Panel stays in reach. */
@media (min-width: 641px) and (max-width: 1180px) { .rail { top: calc(var(--top) + 53px); } }
