/* ===== Velvet Badger UI tokens v1.0 ===== */
:root {
  color-scheme: light;
  /* Core brand palette (from Brand Guidelines v1.0) */
  --vb-black: #1D1B1C; --vb-offwhite: #F2F2F2; --vb-orange: #FF6038; --vb-beige: #E0D8C3; --vb-burgundy: #603839;
  /* UI-derived tints (screen only) */
  --vb-surface: #FFFFFF; --vb-beige-50: #EFEBE1; --vb-beige-deep: #A89D80; --vb-orange-50: #FFE4DB; --vb-orange-hover: #E84E28;
  --vb-burgundy-50: #EFE4E3; --vb-black-80: #2C2A2B; --vb-black-60: #4A4647;
  --vb-ink: var(--vb-black); --vb-muted: #6E6A64; --vb-faint: #A39E92; --vb-line: #E3DED2; --vb-line-strong: #CFC8B6;
  /* Functional status (UI only, never decorative) */
  --vb-success: #3F7A5A; --vb-success-50: #E3EFE7; --vb-warning: #B7862C; --vb-warning-50: #F6EDDA;
  /* Type */
  --vb-display: "Druk Medium", "Druk", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --vb-serif: "Canela", "Canela Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --vb-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Shape */
  --vb-radius: 3px; --vb-radius-lg: 4px;
}

/* ===== VB Pipeline app styles — built on VB UI tokens v1.0 ===== */
:root {
  --bg: var(--vb-offwhite); --card: var(--vb-surface); --ink: var(--vb-ink); --muted: var(--vb-muted); --faint: var(--vb-faint);
  --line: var(--vb-line); --char: var(--vb-black); --char2: var(--vb-black-80);
  --accent: var(--vb-orange); --accent-soft: var(--vb-orange-50); --good: var(--vb-success); --warn: var(--vb-warning);
  --serif: var(--vb-serif); --sans: var(--vb-sans); --display: var(--vb-display);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 13.5px; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
.vb-logo { display: block; height: auto; }

/* Brand graphics */
.stripe-rule { height: 14px; background: repeating-linear-gradient(105deg, var(--vb-beige) 0 5px, transparent 5px 12px); }
.stripe-rule.orange { background: repeating-linear-gradient(105deg, var(--vb-orange) 0 5px, transparent 5px 12px); }
.blades { display: block; }

/* Layout */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--char); color: var(--vb-beige); padding: 26px 18px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; min-width: 0; }
.side .vb-logo { width: 150px; --logo-ink: var(--vb-beige); }
.brand-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--accent); margin: 14px 0 22px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav button { background: none; border: none; color: #B9B2A3; text-align: left; padding: 10px 10px; border-radius: var(--vb-radius); font-size: 13.5px; display: flex; align-items: center; gap: 11px; }
.nav button:hover { background: var(--char2); color: var(--vb-offwhite); }
.nav button.active { background: var(--char2); color: var(--vb-offwhite); box-shadow: inset 3px 0 0 var(--accent); }
.nav .count { margin-left: auto; background: var(--accent); color: var(--vb-black); font-size: 10.5px; font-weight: 800; border-radius: 2px; padding: 1px 6px; }
.nav svg { width: 16px; height: 16px; flex: none; }
.side-foot { margin-top: auto; border-top: 1px solid #3A3637; padding-top: 14px; }
.me { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--vb-offwhite); flex: none; }
.me-name { font-size: 13px; font-weight: 600; color: var(--vb-offwhite); }
.me-level { font-size: 11.5px; color: #B9B2A3; }
.xpbar { height: 4px; background: #3A3637; border-radius: 1px; margin-top: 10px; overflow: hidden; }
.xpbar > div { height: 100%; background: var(--accent); transition: width .6s ease; }
.xp-caption { font-size: 11px; color: #9C958A; margin-top: 6px; display: flex; justify-content: space-between; }
.switch { background: none; border: 1px solid #3A3637; color: #B9B2A3; border-radius: var(--vb-radius); font-size: 11.5px; padding: 6px 8px; margin-top: 12px; width: 100%; }
.switch:hover { color: var(--vb-offwhite); border-color: #5a5657; }

.main { padding: 0 36px 64px; min-width: 0; }
.proto { margin: 0 -36px; background: var(--vb-beige); color: var(--vb-black-60); font-size: 11.5px; padding: 7px 36px; }
.proto b { color: var(--ink); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.head h1 { font-family: var(--display); font-weight: 500; font-size: 64px; line-height: .85; margin: 0; text-transform: uppercase; letter-spacing: 0; }
.head .sub { font-family: var(--serif); font-weight: 300; color: var(--vb-black-60); margin-top: 12px; font-size: 16px; line-height: 1.3; }

/* Cards */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-today { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--vb-radius-lg); padding: 18px; min-width: 0; }
.card.dark { background: var(--vb-black); color: var(--vb-offwhite); border-color: var(--vb-black); }
.card.beige { background: var(--vb-beige); border-color: var(--vb-beige); }
.card h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.2; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card.dark h3 { color: var(--vb-beige); }
.card h3 > span:not(.tag-sample) { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.stat { font-family: var(--display); font-weight: 500; font-size: 52px; line-height: .85; letter-spacing: 0; }
.stat small { font-family: var(--serif); font-weight: 300; font-size: 14px; color: var(--muted); margin-left: 6px; }
.stat-sub { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.delta { color: var(--good); font-weight: 600; }
.chart-box { position: relative; height: 220px; }
.chart-box.sm { height: 150px; }
.chart-box.lg { height: 280px; }
.tag-sample { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.mt { margin-top: 14px; }

/* Level / streak / goals */
.level-card { display: flex; gap: 18px; align-items: center; }
.ring-wrap { position: relative; flex: none; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center b { font-family: var(--display); font-size: 30px; font-weight: 500; display: block; line-height: .85; }
.ring-center span { font-size: 10.5px; color: var(--muted); }
.level-name { font-family: var(--display); font-weight: 500; font-size: 36px; line-height: .85; text-transform: uppercase; }
.goals { display: flex; justify-content: space-between; gap: 8px; }
.goal { text-align: center; flex: 1; }
.goal .lbl { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.goal.done .lbl { color: var(--good); font-weight: 600; }
.streak { display: flex; align-items: center; gap: 12px; }
.flame { width: 46px; height: 46px; border-radius: var(--vb-radius); background: var(--accent-soft); display: grid; place-items: center; }
.week-dots { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.week-dots span { width: 22px; height: 22px; border-radius: 2px; background: var(--vb-beige-50); font-size: 10px; display: grid; place-items: center; color: var(--muted); }
.week-dots span.on { background: var(--accent); color: var(--vb-black); font-weight: 700; }

/* Lists */
.moves { display: flex; flex-direction: column; }
.move { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.move:first-child { border-top: none; padding-top: 2px; }
.move .body { flex: 1; min-width: 0; }
.move .t { font-family: var(--serif); font-size: 16px; cursor: pointer; line-height: 1.2; }
.move .t:hover { color: var(--accent); }
.move .d { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 1px; flex: none; }
.score { font-family: var(--display); font-weight: 500; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid; line-height: 1; }
.btn { border: 1px solid var(--vb-line-strong); background: var(--vb-surface); border-radius: var(--vb-radius); padding: 7px 12px; font-size: 12.5px; color: var(--ink); white-space: nowrap; font-weight: 500; }
.btn:hover { border-color: var(--vb-black); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--vb-black); font-weight: 700; }
.btn.primary:hover { background: var(--vb-orange-hover); border-color: var(--vb-orange-hover); }
.btn.dark { background: var(--vb-black); border-color: var(--vb-black); color: var(--vb-offwhite); }
.btn.dark:hover { background: var(--vb-black-80); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.xp-chip { font-size: 10.5px; font-weight: 800; color: var(--vb-black); background: var(--accent-soft); padding: 1px 5px; border-radius: 2px; margin-left: 5px; }
.btn.primary .xp-chip, .btn.dark .xp-chip { background: rgba(29,27,28,.16); color: inherit; }
.btn.dark .xp-chip { background: rgba(242,242,242,.16); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 8px; border-radius: 2px; background: var(--vb-beige-50); color: var(--vb-black-60); white-space: nowrap; }
.chip.lane { color: var(--vb-offwhite); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.empty { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); padding: 22px 0; text-align: center; font-size: 15px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input, select.btn { border: 1px solid var(--vb-line-strong); background: var(--vb-surface); border-radius: var(--vb-radius); padding: 7px 10px; font-size: 12.5px; font-family: inherit; color: var(--ink); }
.filters input { min-width: 240px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.seg { display: inline-flex; background: var(--vb-beige-50); border-radius: var(--vb-radius); padding: 3px; gap: 2px; }
.seg button { border: none; background: none; padding: 5px 12px; border-radius: 2px; font-size: 12.5px; color: var(--muted); }
.seg button.on { background: var(--vb-black); color: var(--vb-offwhite); font-weight: 600; }

/* Table */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--vb-black); cursor: pointer; white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.row:hover td { background: var(--vb-beige-50); cursor: pointer; }
.tbl .name { font-family: var(--serif); font-size: 15px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.stage-pill { font-size: 11.5px; padding: 3px 8px; border-radius: 2px; background: var(--vb-beige-50); white-space: nowrap; }
.stage-pill.won { background: var(--vb-success-50); color: var(--good); font-weight: 600; }
.stage-pill.hot { background: var(--accent-soft); color: var(--vb-burgundy); font-weight: 600; }

/* Lanes */
.lane-card { position: relative; overflow: hidden; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.lane-card:hover { transform: translateY(-2px); border-color: var(--vb-black); }
.lane-card .bar { position: absolute; left: 0; top: 0; right: 0; height: 5px; }
.lane-name { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: .85; text-transform: uppercase; margin: 8px 0 8px; }
.lane-meta { color: var(--muted); font-size: 12.5px; font-family: var(--serif); font-weight: 300; }
.lane-body { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.lane-stats div { margin-bottom: 8px; }
.lane-stats b { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: .9; display: block; }
.lane-stats span { color: var(--muted); font-size: 11.5px; }
.heat { display: flex; gap: 3px; margin-top: 4px; }
.heat i { width: 12px; height: 6px; border-radius: 1px; background: var(--vb-beige-50); }
.lane-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }

/* Signals */
.sig { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.sig:first-child { border-top: none; }
.sig .t { font-family: var(--serif); font-size: 18px; line-height: 1.2; cursor: pointer; }
.sig .t:hover { color: var(--accent); }
.sig .why { font-family: var(--serif); font-weight: 300; font-size: 14.5px; color: var(--vb-black-60); margin: 8px 0; line-height: 1.3; }
.sig.done { opacity: .5; }
.triaged { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 2px; }
.triaged.pursue { background: var(--vb-success-50); color: var(--good); }
.triaged.park { background: var(--vb-warning-50); color: var(--warn); }
.triaged.no { background: var(--vb-beige-50); color: var(--muted); }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(7, minmax(172px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--vb-beige-50); border-radius: var(--vb-radius-lg); padding: 10px; min-height: 380px; transition: background .15s; border-top: 3px solid var(--vb-beige); }
.col[data-col="Won"] { border-top-color: var(--accent); }
.col.over { background: var(--vb-beige); outline: 2px dashed var(--accent); outline-offset: -3px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 6px; }
.col-head b { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; line-height: .9; }
.col-head span { font-family: var(--serif); font-size: 15px; }
.col-sub { font-size: 11px; color: var(--muted); padding: 0 4px 10px; }
.kcard { background: var(--vb-surface); border: 1px solid var(--line); border-radius: var(--vb-radius); padding: 10px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: var(--vb-black); }
.kcard:active { cursor: grabbing; }
.kcard .n { font-family: var(--serif); font-size: 15px; line-height: 1.2; }
.kcard .m { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kcard .v { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--ink); line-height: 1; }
.kcard .lane-line { height: 3px; margin-bottom: 8px; width: 28px; }

/* Team */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; }
.pod { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--vb-radius-lg); padding: 18px 12px 16px; }
.pod.first { background: var(--vb-black); color: var(--vb-offwhite); border-color: var(--vb-black); padding-top: 26px; position: relative; overflow: hidden; }
.pod.first::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(105deg, var(--vb-orange) 0 5px, transparent 5px 12px); }
.pod .avatar { width: 54px; height: 54px; font-size: 17px; margin: 0 auto 10px; }
.pod .rank { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 14px; color: var(--muted); }
.pod.first .rank { color: var(--vb-beige); }
.pod .pn { font-family: var(--serif); font-size: 16px; margin-top: 2px; }
.pod .px { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: .9; margin-top: 8px; }
.pod.first .px { color: var(--accent); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { border: 1px solid var(--line); border-radius: var(--vb-radius-lg); padding: 16px 12px; text-align: center; background: var(--vb-surface); }
.badge .ico { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 20px; background: var(--vb-burgundy); color: var(--vb-beige); }
.badge.locked { opacity: .45; filter: grayscale(1); }
.badge b { display: block; font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; line-height: .95; }
.badge span { font-family: var(--serif); font-weight: 300; font-size: 12.5px; color: var(--muted); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(29,27,28,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 94vw); background: var(--bg); z-index: 50; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.14); }
.drawer.open { transform: none; }
.dr-head { background: var(--char); color: var(--vb-offwhite); padding: 24px 24px 22px; position: relative; }
.dr-head h2 { font-family: var(--display); font-weight: 500; font-size: 52px; line-height: .85; text-transform: uppercase; margin: 14px 0 8px; }
.dr-head .x { position: absolute; right: 16px; top: 14px; background: none; border: none; color: #B9B2A3; font-size: 24px; }
.dr-body { padding: 18px 24px 44px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.kv div { background: var(--vb-surface); border: 1px solid var(--line); border-radius: var(--vb-radius); padding: 10px; }
.kv span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv b { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1; }
.section-t { font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 22px 0 10px; }
.stagebar { display: flex; gap: 2px; margin: 8px 0 4px; }
.stagebar button { flex: 1; border: none; height: 30px; border-radius: 2px; background: var(--vb-beige-50); font-size: 10.5px; color: var(--muted); padding: 0 2px; }
.stagebar button.past { background: var(--vb-beige); color: var(--vb-black-60); }
.stagebar button.cur { background: var(--accent); color: var(--vb-black); font-weight: 800; }
.contact { background: var(--vb-surface); border: 1px solid var(--line); border-radius: var(--vb-radius-lg); padding: 14px; margin-bottom: 10px; }
.contact .cn { font-family: var(--serif); font-size: 17px; }
.contact .cm { font-size: 12px; color: var(--muted); margin: 3px 0 10px; }
.draft { white-space: pre-wrap; background: var(--vb-offwhite); border-left: 3px solid var(--accent); padding: 12px 14px; font-family: var(--serif); font-weight: 300; font-size: 14.5px; line-height: 1.3; max-height: 280px; overflow-y: auto; margin-bottom: 10px; }
.note { font-family: var(--serif); font-weight: 300; font-size: 15px; line-height: 1.3; color: var(--vb-black-60); }

/* Toasts & login */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--char); color: var(--vb-offwhite); padding: 11px 14px; border-radius: var(--vb-radius); font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.22); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.toast .xp { background: var(--accent); color: var(--vb-black); border-radius: 2px; padding: 2px 7px; font-weight: 800; font-size: 12px; }
.toast.badge-t { background: var(--vb-burgundy); color: var(--vb-beige); }
@keyframes pop { from { transform: translateY(14px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.login { position: fixed; inset: 0; background: var(--char); z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; overflow: hidden; }
.login-box { width: min(440px, 88vw); color: var(--vb-beige); justify-self: center; padding: 30px 0; }
.login-box .vb-logo { width: 230px; --logo-ink: var(--vb-beige); }
.login-box .brand-title { font-size: 56px; margin: 18px 0 8px; }
.login-box p { font-family: var(--serif); font-weight: 300; color: #B9B2A3; margin: 0 0 26px; font-size: 16px; line-height: 1.3; }
.login-user { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--char2); border: 1px solid #3A3637; color: var(--vb-offwhite); border-radius: var(--vb-radius); padding: 12px 14px; margin-bottom: 8px; font-size: 15px; text-align: left; font-family: var(--serif); }
.login-user:hover { border-color: var(--accent); }
.login-user small { display: block; color: #9C958A; font-size: 11.5px; font-family: var(--sans); }
.login-other { display: flex; gap: 8px; margin-top: 14px; }
.login-other input { flex: 1; background: var(--char2); border: 1px solid #3A3637; color: var(--vb-offwhite); border-radius: var(--vb-radius); padding: 11px 12px; font-size: 13.5px; }
.login-art { height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-art svg { width: 100%; max-width: 420px; height: auto; }
canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 20px; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-today, .g3, .g2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px 8px; }
  .side .vb-logo { width: 104px; }
  .side .brand-title { display: none; }
  .nav { flex-direction: row; overflow-x: auto; order: 3; width: 100%; min-width: 0; gap: 2px; scrollbar-width: none; }
  .nav button { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
  .nav button.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .side-foot { margin: 0 0 0 auto; border: none; padding: 0; display: flex; align-items: center; gap: 10px; }
  .side-foot .me-name, .side-foot .me-level, .side-foot .xpbar, .side-foot .xp-caption { display: none; }
  .side-foot .switch { margin: 0; width: auto; }
  .main { padding: 0 16px 50px; }
  .proto { margin: 0 -16px; padding: 7px 16px; }
  .head { flex-wrap: wrap; } .head h1 { font-size: 48px; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .card { padding: 14px; } .stat { font-size: 42px; }
  .level-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .move { flex-wrap: wrap; } .move .btn-row { width: 100%; padding-left: 52px; }
  .sig { grid-template-columns: 40px 1fr; } .sig .btn-row { grid-column: 2; justify-content: flex-start !important; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(7), .tbl td:nth-child(7) { display: none; }
  .filters input { min-width: 0; flex: 1 1 100%; }
  .podium { gap: 8px; } .pod { padding: 14px 6px; } .pod .px { font-size: 32px; }
  .lane-body { grid-template-columns: 100px 1fr; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
}

/* ===== v3: angle, network, doors ===== */
.chip.warm { background: var(--vb-burgundy); color: var(--vb-beige); font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--vb-black-60); }
.lb-n { text-align: center; min-width: 54px; } .lb-n b { display: block; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: .9; } .lb-n span { font-size: 10.5px; color: var(--muted); }
.pod-stats { display: flex; justify-content: center; gap: 22px; margin-top: 10px; } .pod-stats b { display: block; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: .9; } .pod-stats b.o { color: var(--accent); } .pod-stats span { font-size: 11px; color: var(--muted); }
.pod.first .pod-stats b:not(.o) { color: var(--vb-offwhite); }
.steps { margin: 0 0 14px; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: var(--vb-black-60); }
.net { display: flex; flex-direction: column; gap: 8px; }
.net-row { display: flex; gap: 12px; align-items: center; background: var(--vb-surface); border: 1px solid var(--line); border-left: 3px solid var(--vb-burgundy); border-radius: var(--vb-radius); padding: 10px 12px; }
.net-row > div { flex: 1; min-width: 0; font-size: 13px; } .net-row .d { color: var(--muted); font-size: 12px; margin-top: 2px; }
.addlink summary { cursor: pointer; font-size: 12.5px; color: var(--vb-burgundy); font-weight: 600; list-style: none; } .addlink summary::-webkit-details-marker { display: none; }
.addlink summary::before { content: "+ "; } .addlink input { flex: 1; min-width: 0 !important; }
.pill { border: 1px solid var(--vb-line-strong); background: var(--vb-surface); border-radius: 2px; padding: 5px 10px; font-size: 12px; color: var(--vb-black-60); }
.pill.on { background: var(--vb-black); border-color: var(--vb-black); color: var(--vb-offwhite); }
.angle { display: flex; flex-direction: column; gap: 8px; }
.ang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ang { background: var(--vb-surface); border: 1px solid var(--line); border-radius: var(--vb-radius); padding: 12px 14px; }
.ang h5 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.ang p, .ang li { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.ang ul { margin: 0; padding-left: 18px; } .ang li + li { margin-top: 6px; }
.ang.idea { background: var(--vb-beige); border-color: var(--vb-beige); position: relative; overflow: hidden; }
.ang.idea::after { content: ""; position: absolute; right: 0; top: 0; width: 70px; height: 12px; background: repeating-linear-gradient(105deg, var(--vb-burgundy) 0 5px, transparent 5px 12px); }
.idea-t { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: .9; text-transform: uppercase; margin: 2px 0 8px; }
.msg { margin-top: 4px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--vb-black); }
.tabs button { border: none; background: none; padding: 8px 10px; font-size: 12.5px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.msgbox { white-space: pre-wrap; background: var(--vb-surface); border: 1px solid var(--line); border-top: none; padding: 14px; font-family: var(--serif); font-weight: 300; font-size: 14.5px; line-height: 1.35; min-height: 120px; max-height: 320px; overflow-y: auto; margin-bottom: 10px; outline: none; }
.msgbox:focus { border-color: var(--accent); }
.angle-loading { background: var(--vb-surface); border: 1px solid var(--line); border-radius: var(--vb-radius); padding: 16px; }
.sk { height: 12px; margin-bottom: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--vb-beige-50) 25%, var(--vb-beige) 50%, var(--vb-beige-50) 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.section-t .tag-sample { margin-left: 8px; }
@media (max-width: 860px) { .ang-grid { grid-template-columns: 1fr; } .lb-n b { font-size: 22px; } .pod-stats b { font-size: 32px; } }

.head::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 96px; height: 14px; background: repeating-linear-gradient(105deg, var(--vb-orange) 0 5px, transparent 5px 12px); }
.login-user:disabled { opacity: .5; cursor: not-allowed; }
