/* IM8 brand fonts (from the IM8 design library, v4.01): Arizona Flare for
   headlines, Aeonik for everything else. */
@font-face { font-family: "ABCArizonaFlare"; src: url("/fonts/ABCArizonaFlare-Regular_285e2e76.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("/fonts/Aeonik-Regular_9ff249da.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("/fonts/Aeonik-Medium_bb7d2f92.otf") format("opentype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("/fonts/Aeonik-Bold_752e6ce8.otf") format("opentype"); font-weight: 700; font-display: swap; }

/* IM8 palette: Burgundy #50000B, Red Algae #A40011, Flamingo #FF9693,
   Blush #E1CBB9, Dark Burgundy #3D0010, Cream #F5EDE0, Gold #C5973B,
   Off White #FAF6F2. Body text is warm near-black, never brand red. */
:root {
  --bg: #faf6f2;
  --panel: #ffffff;
  --panel-2: #f5ede0;
  --line: rgba(140, 122, 110, .16);
  --text: #1a0508;
  --muted: #6b5b51;
  --head: #50000b;
  --accent: #50000b;
  --accent-text: #ffffff;
  --accent-soft: rgba(80, 0, 11, .07);
  --link: #a40011;
  --late: #a40011;
  --late-soft: #fbe6e4;
  --soon: #72511a;
  --soon-soft: #f6ead0;
  --ok: #3f6e3c;
  --ok-soft: #e6efe1;
  --st-todo: #c4b2a6;
  --st-editing: #c5973b;
  --st-review: #ff9693;
  --st-approved: #5f8f5a;
  --st-posted: #50000b;
  --shadow: 0 1px 2px rgba(26, 5, 8, .04), 0 6px 20px rgba(26, 5, 8, .06);
  --radius: 16px;
  --font-body: "Aeonik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "ABCArizonaFlare", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--head); letter-spacing: -.005em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- buttons & inputs ---------- */
/* IM8 CTA: pill, Aeonik Bold, uppercase, 0.1em tracking. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--line); background: transparent; color: var(--head);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  white-space: nowrap; min-height: 38px; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--head) 30%, transparent); text-decoration: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.25); background: var(--accent); }
.btn.good { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.good:hover { filter: brightness(1.25); background: var(--accent); }
.btn.danger { color: var(--late); }
.btn.big { padding: 13px 24px; font-size: 12.5px; min-height: 48px; }
.btn.small { padding: 4px 12px; min-height: 30px; font-size: 10.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.wide { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.field small { color: var(--muted); font-size: 12px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; padding: 10px 12px; outline: none; min-height: 42px;
}
textarea.input { resize: vertical; min-height: 90px; }
.input:focus { border-color: var(--head); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; font-size: 13px; font-weight: 550;
}
.chip:hover { background: var(--panel-2); }
.chip.on { background: var(--accent-soft); border-color: var(--head); color: var(--head); }
.chip .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip.on .n { color: inherit; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); color: var(--muted);
}
.badge.late { background: var(--late-soft); color: var(--late); }
.badge.soon { background: var(--soon-soft); color: var(--soon); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.accent { background: var(--accent-soft); color: var(--head); }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.st-todo { --dot: var(--st-todo); }
.st-editing { --dot: var(--st-editing); }
.st-review { --dot: var(--st-review); }
.st-approved { --dot: var(--st-approved); }
.st-posted { --dot: var(--st-posted); }

.avatar {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: #fff; flex: none; letter-spacing: .02em;
}
.avatar.lg { width: 38px; height: 38px; font-size: 15px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--head); }
.brand .badge { font-family: var(--font-body); }
.logo { width: 28px; height: 28px; border-radius: 8px; background: #50000b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); display: grid; place-items: center; }
.logo svg { width: 16px; height: 16px; }
.tabs { display: flex; gap: 4px; background: transparent; padding: 0; }
.tab { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); }
.tab:hover { color: var(--head); }
.tab.on { background: var(--accent-soft); color: var(--head); }
.me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me-name { font-weight: 600; font-size: 14px; }

.page { max-width: 1400px; margin: 0 auto; padding: 20px 16px 80px; }
.hello { margin-bottom: 18px; }
.hello h1 { font-size: 32px; }
.hello p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.hello p b { color: var(--text); }

/* ---------- editor: my work ---------- */
.mine { max-width: 720px; margin: 0 auto; }
.section-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 24px 0 10px; }
.section-title.alert { color: var(--late); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; transition: transform .08s ease, border-color .1s;
}
.card:hover { border-color: color-mix(in srgb, var(--head) 40%, var(--line)); }
.card:active { transform: scale(.995); }
.work { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; }
.work .t { font-weight: 650; font-size: 16px; }
.work .m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.work.flag { border-left: 4px solid var(--late); }
details.done summary { cursor: pointer; list-style: none; }
details.done summary::-webkit-details-marker { display: none; }
details.done summary::after { content: " ▸"; }
details.done[open] summary::after { content: " ▾"; }

/* ---------- manager: board ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--panel-2); border-radius: var(--radius); padding: 10px; min-height: 160px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.col-h .n { color: var(--muted); font-size: 13px; font-weight: 600; }
.col.hot { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--st-review) 45%, transparent); }
.tile { padding: 11px 12px; margin-bottom: 8px; }
.tile .t { font-weight: 620; font-size: 14px; }
.tile .m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tile .who { display: inline-flex; align-items: center; gap: 6px; }
.col-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 4px; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.person.off { opacity: .6; }
.person-h { display: flex; align-items: center; gap: 12px; }
.person-h .nm { font-weight: 650; font-size: 16px; }
.load { display: flex; gap: 16px; margin: 14px 0 10px; }
.load div { display: flex; flex-direction: column; }
.load b { font-size: 20px; line-height: 1.1; }
.load span { font-size: 12px; color: var(--muted); }
.load .late b { color: var(--late); }
.plist { margin: 0 0 12px; padding: 0; list-style: none; }
.plist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.plist li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border-radius: 8px; padding: 6px 10px; font-size: 14px; letter-spacing: .03em; user-select: all; }

/* ---------- drawer ---------- */
#drawer, #modal { position: fixed; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgba(10, 10, 20, .35); }
.sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12); animation: slide .18s ease-out;
}
@keyframes slide { from { transform: translateX(24px); opacity: .4; } }
.sheet-h { position: sticky; top: 0; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-b { padding: 18px 16px 40px; }
.sheet-b h2 { font-size: 28px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.meta .who { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 550; }

.steps { display: flex; gap: 4px; margin-bottom: 18px; }
.steps div { flex: 1; }
.steps i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.steps div.past i { background: color-mix(in srgb, var(--head) 45%, var(--line)); }
.steps div.now i { background: var(--accent); }
.steps span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; text-align: center; }
.steps div.now span { color: var(--text); font-weight: 650; }

.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.box.action { border-color: color-mix(in srgb, var(--head) 45%, var(--line)); }
.box.warn { background: var(--late-soft); border-color: transparent; color: var(--text); }
.box.warn b { color: var(--late); }
.box h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.prose { white-space: pre-wrap; word-wrap: break-word; }
.links { margin: 0; padding: 0; list-style: none; }
.links li { padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.thread { display: flex; flex-direction: column; gap: 10px; }
.ev { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.ev::before { content: "•"; }
.cm { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cm-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.cm-h b { font-weight: 650; }
.cm-h span { color: var(--muted); font-size: 12px; }
.sheet-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- modal ---------- */
.dialog {
  position: relative; margin: 6vh auto; width: min(600px, calc(100% - 32px)); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: .4; } }
.dialog-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.dialog-h h2 { font-size: 24px; }
.dialog-b { padding: 12px 18px 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Shade: picker ---------- */
#picker { position: fixed; inset: 0; z-index: 30; }
#picker .dialog { width: min(880px, calc(100% - 32px)); padding-bottom: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.ptile {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border: 2px solid transparent; background: var(--panel); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow);
}
.ptile:hover { border-color: color-mix(in srgb, var(--head) 40%, transparent); }
.ptile.on { border-color: var(--head); }
.ptile.on::after {
  content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
/* Image is taken out of flow so tall 9:16 frames can't stretch the tile. */
.pimg { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--panel-2); overflow: hidden; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
.pimg .tag { position: absolute; bottom: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.pimg .tag.l { left: 6px; }
.pimg .tag.r { right: 6px; }
.pname { padding: 8px 10px 0; font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pfold { padding: 2px 10px 10px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 14px; margin: 12px 0 10px; }
.crumbs button { border: 0; background: none; color: var(--link); cursor: pointer; padding: 2px 4px; font-weight: 600; border-radius: 6px; }
.crumbs button:hover { background: var(--accent-soft); }
.crumbs b { padding: 2px 4px; }
.dirs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.dirs button { text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 12px; cursor: pointer; }
.dirs button:first-child { border-top: 0; }
.dirs button:hover { background: var(--panel-2); }
.picker-foot { position: sticky; bottom: 0; background: var(--bg); display: flex; gap: 8px; align-items: center; padding: 12px 0 16px; border-top: 1px solid var(--line); }

/* ---------- Shade: footage & player ---------- */
.player { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; display: block; }
.frow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow.playing { flex-direction: column; align-items: stretch; }
.thumb { position: relative; width: 96px; aspect-ratio: 16 / 10; flex: none; border-radius: 8px; overflow: hidden; background: var(--panel-2); border: 0; padding: 0; cursor: pointer; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .playico { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.fico { width: 96px; text-align: center; font-size: 26px; flex: none; }
.fname { font-weight: 600; font-size: 14px; word-break: break-word; }
.fsub { margin: 0 0 6px 16px; padding-left: 12px; border-left: 2px solid var(--line); }
.mini { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 6px; font-size: 13px; }
.mini img, .mini .noimg { width: 48px; height: 30px; object-fit: cover; border-radius: 5px; background: var(--panel-2); flex: none; display: grid; place-items: center; }
.mini span.grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- notes pinned to a moment ---------- */
.cut { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.cut:first-child { border-top: 0; }
.cut.done { opacity: .55; }
.cut-h { font-size: 13px; margin-bottom: 2px; }
.ts {
  flex: none; border: 0; border-radius: 6px; padding: 3px 8px; cursor: pointer;
  font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); color: var(--head);
}
.ts:hover { filter: brightness(.95); }
.ts.off { background: var(--panel-2); color: var(--muted); cursor: default; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.login-card .logo { width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 14px; }
.login-card .logo svg { width: 28px; height: 28px; }
.login-card h1 { font-size: 32px; margin-bottom: 6px; }
.login-card p { color: var(--muted); margin: 0 0 18px; }
.login-card .input { text-align: center; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.door {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 12px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel);
}
.door b { font-size: 15px; }
.door span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.door:hover { border-color: color-mix(in srgb, var(--head) 40%, var(--line)); }
.door.on { border-color: var(--head); background: var(--accent-soft); }
.door.on b { color: var(--head); }
.err { color: var(--late); font-size: 14px; min-height: 20px; margin-top: 10px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; pointer-events: none; }
#toast div { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 550; box-shadow: var(--shadow); animation: pop .16s ease-out; max-width: calc(100vw - 32px); }
#toast div.bad { background: var(--late); color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; }
  .me-name { display: none; }
  .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .two { grid-template-columns: 1fr; }
  .work { flex-direction: column; align-items: stretch; }
  .work .btn { width: 100%; }
  .dialog { margin: 0; width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .hello h1 { font-size: 27px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .thumb, .fico { width: 80px; }
  #picker .dialog { width: 100%; }
}

/* ---------- present mode ---------- */
#present { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
#present > * { pointer-events: auto; }
/* Dark burgundy surface: per IM8 rules, buttons on it are white, never red. */
.pbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: #50000b; color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 30px rgba(26, 5, 8, .3); max-width: 100%;
}
.pbar-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff9693; }
.pbar-who, .pbar-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.pbar button {
  border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font: 700 10.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.pbar button:hover { border-color: #fff; }
.pbar button.on { background: #fff; color: #50000b; border-color: #fff; }
.pbar-tools { padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .2); }
.guide {
  width: min(420px, 100%); background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(26, 5, 8, .22); align-self: flex-start;
}
.guide-h { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.guide h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--head); margin: 4px 0 6px; }
.guide p { margin: 0 0 12px; font-size: 14px; }
.tour-hi { outline: 3px solid #ff9693 !important; outline-offset: 3px; border-radius: 12px; animation: tourpulse 1.6s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes tourpulse { 50% { outline-color: rgba(255, 150, 147, .35); } }
body.presenting .page { padding-bottom: 200px; }
body.presenting .sheet-b { padding-bottom: 200px; }
body.presenting .dialog { margin-bottom: 120px; }
@media (max-width: 720px) {
  #present { left: 8px; right: 8px; bottom: 8px; }
  .pbar { border-radius: 18px; padding: 8px; }
  .guide { align-self: stretch; }
}

/* =====================================================================
   Liquid Glass — the same material, motion and components as Cadence
   (~/cadence-web), on IM8 colours and fonts. Light only, like Cadence.
   ===================================================================== */
:root {
  --glass-light: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .4));
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 .5px rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .2);
  --glass-rim-dark: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 .5px rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .14);
  --glass-blur: blur(22px) saturate(180%);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.3, 1.12, .5, 1);
  --spring-bouncy: cubic-bezier(.34, 1.38, .55, 1);
  --t-spring: .574s; --t-bouncy: .762s; --t-snappy: .438s;
  --sh-2: 0 12px 40px rgba(26, 5, 8, .14);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.03, 0.103, 0.201, 0.311, 0.423, 0.529, 0.626, 0.711, 0.784, 0.844, 0.893, 0.932, 0.961, 0.983, 0.998, 1.009, 1.015, 1.019, 1.02, 1.02, 1.018, 1.017, 1.014, 1.012, 1.01, 1.008, 1.006, 1.005, 1.003, 1.002, 1.002, 1.001, 1);
    --spring-bouncy: linear(0, 0.045, 0.154, 0.297, 0.449, 0.595, 0.724, 0.831, 0.916, 0.978, 1.021, 1.047, 1.06, 1.063, 1.06, 1.053, 1.044, 1.035, 1.025, 1.017, 1.01, 1.005, 1.001, 0.999, 0.997, 0.996, 0.996, 0.996, 0.997, 0.997, 0.998, 0.998, 0.999, 1);
  }
}

/* ---- soft drifting colour behind everything (Cadence's orbs) ---- */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #ff9693 0%, transparent 70%); top: -160px; right: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #c5973b44 0%, transparent 70%); bottom: -140px; left: -100px; animation: drift2 32s ease-in-out infinite alternate; }
.orb-3 { width: 340px; height: 340px; background: radial-gradient(circle, #e1cbb9 0%, transparent 70%); top: 38%; left: 52%; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-70px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(80px, -50px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-60px, -80px); } }

/* ---- the bar: dark glass that picks up the page scrolling under it ---- */
.top {
  background: linear-gradient(180deg, rgba(92, 0, 12, .8), rgba(70, 0, 9, .72));
  backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: var(--glass-rim-dark), 0 10px 34px rgba(26, 5, 8, .2); border-bottom: 0; color: #fff;
}
.top-in { min-height: 64px; padding: 10px 26px; gap: 18px; }
.brand { color: #fff; font-size: 23px; }
.brand .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.logo { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.me-name { color: rgba(255, 255, 255, .9); }
.tabs { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; gap: 4px;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), inset 0 1px 2px rgba(0, 0, 0, .22); }
.top .tab { color: rgba(255, 255, 255, .84); font-size: 13px; font-weight: 600; padding: 8px 17px;
  transition: color .3s var(--ease), transform var(--t-snappy) var(--spring-bouncy); }
.top .tab:hover { color: #fff; }
.tab:active { transform: scale(.92); transition-duration: .1s; }
/* the liquid pill */
.top .tab.on { background: linear-gradient(180deg, #fff, rgba(255, 243, 239, .94)); color: #50000b;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(90, 0, 11, .1); }
/* buttons on the dark bar: white, never red (IM8 rule) */
.top .btn { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.top .btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.top .btn.primary { background: #fff; color: #50000b; border-color: #fff; }
.top .btn.primary:hover { filter: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transform: translateY(-1px); }
.top .btn.ghost { background: transparent; border-color: transparent; color: rgba(255, 255, 255, .85); }

/* ---- buttons: Cadence pills, sentence case; presses dip fast, spring back ---- */
.btn {
  text-transform: none; letter-spacing: .01em; font-size: 13px; font-weight: 600; padding: 10px 20px;
  color: #5a000b; border: 1.5px solid rgba(90, 0, 11, .18); background: transparent;
  transition: transform var(--t-snappy) var(--spring-bouncy), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover:not(:disabled) { background: rgba(90, 0, 11, .05); border-color: rgba(90, 0, 11, .26); }
.btn:active { transform: scale(.94); transition-duration: .1s; transition-timing-function: ease-out; }
.btn:disabled:active { transform: none; }
.btn.primary, .btn.good { background: #50000b; border-color: #50000b; color: #fff; }
.btn.primary:hover:not(:disabled), .btn.good:hover:not(:disabled) { filter: none; background: #50000b; box-shadow: 0 8px 22px rgba(80, 0, 11, .3); transform: translateY(-1px); }
.btn.ghost { border-color: transparent; }
.btn.danger { color: #a40011; }
.btn.big { padding: 14px 26px; font-size: 14px; min-height: 48px; }
.btn.small { padding: 6px 13px; font-size: 12px; min-height: 30px; }

/* ---- fields ---- */
.field > span { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #5a000b; }
.input, textarea.input, select.input { border: 1.5px solid rgba(140, 122, 110, .25); border-radius: 13px; padding: 11px 14px; font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.input:focus { border-color: #a40011; box-shadow: 0 0 0 4px rgba(164, 0, 17, .1); }

/* ---- headings: eyebrow + display title, like Cadence's hero ---- */
.hello { margin-bottom: 22px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a40011; margin-bottom: 6px; }
.hello h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; line-height: 1.14; }
.hello p { font-size: 15px; }
.section-title { color: var(--muted); letter-spacing: .12em; }

/* ---- segmented controls: light glass, burgundy pill for the chosen one ---- */
.toolbar .chips, .doors {
  background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 6px 22px rgba(26, 5, 8, .08); border-radius: 999px; padding: 4px; gap: 4px;
}
.toolbar .chip { border: 0; background: transparent; color: #5a000b; padding: 7px 14px; font-weight: 600;
  transition: color .3s var(--ease), transform var(--t-snappy) var(--spring-bouncy); }
.toolbar .chip:hover { background: rgba(90, 0, 11, .06); }
.toolbar .chip:active { transform: scale(.92); transition-duration: .1s; }
.toolbar .chip.on { background: #50000b; color: #fff; box-shadow: 0 4px 14px rgba(80, 0, 11, .3), inset 0 1px 0 rgba(255, 255, 255, .22); }
.toolbar .chip.on .n { color: rgba(255, 255, 255, .7); }
.chip { border-color: rgba(140, 122, 110, .22); }
.chip.on { background: #50000b; border-color: #50000b; color: #fff; }

/* ---- cards: white, soft shadow, springy lift (no glass on content, as in Cadence) ---- */
.card, .person, .box {
  background: #fff; border: 1px solid rgba(140, 122, 110, .08); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(26, 5, 8, .04), 0 6px 20px rgba(26, 5, 8, .06);
}
/* No entrance animation on cards: the board redraws every minute and would flicker. */
.card { transition: transform var(--t-spring) var(--spring), box-shadow .4s var(--ease); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px) scale(1.012); border-color: rgba(140, 122, 110, .08);
    box-shadow: 0 2px 4px rgba(26, 5, 8, .05), 0 16px 36px rgba(26, 5, 8, .13); }
}
.card:active { transform: scale(.965); transition-duration: .12s; transition-timing-function: ease-out; }
.box.action { border: 1.5px solid rgba(90, 0, 11, .16); }
.box.warn { background: #f7dad9; border-color: transparent; box-shadow: none; }

/* ---- board columns: Cadence's day columns ---- */
.col { background: rgba(245, 237, 224, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 22px; border: 1px solid rgba(225, 203, 185, .5); padding: 12px 12px 16px; }
.col.hot { box-shadow: inset 0 0 0 2px rgba(255, 150, 147, .7); }

/* ---- sheets: the veil blurs in, the sheet materialises and settles ---- */
.scrim { background: rgba(26, 5, 8, .3); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  animation: veilIn .45s var(--spring) both; }
@keyframes veilIn { from { opacity: 0; backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%); } }
.sheet { width: min(560px, 100vw); background: rgba(250, 246, 242, .94); border-left: 0;
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--glass-rim), -18px 0 60px rgba(26, 5, 8, .2); animation: drawerIn var(--t-spring) var(--spring) both; }
@keyframes drawerIn { from { transform: translateX(105%); } }
.sheet-h { background: rgba(255, 255, 255, .58); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(140, 122, 110, .14); }
.dialog { background: rgba(250, 246, 242, .88); border: .5px solid rgba(255, 255, 255, .65); border-radius: 22px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 28px 80px rgba(26, 5, 8, .3), 0 2px 8px rgba(26, 5, 8, .08);
  animation: sheetIn var(--t-bouncy) var(--spring-bouncy) both; transform-origin: 50% 0; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(36px) scale(.93); filter: blur(10px); } 55% { filter: none; } to { opacity: 1; transform: none; filter: none; } }
.dialog-h { background: rgba(255, 255, 255, .58); padding: 20px 22px 16px; border-bottom: 1px solid rgba(140, 122, 110, .14); }
.dialog-b { padding: 18px 22px 22px; }
.dialog-h h2 { color: #5a000b; }

/* ---- Shade picker tiles ---- */
.ptile { border-radius: 16px; box-shadow: 0 1px 2px rgba(26, 5, 8, .04), 0 6px 20px rgba(26, 5, 8, .06);
  transition: transform var(--t-spring) var(--spring), box-shadow .4s var(--ease), border-color .2s; }
.ptile:active { transform: scale(.96); }
.ptile.on { border-color: #50000b; }

/* ---- sign-in: a glass card over the drifting colour ---- */
.login-card { background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(255, 255, 255, .65); border-radius: 22px;
  box-shadow: var(--glass-rim), 0 28px 80px rgba(26, 5, 8, .16); animation: sheetIn var(--t-bouncy) var(--spring-bouncy) both; }
.login-card .logo { background: #50000b; }
.login-card h1 { font-size: 38px; letter-spacing: -.02em; }
.doors { border-radius: 20px; }
.door { border: 0; background: transparent; border-radius: 16px; transition: background .25s var(--ease), transform var(--t-snappy) var(--spring-bouncy); }
.door:active { transform: scale(.96); }
.door.on, .door.on:hover { background: #50000b; color: #fff; box-shadow: 0 4px 14px rgba(80, 0, 11, .3), inset 0 1px 0 rgba(255, 255, 255, .22); }
.door.on b { color: #fff; }
.door.on span { color: rgba(255, 255, 255, .78); }

/* ---- toast & present bar: dark glass ---- */
#toast div { background: linear-gradient(180deg, rgba(92, 0, 12, .86), rgba(70, 0, 9, .8)); color: #fff; border-radius: 999px; padding: 11px 20px;
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-rim-dark), 0 12px 34px rgba(26, 5, 8, .28); animation: sheetIn var(--t-bouncy) var(--spring-bouncy) both; }
#toast div.bad { background: #a40011; }
.pbar { background: linear-gradient(180deg, rgba(92, 0, 12, .84), rgba(70, 0, 9, .78));
  backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: var(--glass-rim-dark), 0 12px 34px rgba(26, 5, 8, .28); }
.pbar button { text-transform: none; letter-spacing: .01em; font-size: 12.5px; font-weight: 600; transition: transform var(--t-snappy) var(--spring-bouncy), background .2s; }
.pbar button:active { transform: scale(.92); }
.pbar button.on { background: linear-gradient(180deg, #fff, rgba(255, 243, 239, .94)); }
.pbar-tag { letter-spacing: .18em; }
.guide { background: rgba(250, 246, 242, .9); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(255, 255, 255, .65); border-radius: 22px; box-shadow: var(--glass-rim), 0 18px 50px rgba(26, 5, 8, .22);
  animation: sheetIn var(--t-bouncy) var(--spring-bouncy) both; }

@media (max-width: 720px) {
  .top-in { padding: 10px 14px; gap: 10px; }
  .brand { font-size: 19px; }
  .tabs { order: 3; }
  /* the actions get their own row instead of pushing the page wider */
  .me { order: 2; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 6px; }
  .me .btn { padding: 7px 13px; font-size: 12px; min-height: 32px; }
  /* like Cadence on phones: the segmented control scrolls sideways */
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar .chip { flex: none; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   UI fixes (2026-10-26 audit)
   ===================================================================== */
/* Tabs inside light sheets (the Shade picker): burgundy pill on a soft track. */
.dialog .tabs, .sheet .tabs { background: rgba(90, 0, 11, .06); box-shadow: none; }
.dialog .tab, .sheet .tab { color: #5a000b; }
.dialog .tab.on, .sheet .tab.on { background: #50000b; color: #fff; box-shadow: 0 4px 14px rgba(80, 0, 11, .3); }

/* Avatars keep white initials wherever they sit (the comment header recoloured them). */
.avatar { color: #fff !important; }

/* Account menu: the avatar opens a glass popover (Cadence's status menu). */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff;
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; min-height: 36px;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); transition: background .2s var(--ease), transform var(--t-snappy) var(--spring-bouncy); }
.acct-btn:hover { background: rgba(255, 255, 255, .18); }
.acct-btn:active { transform: scale(.95); }
.acct-btn .avatar { width: 28px; height: 28px; font-size: 11px; }
.acct-btn .chev { font-size: 11px; opacity: .8; }
.acct-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; min-width: 240px; padding: 8px; border-radius: 18px;
  background: rgba(255, 252, 249, .9); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 18px 50px rgba(26, 5, 8, .22); color: var(--text);
  transform-origin: 90% 0; animation: menuIn var(--t-bouncy) var(--spring-bouncy) both; }
@keyframes menuIn { from { opacity: 0; transform: scale(.86) translateY(-6px); } }
.acct-menu .am-head { padding: 8px 10px 10px; border-bottom: 1px solid rgba(140, 122, 110, .16); margin-bottom: 4px; }
.acct-menu .am-head b { display: block; font-size: 14px; }
.acct-menu .am-head span { font-size: 12px; color: var(--muted); }
.acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: transparent;
  border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; min-height: 40px;
  transition: background .15s var(--ease), transform var(--t-snappy) var(--spring-bouncy); }
.acct-menu button:hover { background: rgba(90, 0, 11, .06); }
.acct-menu button:active { transform: scale(.97); }
.acct-menu button { flex-direction: column; align-items: flex-start; gap: 1px; }
.acct-menu button small { font-weight: 500; color: var(--muted); font-size: 12px; }
.acct-menu { max-width: calc(100vw - 24px); }

/* Footage rows: long names and paths truncate instead of running under the buttons. */
.frow > .grow { min-width: 0; }
.frow .fname { overflow-wrap: anywhere; }
.frow .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.draft-actions { margin-top: 8px; }

/* Team "More…" opens inline under the buttons, so it can't run off either edge. */
.person details[open] { flex-basis: 100%; flex-direction: column; align-items: flex-start; }
.person details > .box { position: static !important; width: 100% !important; margin-top: 8px; box-shadow: none !important; background: rgba(245, 237, 224, .6); }
.person details > summary { min-height: 32px; display: inline-flex; align-items: center; }

/* Comfortable tap targets. */
.ts { min-height: 28px; padding: 4px 10px; }
details.done summary { padding: 8px 0; }
.links li { padding: 6px 0; }
.guide-h, .pbar-tag { font-size: 11px; }

/* Keyboard focus is always visible. */
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .door:focus-visible, .ptile:focus-visible,
.acct-btn:focus-visible, .acct-menu button:focus-visible, .pbar button:focus-visible, .card:focus-visible, .ts:focus-visible {
  outline: 2.5px solid #ff9693; outline-offset: 2px; }

/* Toasts sit above the present bar instead of behind it. */
body.presenting #toast { bottom: 96px; }

/* Guide: jump to the person the step is about. */
.guide-h .linkish { border: 0; background: none; color: var(--link); font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 8px 0; text-decoration: underline; }

@media (max-width: 720px) {
  /* one compact bar row: brand left, actions right; tabs underneath */
  .top-in { flex-wrap: wrap; row-gap: 8px; }
  .me { order: 2; width: auto; margin-left: auto; flex-wrap: nowrap; gap: 6px; }
  .top .btn.primary { padding: 7px 12px; font-size: 12px; min-height: 36px; }
  .brand { gap: 7px; }
  .brand .badge { padding: 2px 7px; font-size: 11px; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs .tab { flex: 1; text-align: center; }
  .acct-btn { padding: 3px; }
  .acct-btn .me-name, .acct-btn .chev { display: none; }
  .chip { min-height: 36px; }
  .ts { min-height: 34px; }
  .btn.small { min-height: 36px; min-width: 36px; }
  /* present bar: one scrollable row */
  #present { gap: 8px; }
  /* only the people scroll; Reset and Exit stay pinned on the right */
  .pbar { flex-wrap: nowrap; justify-content: flex-start; border-radius: 999px; padding: 6px; width: 100%; gap: 6px; }
  .pbar-tag { display: none; }
  .pbar-who { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pbar-who::-webkit-scrollbar { display: none; }
  .pbar-tools { flex: none; flex-wrap: nowrap; padding-left: 6px; }
  .pbar button { flex: none; min-height: 34px; }
  .guide { padding: 12px 14px; }
  .guide p { font-size: 13.5px; margin-bottom: 10px; }
  body.presenting #toast { bottom: 150px; }
}

/* State rules for buttons on the dark bar. These come last and set background AND
   text colour together: a generic hover rule later in the file used to turn the
   white "+ New brief" burgundy on hover, leaving burgundy text on burgundy. */
.top .btn.primary,
.top .btn.primary:hover,
.top .btn.primary:active,
.top .btn.primary:focus-visible { background: #fff; color: #50000b; border-color: #fff; filter: none; }
.top .btn.primary:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transform: translateY(-1px); }
.top .btn:not(.primary):hover:not(:disabled) { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .45); }
