:root {
  --ink: #111214;
  --ink-2: #4a4d55;
  --ink-3: #7b7f88;
  --line: #e4e5e8;
  --line-2: #d2d4d9;
  --bg: #f5f5f6;
  --card: #ffffff;
  --dark: #0b0b0c;
  --dark-2: #1d1f23;
  --red: #c8102e;
  --red-soft: #fbe8eb;
  --ok: #1f7a4d;
  --ok-soft: #e4f4ec;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --radius: 12px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
h4 { font-size: 13px; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 4px; }
p { margin: 0; }
a { color: var(--ink); }
code { font-family: ui-monospace, Menlo, monospace; }
[hidden] { display: none !important; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.big { font-family: var(--head); font-size: 24px; font-weight: 700; }
.prewrap { white-space: pre-wrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack, .stack-sm, .stack-lg { display: flex; flex-direction: column; }
.stack { gap: 16px; }
.stack-sm { gap: 8px; }
.stack-lg { gap: 20px; }

/* ---- Buttons ---- */
.btn {
  font: 600 14px/1 var(--body);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn.primary { background: var(--dark); color: #fff; }
.btn.primary:hover { background: var(--red); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); margin-right: auto; }
.btn.link { background: none; border: none; padding: 6px 0; text-decoration: underline; align-self: flex-start; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; padding: 14px; }
.danger-text { color: var(--red); }
.icon-btn { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; }

/* ---- Auth ---- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--dark); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 16px; padding: 32px 28px; text-align: left; }
.auth-logo { display: block; width: 120px; margin: -8px auto 18px; border-radius: 10px; }
.auth-card .eyebrow { text-align: center; }
.auth-card h1 { margin-bottom: 4px; }
.setup { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.setup summary { cursor: pointer; font-weight: 600; }
.setup p { margin: 8px 0; }
.uid { display: block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; word-break: break-all; margin-bottom: 10px; }

/* ---- Layout ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: var(--dark); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.brand-text { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.brand-text strong { color: #fff; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { color: #c9cbd1; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.mainnav a.active, .mainnav a:hover { color: #fff; background: var(--dark-2); }
.who { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.who-text { display: flex; flex-direction: column; font-size: 12px; color: #c9cbd1; text-align: right; }
.who-text small { color: var(--red); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }
.topbar .btn.ghost { color: #fff; border-color: #3a3d44; }

.page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.back { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2.tight, .grid-3.tight { gap: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.section-title { margin-top: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.highlight { background: var(--dark); color: #fff; border-color: var(--dark); }
.card.highlight .muted { color: #c9cbd1; }
.card.highlight .btn.ghost { color: #fff; border-color: #3a3d44; align-self: flex-start; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.empty { color: var(--ink-3); font-style: italic; }
.notice { background: var(--red-soft); border-left: 3px solid var(--red); padding: 12px 14px; border-radius: 0; }
.clickable { cursor: pointer; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--head); font-size: 32px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; color: var(--ink-2); }
.stat.warn .stat-value { color: var(--red); }

/* ---- Rows ---- */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.row:first-child { border-top: none; }
.row.top { align-items: flex-start; }
.row.clickable:hover { background: var(--bg); }
.row > div:first-child:not(.row-date) { flex: 1; min-width: 0; }
.row-main { flex: 1; min-width: 0; }
.row-date { width: 44px; flex: none; text-align: center; background: var(--bg); border-radius: 8px; padding: 6px 0; display: flex; flex-direction: column; }
.row-date strong { font-family: var(--head); font-size: 22px; line-height: 1; }
.row-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.tab { font: 500 14px var(--body); background: none; border: none; padding: 10px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; align-items: center; }
.tab.active { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.tab-body { display: flex; flex-direction: column; gap: 16px; }

/* ---- Players ---- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.player-card { flex-direction: row; align-items: center; text-decoration: none; transition: border-color .15s; }
.player-card:hover { border-color: var(--ink); }
.player-card h2 { margin-bottom: 2px; }
.player-card .pill { margin-top: 6px; }
.player-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 18px; font-weight: 700; }
.avatar.large { width: 56px; height: 56px; font-size: 22px; box-shadow: inset 0 0 0 2px var(--red); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--ink-2); font-size: 13px; }
.facts dd { margin: 0; white-space: pre-wrap; }
.quote { background: var(--bg); padding: 12px 14px; border-radius: 8px; font-size: 14px; }

.week-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.week { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.highlight .week { background: var(--dark-2); border-color: #3a3d44; color: #c9cbd1; }
.week.done { background: var(--dark); color: #fff; border-color: var(--dark); }
.highlight .week.done, .card .week.done { background: var(--red); border-color: var(--red); color: #fff; }
.week.cancelled { text-decoration: line-through; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; }
.field-hint { font-size: 12px; color: var(--ink-3); }
input, select, textarea {
  font: 15px/1.4 var(--body);
  color: var(--ink);
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-family: var(--head); font-size: 18px; font-weight: 700; padding: 0 6px; }
.form-error { color: var(--red); font-weight: 600; }
.payment { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 12px; align-items: end; padding-top: 12px; border-top: 1px solid var(--line); }
.payment .check { align-self: center; }

.plan { display: flex; flex-direction: column; gap: 10px; }
.plan-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bg); border-radius: 8px; }
.plan-row-head { display: flex; gap: 8px; align-items: center; }
.plan-phase { font-weight: 600; }
.plan-mins { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); flex: none; }
.plan-mins input { width: 70px; }
.plan-list { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.scale-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scale-key > div { background: var(--bg); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); }
.scale-key strong { font-family: var(--head); font-size: 22px; color: var(--ink); line-height: 1; }
.score-table { display: flex; flex-direction: column; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.score-row.corner { background: #fafafb; }
.score { display: flex; gap: 4px; flex: none; }
.score label { cursor: pointer; }
.score input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.score span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 600; background: #fff; }
.score input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.score input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 1px; }

/* ---- Progress chart ---- */
.progress-chart { display: flex; flex-direction: column; gap: 14px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch.base, .bar-fill.base { background: #b9bcc3; }
.swatch.now, .bar-fill.now { background: var(--red); }
.swatch.solo, .bar-fill.solo { background: var(--dark); }
.chart-group { display: flex; flex-direction: column; gap: 8px; }
.chart-group-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chart-row { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 12px; }
.chart-label { font-weight: 500; font-size: 14px; }
.bars { display: flex; flex-direction: column; gap: 3px; }
.bar-track { position: relative; height: 14px; background: var(--bg); border-radius: 3px; }
.bar-fill { height: 100%; border-radius: 3px; }
.bar-value { position: absolute; right: -2px; top: 50%; transform: translate(100%, -50%); font-size: 11px; color: var(--ink-2); padding-left: 6px; }
.chart-change { font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: right; }
.chart-change.up { color: var(--ok); }
.bars { padding-right: 18px; }

/* ---- Framework ---- */
.layers { display: flex; flex-direction: column; gap: 8px; }
.layer { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.layer.dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.layer-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.layer-head strong { font-family: var(--head); font-size: 18px; }
.layer-head small { color: var(--ink-3); }
.layer.dark .layer-head small { color: #c9cbd1; }
.chip-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; }
.chip-row > .chip-row-label { font-size: 13px; color: var(--ink-2); }
.chip-row { grid-template-columns: 130px repeat(auto-fit, minmax(110px, 1fr)); }
.chip { background: var(--bg); border-radius: 6px; padding: 7px 10px; text-align: center; font-size: 13px; font-weight: 500; }
.layer.dark .chip { background: var(--dark-2); font-weight: 600; }
.chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chip-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.session-shape { display: flex; gap: 3px; }
.shape-seg { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shape-mins { background: var(--bg); text-align: center; padding: 8px 0; font-weight: 600; font-size: 13px; border-radius: 4px; }
.shape-seg.key .shape-mins { background: var(--dark); color: #fff; }
.shape-name { font-size: 12px; text-align: center; color: var(--ink-2); line-height: 1.3; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cap-meta { font-size: 13px; color: var(--red); font-weight: 600; }
.cap details summary, .session-card details summary, .privacy summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.price.dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.price .amount { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1; }
.price small { color: var(--ink-2); }
.price.dark small { color: #c9cbd1; }
.stages { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ---- Messages ---- */
.message { display: flex; flex-direction: column; gap: 12px; }
.message-focus { font-family: var(--head); font-size: 20px; font-weight: 700; }
.home-challenge { background: var(--red-soft); border-radius: 8px; padding: 12px 14px; }
.home-challenge h4 { color: var(--red); }
.reply { margin-top: 10px; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.privacy { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.privacy p { margin-top: 8px; }

/* ---- Dialog, toast, loading ---- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 11, 12, .55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 12px; overflow-y: auto; }
.dialog { width: 100%; max-width: 560px; background: var(--card); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog.wide { max-width: 860px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); border-radius: 14px 14px 0 0; z-index: 1; }
.dialog-body { padding: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 500; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--red); }
.loading { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--ink-2); }
.loading.inline { min-height: 200px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Small screens ---- */
@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .topbar { flex-wrap: wrap; gap: 8px 12px; }
  .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .who-text { display: none; }
  .grid-2, .grid-3, .cap-list, .price-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment { grid-template-columns: 1fr; }
  .chip-row { grid-template-columns: 1fr 1fr; }
  .chip-row > .chip-row-label { grid-column: 1 / -1; }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-row { grid-template-columns: 92px 1fr 28px; gap: 8px; }
  .score-row { flex-direction: column; align-items: flex-start; }
  .session-shape .shape-name { font-size: 10px; }
  .row { flex-wrap: wrap; }
  .row-tags { width: 100%; justify-content: flex-start; padding-left: 58px; }
}

/* ---- Player zone ---- */
.zone-intro { background: var(--dark); color: #fff; border-color: var(--dark); }
.zone-intro p { color: #d7d9de; }
.kid-question { font-weight: 600; font-size: 16px; }
.kid-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kid-scale label { cursor: pointer; }
.kid-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kid-scale span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; text-align: center; transition: background .15s, border-color .15s; }
.kid-scale strong { font-family: var(--head); font-size: 22px; line-height: 1; }
.kid-scale small { font-size: 12px; color: var(--ink-2); line-height: 1.2; }
.kid-scale input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.kid-scale input:checked + span small { color: #fff; }
.kid-scale input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.corner-block legend { color: var(--red); }
.tip { font-size: 13px; background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: 8px; }
.challenge-form, .goal-form { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: end; }
.goal-form { grid-template-columns: 1fr 180px auto; }
.mini-log { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.goal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.goal { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.goal .check { flex: 1; }
.goal.achieved .check span { text-decoration: line-through; color: var(--ink-2); }
.self-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.self-row p { font-weight: 500; }
.corner-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.corner-score { background: var(--bg); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.corner-score small { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.corner-score strong { font-family: var(--head); font-size: 22px; line-height: 1.1; }
.corner-score em { font-size: 12px; font-style: normal; color: var(--ink-2); }
@media (max-width: 760px) {
  .challenge-form, .goal-form { grid-template-columns: 1fr; }
  .corner-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Session plan PDF ---- */
/* Built off-screen at A4 width, then turned into a PDF download. */
#print-root { position: absolute; left: -10000px; top: 0; }
.print-doc { width: 182mm; background: #fff; color: #111; font-size: 10.5pt; line-height: 1.45; }
.print-session { background: #fff; }
.print-head { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 12px; }
.print-head img { width: 64px; height: auto; border-radius: 6px; }
.print-brand { font-size: 8pt; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.print-head h1 { font-size: 22pt; margin: 2px 0; }
.print-meta { color: #444; }
.print-focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.print-focus div { border: 1px solid #ccc; border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 9pt; }
.print-focus strong { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.print-phase { display: grid; grid-template-columns: 1fr 78mm; gap: 12px; padding: 10px 0; border-top: 1px solid #ddd; }
.print-phase.no-box, .print-phase.six { grid-template-columns: 1fr; }
.print-phase h3 { font-size: 13pt; margin-bottom: 3px; }
.print-phase h3 + p + h3 { margin-top: 8px; }
.print-phase .mins { font-family: var(--body); font-size: 9pt; font-weight: 600; color: var(--red); }
.pitch-box { margin: 0; }
.pitch-box svg { width: 100%; height: auto; display: block; }
.pitch-box figcaption { font-weight: 600; font-size: 9pt; margin-top: 3px; }
.six-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; margin-top: 6px; }
.six-text { font-size: 8pt; color: #444; }
.print-notes { border-top: 1px solid #ddd; padding-top: 10px; }
.print-notes .line { height: 9mm; border-bottom: 1px solid #999; }
.print-foot { margin-top: 10px; font-size: 8pt; color: #777; text-align: center; }
.sheet-key { display: flex; gap: 16px; font-size: 9pt; margin-bottom: 8px; color: #333; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.sheet-table th { text-align: left; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .06em; color: var(--red); border-bottom: 1.5px solid #111; padding: 4px 6px; }
.sheet-table td { border-bottom: 1px solid #ccc; padding: 7px 6px; vertical-align: middle; height: 15mm; }
.sheet-table td.look { width: 34%; color: #333; }
.sheet-table td.observe { width: 26%; color: #777; font-size: 8pt; vertical-align: top; }
.sheet-table tr.corner td { background: #f6f6f6; }
.sheet-circles { display: flex; gap: 4px; }
.sheet-circles span { width: 20px; height: 20px; border: 1px solid #777; border-radius: 50%; display: grid; place-items: center; font-size: 8.5pt; }
.sheet-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.sheet-bottom h3, .sheet-order h3 { font-size: 12pt; margin-top: 6px; }
.sheet-bottom .line { height: 8mm; border-bottom: 1px solid #999; }
.sheet-order > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 4px; }
.sheet-order span { border: 1px solid #999; border-radius: 6px; height: 13mm; padding: 3px 5px; }
.sheet-order small { font-size: 7.5pt; color: #777; }

/* ---- Diagrams and richer plans ---- */
.diagram-editor { display: flex; flex-direction: column; gap: 10px; }
.diagram-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-btn { font: 500 13px var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; min-height: 36px; }
.tool-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.diagram-colours { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch-btn.active { box-shadow: 0 0 0 2px var(--ink); }
.diagram-hint { min-height: 1.4em; }
.diagram-stage { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.diagram-canvas { display: block; width: 100%; max-height: 62vh; touch-action: none; cursor: crosshair; user-select: none; }
.diagram-selbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg); padding: 8px; border-radius: 8px; }
.diagram-selbar input { flex: 1 1 200px; width: auto; }
.diagram-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-field { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.inline-field input, .inline-field select { width: auto; padding: 7px 10px; }
.diagram-slot { display: flex; flex-direction: column; gap: 8px; }
.diagram-preview svg { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.plan-row-head .icon-btn { margin-left: auto; }
.setup-details { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.setup-details summary { cursor: pointer; font-weight: 600; }
.setup-details[open] summary { margin-bottom: 10px; }
.plan-list .points { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.plan-list .diagram-preview { margin-top: 8px; }

.print-phase .prewrap { white-space: pre-wrap; }
.print-list { margin-top: 6px; }
.print-list h4 { font-family: var(--body); font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin: 6px 0 2px; }
.print-list ul, .print-list ol { margin: 0; padding-left: 16px; font-size: 9.5pt; }
.print-list li { margin: 1px 0; }
.diagram-figure { margin: 0; }
.diagram-figure svg { display: block; width: 100%; height: auto; }
.print-setup { padding: 4px 0 12px; }
.print-setup h2 { font-size: 15pt; margin-bottom: 6px; }
.print-setup-grid { display: grid; grid-template-columns: 96mm 1fr; gap: 14px; align-items: start; }
.print-setup-grid.no-diagram { grid-template-columns: 1fr; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: 6px; align-items: flex-start; }
.checklist .tick { flex: none; width: 3.2mm; height: 3.2mm; border: 1px solid #555; border-radius: 1px; margin-top: 1mm; }
