/* ============================================================
   Qube Post · client portal prototype
   Tokens come from tokens/*.css (copied from the Qube Design
   System). Nothing here invents a colour, radius or type size.
   ============================================================ */
@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/spacing.css";

@font-face { font-family: "Articulat CF"; src: url("assets/fonts/ArticulatCF-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Articulat CF"; src: url("assets/fonts/ArticulatCF-Normal.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Articulat CF"; src: url("assets/fonts/ArticulatCF-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Articulat CF"; src: url("assets/fonts/ArticulatCF-DemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Articulat CF"; src: url("assets/fonts/ArticulatCF-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alga"; src: url("assets/fonts/Alga-RegularItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--radius-xs); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.accent-word { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.label {
  font-size: var(--text-xs); font-weight: 500; line-height: 1;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted);
}
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
[hidden] { display: none !important; }

/* ---------- Icons (Lucide-style line set, flagged substitute) ---------- */
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons (pill, after components/core/Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: var(--track-sub); white-space: nowrap;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  background: transparent; text-decoration: none;
  transition: filter var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(.94); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-invert { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.btn-secondary { border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); filter: none; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.btn-primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn-full { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: transparent; color: var(--text);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--accent-soft); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--qube-black) 84%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .sep { width: 1px; height: 18px; background: var(--border-strong); }
.top nav { display: flex; gap: 28px; flex: 1; margin-left: 24px; }
.top nav a { font-size: 14px; letter-spacing: var(--track-sub); color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease-out); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.who { display: flex; align-items: center; gap: 12px; }
.credits { font-size: 13px; color: var(--text-muted); padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.credits b { color: var(--text); font-weight: 500; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--qube-deep-blue); color: var(--qube-blue);
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.house { background: var(--qube-off-white); color: var(--qube-black); }

/* ---------- Sign in ---------- */
.signin { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.signin-photo { position: relative; margin: 16px; border-radius: var(--radius-lg); overflow: hidden; }
.signin-photo img { width: 100%; height: 100%; object-fit: cover; }
.signin-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,9,.72), rgba(10,9,9,0) 55%); }
.signin-photo .cap { position: absolute; left: 32px; bottom: 28px; z-index: 1; color: var(--qube-off-white); text-shadow: var(--shadow-text); }
.signin-form { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(32px, 6vw, 96px); gap: 40px; }
.signin-form .logo { height: 26px; width: auto; align-self: flex-start; }
.signin h1 {
  margin: 0; font-weight: 500; font-size: clamp(2.6rem, 5vw, var(--text-2xl));
  line-height: var(--leading-head); letter-spacing: var(--track-head);
}
.signin h1 .accent-word { display: block; font-size: .62em; margin: .12em 0 .08em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-muted); }
.input {
  width: 100%; padding: 15px 18px; font-size: 15px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease-out);
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--border-strong); }
.sent {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.sent p { margin: 6px 0 18px; }

/* ---------- Page heading ---------- */
.page-head { padding: 72px 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-head h1 {
  margin: 14px 0 0; font-weight: 500; font-size: clamp(2.8rem, 6vw, var(--text-2xl));
  line-height: var(--leading-head); letter-spacing: var(--track-head);
}
.page-head p { margin: 0; max-width: 34ch; color: var(--text-muted); }

/* ---------- Session cards ---------- */
.sessions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 96px; }
.s-card {
  display: block; text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); padding: 12px 12px 22px; overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.s-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.s-card .cover { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.s-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.s-card .meta { padding: 18px 8px 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.s-card h3 { margin: 6px 0 0; font-size: var(--text-md); font-weight: 500; letter-spacing: var(--track-sub); line-height: var(--leading-snug); }
.status {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--text-muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.status.action { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.status.action::before { opacity: 1; }
.cover .status { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--qube-black) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cover .status.action { background: color-mix(in srgb, var(--qube-deep-blue) 82%, transparent); }

/* ---------- Session hero ---------- */
.hero { position: relative; margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,9,.88) 8%, rgba(10,9,9,.2) 70%, rgba(10,9,9,.05)); }
.hero-inner { position: relative; z-index: 1; padding: 40px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; text-shadow: var(--shadow-text); }
.hero h1 { margin: 12px 0 0; font-weight: 500; font-size: clamp(2.4rem, 5vw, var(--text-2xl)); line-height: var(--leading-head); letter-spacing: var(--track-head); }
.hero .label { color: rgba(251,244,239,.78); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Progress rail */
.rail { display: grid; grid-template-columns: repeat(5, 1fr); margin: 32px 0 8px; }
.rail li { list-style: none; position: relative; padding-top: 22px; font-size: 13px; color: var(--text-faint); }
.rail li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--border); }
.rail li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border-strong); }
.rail li.done { color: var(--text-muted); }
.rail li.done::before { background: var(--border-strong); }
.rail li.done::after { background: var(--text-muted); border-color: var(--text-muted); }
.rail li.now { color: var(--text); }
.rail li.now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rail ol { padding: 0; margin: 0; display: contents; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 32px 0 40px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-pill); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--text-muted); text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-selected="true"] { background: var(--cta); color: var(--cta-text); }
.tabs .count { font-size: 11px; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--accent); color: var(--text-on-accent); font-weight: 600; }
.tabs a[aria-selected="true"] .count { background: var(--qube-black); color: var(--qube-off-white); }

.panel { padding-bottom: 96px; }

/* ---------- Footage ---------- */
.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.summary .big { font-size: var(--text-lg); font-weight: 500; letter-spacing: var(--track-sub); line-height: 1.1; }
.summary .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.seg button { border: 0; background: none; padding: 8px 16px; font-size: 13px; border-radius: var(--radius-pill); color: var(--text-muted); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.group-head { display: flex; justify-content: space-between; align-items: center; margin: 48px 0 14px; gap: 16px; }
.files { border-top: 1px solid var(--border); }
.file { display: grid; grid-template-columns: 96px 1fr auto auto 40px; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.file .thumb { width: 96px; aspect-ratio: 16/9; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--text-faint); }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .name { font-weight: 500; letter-spacing: var(--track-sub); }
.file .spec { font-size: 13px; color: var(--text-muted); }
.file .dur, .file .size { font-size: 14px; color: var(--text-muted); text-align: right; min-width: 72px; }
.note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ---------- Edits / review ---------- */
.versions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.chip { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: none; color: var(--text-muted); }
.chip[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.player { border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--border); }
.screen { position: relative; aspect-ratio: 16/9; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen .bigplay {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: color-mix(in srgb, var(--qube-off-white) 92%, transparent); color: var(--qube-black); border: 0;
  display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease-out);
}
.screen .bigplay:active { transform: scale(.96); }
.screen .bigplay .i { width: 26px; height: 26px; fill: currentColor; stroke-width: 0; margin-left: 3px; }
.screen .wm { position: absolute; right: 18px; bottom: 16px; width: 28px; opacity: .55; }
.screen .vlabel { position: absolute; left: 18px; top: 16px; }
.controls { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--bg-elevated); border-top: 1px solid var(--border); }
.controls .tc { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.controls .tc b { color: var(--text); font-weight: 500; }
.scrub { position: relative; flex: 1; height: 28px; cursor: pointer; }
.scrub .track { position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--border-strong); }
.scrub .fill { position: absolute; left: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--qube-off-white); }
.scrub .head { position: absolute; top: 8px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--qube-off-white); }
.scrub .mark { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); border: 0; padding: 0; }
.scrub .mark.resolved { background: var(--text-faint); }

.notes { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); display: flex; flex-direction: column; max-height: 640px; }
.notes-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notes-head h3 { margin: 0; font-size: var(--text-base); font-weight: 500; }
.notes-list { overflow-y: auto; padding: 6px 0; flex: 1; }
.c { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 22px; }
.c + .c { border-top: 1px solid var(--border); }
.c .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.c .row b { font-weight: 500; }
.c p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.c.resolved p { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.tcchip { border: 0; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.c .resolve { margin-left: auto; border: 0; background: none; font-size: 12px; color: var(--text-faint); padding: 0; }
.c .resolve:hover { color: var(--text); }
.compose { padding: 16px 22px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.compose .at { font-size: 12px; color: var(--text-muted); }
.compose .input { padding: 12px 14px; font-size: 14px; border-radius: var(--radius-sm); }
.decision { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.decision .muted { font-size: 13px; margin-left: auto; }
.banner {
  display: flex; gap: 16px; align-items: center; padding: 18px 22px; margin-bottom: 20px;
  border-radius: var(--radius-md); background: var(--qube-deep-blue); color: var(--qube-off-white);
  border: 1px solid color-mix(in srgb, var(--qube-blue) 30%, transparent);
}
.banner .i { color: var(--qube-blue); }
.banner p { margin: 0; font-size: 14px; }
.banner b { font-weight: 500; }

/* ---------- Packages ---------- */
.pk-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.pk-head h2 { margin: 12px 0 0; font-weight: 500; font-size: clamp(2.4rem, 5vw, var(--text-xl)); line-height: var(--leading-head); letter-spacing: var(--track-head); }
.pk-head h2 .accent-word { font-size: .8em; }
.pk-head p { margin: 0; color: var(--text-muted); max-width: 44ch; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pk {
  display: flex; flex-direction: column; gap: 22px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pk:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pk.featured { background: var(--qube-deep-blue); border-color: color-mix(in srgb, var(--qube-blue) 35%, transparent); }
.pk.featured .label { color: var(--qube-blue); }
.pk h3 { margin: 10px 0 6px; font-size: var(--text-lg); font-weight: 500; letter-spacing: var(--track-sub); line-height: 1.05; }
.pk .lede { margin: 0; color: var(--text-muted); font-size: 14px; }
.pk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pk li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.pk li::before { content: "\2713"; color: var(--text-muted); }
.pk.featured li::before { color: var(--qube-blue); }
.price { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }
.price .amt { font-size: var(--text-xl); font-weight: 500; letter-spacing: var(--track-head); line-height: 1; }
.price .amt small { font-size: 14px; font-weight: 400; letter-spacing: var(--track-sub); color: var(--text-muted); margin-left: 6px; }
.price .vat { font-size: 13px; color: var(--text-faint); margin: 8px 0 18px; }
.addons { margin-top: 56px; }
.addon { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.addon .name { font-weight: 500; }
.addon .spec { font-size: 13px; color: var(--text-muted); }
.addon .p { font-size: 14px; color: var(--text-muted); text-align: right; }
/* Switch (after components/forms/Switch) */
.switch { position: relative; width: 44px; height: 26px; border-radius: var(--radius-pill); border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--border-strong); padding: 0; transition: background var(--dur) var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--qube-deep-blue); }

/* ---------- Sheet (checkout) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10,9,9,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet {
  position: fixed; z-index: 51; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px));
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); display: flex; flex-direction: column; overflow: hidden;
}
.sheet-head { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.sheet-head h2 { margin: 6px 0 0; font-size: var(--text-lg); font-weight: 500; letter-spacing: var(--track-sub); line-height: 1.1; }
.sheet-body { padding: 24px 28px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 28px; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.lines tr.sub td { color: var(--text-muted); border-bottom: 0; padding: 6px 0; }
.lines tr.total td { font-size: var(--text-md); font-weight: 500; border-bottom: 0; border-top: 1px solid var(--border-strong); padding-top: 14px; }
.pay { display: flex; flex-direction: column; gap: 10px; }
.pay label { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--dur) var(--ease-out); }
.pay label:has(input:checked) { border-color: var(--text); }
.pay input { accent-color: var(--qube-off-white); margin-top: 3px; }
.pay .t { font-weight: 500; font-size: 15px; }
.pay .d { font-size: 13px; color: var(--text-muted); }
.sheet-foot { padding: 20px 28px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.sheet-foot .fine { font-size: 12px; color: var(--text-faint); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--qube-off-white); color: var(--qube-black); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md); max-width: calc(100vw - 32px);
}

/* ---------- Footer & prototype tag ---------- */
.foot { border-top: 1px solid var(--border); padding-bottom: 48px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.foot img { width: 18px; opacity: .7; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.proto { position: fixed; right: 16px; bottom: 16px; z-index: 40; font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--qube-black) 85%, transparent); color: var(--text-muted); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .review { grid-template-columns: 1fr; }
  .notes { max-height: none; }
  .packages { grid-template-columns: 1fr; }
  .pk-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .signin { grid-template-columns: 1fr; }
  .signin-photo { height: 38vh; margin: 12px; }
  .signin-form { padding: 32px 20px 64px; gap: 32px; }
  .top nav, .credits { display: none; }
  .sessions { grid-template-columns: 1fr; }
  .page-head { padding: 48px 0 28px; }
  .hero { min-height: 280px; }
  .hero-inner { padding: 24px; }
  .rail li { font-size: 0; }
  .rail li.now { font-size: 12px; white-space: nowrap; }
  .file { grid-template-columns: 64px 1fr 40px; gap: 14px; }
  .file .thumb { width: 64px; }
  .file .dur, .file .size { display: none; }
  .summary { padding: 22px; }
  .addon { grid-template-columns: 1fr auto; }
  .addon .p { grid-column: 1; text-align: left; margin-top: -10px; }
  .addon .switch { grid-row: 1 / span 2; grid-column: 2; }
  .controls { gap: 10px; padding: 12px; }
  .decision .muted { margin-left: 0; width: 100%; }
  .proto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
