/* TideSpeaker company dashboard, served at /admin/. Matches design/screens 15, 16 and 20. Flat colours, no gradients. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }

:root {
  --navy: #0B2A6B; --navy-ink: #C9DBF5;
  --magenta: #E11D74; --magenta-dark: #C8155F; --magenta-ink: #C0135F; --magenta-tint: #FFE4EF;
  --red: #DC2626; --red-tint: #FEE2E2; --green: #15803D; --green-tint: #DCFCE7; --amber: #B45309; --amber-tint: #FEF3C7;
  --ink: #0F172A; --muted: #55657A; --line: #E4E8EE; --bg: #F5F7FA; --surface: #FFFFFF;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; caret-color: var(--magenta); }
::selection { background: var(--magenta-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.boot img { width: 72px; height: auto; }

.split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 420px; background: var(--navy); color: #FFFFFF; padding: 56px 64px 40px; display: flex; flex-direction: column; gap: 32px; }
.side :focus-visible { outline-color: #FFFFFF; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brand-by { font-size: 12px; color: var(--navy-ink); }
.pitch { margin: auto 0; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.pitch h1 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.pitch p { margin: 0; font-size: 15px; color: var(--navy-ink); }
.pitch ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pitch li { display: flex; align-items: center; gap: 10px; }
.pitch li svg { color: #4ADE80; flex: none; }
.side-foot { margin: 0; font-size: 12px; color: var(--navy-ink); }

.form-wrap { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.signin { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.signin h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sub { margin: -10px 0 0; color: var(--muted); }
.test-chip { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--magenta-ink); background: var(--magenta-tint); border-radius: 999px; padding: 3px 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input { min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color 150ms; }
.field input:hover { border-color: #CBD5E1; }
.field input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: background-color 150ms, transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
.btn:hover { background: #F8FAFC; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
.btn.primary:hover { background: var(--magenta-dark); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.btn.navy:hover { background: #0A2560; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.notice { margin: 0; min-height: 0; font-size: 13px; font-weight: 600; color: var(--magenta-ink); opacity: 0; transition: opacity 200ms; }
.notice.show { opacity: 1; }
.address { margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--muted); }
.address svg { color: var(--navy); flex: none; margin-top: 1px; }
.address b { color: var(--ink); }

.field textarea, .field select { padding: 10px 14px; font-size: 14px; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); resize: vertical; }
.field select { min-height: 44px; padding: 0 12px; }
.field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.busy { opacity: 0.7; cursor: progress; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13px; }
a.btn { text-decoration: none; color: inherit; padding: 0 16px; }
.muted { color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; }
.link-btn:hover { color: var(--magenta-ink); }

/* First-time setup and the recovery key */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.panel { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.panel h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.panel p { margin: 0; }
.recovery { font: 600 20px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.04em; text-align: center; padding: 18px; border: 2px dashed var(--navy); border-radius: 12px; color: var(--navy); user-select: all; word-break: break-word; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--magenta); }

/* The frame */
.dash { min-height: 100vh; display: flex; }
.sidebar { width: 244px; flex: none; align-self: flex-start; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand.small { padding: 0 8px 14px; }
.brand.small .brand-name { color: var(--ink); }
.company-box { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.company-logo { width: 36px; height: 36px; flex: none; border: 1px dashed #CBD5E1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--muted); }
.company-name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.navlink { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; transition: background-color 150ms; }
.navlink svg { color: var(--muted); flex: none; }
.navlink:not(:has(svg)) span { padding-left: 26px; }
.navlink:hover { background: var(--bg); }
.navlink.on { background: var(--magenta-tint); color: var(--magenta-ink); font-weight: 600; }
.navlink.on svg { color: var(--magenta-ink); }
.navlink .count { margin-left: auto; }
.nav-head { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.grow { flex: 1; }
.me { display: flex; gap: 10px; align-items: center; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.me-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; min-width: 0; }
.me-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { flex: 1; min-width: 0; padding: 28px 28px 48px; display: flex; flex-direction: column; gap: 16px; max-width: 1240px; }

.page-head h1 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head p { margin: 4px 0 0; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: -8px; align-self: flex-start; }
.crumb:hover { color: var(--ink); }
.count { display: inline-flex; min-width: 22px; height: 20px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.count.grey { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.sos-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--red); color: #FFFFFF; text-decoration: none; }
.sos-banner > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.16); }
.sos-banner > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.sos-btn { background: #FFFFFF; color: var(--red); font-weight: 700; padding: 8px 14px; border-radius: 8px; font-size: 13px; flex: none; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.box.pad { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { margin: 0; font-size: 15px; font-weight: 700; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.box-head h2 { font-size: 16px; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo-num { width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--magenta-tint); color: var(--magenta-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.todo-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.todo-text span { color: var(--muted); font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.tile b { font-size: 28px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile.navy { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.tile.magenta { background: var(--magenta); border-color: var(--magenta); color: #FFE4EF; }
.tile.navy b, .tile.magenta b { color: #FFFFFF; }

.tabs { display: flex; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 14px 10px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--magenta); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #FAFBFC; }
td.strong a, td.strong { font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.pill, .tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tone-magenta { background: var(--magenta-tint); color: var(--magenta-ink); }
.tone-green { background: var(--green-tint); color: var(--green); }
.tone-red, .tag.red { background: var(--red-tint); color: var(--red); }
.tone-amber, .tag.amber { background: var(--amber-tint); color: var(--amber); }
.tone-slate { background: #EEF2F6; color: #475569; }
.page-head .pill { font-size: 13px; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--magenta); vertical-align: middle; }
.next { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background-color 150ms; }
.next:hover { background: var(--bg); }
.next.hot { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
.next.hot:hover { background: var(--magenta-dark); }
.empty { padding: 32px 18px; margin: 0; color: var(--muted); text-align: center; }
.empty a { color: var(--magenta-ink); font-weight: 600; }
.foot { margin: 0; padding: 12px 18px; font-size: 12px; text-align: right; }

/* One case */
.next-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: #FFF7FA; border: 1px solid #F9C6DB; border-radius: 14px; }
.next-box.sos { background: #FEF2F2; border-color: #FCA5A5; }
.next-box > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.next-label { font-size: 12px; font-weight: 600; color: var(--magenta-ink); }
.next-box.sos .next-label { color: var(--red); }
.next-box.done { background: var(--surface); border-color: var(--line); }
.next-box.done .next-label { color: var(--green); }
.next-box b { font-size: 16px; }
.next-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.progress li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.progress .bar { height: 5px; border-radius: 99px; background: var(--line); margin-bottom: 8px; }
.progress li.done .bar { background: var(--green); }
.progress li.now .bar { background: var(--magenta); }
.progress li.now b { color: var(--magenta-ink); }
.progress li:not(.done):not(.now) b { color: var(--muted); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.report-text { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sos-line { margin: 0; font-weight: 700; color: var(--red); }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.msg-photo { display: block; max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-who { color: var(--muted); font-size: 13px; }
.msg.auto p { color: var(--muted); }
.msg.outcome p { padding: 10px 12px; border-radius: 10px; background: #EEF2F8; border: 1px solid #D5DEEC; }
.row { display: flex; align-items: center; gap: 12px; }
.row .notice { flex: 1; }
.ok-line { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); font-size: 13px; }
.error-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--red-tint); color: #991B1B; font-weight: 600; }
.hint-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--magenta-tint); color: var(--magenta-ink); font-size: 13px; }
.audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.audit li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.side-col .hint { margin: 0; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dash { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .company-box, .sidebar .nav-head, .sidebar .grow { display: none; }
  .brand.small { padding: 0 8px 0 0; }
  .navlink { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .navlink:not(:has(svg)) { display: none; }
  .me { border: 0; margin: 0 0 0 auto; padding: 0; }
  .main { padding: 20px 16px 40px; }
  .msg, .audit li { grid-template-columns: 1fr; gap: 2px; }
  .todo { flex-wrap: wrap; }
  .progress { grid-template-columns: 1fr; }
  .box-head .muted { display: none; }
  .sos-banner { flex-wrap: wrap; }
  .sos-btn { margin-left: 48px; }
  .tile b { font-size: 24px; }
}
@media (max-width: 860px) {
  .side .pitch ul, .side .side-foot, .side .pitch-steps { display: none; }
  .side .pitch p { font-size: 14px; }
  .side { padding: 32px 24px; gap: 20px; }
  .pitch { margin: 0; }
  .pitch h1 { font-size: 26px; }
}
/* Sign-in steps */
.step-label { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--magenta-ink); text-transform: uppercase; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.link-btn.strong { color: var(--magenta-ink); font-weight: 600; font-size: 13px; }
.link-btn.strong:hover { text-decoration: underline; }
.sub b { color: var(--ink); }
.pitch-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.pitch-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; counter-increment: s; }
.pitch-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.pitch-steps span { color: var(--navy-ink); font-size: 13px; }
.otp { font: 600 22px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; letter-spacing: 0.35em; text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; letter-spacing: 0.04em; }
.panel .otp { width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.panel .otp:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.panel .links { margin-top: 2px; }
.totp-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.totp-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.totp-steps .num { width: 28px; height: 28px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.totp-steps li > span:last-child { display: block; padding-top: 3px; }
.totp-steps .hint { display: block; margin: 0; }
.qr-box { display: block; width: max-content; margin: 10px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; line-height: 0; }
.qr-box svg { width: 176px; height: 176px; }
.setup-key { display: inline-block; margin-top: 4px; font: 600 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; user-select: all; word-break: break-word; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns.full > * { flex: 1; }
.btn.small svg { flex: none; }

/* Ships and posters */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; }
.add-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.how4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how4 li { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.how4 li > span { display: flex; flex-direction: column; gap: 2px; }
.how4 li > span b { color: var(--ink); font-size: 14px; }
.how4 .n { width: 28px; height: 28px; flex: none; border-radius: 999px; color: #FFFFFF; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.how4 .n.navy { background: var(--navy); } .how4 .n.hot { background: var(--magenta); }
.ships-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
tbody tr.sel { background: #FFF5F9; }
.ship-cell { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.ship-cell span { font-weight: 400; font-size: 12px; color: var(--muted); }
.row-btns.nowrap { flex-wrap: nowrap; justify-content: flex-end; }
td.nowrap { white-space: nowrap; }
.showing { font-size: 13px; font-weight: 600; padding: 0 12px; }
button.next { font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.copy-row { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.poster-col { gap: 10px; }
.poster-col .hint { margin: 0; }
.poster-label { margin: 0; font-weight: 700; font-size: 13px; }
.poster-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
dialog.confirm { max-width: 440px; border: 0; border-radius: 16px; padding: 24px; color: var(--ink); }
dialog.confirm::backdrop { background: rgba(15, 23, 42, 0.45); }
dialog.confirm h2 { margin: 0 0 8px; font-size: 18px; }
dialog.confirm p { margin: 0 0 16px; color: var(--muted); }
dialog.confirm .row-btns { justify-content: flex-end; }

/* The poster itself: the same markup in the preview and on the A4 page */
.poster { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--ink); }
.poster-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.poster-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.poster-brand img { width: 26px; height: auto; }
.poster-company { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.poster-title { margin: 6px 0 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.poster-sub { margin: 0; font-size: 12px; color: var(--muted); }
.poster-qr { padding: 8px; border: 3px solid var(--magenta); border-radius: 14px; background: #FFFFFF; line-height: 0; }
.poster-qr svg { width: 236px; height: 236px; }
.poster-ship { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.poster-how { margin: 0; font-size: 12px; color: var(--muted); }
.poster-steps { list-style: none; margin: 2px 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 11px; }
.poster-steps li { display: flex; align-items: center; gap: 4px; }
.poster-steps b { width: 18px; height: 18px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.poster-langs { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); width: 100%; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #334155; font-family: "Inter", system-ui, "Noto Sans", "Noto Sans SC", "Noto Sans Devanagari", sans-serif; }
.poster-sos { margin: 4px 0 0; width: 100%; padding: 6px 8px; border-radius: 8px; background: var(--red); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.poster-foot { font-size: 10px; color: var(--muted); }

.print-page { min-height: 100vh; background: var(--bg); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.print-bar { width: 100%; max-width: 794px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.print-bar .crumb { margin: 0; }
.a4 { width: 100%; max-width: 794px; aspect-ratio: 210 / 297; background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; padding: 7% 8%; display: flex; }
.a4 .poster { flex: 1; justify-content: space-between; gap: 12px; }
.a4 .poster-brand { font-size: 22px; } .a4 .poster-brand img { width: 40px; }
.a4 .poster-company { font-size: 16px; }
.a4 .poster-title { font-size: 44px; }
.a4 .poster-sub { font-size: 16px; }
.a4 .poster-qr { padding: 14px; border-width: 5px; border-radius: 20px; }
.a4 .poster-qr svg { width: 390px; height: 390px; }
.a4 .poster-ship { font-size: 30px; }
.a4 .poster-how, .a4 .poster-steps { font-size: 15px; }
.a4 .poster-steps { gap: 18px; } .a4 .poster-steps b { width: 26px; height: 26px; font-size: 13px; }
.a4 .poster-langs { font-size: 14px; gap: 4px; padding-top: 12px; }
.a4 .poster-sos { font-size: 15px; padding: 10px 12px; }
.a4 .poster-foot { font-size: 12px; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #FFFFFF; }
  .no-print, .sidebar, .crumb, .row-btns, .check, #go, .step-label, .hint { display: none !important; }
  .print-page { padding: 0; background: #FFFFFF; min-height: 0; }
  .a4 { max-width: none; width: 210mm; height: 297mm; aspect-ratio: auto; border: 0; border-radius: 0; padding: 18mm 18mm 14mm; }
  .a4 .poster { gap: 3mm; }
  .a4 .poster-qr svg { width: 112mm; height: 112mm; }
  .center-page { min-height: 0; padding: 20mm; }
  .panel { border: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1100px) { .ships-grid { grid-template-columns: 1fr; } .poster-col { max-width: 420px; } .how4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .add-form { grid-template-columns: 1fr; } .how4 { grid-template-columns: 1fr; } .a4 .poster-title { font-size: 28px; } .a4 .poster-qr svg { width: 250px; height: 250px; } }
/* Who gets told */
.people { display: flex; flex-direction: column; }
.person { border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person-line { display: grid; grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, 1fr) 290px 72px; gap: 14px; align-items: center; padding: 12px 18px; }
.person-line .next { justify-content: center; }
.avatar.sm { width: 34px; height: 34px; font-size: 11px; }
.person-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.person-who b, .person-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-who b .muted { font-weight: 400; }
.person-scope { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-gets { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.person.open { background: #FAFBFC; }
.person-edit { padding: 4px 18px 18px 66px; display: flex; flex-direction: column; gap: 12px; }
.person-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 10px; }
.person-fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.person-fields .field input { min-height: 40px; }
.ticks { display: flex; flex-wrap: wrap; gap: 4px 16px; min-height: 30px; align-items: center; font-weight: 600; }
.link-btn.danger { align-self: flex-start; color: var(--muted); font-size: 13px; }
.link-btn.danger:hover { color: var(--red); }
/* dropdown with ticks */
.dd { position: relative; }
.dd-btn { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 400; text-align: left; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .chev { flex: none; color: var(--muted); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.dd.open .dd-btn { border-color: var(--magenta); }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-btn:disabled { cursor: default; background: var(--bg); }
.dd-menu { display: none; position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.dd.open .dd-menu { display: block; }
.dd-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: 8px; font-size: 14px; font-weight: 400; cursor: pointer; }
.dd-item:hover { background: var(--bg); }
.dd-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--magenta); }
.tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; vertical-align: middle; }
.tick input { width: 16px; height: 16px; margin: 0; accent-color: var(--magenta); }
.tick.sos input { accent-color: var(--red); }
.warn-text { color: var(--amber); font-weight: 600; }
.topic-note { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.tag.navy { background: #E2E8F5; color: var(--navy); }
.master-box { gap: 8px; }
.master-box p { margin: 0; font-size: 13px; }
.master-box .btn { align-self: flex-start; }
.recovery.small { font-size: 18px; padding: 14px; margin: 4px 0 12px; }
tr.sos-row td.strong { color: var(--red); }
/* folded sections */
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > span { display: flex; flex-direction: column; gap: 2px; }
details.fold > summary b { font-size: 16px; }
details.fold > summary .muted { font-size: 13px; }
details.fold > summary .chev { color: var(--muted); flex: none; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold[open] > summary .chev { transform: rotate(180deg); }
.box-note { margin: 0; padding: 12px 18px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cell-input { width: 100%; min-width: 200px; min-height: 36px; padding: 0 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cell-input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.auto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.auto-list.pad { padding: 14px 18px 18px; }
.auto-list li { display: flex; gap: 10px; align-items: flex-start; }
.auto-list svg { color: var(--green); flex: none; margin-top: 3px; }
@media (max-width: 1100px) { .person-line { grid-template-columns: 34px minmax(0, 1fr) 72px; } .person-scope, .person-gets { grid-column: 2 / 4; justify-content: flex-start; } .person-line .next { grid-column: 3; grid-row: 1; } .person-edit { padding-left: 18px; } }
@media (max-width: 760px) {
  .person-fields, .person-fields.two { grid-template-columns: 1fr; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; padding: 2px 0; border: 0; }
  table.stack td.strong { font-size: 15px; margin-bottom: 2px; }
  table.stack .cell-input { min-width: 0; margin: 4px 0; }
}

/* Even line breaks: headings and short lines are balanced, longer text never leaves one word alone */
h1, h2, h3, .tile span, .todo-text b, .next-box b, .poster-title, .poster-sub, .poster-how, .poster-ship, .poster-sos, .poster-foot, .sos-banner b, dt, dd, th { text-wrap: balance; }
p, li, .hint, .muted, .todo-text span, .msg p, .report-text, .sub, .side-foot { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Inspection readiness (design 19) ---- */
.head-select { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.head-select:focus-visible { outline: 2px solid var(--magenta); outline-offset: 1px; }
.insp-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.score-card { background: var(--navy); color: var(--navy-ink); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.score-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 16px; position: relative; }
.ring { width: 104px; height: 104px; grid-area: 1 / 1; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 9; }
.ring-on { fill: none; stroke: var(--magenta); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.score-num { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.score-num b { font-size: 26px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.score-num span { font-size: 12px; }
.score-text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.score-text b { font-size: 16px; color: #FFFFFF; }
.score-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.score-stats dt { font-size: 20px; font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.score-stats dd { margin: 2px 0 0; font-size: 12px; line-height: 1.35; }
.checks { list-style: none; margin: 0; padding: 0; }
.check-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; border-radius: 0 0 14px 14px; }
.check-row.st-gap { background: #FFFBEB; }
.check-row.st-action { background: #FEF2F2; }
.check-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.st-met .check-mark { background: var(--green-tint); color: var(--green); }
.st-gap .check-mark { background: var(--amber-tint); color: var(--amber); }
.st-action .check-mark { background: var(--red-tint); color: var(--red); }
.check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-text b { font-size: 14px; text-wrap: balance; }
.check-text > span { font-size: 12.5px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.check-text .ref { color: var(--ink); font-weight: 600; }
.check-state { font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.st-met .check-state { color: var(--green); }
.st-gap .check-state { color: var(--amber); }
.st-action .check-state { color: var(--red); }
a.check-state:hover { text-decoration: underline; text-underline-offset: 3px; }
td.num { font-variant-numeric: tabular-nums; }
tr.sel td { background: #F8FAFC; }
.source-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 90ch; text-wrap: pretty; }
@media (max-width: 1000px) { .insp-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .check-row { grid-template-columns: 26px minmax(0, 1fr); padding: 12px 14px; }
  .check-state { grid-column: 2; justify-self: start; }
  .head-actions { flex-wrap: wrap; }
}

/* ---- Company procedure and ship details ---- */
.stage-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stage-edit li { display: grid; grid-template-columns: 28px minmax(140px, 1fr) minmax(0, 2.4fr) 64px; gap: 10px; align-items: end; }
.stage-edit .num { width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: #E2E8F5; color: var(--navy); font-size: 13px; font-weight: 700; }
.stage-edit .link-btn, .contact-row .link-btn { margin-bottom: 12px; justify-self: start; }
.limit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.contact-edit { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: grid; grid-template-columns: 140px 130px minmax(0, 1.2fr) minmax(0, 1.8fr) 64px; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.field.narrow { max-width: 360px; }
.details-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.details-form .span2 { grid-column: 1 / -1; margin: 0; }
.details-form .row { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .stage-edit li { grid-template-columns: 28px minmax(0, 1fr); }
  .stage-edit li .field, .stage-edit li .link-btn { grid-column: 2; }
  .contact-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-row .grow2, .contact-row .link-btn { grid-column: 1 / -1; }
  .limit-row, .details-form { grid-template-columns: 1fr; }
}

/* ---- The inspection pack (screen and print) ---- */
.pack-opts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field.inline select { min-height: 36px; }
.pack-warn { max-width: 794px; width: 100%; }
.doc { width: 100%; max-width: 794px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; padding: 44px 48px; color: var(--ink); font-size: 12.5px; line-height: 1.5; page: pack; }
.doc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.doc-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.doc-ref, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; letter-spacing: 0; }
.doc-ref { color: var(--muted); }
.doc h1 { margin: 22px 0 4px; font-size: 22px; line-height: 1.2; color: var(--navy); text-wrap: balance; }
.doc-lead { margin: 0 0 16px; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.doc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 8px; padding: 14px 16px; background: #F5F7FA; border-radius: 8px; }
.doc-facts dt { font-size: 11px; font-weight: 600; color: var(--muted); }
.doc-facts dd { margin: 1px 0 0; font-weight: 600; }
.doc-sec { margin-top: 26px; }
.doc-sec h2 { margin: 0 0 8px; font-size: 15px; color: var(--navy); break-after: avoid; }
.doc-sec h3 { margin: 14px 0 4px; font-size: 12.5px; break-after: avoid; }
.doc-sec p { margin: 0 0 8px; text-wrap: pretty; }
.doc-list { margin: 0 0 8px; padding-left: 20px; }
.doc-list li { margin-bottom: 3px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin: 6px 0 8px; }
.doc-table th { padding: 6px 8px; font-size: 10.5px; color: var(--muted); background: #F5F7FA; border-bottom: 1px solid #CBD5E1; white-space: normal; }
.doc-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr { break-inside: avoid; }
.doc-table .sub { color: var(--muted); font-size: 10.5px; }
.doc-table.reg td:first-child, .doc-table.audit-t td:last-child { white-space: nowrap; }
.doc-table tr.decision td { border-top: 0; padding-top: 0; color: #334155; }
.doc-status { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.doc-status.s-met { background: var(--green-tint); color: var(--green); }
.doc-status.s-gap { background: var(--amber-tint); color: var(--amber); }
.doc-status.s-action { background: var(--red-tint); color: var(--red); }
.sign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 8px 0 14px; }
.sign-grid div { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; }
.sign-grid div span:first-child { font-weight: 700; }
.sign-grid i { display: block; height: 40px; border-bottom: 1px solid var(--ink); }
.sign-grid div span:last-child { color: var(--muted); font-size: 10.5px; }
.doc-small { font-size: 10.5px; color: var(--muted); }
.ack-t td { height: 30px; }
@media (max-width: 760px) {
  .doc { padding: 24px 18px; }
  .doc-facts, .sign-grid { grid-template-columns: 1fr; }
  .doc .doc-table.reg, .doc .doc-table.audit-t { display: block; overflow-x: auto; }
}
@page pack { size: A4 portrait; margin: 14mm 14mm 16mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9px Inter, sans-serif; color: #55657A; } @bottom-left { content: "TideSpeaker by StratPollen"; font: 9px Inter, sans-serif; color: #55657A; } }
@media print {
  .doc { max-width: none; width: auto; border: 0; border-radius: 0; padding: 0; font-size: 10.5px; }
  .doc + .doc { break-before: page; }
  .doc-table { font-size: 9.5px; }
  .doc-table th { font-size: 9px; }
  .pack-warn { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage-edit .link-btn, .contact-row .link-btn { align-self: end; }
@media (min-width: 861px) {
  .stage-edit li + li .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.doc .mono, .doc .doc-ref { font-size: 10.5px; letter-spacing: 0; } @media print { .doc .mono { font-size: 9px; } }

/* ---- Security centre (design 24) ---- */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #E2E8F5; color: var(--navy); }
.sec-list { list-style: none; margin: 0; padding: 4px 0; }
.sec-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sec-list li:last-child { border-bottom: 0; }
.sec-list li > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.sec-list b { font-size: 14px; }
.sec-list li > span:first-child > span { font-size: 12.5px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.sec-state { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
.sec-state.bad { color: var(--red); }
tr.hot-row td { background: #FEF2F2; }
.closed-as { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.closed-as legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.small-note { margin: 4px 0 8px; font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: 1fr; } }
.screen-note { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); color: #78350F; font-size: 13px; line-height: 1.45; }
.screen-note svg { flex: none; margin-top: 1px; color: var(--amber); }
.alike { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alike li { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.alike a { font-weight: 700; color: var(--ink); }

/* ---- Company profile ---- */
a.company-box { color: inherit; text-decoration: none; transition: border-color 150ms; }
a.company-box:hover { border-color: #CBD5E1; }
a.company-box:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
img.company-logo.has-logo { border: 1px solid var(--line); object-fit: contain; background: #FFFFFF; padding: 2px; box-sizing: border-box; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-row { display: flex; gap: 18px; align-items: flex-start; }
.logo-big { width: 112px; height: 112px; flex: none; border-radius: 16px; border: 1px dashed #CBD5E1; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--muted); background: #F8FAFC; }
img.logo-big { object-fit: contain; border-style: solid; border-color: var(--line); background: #FFFFFF; padding: 6px; box-sizing: border-box; }
.logo-side { display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.45; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--magenta); outline-offset: 2px; }
.crew-preview { max-width: 360px; background: var(--navy); color: #FFFFFF; border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.cp-bar { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cp-company { display: flex; align-items: center; gap: 10px; }
.cp-company > span:last-child { display: flex; flex-direction: column; font-size: 12px; color: var(--navy-ink); }
.cp-company b { font-size: 15px; color: #FFFFFF; }
.cp-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
img.cp-logo { object-fit: contain; padding: 3px; box-sizing: border-box; }
.poster-company { display: inline-flex; align-items: center; gap: 8px; }
.poster-co-logo { width: 28px; height: 28px; object-fit: contain; }
.a4 .poster-co-logo { width: 34px; height: 34px; }
.doc-co { display: flex; align-items: center; gap: 10px; }
.doc-co img { width: 36px; height: 36px; object-fit: contain; }
.doc-co .sub { font-weight: 400; color: var(--muted); font-size: 11px; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } .logo-row { flex-direction: column; } }

/* ---- Ask for an invite, and Getting started ---- */
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.signin textarea { padding: 10px 14px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.signin textarea:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.links .link-btn { text-decoration: none; }
.setup-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.setup-bar span { display: block; height: 100%; background: var(--magenta); border-radius: 999px; transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step-head { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.step-head:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }
.step-head .chev { transition: transform 200ms; color: var(--muted); }
.setup-steps li.open .step-head .chev { transform: rotate(180deg); }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E2E8F5; color: var(--navy); font-weight: 700; font-size: 14px; }
.step-num.done { background: var(--green-tint); color: var(--green); }
.step-title { display: flex; flex-direction: column; gap: 2px; }
.step-title b { font-size: 15px; }
.step-title .muted { font-size: 13px; }
.step-body { padding: 0 18px 18px 68px; display: flex; flex-direction: column; gap: 12px; }
.sub-h { margin: 6px 0 0; font-size: 13px; }
.ship-rows { display: flex; flex-direction: column; gap: 10px; }
.ship-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 10px; }
.contact-row.three { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.6fr); border: 0; padding: 0; }
.flag-tag { align-self: end; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.people-mini, .poster-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.people-mini li { display: flex; flex-direction: column; font-size: 13px; }
.poster-mini li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.poster-mini .row-btns { display: flex; align-items: center; gap: 12px; }
.done-box { flex-direction: row; align-items: center; gap: 12px; color: var(--green); }
.done-box span { color: var(--ink); }
.setup-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color 150ms; }
.setup-card:hover { border-color: #CBD5E1; }
.setup-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.setup-card > span:nth-child(2) b { font-size: 15px; }
.setup-ring { width: 52px; height: 52px; display: grid; place-items: center; }
.setup-ring .ring { width: 52px; height: 52px; grid-area: 1 / 1; }
.setup-ring .ring-bg { stroke: var(--line); }
.setup-ring b { grid-area: 1 / 1; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .ship-row, .contact-row.three, .two-fields { grid-template-columns: 1fr 1fr; }
  .ship-row .field:first-child, .contact-row.three .grow2 { grid-column: 1 / -1; }
  .step-body { padding: 0 16px 16px; }
  .setup-card { grid-template-columns: 52px minmax(0, 1fr); }
  .setup-card .next { grid-column: 1 / -1; justify-self: start; }
}
.ship-row .ship-mail { grid-column: 1 / -1; }
.ship-rows .ship-row { padding-bottom: 14px; border-bottom: 1px solid var(--line); } .ship-rows .ship-row:last-child { border-bottom: 0; padding-bottom: 0; }
.two-fields > .field { min-width: 0; }
.signin .field input, .signin .field select, .signin textarea { min-width: 0; width: 100%; box-sizing: border-box; }
@media (max-width: 520px) { .two-fields { grid-template-columns: 1fr; } }

/* ---- The sign-in panel: an outcome, its proof, and the logo's sound bars ---- */
.side { position: relative; overflow: hidden; }
.side > :not(.sound) { position: relative; z-index: 1; }
.sound { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 96px; pointer-events: none; }
.sound rect { fill: rgba(201, 219, 245, 0.16); transform-box: fill-box; transform-origin: 50% 50%; }
.sound rect.hot { fill: var(--magenta); }
/* One spacing rhythm: 8, 16, 24, 40, 64. Tight inside a group, generous between groups. */
.pitch { max-width: 500px; gap: 18px; }
.pitch h1 { font-size: 46px; line-height: 1.16; font-weight: 800; letter-spacing: -0.035em; }
.pitch > p { font-size: 16px; line-height: 1.5; max-width: 42ch; }
.pitch.sell { max-width: 560px; gap: 0; margin: auto 0; padding: 0 0 96px; }
.sell h1 { font-size: clamp(34px, 3vw, 46px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18ch; }
.sell h1 .line { display: block; }
.pitch .sell-lead { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--navy-ink); max-width: 40ch; }
.sell-proof { margin-top: clamp(28px, 4vh, 48px); display: flex; align-items: stretch; gap: 32px; }
.sell-shot { margin: 0; flex: none; width: clamp(220px, 32vh, 300px); }
.sell-shot img { display: block; width: 100%; height: auto; border-radius: 22px; background: #FFFFFF;
  box-shadow: 0 24px 48px -16px rgba(2, 10, 32, 0.6), 0 2px 6px rgba(2, 10, 32, 0.25); }
.sell-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.pitch .sell-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; font-size: inherit; }
.pitch .sell-points li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(201, 219, 245, 0.22); }
.sell-points b { font-size: 19px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.sell-points span { font-size: 16px; line-height: 1.45; color: var(--navy-ink); max-width: 26ch; }
.sell .pitch-foot { margin-top: clamp(32px, 4.6vh, 56px); font-size: 15px; }
.split > .side:has(.sell) { padding-top: 40px; padding-bottom: 24px; }
/* One arrival: the bars rise and the pack settles, once. Nothing moves after, or at all with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .sound rect { animation: bar-rise 700ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .sound rect.b1 { animation-delay: 40ms; } .sound rect.b2 { animation-delay: 80ms; } .sound rect.b3 { animation-delay: 120ms; }
  .sound rect.b4 { animation-delay: 160ms; } .sound rect.b5 { animation-delay: 200ms; }
  .sell-shot { animation: shot-in 640ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
}
@keyframes bar-rise { from { transform: scaleY(0.25); opacity: 0.4; } to { transform: scaleY(1); opacity: 1; } }
@keyframes shot-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1180px) { .sell-proof { gap: 28px; } .pitch .sell-points { gap: 16px; } }
/* A short laptop screen keeps the headline, the proof and the sign-in in one view. */
@media (min-width: 761px) and (max-height: 820px) { .pitch .sell-points li:nth-child(3) { display: none; } .sell .sell-lead { font-size: 16px; } }
@media (max-width: 760px) {
  .pitch h1 { font-size: 30px; line-height: 1.16; }
  .pitch.sell { padding: 8px 0 72px; }
  .pitch .sell-lead { margin-top: 16px; font-size: 15.5px; }
  .sell-proof { display: none; }
  .side .side-foot { display: none; }
  .side { padding-bottom: 24px; }
  .sound { height: 64px; }
}

/* ---- Side menu groups that fold behind a drop arrow ---- */
.sidebar button.nav-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 12px 0 2px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); cursor: pointer; text-align: left; }
.sidebar button.nav-head:hover:not(:disabled) { color: var(--ink); background: #F1F5F9; }
.sidebar button.nav-head:disabled { cursor: default; }
.sidebar button.nav-head:focus-visible { outline: 2px solid var(--magenta); outline-offset: 1px; }
.sidebar button.nav-head .chev { width: 14px; height: 14px; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.nav-group.open > .nav-head .chev { transform: rotate(180deg); }
.sidebar button.nav-head:disabled .chev { opacity: 0.35; }
.nav-group > .nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-group:not(.open) > .nav-links { display: none; }
@media (max-width: 760px) {
  .sidebar .nav-group, .sidebar .nav-group > .nav-links, .sidebar .nav-group:not(.open) > .nav-links { display: contents; }
}
@media (max-width: 760px) { .sidebar button.nav-head { display: none; } }

/* ---- Team and sign-in ---- */
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.team-list li:last-child { border-bottom: 0; }
.team-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.team-who b { font-size: 14px; }
.team-who .muted { overflow-wrap: anywhere; }
.team-actions { display: flex; gap: 14px; justify-content: flex-end; min-width: 150px; }
.avatar.sm.ghost { background: transparent; border: 1px dashed #CBD5E1; color: var(--muted); }
.add-person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.add-person .span2 { grid-column: 1 / -1; margin: 0; }
.access { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.access legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.access .tick span { font-weight: 400; }
.code-box { border-color: var(--navy); }
.code-box .recovery { align-self: flex-start; }
.facts.left dd { text-align: left; font-weight: 500; }
.pass-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
@media (max-width: 760px) {
  .team-list li { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .team-actions { grid-column: 2 / -1; justify-content: flex-start; min-width: 0; }
  .add-person { grid-template-columns: 1fr; }
}
.code-box p { margin: 0; }

/* ---- MLC 2006 updates ---- */
.mlc-head-side { display: flex; align-items: center; gap: 12px; }
.mlc-list { list-style: none; margin: 0; padding: 0; }
.mlc-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.mlc-list li:last-child { border-bottom: 0; }
.mlc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mlc-top b { font-size: 14.5px; text-wrap: balance; }
.mlc-list a { color: var(--magenta-ink); }
@media (max-width: 760px) { .mlc-top { flex-direction: column; align-items: flex-start; } .mlc-head-side .muted { display: none; } }
.pitch:not(.sell) .pitch-foot { margin: 6px 0 0; font-size: 13px; }
.side:has(.pitch-foot) .pitch:not(.sell) { margin-bottom: 150px; }
@media (max-width: 760px) { .side:has(.pitch-foot) .pitch:not(.sell) { margin-bottom: 0; } }
.pitch > p.pitch-foot { max-width: none; }

/* ---- Help ---- */
.help-card { display: flex; flex-direction: column; max-width: 760px; }
.help-msgs { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 160px; max-height: 520px; overflow-y: auto; background: #F8FAFC; border-radius: 14px 14px 0 0; }
.help-empty { margin: 0; font-size: 13.5px; }
.ask-me, .ask-ai { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; max-width: 85%; white-space: pre-line; text-wrap: pretty; }
.ask-me { align-self: flex-end; background: var(--navy); color: #FFFFFF; border-bottom-right-radius: 4px; }
.ask-ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-ai.wait { color: var(--muted); }
.help-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.help-row input { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; }
.help-row input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.help-card .foot { text-align: left; }
@media (max-width: 760px) { .side { padding-bottom: 100px; } }
@media (max-width: 760px) { .sound { height: 92px; } .side { padding-bottom: 116px; } }

/* ---- Record keeping: removed cases, and the choice on Company profile ---- */
.tag.grey { background: #F1F5F9; color: var(--muted); }
.info-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F1F5F9; color: var(--ink); font-size: 13px; line-height: 1.5; }
.keep-box { display: flex; flex-direction: column; gap: 10px; }
.keep-field { max-width: 260px; }
.keep-box p { max-width: 75ch; line-height: 1.5; }

/* ---- Privacy and data: a plain reading page ---- */
.legal-page { min-height: 100vh; background: var(--bg, #F6F7FB); padding: 40px 16px 64px; }
.legal { max-width: 720px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 32px 40px 28px; display: flex; flex-direction: column; gap: 22px; color: var(--ink); }
.legal .crumb { align-self: flex-start; margin: 0; }
.legal-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-head .brand-name { color: var(--navy); }
.legal-head .brand-by { color: var(--muted); }
.legal-head h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.legal .lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal h2 { margin: 0; font-size: 16px; color: var(--navy); }
.legal p, .legal li { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--magenta); }
.legal a { color: var(--magenta-ink, #C0135F); }
.legal-foot { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px !important; color: var(--muted); }
.legal-link { margin: 14px 0 0; font-size: 13px; text-align: center; }
.legal-link a { color: var(--muted); text-underline-offset: 3px; }
@media (max-width: 600px) { .legal-page { padding: 16px 12px 40px; } .legal { padding: 22px 18px; border-radius: 12px; } .legal-head h1 { font-size: 24px; } }
.keep-box a { color: var(--magenta-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---- Sign-in screens: bigger, easier text (the form side and its panels) ---- */
.form-wrap .sub, .center-page .sub { font-size: 16px; line-height: 1.5; }
.form-wrap .hint, .center-page .hint { font-size: 14.5px; line-height: 1.5; }
.form-wrap .links, .form-wrap .link-btn.strong { font-size: 15px; }
.form-wrap .address { font-size: 14.5px; line-height: 1.45; }
.form-wrap .legal-link { font-size: 14.5px; }
.form-wrap .field > span { font-size: 15px; }
.form-wrap .field input, .center-page .field input { min-height: 48px; font-size: 16px; }
.form-wrap .btn, .center-page .btn { min-height: 50px; font-size: 16px; }

/* ---- Sign-in form: fewer lines below the button ---- */
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-row label { font: inherit; }
.form-wrap .field-row .link-btn.strong { font-size: 14px; }
.sign-alt { margin: 4px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.sign-foot { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sign-foot .address { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.sign-links { margin: 0; display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sign-foot a { color: var(--muted); text-underline-offset: 3px; }
/* A round back arrow in the top-left corner of the sign-in side */
.form-wrap { position: relative; }
.icon-back.corner { position: absolute; top: 28px; left: 28px; }
@media (max-width: 760px) { .icon-back.corner { top: 20px; left: 24px; } .form-wrap:has(.icon-back.corner) { padding-top: 72px; } }
.icon-back { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color 150ms, border-color 150ms, transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
.icon-back svg { width: 18px; height: 18px; }
.icon-back:hover { background: #F1F5F9; border-color: #CBD5E1; }
.icon-back:active { transform: scale(0.96); }
.icon-back:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ---- Contact us: three choices as one segmented control ---- */
.choice { margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #EEF2F7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.choice-opt { position: relative; display: flex; }
.choice-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-opt span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 8px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-align: center; transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.choice-opt:hover span { color: var(--ink); }
.choice-opt input:checked + span { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.choice-opt input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 1px; }
@media (max-width: 400px) { .choice-opt span { font-size: 13px; padding: 0 4px; } }
.sign-foot svg { width: 15px; height: 15px; margin: 0; flex: none; }
/* The other sign-in pages: their closing line sits above the sound bars, and the message box reads as normal text */
.side > .side-foot { margin-bottom: 104px; }
@media (max-width: 760px) { .side > .side-foot { margin-bottom: 0; } }
.form-wrap .field textarea, .form-wrap .field select { font: inherit; font-size: 16px; font-weight: 400; }
.form-wrap .field select { min-height: 48px; }
.contact-fields { display: flex; flex-direction: column; gap: 14px; }
.contact-fields[hidden] { display: none; }

/* ---- Sign-in pages: a bigger logo, quieter small print, and the logo mark as a faint watermark ---- */
.side .brand { gap: 14px; }
.side .brand img { width: 60px; height: 64px; }
.side .brand-name { font-size: 24px; letter-spacing: -0.015em; }
.side .brand-by { font-size: 14px; }
.fine-print { margin: 2px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.fine-print a { color: var(--muted); text-underline-offset: 3px; }
.form-wrap { overflow: hidden; }
.form-wrap > :not(.mark-bg) { position: relative; z-index: 1; }
.form-wrap > .icon-back.corner { position: absolute; }
.mark-bg { position: absolute; right: -36px; bottom: -84px; width: 360px; height: 360px; pointer-events: none; z-index: 0; transform: rotate(-35deg); transform-origin: 50% 50%; }
.mark-bg rect { fill: var(--navy); opacity: 0.045; }
@media (max-width: 760px) { .mark-bg { display: none; } .side .brand img { width: 48px; height: 51px; } .side .brand-name { font-size: 20px; } }

/* ---- Navy side: two tabs, At a glance and For your fleet ---- */
.pitch-tabs { margin-top: clamp(24px, 3.4vh, 40px); display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.pitch-tabs button { border: 0; background: none; color: var(--navy-ink); font: inherit; font-size: 14.5px; font-weight: 600; padding: 8px 16px; min-height: 38px; border-radius: 999px; cursor: pointer; transition: background-color 150ms, color 150ms; }
.pitch-tabs button:hover { color: #FFFFFF; }
.pitch-tabs button[aria-selected="true"] { background: #FFFFFF; color: var(--navy); }
.pitch-tabs button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.pitch-panel[hidden] { display: none; }
.pitch-panel > .sell-proof { margin-top: 24px; }
.pitch .fleet-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.pitch .fleet-points li { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(201, 219, 245, 0.22); }
.fleet-points b { font-size: 18px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.fleet-points span { font-size: 15px; line-height: 1.45; color: var(--navy-ink); }
@media (max-width: 1100px) { .pitch .fleet-points { gap: 16px 24px; } .fleet-points b { font-size: 16px; } .fleet-points span { font-size: 14px; } }
@media (min-width: 761px) and (max-height: 820px) { .pitch .fleet-points li:nth-child(n+5) { display: none; } }
@media (max-width: 760px) { .pitch-tabs, .pitch-panel { display: none !important; } }
@media (min-width: 761px) and (max-height: 820px) { .pitch-tabs { margin-top: 20px; } .pitch-panel > .sell-proof, .pitch .fleet-points { margin-top: 18px; } .sell .pitch-foot { margin-top: 24px; } .sell-shot { width: clamp(200px, 30vh, 240px); } }
@media (min-width: 761px) and (max-height: 780px) { .pitch .fleet-points { gap: 12px 24px; } .pitch .fleet-points li { padding-top: 10px; } }
.export-btns { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-left: 12px; }
.foot-notice { margin: 0; padding: 0 20px 14px; text-align: right; }

/* ---- Company profile: the plan choice ---- */
.plan-box { display: flex; flex-direction: column; gap: 14px; }
.plan-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.plan-opt:hover { border-color: #CBD5E1; }
.plan-opt.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-opt input:disabled { cursor: not-allowed; }
.plan-opt:has(input:disabled:not(:checked)) { opacity: 0.55; }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-head b { font-size: 16px; color: var(--ink); }
.plan-price { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.pp-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.pp-big small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pp-sub { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pp-alt { font-size: 13px; color: var(--muted); }
.plan-opt ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.plan-opt li { display: flex; gap: 8px; align-items: flex-start; }
.plan-opt li svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--green); }
.tag.green { background: var(--green-tint); color: var(--green); }
@media (max-width: 760px) { .plan-choices { grid-template-columns: 1fr; } }
.plan-opt li.minus svg { color: var(--muted); }
.poster-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---- Owner dashboard (StratPollen only) ---- */
.owner-page { min-height: 100vh; background: var(--bg); }
.owner-top { display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.owner-top .brand.small { padding: 0; }
.owner-top .brand-by { color: var(--muted); }
.owner-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #FFFFFF; background: var(--navy); border-radius: 999px; padding: 3px 10px; }
.owner-top .row-btns { margin-left: auto; display: flex; gap: 8px; }
.owner-main { max-width: 1240px; margin: 0 auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.owner-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.req-list li.done { opacity: 0.55; }
.req-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.req-list p { margin: 0; font-size: 14px; }
.req-note { color: var(--ink); background: #F8FAFC; border-radius: 8px; padding: 8px 10px; }
.invite-make { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
.invite-make .field { flex: 1; min-width: 180px; }
.inv-code { margin: 0 0 12px; padding: 12px; border-radius: 10px; background: var(--green-tint); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.inv-code code, .inv-list code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 0.04em; }
.inv-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; }
.inv-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center; }
@media (max-width: 900px) { .owner-grid { grid-template-columns: 1fr; } .owner-main, .owner-top { padding-left: 16px; padding-right: 16px; } .inv-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Sign-in steps: the back arrow sits in a row with the step, never over the heading ---- */
.form-top { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.form-top .step-label { align-self: center; }
.pitch-steps li.done::before { content: ""; background: rgba(255,255,255,0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pitch-steps li.now::before { background: var(--magenta); color: #FFFFFF; }
.pitch-steps li.now b { color: #FFFFFF; }
.pitch-steps li:not(.now):not(.done) { opacity: 0.72; }

/* ---- Check your inbox / email link pages ---- */
.verify-box { display: flex; flex-direction: column; gap: 14px; }
.verify-box h2 { margin-top: 4px; }
.mail-mark { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: #EEF2FA; color: var(--navy); }
.mail-mark.ok { background: var(--green-tint); color: #15803D; }
.mail-mark.bad { background: #FEF3C7; color: #B45309; }
.waiting { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.waiting .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--magenta); flex: none; animation: wait-pulse 1.6s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
@keyframes wait-pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 116, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(225, 29, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 116, 0); } }
@media (prefers-reduced-motion: reduce) { .waiting .dot { animation: none; } }
.verify-box .hint { margin: 0; }

/* ---- Ship inspection details: closed until pressed ---- */
#details-toggle { gap: 6px; }
#details-toggle .chev { width: 14px; height: 14px; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.details-box.open #details-toggle .chev { transform: rotate(180deg); }
.details-sum { margin: 6px 0 0; }
.details-box .details-form { margin-top: 14px; }

/* ---- Plan cards: name and one line; prices and terms open when the card is pressed ---- */
.plan-line { font-size: 14px; color: var(--muted); }
.plan-cue { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--magenta-ink); }
.plan-cue .chev { width: 13px; height: 13px; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.plan-opt.open .plan-cue .chev { transform: rotate(180deg); }
.plan-more { display: none; flex-direction: column; gap: 6px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.plan-opt.open .plan-more { display: flex; }
.plan-opt.open .plan-cue { color: var(--muted); }
.plan-opt input:disabled { pointer-events: none; }
.plan-choices { align-items: start; }
.avatar.logo { object-fit: contain; background: #FFFFFF; padding: 3px; box-sizing: border-box; }

/* ---- Inspection pack: one page per part, and one per complaint topic ---- */
.doc-toc { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.doc-toc ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.doc-toc .sub { color: var(--muted); }
.topics-t td:last-child, .topics-t th:last-child { text-align: right; }
@media screen { .doc-sec.pb { margin-top: 34px; padding-top: 28px; border-top: 1px dashed #CBD5E1; } }
@media print { .doc-sec.pb { break-before: page; margin-top: 0; } }
.pack-pick .muted { font-size: 13.5px; }

/* English first among the language lines, a touch stronger */
.poster-langs li[lang="en"] { font-weight: 600; color: var(--ink); }

/* ---- Folding sections (Company procedure): a summary line until pressed ---- */
.fold-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fold-head h2 { margin: 0; }
.fold-head .chev { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.fold.open .fold-head .chev { transform: rotate(180deg); }
.fold-head:hover h2 { color: var(--navy); }
.fold-head:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; border-radius: 6px; }
.fold-sum { margin: 6px 0 0; overflow-wrap: anywhere; }
.fold-body { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.fold-body[hidden] { display: none; }
.fold-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.fold + .fold { margin-top: 0; }
.plan-cue .cue-hide, .plan-opt.open .plan-cue .cue-see { display: none; } .plan-opt.open .plan-cue .cue-hide { display: inline; }
.pp-total { align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: #EEF2FA; color: var(--navy); font-size: 13.5px; font-weight: 600; }
.pp-alt { margin-top: 2px; }
.plan-cue .chev, .fold-head .chev, #details-toggle .chev { display: block; transform-origin: 50% 50%; }
.pp-bands { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.pp-bands li { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; color: var(--muted); }
.pp-bands li b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-bands li.here { border-color: var(--navy); background: #EEF2FA; color: var(--navy); }

/* ---- Sign-in: the case card, live text instead of a shrunken screenshot ---- */
.sell-shot.case-card { width: clamp(210px, 25vh, 256px); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: #FFFFFF; color: var(--ink); box-shadow: 0 18px 40px rgba(2, 10, 32, 0.35); align-self: flex-start; }
.cc-top { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cc-top b { font-size: 15px; line-height: 1.25; }
.cc-top span { font-size: 12.5px; color: var(--muted); }
.cc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; }
.cc-steps li { display: flex; align-items: center; gap: 9px; }
.cc-steps li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 999px; box-sizing: border-box; }
.cc-steps li.done::before { background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cc-steps li.now { color: var(--magenta-ink); }
.cc-steps li.now::before { border: 4.5px solid var(--magenta); background: #FFFFFF; }
.cc-msg { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #F1F5F9; font-size: 13.5px; line-height: 1.4; }
.cc-who { font-size: 11.5px; font-weight: 600; color: var(--muted); }
@media (min-width: 761px) and (max-height: 820px) { .sell-shot.case-card { width: clamp(200px, 24vh, 232px); padding: 14px; gap: 10px; } }

/* ---- The case card's three views, chosen by the points beside it ---- */
.sell-shot.case-card { display: grid; gap: 0; align-content: start; transform-origin: 50% 50%; transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 420ms; }
.case-card > .cc-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.case-card > .cc-face.off { visibility: hidden; opacity: 0; pointer-events: none; }
.case-card[data-face="0"] { transform: translateY(-10px) scale(1.04); }
.case-card[data-face="1"] { transform: translateY(0) scale(1.06); }
.case-card[data-face="2"] { transform: translateY(12px) scale(1.04); }
.case-card:hover { box-shadow: 0 26px 52px rgba(2, 10, 32, 0.45); }
.cc-pill { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EEF2FF; color: var(--navy); }
.cc-pill.ok { background: #DCFCE7; color: #166534; }
.cc-rows, .cc-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.cc-rows li { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.cc-rows li span { font-size: 11.5px; color: var(--muted); }
.cc-rows li b { font-weight: 600; }
.cc-checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cc-checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 999px; background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.pitch .sell-points li { padding-top: 0; }
.sp-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 0 0 14px; margin-left: -14px; border-left: 3px solid transparent; cursor: pointer; transition: border-color 200ms, opacity 200ms; opacity: 0.62; }
.sp-btn:hover, .sp-btn[aria-pressed="true"] { opacity: 1; }
.sp-btn[aria-pressed="true"] { border-left-color: var(--magenta); }
.sp-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .case-card > .cc-face { transition: opacity 320ms ease, transform 420ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
  .case-card > .cc-face.off { transform: translateX(14px) scale(0.97); transition: opacity 200ms ease, transform 200ms ease, visibility 0s 200ms; }
}
@media (prefers-reduced-motion: reduce) { .case-card, .case-card[data-face] { transform: none; transition: none; } }

/* ---- Owner page: one company (details and people) ---- */
.owner-edit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: end; margin-top: 12px; }
.owner-edit .row-btns { grid-column: 1 / -1; }
@media (max-width: 760px) { .owner-edit { grid-template-columns: 1fr; } }
.btn.danger { color: var(--red); border-color: var(--red-tint); }
.btn.danger:hover { background: var(--red-tint); }
.pad-x { padding: 14px 20px 16px; margin: 0; }
.owner-page td.acts { text-align: right; white-space: nowrap; }
.owner-page td.acts .btn { display: inline-flex; vertical-align: middle; }
.owner-page td.acts .btn + .btn { margin-left: 8px; }
tr.off td { color: var(--muted); }
tr.off td.strong { text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, 0.5); }

/* ---- Poster PDF: download, share, email ---- */
.pdf-row { margin-top: 8px; }
.pdf-mail { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 10px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pdf-mail[hidden] { display: none; }
.pdf-mail .field { flex: 1 1 220px; margin: 0; }
.pdf-mail .hint { flex-basis: 100%; margin: 0; }

/* ---- The company's SMS procedure PDF (Company procedure): fill the form from it, keep it to refer to ---- */
.tone-navy { background: #EEF2FA; color: var(--navy); }
.fold-head .pill { margin-left: auto; }
.box.pdf-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
.box.pdf-box.none { border-style: dashed; border-color: #C3CCDA; background: #FBFCFE; }
.pdf-mark { width: 44px; height: 44px; border-radius: 10px; background: #EEF2FA; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.pdf-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pdf-text h2 { margin: 0; overflow-wrap: anywhere; }
.pdf-text p { margin: 0; max-width: 68ch; font-size: 13.5px; }
.pdf-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.pdf-act .btn { min-height: 38px; }
.pdf-act .hint { margin: 0; }
.file-btn { position: relative; cursor: pointer; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn:focus-within { outline: 2px solid var(--magenta); outline-offset: 2px; }
.pdf-wait { grid-column: 2 / -1; margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--magenta); flex: none; animation: wait-pulse 1.6s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.pdf-guide { border-radius: 10px; background: #F4F6FA; }
.pdf-guide > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--navy); cursor: pointer; border-radius: 10px; }
.pdf-guide > summary::-webkit-details-marker { display: none; }
.pdf-guide > summary svg:first-child { width: 15px; height: 15px; flex: none; }
.pdf-guide > summary .chev { width: 14px; height: 14px; margin-left: auto; color: var(--muted); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.pdf-guide[open] > summary .chev { transform: rotate(180deg); }
.pdf-guide > summary:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.pdf-guide blockquote { margin: 0; padding: 0 12px 11px 33px; font-size: 13.5px; line-height: 1.5; color: var(--ink); max-width: 75ch; }
.pdf-guide blockquote::before { content: "\201C"; } .pdf-guide blockquote::after { content: "\201D"; }
.pdf-guide.fresh { background: #EEF2FA; }
.fold.fresh { border-color: #B9C7E2; }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; } }
@media (max-width: 760px) {
  .box.pdf-box { grid-template-columns: auto minmax(0, 1fr); }
  .pdf-act { grid-column: 1 / -1; justify-content: flex-start; margin-top: 10px; }
  .pdf-wait { grid-column: 1 / -1; }
}
.pdf-act .link-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 4px; }

.contact-row .field input, .contact-row .field select, .stage-edit .field input { min-width: 0; width: 100%; box-sizing: border-box; }

/* ---- Empty screens: one quiet mark and two lines, nothing to celebrate ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px 44px; }
.empty-mark { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: #EEF2FA; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.empty-mark svg { width: 20px; height: 20px; }
.empty-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.empty-text { margin: 0; max-width: 46ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.empty-text a { color: var(--magenta-ink); font-weight: 600; }

/* "Why" notes on Company procedure: the explanation folds away under one small link */
.why > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.why > summary::-webkit-details-marker { display: none; }
.why > summary::after { content: ""; width: 6px; height: 6px; margin: -2px 0 0 4px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.why[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.why > summary:hover { color: var(--ink); }
.why > summary:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.why p { margin: 8px 0 0; max-width: 75ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* A small menu (More on the SMS procedure PDF) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .chev { width: 14px; height: 14px; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.menu[open] > summary .chev { transform: rotate(180deg); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; padding: 6px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06); transform-origin: top right; }
@media (prefers-reduced-motion: no-preference) { .menu[open] .menu-list { animation: menu-in 160ms cubic-bezier(0.23, 1, 0.32, 1); } }
@keyframes menu-in { from { opacity: 0; transform: scale(0.97) translateY(-2px); } }
.menu-item { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--bg); }
.menu-item.danger { color: var(--red); }
@media (max-width: 760px) { .menu-list { right: auto; left: 0; transform-origin: top left; } }

/* The side menu's white column runs the full height of the page, however long it is */
@media (min-width: 761px) { .dash { box-shadow: inset 244px 0 0 var(--surface), inset 245px 0 0 var(--line); } }
@media print { .dash { box-shadow: none; } }

/* Sending the SMS procedure file, part by part */
.up-wrap { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.up-wrap progress { width: 160px; height: 8px; appearance: none; border: 0; border-radius: 999px; background: #E6EAF2; overflow: hidden; }
.up-wrap progress::-webkit-progress-bar { background: #E6EAF2; border-radius: 999px; }
.up-wrap progress::-webkit-progress-value { background: var(--navy); border-radius: 999px; transition: width 200ms ease-out; }
.up-wrap progress::-moz-progress-bar { background: var(--navy); border-radius: 999px; }
.up-wrap b { font-variant-numeric: tabular-nums; min-width: 3ch; color: var(--navy); }

/* SMS procedure: several files, one row each */
.box.pdf-box.list { display: block; }
.pdf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
.pdf-files { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pdf-files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.pdf-files li:last-child { border-bottom: 0; padding-bottom: 0; }
.pdf-kind { min-width: 38px; padding: 3px 0; border-radius: 6px; background: #EEF2FA; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-align: center; }
.pdf-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pdf-name b { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pdf-name .muted { font-size: 12.5px; }
.pdf-row-act { display: flex; align-items: center; gap: 14px; }
.pdf-row-act .link-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; font-size: 13px; }
.pdf-row-act .link-btn svg { width: 15px; height: 15px; }
.box.pdf-box.list .pdf-wait { margin-top: 12px; }
@media (max-width: 760px) {
  .pdf-head { grid-template-columns: auto minmax(0, 1fr); }
  .pdf-head .pdf-act { grid-column: 1 / -1; justify-content: flex-start; margin-top: 10px; }
  .pdf-files li { grid-template-columns: auto minmax(0, 1fr); }
  .pdf-row-act { grid-column: 2; }
}

/* Who gets told: one line for who is never told, instead of a column that repeats it */
.route-table th:first-child, .route-table td:first-child { width: 34%; }
.never-told { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 18px 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.never-told svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--navy); }
.never-told b { color: var(--ink); font-weight: 600; }

/* Viewing an SMS procedure file on the page */
.pdf-row-act .link-btn.on { color: var(--navy); font-weight: 700; }
.pdf-view { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #F4F6FA; }
.pdf-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pdf-view-head > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.pdf-view-head b { font-size: 13.5px; overflow-wrap: anywhere; }
.pdf-view-head .muted { font-size: 12px; }
.pdf-frame { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #E9EDF3; }
.pdf-view .hint { margin: 0; padding: 8px 14px; font-size: 12px; background: var(--surface); border-top: 1px solid var(--line); }
.pdf-view > .pdf-wait, .pdf-view > .muted { margin: 0; padding: 18px 14px; }
.zip-list { list-style: none; margin: 0; padding: 4px 14px; background: var(--surface); }
.zip-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zip-list li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .pdf-frame { height: 70vh; } }
