/* Reshape GTM — v2 layer: JetBrains Mono everywhere, brand lockup, themes/accents,
   compact single-line controls, and styles for the v2 features (⌘K, onboarding, import, settings,
   analysis, insights, quarter switcher, trends). Loaded last so it overrides site/cage/app.css. */

/* ---------- Type: one family, hierarchy from size + weight ---------- */
:root { --serif: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --sans: var(--serif); --mono: var(--serif); }
html, body { font-family: var(--sans); font-feature-settings: "calt" 1, "liga" 0; }
body { font-size: 14.5px; letter-spacing: -0.005em; }
.italic, .manifesto-attr .signed { font-style: normal; color: var(--accent); }
.h-serif, .serif { font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; }
.h2 { font-size: clamp(28px, 3.1vw, 44px); }
.mono { font-size: 10.5px; letter-spacing: 0.08em; }
.kpis .num, .result-grid .num { font-weight: 600; font-size: 40px; letter-spacing: -0.05em; }
.result-grid .num small, .kpis .num small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.dist-cell b { font-weight: 600; font-size: 28px; letter-spacing: -0.04em; }
.panel .big { font-weight: 600; font-size: 60px; letter-spacing: -0.05em; }
.cage-pillar .letter { font-weight: 700; font-size: 72px; letter-spacing: -0.06em; }
.cage-pillar h4, .tpl-card h4, .eng-card h4 { font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.pillar-head .letter { font-weight: 700; font-size: 48px; }
.pillar-head h3 { font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.item-title { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.quad-legend b { font-weight: 600; font-size: 19px; }
.principles li::before { font-weight: 600; font-size: 26px; }
.rate button .n { font-weight: 600; font-size: 20px; }
.side-ws { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.mover-d { font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.place-name { display: flex; align-items: center; gap: 12px; font-size: 40px; line-height: 1; }
/* marketing display sizes, retuned for a monospace face */
.m-body h1, .m-body .h1 { letter-spacing: -0.055em; }
.m-body .h-serif.h1, .m-hero h1 { font-size: clamp(34px, 4.4vw, 62px); }
.nowrap { white-space: nowrap; }

/* ---------- Accents (gold/blue/ember in site.css) ---------- */
[data-accent="blue"] { --accent: oklch(0.45 0.18 255); --accent-soft: oklch(0.45 0.18 255 / 0.12); }
[data-accent="sage"] { --accent: oklch(0.55 0.08 155); --accent-soft: oklch(0.55 0.08 155 / 0.14); }
[data-accent="graphite"] { --accent: oklch(0.35 0.01 60); --accent-soft: oklch(0.35 0.01 60 / 0.1); }
[data-theme="dark"][data-accent="blue"] { --accent: oklch(0.72 0.16 255); }
[data-theme="dark"][data-accent="sage"] { --accent: oklch(0.72 0.09 155); }
[data-theme="dark"][data-accent="graphite"] { --accent: oklch(0.85 0.01 60); --accent-soft: oklch(0.85 0.01 60 / 0.12); }
[data-theme="dark"][data-accent="gold"] { --accent: oklch(0.76 0.13 80); }
[data-theme="dark"] .modal-bg, [data-theme="dark"] .cmdk-bg { background: oklch(0.05 0 0 / 0.6); }
[data-theme="dark"] .btn:not(.ghost) { color: var(--bg); }
[data-theme="dark"] .side-nav a.on { background: var(--ink); color: var(--bg); }

/* ---------- Compact single-line controls ---------- */
.btn, .btn.small, .seg button, .qchip, .tag, .ribbon, .plan-badge, .toggle-link, .side-nav a, .pill-s, .qswitch, .cmdk-btn, .set-nav a, .pick-people button, .accent-pick button, .theme-opt, .delta, .legend span { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; line-height: 1.1; }
.btn.small { padding: 8px 13px; font-size: 12px; }
.btn .ico-svg { flex: none; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.qchip { display: inline-flex; align-items: center; gap: 5px; line-height: 1.3; }
.qicon { flex: none; vertical-align: -2px; }
.qicon.q-star { color: oklch(0.6 0.13 80); } .qicon.q-compass { color: oklch(0.52 0.09 230); } .qicon.q-flight_risk { color: oklch(0.58 0.13 60); } .qicon.q-time_bomb { color: oklch(0.55 0.17 35); }
[data-theme="dark"] .qicon.q-star { color: oklch(0.8 0.13 85); } [data-theme="dark"] .qicon.q-compass { color: oklch(0.72 0.08 230); } [data-theme="dark"] .qicon.q-flight_risk { color: oklch(0.75 0.12 60); } [data-theme="dark"] .qicon.q-time_bomb { color: oklch(0.7 0.16 35); }
.dist-cell span, .quad-counts span, .act-top b, .mx-qlabel { display: inline-flex; align-items: center; gap: 6px; }
.dist-cell span { white-space: nowrap; }

/* plan badge: one line — plan · trial · meter · count */
.plan-badge { display: flex; align-items: center; gap: 8px; align-self: stretch; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; overflow: hidden; }
a.plan-badge:hover { border-color: var(--ink); }
.pb-plan { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pb-trial { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--accent); color: var(--bg); }
.pb-meter { flex: 1; min-width: 24px; height: 4px; border-radius: 4px; background: color-mix(in oklch, var(--ink) 12%, transparent); overflow: hidden; }
.pb-meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.pb-meter i.full { background: oklch(0.58 0.17 35); }
.pb-count { font-variant-numeric: tabular-nums; }

/* ---------- Brand lockup ---------- */
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-lockup .bird { flex: none; color: var(--ink); }
.bl-text { display: flex; flex-direction: column; line-height: 1.05; }
.bl-text b { font-weight: 700; font-size: 14px; letter-spacing: -0.03em; white-space: nowrap; }
.bl-text small { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.02em; white-space: nowrap; }
.brand-lockup.compact .bl-text b { font-size: 13px; }
.nav-brand { text-decoration: none; }
.auth-brand { margin-bottom: 36px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Sidebar ---------- */
.side { gap: 22px; }
.side-top { gap: 14px; }
.side-brand { padding: 2px 4px 0; }
.side-cust { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); }
.side-cust .side-logo { min-height: 0; width: 40px; height: 40px; flex: none; border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); }
.side-cust .side-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cust-mono { font-weight: 700; font-size: 13px; letter-spacing: -0.02em; color: var(--ink-soft); }
.side-cust-t { min-width: 0; }
.side-cust-t .side-ws { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; color: var(--ink-faint); background: transparent; font: inherit; font-size: 12.5px; cursor: pointer; }
.side-search:hover { border-color: var(--ink-faint); color: var(--ink); }
.side-search span { flex: 1; text-align: left; }
kbd { font-family: var(--mono); font-size: 10px; padding: 1px 5px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-soft); background: var(--bg); line-height: 1.4; }
.side-nav a { font-size: 13.5px; padding: 9px 12px; }
.side-nav .ico, .side-nav .ico-svg { width: 17px; opacity: .85; }
.topbar .brand-lockup { flex: 1; }

/* ---------- Top bar: quarter + ⌘K ---------- */
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 48px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.qswitch { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--bg); }
.qswitch > button { width: 32px; height: 34px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 16px; }
.qswitch > button:hover:not(:disabled) { background: var(--accent-soft); color: var(--ink); }
.qswitch > button:disabled { opacity: .3; cursor: default; }
.qsel { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 34px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); color: var(--ink); }
.qsel select { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; padding-right: 2px; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink-faint); font: inherit; font-size: 12.5px; cursor: pointer; min-width: 280px; }
.cmdk-btn span { flex: 1; text-align: left; }
.cmdk-btn:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ---------- Command palette ---------- */
.cmdk-bg { position: fixed; inset: 0; background: oklch(0.18 0.01 60 / 0.4); z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; animation: mx-fade .16s ease-out; }
.cmdk { width: 100%; max-width: 640px; background: var(--bg); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 30px 80px -20px oklch(0.1 0 0 / 0.45); overflow: hidden; animation: cmdk-in .2s cubic-bezier(.2,.8,.2,1); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes mx-fade { from { opacity: 0; } }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-faint); }
.cmdk-in input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.cmdk-list { max-height: 52vh; overflow: auto; padding: 6px; }
.cmdk-g { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 10px 4px; }
.cmdk-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.cmdk-it .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-it .t small { margin-left: 10px; color: var(--ink-faint); font-size: 11.5px; }
.cmdk-it .hint { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cmdk-it .ret { opacity: 0; color: var(--ink-faint); }
.cmdk-it.on { background: var(--accent-soft); color: var(--ink); }
.cmdk-it.on .ret { opacity: 1; }
.cmdk-empty { padding: 28px; text-align: center; color: var(--ink-faint); }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--ink-faint); }
.cmdk-foot kbd { margin-right: 3px; }

/* ---------- Onboarding ---------- */
.onb { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.onb-rail { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--rule); border-radius: 14px; }
.onb-step { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; color: var(--ink-faint); text-align: left; cursor: pointer; }
.onb-step:disabled { cursor: default; }
.onb-step .n { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.onb-step.on { background: var(--accent-soft); color: var(--ink); }
.onb-step.on .n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.onb-step.done { color: var(--ink-soft); }
.onb-step.done .n { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.onb-prog { height: 3px; background: var(--rule); border-radius: 3px; margin: 8px 10px 6px; overflow: hidden; }
.onb-prog i { display: block; height: 100%; background: var(--accent); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.onb-card { border: 1px solid var(--rule); border-radius: 18px; padding: 32px 36px; animation: mx-rise .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mx-rise { from { opacity: 0; transform: translateY(10px); } }
.onb-h { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); }
.onb-p { max-width: 640px; margin-top: 12px; }
.onb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.onb-quads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.onb-quad { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; animation: mx-rise .5s both; }
.onb-quad:nth-child(2) { animation-delay: .06s; } .onb-quad:nth-child(3) { animation-delay: .12s; } .onb-quad:nth-child(4) { animation-delay: .18s; }
.onb-quad b { font-size: 14px; } .onb-quad span { font-size: 11px; color: var(--ink-faint); }
.onb-tips { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; color: var(--ink-soft); font-size: 13px; }
.onb-tips li { display: flex; gap: 8px; align-items: center; } .onb-tips .ico-svg { color: var(--accent); }
.onb-chart { margin-top: 22px; max-width: 640px; }
.row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-preview.sm { width: 56px; height: 56px; padding: 6px; color: var(--ink-faint); }
.fy-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.fy-preview > div { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.fy-preview b { font-size: 13px; } .fy-preview span { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }

/* ---------- Import ---------- */
.import-steps { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; }
.imp-step { display: flex; gap: 12px; border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.imp-step .n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.imp-step b { display: block; margin-bottom: 6px; } .imp-step p { margin-bottom: 12px; }
.dropzone { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 18px; border: 1.5px dashed var(--rule); border-radius: 12px; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.imp-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.imp-summary > div { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.imp-summary b { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; } .imp-summary span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.imp-summary .ok b { color: oklch(0.55 0.12 150); } .imp-summary .dup b { color: var(--ink-faint); } .imp-summary .bad b { color: oklch(0.58 0.17 35); }
.imp-tbl td { vertical-align: top; font-size: 12.5px; }
.imp-tbl tr.imp-error { background: oklch(0.58 0.17 35 / 0.05); } .imp-tbl tr.imp-duplicate { opacity: .6; }
.pill-s { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); }
.pill-s.new { border-color: oklch(0.55 0.12 150); color: oklch(0.45 0.12 150); } .pill-s.error { border-color: oklch(0.58 0.17 35); color: oklch(0.52 0.17 35); }
.imp-msg { font-size: 11px; margin-top: 4px; max-width: 260px; } .imp-msg.e { color: oklch(0.52 0.17 35); } .imp-msg.w { color: oklch(0.55 0.12 70); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }

/* ---------- Settings ---------- */
.set-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.set-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.set-g { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 0 10px 4px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-soft); font-size: 13.5px; }
.set-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.set-nav a.on { background: var(--ink); color: var(--bg); }
.set-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: mx-rise .35s cubic-bezier(.2,.8,.2,1) both; }
.set-card { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.set-card-h { margin-bottom: 16px; } .set-card-h h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; } .set-card-h p { margin-top: 4px; max-width: 680px; }
.set-save { margin-top: 18px; }
.theme-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-opt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--rule); border-radius: 12px; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.theme-opt .sw { width: 120px; height: 64px; border-radius: 8px; border: 1px solid var(--rule); background: linear-gradient(90deg, oklch(0.94 0.006 85) 0 30%, oklch(0.97 0.005 85) 30%); }
.theme-opt.t-dark .sw { background: linear-gradient(90deg, oklch(0.13 0.008 60) 0 30%, oklch(0.16 0.008 60) 30%); }
.theme-opt.t-system .sw { background: linear-gradient(135deg, oklch(0.97 0.005 85) 0 50%, oklch(0.16 0.008 60) 50%); }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.accent-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.accent-pick button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1.5px solid var(--rule); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.accent-pick i { width: 16px; height: 16px; border-radius: 50%; }
.accent-pick button.on { border-color: var(--ink); }
.thresh-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; max-width: 420px; }
.thresh-mini > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--rule); font-size: 12px; }
.thresh-mini span { margin-left: auto; color: var(--ink-faint); font-size: 10.5px; }
.select.sm { padding: 4px 8px; font-size: 12px; height: auto; max-width: 220px; }

/* ---------- Analysis ---------- */
.pick-people { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-people button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.pick-people button i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-faint); }
.pick-people button.on { border-color: var(--c); color: var(--ink); background: color-mix(in oklch, var(--c) 10%, transparent); }
.pick-people button.on i { background: var(--c); border-color: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; }
.cmp-bars { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.cmp-name { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.cmp-row { display: grid; grid-template-columns: 80px 1fr 52px 44px; gap: 10px; align-items: center; font-size: 12px; padding: 2px 0; }
.cmp-row .who { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row .val { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-row .bar i, .focus-bars .bar i { transition: width .9s cubic-bezier(.2,.8,.2,1); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.heat { display: inline-block; min-width: 28px; text-align: center; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.cmp-tbl td.r { white-space: nowrap; } .cmp-tbl .delta { margin-left: 4px; font-size: 10.5px; }
.delta { display: inline-flex; align-items: center; gap: 1px; font-variant-numeric: tabular-nums; font-size: 12px; }
.delta.up { color: oklch(0.52 0.13 150); } .delta.down { color: oklch(0.55 0.17 35); } .delta.flat { color: var(--ink-faint); }
.focus-card { margin-top: 16px; animation: mx-rise .35s both; }
.focus-row { display: grid; grid-template-columns: 160px 1fr 70px; gap: 12px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.focus-bars { display: flex; flex-direction: column; gap: 4px; } .bar.thin { height: 3px; } .prevbar i { background: var(--ink-faint) !important; }

/* ---------- Insights ---------- */
.ins-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ins-tile { border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.ins-tile b { font-size: 30px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.ins-tile span { grid-column: 2; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.ins-tile .delta { grid-column: 2; grid-row: 1; justify-self: end; }
.ins-tile .qicon { grid-row: span 2; }
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ins-panel { border: 1px solid var(--rule); border-radius: 16px; padding: 22px; min-width: 0; }
.ins-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ins-recs ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ins-recs li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; border-left: 3px solid var(--rule); }
.ins-recs li.sev3 { border-left-color: oklch(0.58 0.17 35); background: oklch(0.58 0.17 35 / 0.05); } .ins-recs li.sev2 { border-left-color: var(--accent); }
.ins-recs li div { display: flex; flex-direction: column; gap: 3px; } .ins-recs li .ico-svg { margin-top: 2px; flex: none; color: var(--ink-soft); }
.ins-list { list-style: none; } .ins-list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.ins-list li:hover { background: var(--accent-soft); } .ins-list li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sevdot { width: 8px; height: 8px; border-radius: 50%; flex: none; } .sevdot.s3 { background: oklch(0.58 0.17 35); } .sevdot.s2 { background: var(--accent); } .sevdot.s1 { background: var(--rule); }
.dec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dec-card { border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--q, var(--rule)); }
.dec-card.q-star { --q: oklch(0.72 0.13 85); } .dec-card.q-compass { --q: oklch(0.6 0.08 230); } .dec-card.q-flight_risk { --q: oklch(0.65 0.12 60); } .dec-card.q-time_bomb { --q: oklch(0.58 0.17 35); }
.dec-top { display: flex; align-items: center; gap: 8px; } .dec-top b { flex: 1; font-size: 13px; }
.dec-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; } .dec-card li { display: flex; flex-direction: column; font-size: 12.5px; }
.weak { display: flex; flex-direction: column; gap: 8px; }
.weak-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) 1fr 36px 56px; gap: 10px; align-items: center; font-size: 12.5px; }
.weak-row b { text-align: right; font-variant-numeric: tabular-nums; }
.rules { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 0 18px; }

/* ---------- Trends ---------- */
.trend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qlines .ql-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.3,.7,.2,1) calc(var(--mx-i, 0) * 120ms); }
.qlines .ql-line[stroke-dasharray] { stroke-dashoffset: 0; opacity: 0; transition: opacity .8s ease calc(var(--mx-i, 0) * 120ms + .3s); }
.qlines.in .ql-line { stroke-dashoffset: 0; } .qlines.in .ql-line[stroke-dasharray] { opacity: 1; }
.qlines .ql-dot { opacity: 0; transition: opacity .4s ease calc(var(--mx-i, 0) * 120ms + .7s); } .qlines.in .ql-dot { opacity: 1; }
.qstack .qs-grow { transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); } .qstack.in .qs-grow { transform: none; }
.trend-empty { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 28px 20px; color: var(--ink-soft); }
.trend-empty div { display: flex; flex-direction: column; gap: 4px; } .trend-empty b { color: var(--ink); font-weight: 600; }
.qpath { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.qpath-step { display: inline-flex; flex-direction: column; gap: 4px; } .qpath-step small { font-size: 10px; color: var(--ink-faint); letter-spacing: .06em; }
.qpath-step.carried { opacity: .55; } .qpath-arrow { color: var(--ink-faint); margin-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .qlines .ql-line, .qlines .ql-dot, .qstack .qs-grow { transition: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
  .cmdk, .cmdk-bg, .onb-card, .onb-quad, .set-body, .focus-card { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .dec-grid { grid-template-columns: repeat(2, 1fr); } .import-steps { grid-template-columns: 1fr; } .cmdk-btn { min-width: 0; } .cmdk-btn span { display: none; } }
@media (max-width: 860px) {
  .app-top { padding: 10px 20px; top: 57px; } .onb, .set-layout, .ins-grid, .trend-grid { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; } .set-nav > div { display: flex; gap: 4px; align-items: center; } .set-g { display: none; }
  .ins-tiles, .imp-summary, .onb-quads, .fy-preview { grid-template-columns: repeat(2, 1fr); } .dec-grid { grid-template-columns: 1fr; }
  .topbar .burger .ico-svg { display: block; }
}
@media print { .app-top, .cmdk-bg { display: none !important; } }

/* ---------- fixes ---------- */
.row-inline .select { width: auto; min-width: 140px; }
.field label.btn, label.btn { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink); font-family: var(--sans); cursor: pointer; }
.fy-preview span { white-space: normal; }
.ins-tile b, .ins-tile b span { font-size: 30px; font-weight: 600; }
.chart-card h5.row-inline { display: flex; }
.imp-step p b { display: inline; margin: 0; }
.imp-summary b, .imp-summary b span { font-size: 26px; font-weight: 600; }
.act-top { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.act-top b { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.act-top .mono { margin-left: auto; }
.nav .brand-lockup, .nav .brand-lockup .bird { color: inherit; }
.nav .bl-text small { color: inherit; opacity: .6; }
.nav .bird circle { fill: black; }
.m-body h1 { font-weight: 500; }

/* ---------- CAGE framework editor (Settings → CAGE settings) ---------- */
.set-card-h h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fw-reset { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fw-reset:disabled { opacity: .38; cursor: default; text-decoration: none; }
.fw-item-body > .fw-reset { margin: 6px 0 0; }
.fw-lock { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.fw-lock svg { flex: none; margin-top: 3px; }
.fw-field label { display: flex; align-items: center; gap: 6px; }
.fw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; animation: fw-pop 260ms var(--ease-back, ease) both; }
@keyframes fw-pop { from { transform: scale(0); } to { transform: scale(1); } }
.fw-field.changed .input, .fw-field.changed .textarea { border-color: color-mix(in oklab, var(--accent) 55%, var(--rule)); }
.fw-field .textarea { min-height: 0; resize: vertical; font-size: 13.5px; line-height: 1.5; }
.fw-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.fw-pillar { display: flex; gap: 14px; align-items: flex-start; }
.fw-pillar .letter { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; width: 34px; flex: none; padding-top: 18px; }
.fw-pillar .letter .dot { color: var(--accent); }
.fw-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fw-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; margin-bottom: 18px; gap: 2px; }
.fw-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: background 160ms, color 160ms; }
.fw-seg button.on { background: var(--ink); color: var(--bg); }
.fw-seg button.on .faint { color: inherit; opacity: .6; }
.fw-group + .fw-group { margin-top: 18px; }
.fw-group-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.fw-item { border-top: 1px solid var(--rule); }
.fw-item:last-child { border-bottom: 1px solid var(--rule); }
.fw-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; }
.fw-item summary::-webkit-details-marker { display: none; }
.fw-item summary .plus { margin-left: auto; transition: transform 220ms var(--ease-out, ease); }
.fw-item[open] summary .plus { transform: rotate(45deg); }
.fw-item-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-badge { font-size: 10.5px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--ink); }
.fw-item-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 18px; animation: fw-rise 240ms var(--ease-out, ease) both; }
@keyframes fw-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fw-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fw-quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw-quad { border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fw-quad-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fw-danger { border-color: color-mix(in oklab, oklch(0.58 0.17 30) 45%, var(--rule)); background: color-mix(in oklab, oklch(0.58 0.17 30) 4%, transparent); }
.fw-danger h3 { color: oklch(0.52 0.17 30); }
.btn.btn-danger { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: oklch(0.52 0.17 30); border: 1px solid oklch(0.58 0.17 30); }
.btn.btn-danger:hover, .btn.btn-danger.solid { background: oklch(0.56 0.18 30); border-color: oklch(0.56 0.18 30); color: #fff; }
.btn.btn-danger.solid:hover { background: oklch(0.5 0.18 30); }
[data-theme="dark"] .fw-danger h3, [data-theme="dark"] .btn.btn-danger:not(.solid):not(:hover) { color: oklch(0.72 0.15 30); }
.fw-confirm { display: flex; flex-direction: column; gap: 14px; }
.fw-confirm-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, oklch(0.58 0.17 30) 14%, transparent); color: oklch(0.52 0.17 30); }
.fw-confirm .h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.fw-savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); box-shadow: 0 10px 30px -12px oklch(0.2 0.02 60 / .35); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform 260ms var(--ease-out, ease), opacity 200ms; }
.fw-savebar.on { transform: none; opacity: 1; pointer-events: auto; }
.fw-savebar span { margin-right: auto; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 760px) { .fw-pillars, .fw-quads, .fw-levels { grid-template-columns: 1fr; } .fw-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fw-savebar span { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .fw-item-body, .fw-dot { animation: none; } .fw-savebar, .fw-item summary .plus { transition: none; } }

/* ---------- v4: teams ---------- */
.team-av { display: inline-grid; place-items: center; flex: none; border-radius: 30%; background: color-mix(in oklab, var(--accent) 13%, var(--bg)); color: color-mix(in oklab, var(--accent) 78%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent); }
.team-av.all { background: var(--bg); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--rule); }
.team-av svg { display: block; }
.team-tag { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; vertical-align: middle; }
.eyebrow-team, .person-eyebrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.person-eyebrow .team-tag { margin-right: 4px; }
.tswitch { position: relative; }
.tswitch-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; max-width: 220px; transition: border-color 160ms, background 160ms; }
.tswitch-btn:hover, .tswitch.open .tswitch-btn { border-color: color-mix(in oklab, var(--accent) 45%, var(--rule)); }
.tswitch-name { overflow: hidden; text-overflow: ellipsis; }
.tswitch-btn > svg:last-child { opacity: .6; transition: transform 200ms var(--ease-out, ease); }
.tswitch.open .tswitch-btn > svg:last-child { transform: rotate(180deg); }
.tswitch-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 240px; max-height: 60vh; overflow: auto; padding: 6px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); box-shadow: 0 18px 40px -18px oklch(0.2 0.02 60 / .4); transform-origin: top left; animation: tsw-in 180ms var(--ease-out, ease) both; }
@keyframes tsw-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.tswitch-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; }
.tswitch-pop button:hover { background: var(--accent-soft); }
.tswitch-pop button.on { background: color-mix(in oklab, var(--accent) 16%, transparent); }
.tsw-n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tswitch-sep { height: 1px; background: var(--rule); margin: 4px 6px; }
.tswitch-manage { display: flex; align-items: center; gap: 8px; padding: 8px; margin-top: 4px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-soft); }
.side-teams { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.side-teams-h { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.side-teams-h a { color: var(--ink-faint); display: grid; place-items: center; }
.side-teams button { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; text-align: left; white-space: nowrap; transition: background 160ms, color 160ms; }
.side-teams button > span:not(.team-av) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.side-teams button em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.side-teams button:hover { background: var(--accent-soft); color: var(--ink); }
.side-teams button.on { background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--ink); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; max-width: 520px; }
.av-grid button { padding: 3px; border: 1px solid transparent; border-radius: 14px; background: none; cursor: pointer; display: grid; place-items: center; transition: border-color 160ms, transform 160ms var(--ease-out, ease); animation: fw-rise 260ms var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
.av-grid button:hover { transform: translateY(-1px); border-color: var(--rule); }
.av-grid button.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.team-list { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); animation: fw-rise 260ms var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.team-row:last-child { border-bottom: 1px solid var(--rule); }
.team-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-row-t b { font-weight: 500; }
.team-row-a { display: flex; gap: 8px; }
.team-row-a .btn, .fw-add-row .btn, .bulk-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.team-new { display: flex; gap: 24px; align-items: flex-start; }
.team-new-prev { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; flex: none; text-align: center; padding-top: 20px; }
.team-new-prev b { font-weight: 500; font-size: 13px; word-break: break-word; }
.team-new .set-save { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.team-select { display: flex; align-items: center; gap: 10px; }
.team-select .select { flex: 1; }
.bulk-bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--rule)); border-radius: 12px; background: color-mix(in oklab, var(--accent) 7%, var(--bg)); white-space: nowrap; animation: fw-rise 220ms var(--ease-out, ease) both; flex-wrap: wrap; }
.bulk-bar .select { width: auto; min-width: 160px; padding-top: 6px; padding-bottom: 6px; }
.pick-col { width: 34px; }
.pick-col input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
tr.sel td { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.tc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tc-card { border: 1px solid var(--rule); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--c); animation: fw-rise 320ms var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.tc-card.lead { box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 40%, transparent); }
.tc-h { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tc-h b { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tc-num { display: flex; align-items: baseline; gap: 6px; font-size: 34px; letter-spacing: -0.04em; }
.tc-num small { font-size: 12px; color: var(--ink-faint); letter-spacing: 0; }
.tc-num .delta { font-size: 12px; letter-spacing: 0; margin-left: auto; }
.tc-bars { display: flex; flex-direction: column; gap: 6px; }
.tc-bar { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 8px; font-size: 11.5px; }
.tc-bar .bar { height: 6px; }
.tc-mix { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tc-mix i { display: block; }

/* ---------- v4: framework structure editor ---------- */
.fw-letter { font-size: 22px; font-weight: 500; letter-spacing: -0.04em; margin-right: -4px; }
.fw-letter .dot { color: var(--accent); }
.fw-count { font-size: 12px; font-weight: 400; font-family: var(--mono); letter-spacing: 0; }
.fw-pillar-f { margin-bottom: 14px; }
.fw-list { display: flex; flex-direction: column; }
.fw-item.added summary .fw-item-name { color: var(--ink); }
.fw-move { display: inline-flex; flex-direction: column; gap: 1px; margin-right: 2px; }
.fw-move button, .fw-del { border: 0; background: none; color: var(--ink-faint); cursor: pointer; display: grid; place-items: center; border-radius: 6px; padding: 1px 3px; transition: background 140ms, color 140ms; }
.fw-move button:hover:not(:disabled), .fw-del:hover:not(:disabled) { background: var(--accent-soft); color: var(--ink); }
.fw-del:hover:not(:disabled) { color: oklch(0.52 0.17 30); background: color-mix(in oklab, oklch(0.58 0.17 30) 10%, transparent); }
.fw-move button:disabled, .fw-del:disabled { opacity: .3; cursor: default; }
.fw-pts { font-size: 11.5px; font-family: var(--mono); margin-left: auto; white-space: nowrap; }
.fw-item summary .plus { margin-left: 4px; }
.fw-badge.new { background: color-mix(in oklab, oklch(0.56 0.1 155) 18%, transparent); }
.fw-item-reset { margin: 0 0 14px !important; }
.fw-add-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.fw-archived { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fw-arch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px dashed var(--rule); border-radius: 999px; font-size: 12.5px; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--ink) 30%, transparent); white-space: nowrap; }
.fw-arch-chip button { text-decoration: none; font-size: 12px; }
.fw-weights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(150px, auto); gap: 14px; align-items: end; }
.fw-wt { display: flex; align-items: center; gap: 8px; }
.fw-wt .input { width: 100%; }
.fw-wsum { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--rule); font-size: 12px; white-space: nowrap; transition: border-color 200ms, background 200ms; }
.fw-wsum b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.fw-wsum span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.fw-wsum.ok { border-color: color-mix(in oklab, oklch(0.56 0.1 155) 45%, var(--rule)); }
.fw-wsum.ok span:last-child { color: oklch(0.5 0.1 155); }
.fw-wsum.bad { border-color: oklch(0.58 0.17 30); background: color-mix(in oklab, oklch(0.58 0.17 30) 6%, transparent); }
.fw-wsum.bad span:last-child { color: oklch(0.52 0.17 30); }
.fw-type { margin-bottom: 0; }
.fw-type button:disabled { cursor: default; }
@media (max-width: 760px) { .fw-weights { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-new { flex-direction: column; } .team-new-prev { flex-direction: row; width: auto; padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { .tswitch-pop, .av-grid button, .team-row, .bulk-bar, .tc-card { animation: none; } .av-grid button, .tswitch-btn > svg:last-child { transition: none; } }
