/* Revline Interactive — design system
   White paper, black ink, Instrument Sans. One motif: long-exposure light trails.
   Night scenes live inside black media cards. Red only means danger or "unread for you". */

@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-variable.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-ext-variable.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0a0a0b;
  --ink-2: #2b2b2d;
  --text: #0a0a0b;
  --text-2: #2b2b2d;
  --muted: #6b6b6f;
  --faint: #9a9a9e;
  --line: #e7e7e5;
  --line-2: #d9d9d6;
  --fog: #f4f4f2;
  --fog-2: #ececea;
  --paper: #fff;
  --page: #fafaf9;
  --night: #0b0c10;
  --blue: #2f5bff;
  --violet: #8a5cff;
  --dusk: #ff7a3d;
  --red: #e5322b;
  --red-soft: #fdecea;
  --ok: #12a26a;
  --ok-soft: #e7f7ef;
  --warn: #c98a12;
  --warn-soft: #fdf4e3;
  --info: #3d63d9;
  --info-soft: #eaf0fe;
  --trail: linear-gradient(115deg, var(--blue), var(--violet) 52%, var(--dusk));
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px; --r: 14px; --r-md: 20px; --r-lg: 28px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 136px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.14), 0 40px 80px -40px rgba(0,0,0,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px -6px rgba(0,0,0,.08);
  --nav-h: 68px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

/* Public suggestions and bug reports */
.community-hero { padding-bottom: 32px; }
.community-compose { max-width: 900px; }
.community-list { display: grid; gap: 18px; }
.community-card { display: flex; align-items: flex-start; gap: 24px; padding: 26px; }
.community-card__main { flex: 1; min-width: 0; }
.community-meta { gap: 8px; }
.community-card__title { margin: 16px 0 9px; font-size: 24px; letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; }
.community-card__title a:hover { color: var(--blue); }
.community-excerpt { color: var(--muted); line-height: 1.65; margin-bottom: 18px; overflow-wrap: anywhere; }
.community-votes { display: flex; gap: 8px; flex-shrink: 0; }
.community-vote { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); padding: 11px 15px; border-radius: 12px; background: var(--paper); color: var(--muted); min-width: 67px; cursor: pointer; font: inherit; font-weight: 600; }
.community-vote:hover { border-color: var(--ink); color: var(--ink); }
.community-vote.is-selected { color: var(--blue); background: var(--info-soft); border-color: var(--blue); }
.community-vote--down .ic { transform: rotate(180deg); }
.community-vote--down.is-selected { color: var(--red); background: var(--red-soft); border-color: var(--red); }
.community-filters { display: grid; grid-template-columns: 1fr 180px 180px auto; gap: 10px; }
.community-thumbs,.community-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.community-thumbs img,.community-previews img { width: 100px; height: 74px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.community-images { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.community-images img { width: 100%; max-height: 540px; object-fit: contain; border-radius: 14px; background: var(--fog); }
.community-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.75; }
.community-empty-icon { font-size: 36px; color: var(--blue); }
@media(max-width:760px) { .community-filters { grid-template-columns: 1fr 1fr; } .community-filters input { grid-column: 1 / -1; } .community-card { flex-direction: column; padding: 20px; gap: 14px; } .community-card__title { font-size: 21px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
body.is-app { background: var(--page); }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 var(--s2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #dfe6ff; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s3) 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; }
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1480px; }

/* ---------- Type ---------- */
.display { font-size: clamp(3rem, 8.4vw, 8.6rem); line-height: .94; letter-spacing: -.045em; font-stretch: 84%; font-weight: 500; text-wrap: balance; }
.h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em; font-stretch: 88%; text-wrap: balance; }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.03em; font-stretch: 92%; }
.h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.eyebrow { font-size: .9rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.prose { color: var(--ink-2); line-height: 1.75; font-size: 1.05rem; }
.prose strong { color: var(--ink); font-weight: 600; }
p a, .prose a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:hover, .prose a:hover, .link:hover { text-decoration-color: var(--ink); }
.grad-text { background: var(--trail); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 500; font-size: .95rem; white-space: nowrap; isolation: isolate; overflow: hidden; transition: color .25s, border-color .25s, transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--trail); opacity: 0; transition: opacity .4s; }
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: transparent; color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost, .btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost::before, .btn--outline::before { background: var(--fog); }
.btn--ghost:hover, .btn--outline:hover { color: var(--ink); border-color: var(--ink); }
.btn--ghost { border-color: transparent; }
.btn--ghost:hover { border-color: transparent; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { color: #fff; }
.btn--danger { background: transparent; color: var(--red); border-color: #f2c6c3; }
.btn--danger::before { background: var(--red); }
.btn--danger:hover { color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; gap: 8px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.arrow { transition: transform .35s var(--ease); }
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); font-size: 17px; transition: background .2s, color .2s; position: relative; }
.icon-btn:hover { background: var(--fog); color: var(--ink); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease); }
.nav.is-solid, .nav--solid { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a .ic { font-size: .9em; color: var(--muted); }
.nav__links a:hover, .nav__links a.is-active { background: var(--fog); color: var(--ink); }
.nav__links a.is-active .ic { color: var(--ink); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__burger { display: none; }
.badge-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid #fff; }

.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; padding: 8px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 60; }
.menu.is-open .menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.menu__panel { visibility: hidden; }
.menu.is-open .menu__panel { visibility: visible; }
.nav__links .menu__panel { left: 0; right: auto; }
@media(max-width: 980px) {
  .nav.is-menu .nav__links .menu__panel { position: static; display: none; box-shadow: none; margin-top: 8px; }
  .nav.is-menu .nav__links .menu.is-open .menu__panel { display: block; }
}
.menu__head { padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 12px; align-items: center; }
.menu__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); font-size: .94rem; color: var(--ink-2); background: none; border: 0; text-align: left; }
.menu__item:hover { background: var(--fog); color: var(--ink); }
.menu__item .ic { color: var(--muted); width: 16px; }
.menu__sep { height: 1px; background: var(--line); margin: 6px 0; }
.notif-list { width: 360px; max-height: 460px; overflow: auto; }
.notif { display: block; padding: 10px 12px; border-radius: var(--r-sm); }
.notif:hover { background: var(--fog); }
.notif.is-unread .notif__title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: middle; }
.notif__title { font-size: .92rem; font-weight: 500; }
.notif__body { font-size: .84rem; color: var(--muted); }

/* ---------- Avatars / tags / chips ---------- */
.avatar { --sz: 36px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--fog-2); color: var(--ink-2); font-weight: 600; font-size: calc(var(--sz) * .38); overflow: hidden; letter-spacing: -.01em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { --sz: 22px; } .avatar--sm { --sz: 30px; } .avatar--lg { --sz: 56px; } .avatar--xl { --sz: 96px; }
.presence { position: relative; display: inline-block; flex: none; }
.presence::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); border: 2px solid #fff; }
.presence.is-online::after { background: var(--ok); }
.role-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; color: var(--ink-2); background: var(--fog); white-space: nowrap; }
.role-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--role, var(--muted)); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: .8rem; font-weight: 500; white-space: nowrap; background: var(--fog); color: var(--ink-2); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.chip--open, .chip--awaiting_staff, .chip--pending, .chip--in_progress, .chip--active, .chip--warning { background: var(--warn-soft); color: #8a5d05; }
.chip--open i, .chip--awaiting_staff i, .chip--pending i, .chip--in_progress i, .chip--active i, .chip--warning i { background: var(--warn); }
.chip--awaiting_user, .chip--reviewing, .chip--planned, .chip--on_hold, .chip--mute { background: var(--info-soft); color: #2a48a8; }
.chip--awaiting_user i, .chip--reviewing i, .chip--planned i, .chip--on_hold i, .chip--mute i { background: var(--info); }
.chip--resolved, .chip--accepted, .chip--shipped, .chip--logged, .chip--live { background: var(--ok-soft); color: #0b7a4e; }
.chip--resolved i, .chip--accepted i, .chip--shipped i, .chip--logged i, .chip--live i { background: var(--ok); }
.chip--closed i, .chip--withdrawn i, .chip--expired i, .chip--revoked i, .chip--exploring i { background: var(--faint); }
.chip--denied, .chip--urgent, .chip--ban, .chip--tempban { background: var(--red-soft); color: #b2231d; }
.chip--denied i, .chip--urgent i, .chip--ban i, .chip--tempban i { background: var(--red); }
.chip--high, .chip--kick { background: #fff0e6; color: #a8461a; }
.chip--high i, .chip--kick i { background: var(--dusk); }
.chip--in_progress i, .chip--active i, .chip--live i { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Panels / cards ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.panel--pad { padding: var(--s3); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 18px var(--s3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.panel__head h2 .ic { color: var(--muted); }
.panel__body { padding: var(--s3); }
.panel__foot { padding: 16px var(--s3); border-top: 1px solid var(--line); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
a.card:hover, .card--hover:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.empty { padding: var(--s6) var(--s3); text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.1rem; }
.empty > .ic { font-size: 28px; margin: 0 auto var(--s2); color: var(--faint); display: block; }
.media { position: relative; background: var(--night); color: #fff; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.grid { display: grid; gap: var(--s2); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--s2); }
.stack--sm { gap: var(--s1); } .stack--lg { gap: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s1); }
.row--wrap { flex-wrap: wrap; } .row--between { justify-content: space-between; } .row--top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--s1); } .mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, .label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field > span em { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 4px; }
.field small { color: var(--muted); font-size: .82rem; }
.field .req { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=datetime-local], select, textarea { width: 100%; min-height: 46px; padding: 11px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: .96rem; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b6b6f' stroke-width='1.8'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:hover, select:hover, textarea:hover { border-color: #bdbdb9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,11,.06); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; gap: var(--s1); justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 22px; color: var(--muted); font-size: .9rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--fog); color: var(--ink); }
.file-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.file-pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--fog); font-size: .82rem; }
.seg { display: inline-flex; padding: 4px; background: var(--fog); border-radius: 99px; gap: 2px; flex-wrap: wrap; }
.seg label, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; border: 0; background: none; font-size: .86rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input { display: none; }
.seg label:has(input:checked), .seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .2s, box-shadow .2s; background: #fff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > .ic { font-size: 20px; }
.choice b { font-weight: 500; font-size: .95rem; }
.choice small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.choice:hover { border-color: #bdbdb9; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Alerts / toasts ---------- */
.flash-stack { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .94rem; animation: toastIn .45s var(--ease) both; }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: #9db3ff; }
.toast--success i { background: #5be0a6; }
.toast--error i { background: #ff6b63; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); background: var(--fog); font-size: .94rem; color: var(--ink-2); }
.notice > .ic { margin-top: 4px; color: var(--muted); }
.notice--warn { background: var(--warn-soft); color: #6d4a05; }
.notice--warn > .ic { color: var(--warn); }
.notice--danger { background: var(--red-soft); color: #8c1d18; }
.notice--ok { background: var(--ok-soft); color: #0b5e3c; }
.notice--ok > .ic { color: var(--ok); }
.announce-bar { background: var(--ink); color: #fff; text-align: center; font-size: .88rem; padding: 9px 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--page); }
.table tr.row-link { cursor: pointer; }
.cell-strong { font-weight: 500; color: var(--ink); }
.cell-sub { font-size: .82rem; color: var(--muted); }
.filters { display: flex; gap: var(--s1); flex-wrap: wrap; align-items: center; }
.filters input, .filters select { min-height: 40px; height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: .9rem; width: auto; border-radius: 99px; padding-left: 16px; }
.filters input[type=search] { min-width: 240px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--fog); border-radius: 99px; width: max-content; max-width: 100%; }
.tabs a { padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 99px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.count { font-size: .75rem; padding: 1px 8px; border-radius: 99px; background: var(--fog-2); color: var(--ink-2); font-weight: 600; }
.tabs a.is-active .count { background: var(--ink); color: #fff; }
.pager { display: flex; align-items: center; gap: var(--s1); justify-content: center; padding: var(--s2); }
.pager__info { font-size: .88rem; color: var(--muted); padding: 0 8px; }

/* ---------- Page headers ---------- */
.page-hero { position: relative; padding: var(--s7) 0 var(--s5); overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero .lead { margin-top: var(--s2); }
.page-hero__art { position: absolute; inset: 0; pointer-events: none; }
.page-hero__art canvas { width: 100%; height: 100%; }
.page-body { padding: 0 0 var(--s7); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: var(--s2); }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { font-size: .7em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); color: var(--muted); font-size: .92rem; background: #fff; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s4); position: relative; }
.footer h4 { font-size: .9rem; color: var(--ink); margin-bottom: var(--s2); font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: var(--ink); }
.footer__base { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font-size: .84rem; color: var(--faint); position: relative; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--scale { transform: scale(.97); }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .2s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================ HOME */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(48px, 9vh, 112px); }
.hero__art { position: absolute; inset: 0; }
.hero__art canvas { width: 100%; height: 100%; }
.hero .wrap { position: relative; }
.hero__title { font-size: clamp(4.4rem, 17vw, 17rem); line-height: .8; letter-spacing: -.06em; font-stretch: 78%; font-weight: 500; margin-left: -.04em; }
.hero__title .ch { display: inline-block; transform: translateY(100%); opacity: 0; animation: chIn 1.2s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .05s); }
.hero__clip { display: block; overflow: hidden; padding-bottom: .06em; }
@keyframes chIn { to { transform: none; opacity: 1; } }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); flex-wrap: wrap; }
.hero__tag { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink-2); max-width: 24em; line-height: 1.4; margin: 0; }
.hero__ctas { display: flex; gap: var(--s1); flex-wrap: wrap; }
.live-dot { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: var(--s3); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

.section { padding: var(--s8) 0; position: relative; }
.section--tight { padding: var(--s6) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }

.showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s2); }
.show { grid-column: span 6; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s4); }
.show--wide { grid-column: span 12; min-height: 600px; }
.show::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,6,10,.78)); pointer-events: none; }
.show > *:not(canvas) { position: relative; z-index: 1; }
.show__label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.72); margin-bottom: 10px; }
.show h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.04em; font-stretch: 88%; line-height: 1; max-width: 14em; }
.show p { color: rgba(255,255,255,.72); margin: 12px 0 0; max-width: 30em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.stat { padding: var(--s3); border-radius: var(--r-md); background: var(--fog); }
.stat .ic { font-size: 18px; color: var(--muted); }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-top: var(--s3); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }

.phase-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.progress { height: 6px; border-radius: 6px; background: var(--fog-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--trail); border-radius: 6px; width: 0; transition: width 1.6s var(--ease); }
.progress.is-in > i { width: var(--p); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li > .ic { color: var(--muted); }
.checklist li > span:first-of-type { flex: 1; }

.news-card__img { aspect-ratio: 16 / 10; background: var(--night); position: relative; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img .art { position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, rgba(47,91,255,.85), transparent 60%), radial-gradient(90% 70% at 100% 30%, rgba(138,92,255,.75), transparent 60%), radial-gradient(80% 60% at 60% 110%, rgba(255,122,61,.7), transparent 60%), var(--night); transition: transform 1.2s var(--ease); }
.card:hover .news-card__img .art { transform: scale(1.1) rotate(3deg); }
.news-card__img > .ic { position: absolute; left: 20px; bottom: 18px; color: #fff; font-size: 22px; }
.news-card__body { padding: var(--s3); }
.news-card__body h3 { font-size: 1.25rem; margin: 10px 0 8px; letter-spacing: -.02em; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s2); }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--fog); grid-column: span 4; aspect-ratio: 4 / 3; }
.gallery figure:nth-child(5n+1) { grid-column: span 8; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 16px; bottom: 14px; font-size: .85rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.cta-tile { display: flex; flex-direction: column; gap: 6px; padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); min-height: 190px; }
.cta-tile:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.cta-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fog); font-size: 18px; color: var(--ink); margin-bottom: auto; }
.cta-tile:hover .cta-tile__icon { background: var(--ink); color: #fff; }
.cta-tile h3 { font-size: 1.12rem; margin-top: var(--s3); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cta-tile p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ============================================================ ROADMAP */
.rm-hero { position: relative; padding: var(--s7) 0 var(--s5); overflow: hidden; }
.rm-hero__bar { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; margin-top: var(--s5); }
.rm-hero__phase { display: block; padding-top: 14px; border-top: 3px solid var(--fog-2); }
.rm-hero__phase.is-shipped { border-top-color: var(--ink); }
.rm-hero__phase.is-in_progress { border-image: var(--trail) 1; }
.rm-hero__phase b { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.rm-hero__phase span { display: block; font-size: 1.02rem; font-weight: 500; margin-top: 2px; }
.rm-hero__phase:hover span { text-decoration: underline; text-underline-offset: 3px; }
.rm-sync { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.rm-phase { display: grid; grid-template-columns: 180px 1fr; gap: var(--s5); padding: var(--s7) 0; border-top: 1px solid var(--line); }
.rm-phase__side { position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; }
.rm-phase__num { font-size: 7rem; font-weight: 500; letter-spacing: -.06em; line-height: .8; font-stretch: 78%; color: var(--fog-2); }
.rm-phase.is-shipped .rm-phase__num { color: var(--ink); }
.rm-phase.is-current .rm-phase__num { background: var(--trail); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rm-phase__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.rm-phase__title { font-size: clamp(2.4rem, 5.6vw, 5rem); letter-spacing: -.045em; font-stretch: 84%; line-height: .95; }
.rm-phase__sub { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; margin-top: var(--s2); }
.rm-phase__meter { display: flex; align-items: center; gap: 14px; margin-top: var(--s3); max-width: 420px; font-size: .88rem; color: var(--muted); }
.rm-phase__meter .progress { flex: 1; }
.rm-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.rm-item { padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s; }
.rm-item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.rm-item__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rm-item__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--fog); font-size: 16px; }
.rm-item.is-shipped .rm-item__icon { background: var(--ink); color: #fff; }
.rm-item h3 { font-size: 1.12rem; margin-top: 8px; }
.rm-item p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.55; }
.rm-item__cat { font-size: .8rem; color: var(--faint); margin-top: auto; }

/* ============================================================ APP (support / staff) */
.app-shell { flex: 1; display: flex; flex-direction: column; }
.staff-layout { display: grid; grid-template-columns: 260px 1fr; flex: 1; min-height: 0; }
.staff-side { border-right: 1px solid var(--line); padding: var(--s3) var(--s2); position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; background: #fff; }
.staff-side h6 { font-size: .78rem; font-weight: 500; color: var(--faint); margin: var(--s3) 12px 8px; }
.staff-side h6:first-child { margin-top: 0; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 99px; font-size: .94rem; color: var(--ink-2); transition: background .15s, color .15s; }
.side-link .ic { color: var(--muted); width: 16px; }
.side-link:hover { background: var(--fog); color: var(--ink); }
.side-link.is-active { background: var(--ink); color: #fff; }
.side-link.is-active .ic { color: #fff; }
.side-link .count { margin-left: auto; }
.side-link.is-active .count { background: rgba(255,255,255,.18); color: #fff; }
.staff-main { padding: var(--s4) clamp(20px, 3vw, 48px) var(--s6); min-width: 0; }
.staff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.staff-head h1 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -.035em; font-stretch: 92%; }
.staff-head p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.kpi { display: block; padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: box-shadow .3s, border-color .3s; }
a.kpi:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.kpi span { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.kpi b { display: block; font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 6px; color: var(--faint); font-size: .82rem; }
.kpi--alert b { background: var(--trail); -webkit-background-clip: text; background-clip: text; color: transparent; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: var(--s2); padding: 14px var(--s3); border-bottom: 1px solid var(--line); transition: background .15s; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--page); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 12px var(--s2); font-size: .93rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

.ticket-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--s3); align-items: start; }
.ticket-side { position: sticky; top: calc(var(--nav-h) + var(--s3)); display: flex; flex-direction: column; gap: var(--s2); }
.thread { display: flex; flex-direction: column; gap: var(--s2); }
.msg { display: flex; gap: 14px; }
.msg__bubble { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 16px 20px; }
.msg--staff .msg__bubble { background: var(--fog); border-color: transparent; }
.msg--internal .msg__bubble { background: var(--warn-soft); border: 1px dashed #e6c27a; }
.msg__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: .9rem; }
.msg__meta b { font-weight: 600; }
.msg__meta time { color: var(--faint); font-size: .82rem; margin-left: auto; }
.msg__body { color: var(--ink-2); font-size: .98rem; line-height: 1.65; overflow-wrap: anywhere; }
.msg.is-new { animation: msgIn .5s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.event { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); padding: 2px 0 2px 50px; }
.event::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.event time { color: var(--faint); font-size: .8rem; }
.att-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.att-grid a, .att-grid video { border-radius: var(--r); overflow: hidden; background: var(--fog); }
.att-grid img { max-height: 220px; max-width: 320px; object-fit: cover; cursor: zoom-in; }
.att-grid video { max-height: 280px; max-width: 420px; background: #000; }
.composer { border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,11,.05); }
.composer textarea { border: 0; min-height: 120px; border-radius: 0; padding: 18px 20px; box-shadow: none !important; }
.composer__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer__bar select { width: auto; min-height: 36px; height: 36px; padding: 4px 36px 4px 14px; font-size: .86rem; border-radius: 99px; }
.composer--internal { border-color: #e6c27a; background: #fffcf5; }
.composer .chat__pending { padding: 0 16px 10px; }
.typing-line { min-height: 22px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.canned .menu__panel { left: 0; right: auto; bottom: calc(100% + 8px); top: auto; width: 340px; max-height: 340px; overflow: auto; transform-origin: bottom left; }
.share-box { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); }
.share-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }

.audit-action { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; padding: 3px 9px; border-radius: 99px; background: var(--fog); color: var(--ink-2); white-space: nowrap; }
.audit-meta { margin-top: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--ink-2); background: var(--fog); padding: 10px 12px; border-radius: var(--r-sm); white-space: pre-wrap; overflow-wrap: anywhere; display: none; }
.audit-row.is-open .audit-meta { display: block; }
.tl-day { font-size: .82rem; font-weight: 500; color: var(--muted); padding: 22px 18px 8px !important; background: var(--page); }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px var(--s3); }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 240px 1fr; gap: var(--s5); align-items: start; padding: var(--s5) 0 var(--s7); }
.settings__nav { position: sticky; top: calc(var(--nav-h) + var(--s3)); display: flex; flex-direction: column; gap: 2px; }
.settings__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 99px; font-size: .95rem; color: var(--ink-2); }
.settings__nav a .ic { color: var(--muted); width: 16px; }
.settings__nav a:hover { background: var(--fog); }
.settings__nav a.is-active { background: var(--ink); color: #fff; }
.settings__nav a.is-active .ic { color: #fff; }
.settings__main { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; max-width: 760px; }
.settings__title { font-size: 2.2rem; letter-spacing: -.04em; font-stretch: 90%; }
.setting-row { display: flex; align-items: center; gap: var(--s2); padding: 18px var(--s3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: 0; }
.setting-row__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--fog); display: grid; place-items: center; flex: none; font-size: 16px; }
.setting-row__text { flex: 1; min-width: 200px; }
.setting-row__text b { font-weight: 500; display: block; }
.setting-row__text span { font-size: .88rem; color: var(--muted); }
.code-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }
.code-grid span { padding: 10px; border-radius: var(--r-sm); background: var(--fog); text-align: center; letter-spacing: .08em; }
.link-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .2em; font-weight: 600; text-align: center; padding: 22px; border-radius: var(--r-md); background: var(--fog); }
.qr { width: 196px; height: 196px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); flex: none; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }

/* ---------- Players / stats ---------- */
.player-hero { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.player-hero .avatar { --sz: 104px; font-size: 36px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.fav { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); border-radius: var(--r-md); background: var(--night); color: #fff; position: relative; overflow: hidden; min-height: 150px; isolation: isolate; }
.fav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(100% 90% at 0% 0%, rgba(47,91,255,.55), transparent 60%), radial-gradient(80% 80% at 100% 100%, rgba(255,122,61,.45), transparent 60%); }
.fav__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 24px; flex: none; }
.fav small { color: rgba(255,255,255,.7); font-size: .85rem; }
.fav b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.bar-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 14px; padding: 10px 0; font-size: .93rem; }
.bar-row .progress { height: 8px; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.inv__item { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: .9rem; background: #fff; }
.inv__item .ic { font-size: 18px; color: var(--muted); }
.lb-medal { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; font-weight: 600; background: var(--fog); font-variant-numeric: tabular-nums; }
.lb-medal--1 { background: var(--ink); color: #fff; }
.lb-medal--2, .lb-medal--3 { background: var(--fog-2); }
.lb-num { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: var(--s2); }
.auth__art { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night); color: #fff; min-height: 560px; }
.auth__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth__art .quote { position: absolute; left: var(--s4); bottom: var(--s4); right: var(--s4); }
.auth__art .quote h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); letter-spacing: -.045em; font-stretch: 84%; line-height: .95; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: var(--s4) var(--s2); }
.auth__card { width: 100%; max-width: 400px; }
.auth__card h1 { font-size: 2.4rem; letter-spacing: -.04em; font-stretch: 88%; }
.pw-meter { height: 4px; background: var(--fog-2); border-radius: 4px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--muted); transition: width .3s, background .3s; }
.otp-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }

/* ---------- Modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: var(--s2); }
.modal.is-open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,10,11,.4); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal__card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); animation: modalIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,11,.88); display: none; align-items: center; justify-content: center; padding: var(--s4); cursor: zoom-out; }
.lightbox.is-open { display: flex; animation: fadeIn .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r); }

/* ============================================================ CHAT */
body.is-chat { height: 100vh; overflow: hidden; }
body.is-chat .nav { position: fixed; left: 0; right: 0; border-bottom-color: var(--line); }
.chat { position: fixed; inset: var(--nav-h) 0 0; display: grid; grid-template-columns: 272px 1fr 248px; background: #fff; }
.chat__side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--page); }
.chat__side-head { padding: var(--s2); }
.chat__side-scroll { flex: 1; overflow-y: auto; padding: 0 var(--s1) var(--s2); }
.chat__group { font-size: .78rem; font-weight: 500; color: var(--faint); padding: var(--s2) 12px 6px; }
.chan { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 99px; border: 0; background: none; text-align: left; font-size: .94rem; color: var(--muted); transition: background .12s, color .12s; }
.chan:hover { background: var(--fog-2); color: var(--ink-2); }
.chan.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.chan.is-unread { color: var(--ink); font-weight: 600; }
.chan__hash { color: var(--faint); width: 16px; text-align: center; flex: none; display: inline-grid; place-items: center; }
.chan__hash svg { width: 14px; height: 14px; }
.chan__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.chan__badge.is-mention { background: var(--red); }
.chat__me { border-top: 1px solid var(--line); padding: 12px var(--s2); display: flex; gap: 10px; align-items: center; }
.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.chat__top { height: 60px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 var(--s3); border-bottom: 1px solid var(--line); }
.chat__top h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.chat__top p { margin: 0; font-size: .85rem; color: var(--muted); }
.chat__top [data-chan-icon] svg { width: 18px; height: 18px; color: var(--muted); }
.chat__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--s2) 0; overscroll-behavior: contain; }
.chat__loading-older { text-align: center; font-size: .82rem; color: var(--faint); padding: 8px; }
.chat__welcome { padding: var(--s5) var(--s3) var(--s3); }
.chat__welcome h3 { font-size: 1.9rem; letter-spacing: -.035em; margin-bottom: 6px; }
.day-sep { display: flex; align-items: center; gap: 12px; padding: var(--s2) var(--s3) 8px; font-size: .78rem; font-weight: 500; color: var(--faint); }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.new-sep { display: flex; align-items: center; gap: 12px; padding: 6px var(--s3); font-size: .76rem; font-weight: 600; color: var(--red); }
.new-sep::after { content: ""; flex: 1; height: 1px; background: #f4b8b5; }
.cm { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 3px var(--s3); transition: background .1s; }
.cm:hover, .cm.is-menu { background: var(--page); }
.cm.is-head { margin-top: 14px; padding-top: 5px; }
.cm__av { grid-row: span 2; padding-top: 2px; }
.cm:not(.is-head) .cm__av { visibility: hidden; height: 0; }
.cm__time-side { display: none; font-size: .68rem; color: var(--faint); text-align: right; padding-top: 4px; font-variant-numeric: tabular-nums; }
.cm:not(.is-head) .cm__time-side { position: absolute; left: var(--s3); width: 40px; top: 5px; }
.cm:not(.is-head):hover .cm__time-side { display: block; }
.cm__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cm:not(.is-head) .cm__head { display: none; }
.cm__name { font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.cm__name:hover { text-decoration: underline; }
.cm__time { font-size: .76rem; color: var(--faint); }
.cm__body { font-size: .98rem; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; grid-column: 2; }
.cm__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47,91,255,.35); }
.cm__body .mention { background: var(--info-soft); color: #2a48a8; padding: 0 5px; border-radius: 6px; font-weight: 500; }
.cm__body .mention.is-me { background: #fdecc8; color: #7a4f00; }
.cm.mentions-me { background: #fffaf0; box-shadow: inset 2px 0 0 var(--warn); }
.cm__edited { font-size: .72rem; color: var(--faint); margin-left: 4px; }
.cm__deleted { font-style: italic; color: var(--faint); font-size: .9rem; }
.cm.is-pending .cm__body { opacity: .55; }
.cm.is-failed .cm__body { color: var(--red); }
.cm__retry { font-size: .82rem; color: var(--red); grid-column: 2; }
.cm__retry button { background: none; border: 0; color: var(--ink); text-decoration: underline; padding: 0; font-size: .82rem; }
.cm__reply { grid-column: 2; display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 2px; cursor: pointer; min-width: 0; }
.cm__reply::before { content: ""; width: 22px; height: 10px; border-left: 2px solid var(--line-2); border-top: 2px solid var(--line-2); border-top-left-radius: 6px; margin-left: -30px; margin-top: 8px; flex: none; }
.cm__reply b { color: var(--ink-2); font-weight: 600; }
.cm__reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { background: var(--info-soft); } }
.cm__files { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cm__files img { max-width: min(380px, 100%); max-height: 300px; border-radius: var(--r); cursor: zoom-in; object-fit: cover; background: var(--fog); }
.cm__files video { max-width: min(460px, 100%); max-height: 320px; border-radius: var(--r); background: #000; }
.cm__rx { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rx { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); transition: border-color .12s, background .12s; }
.rx:hover { border-color: var(--line-2); }
.rx.is-me { border-color: #aebdf5; background: var(--info-soft); color: #2a48a8; }
.rx b { font-size: .78rem; font-weight: 600; }
.cm__tools { position: absolute; right: var(--s3); top: -16px; display: none; gap: 2px; padding: 3px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 3; }
.cm:hover .cm__tools, .cm.is-menu .cm__tools { display: flex; }
.cm__tools button { width: 32px; height: 30px; border: 0; background: none; border-radius: 99px; color: var(--muted); display: grid; place-items: center; }
.cm__tools button:hover { background: var(--fog); color: var(--ink); }
.cm__tools svg { width: 15px; height: 15px; }
.rx-pop { position: absolute; right: var(--s3); top: 18px; z-index: 5; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rx-pop button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; border-radius: 50%; transition: transform .12s, background .12s; }
.rx-pop button:hover { background: var(--fog); transform: scale(1.15); }
.cm__edit textarea { min-height: 46px; font-size: .98rem; }
.cm__edit small { font-size: .78rem; color: var(--faint); }
.chat__jump { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 4; box-shadow: var(--shadow); }
.chat__jump.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.chat__compose { padding: 0 var(--s3) var(--s2); flex: none; }
.chat__replying { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: .86rem; color: var(--muted); background: var(--fog); border-radius: var(--r) var(--r) 0 0; }
.chat__replying b { color: var(--ink); font-weight: 600; }
.chat__replying + .chat__box { border-top-left-radius: 0; border-top-right-radius: 0; }
.chat__box { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 24px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.chat__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,11,.05); }
.chat__box.is-over { border-color: var(--blue); border-style: dashed; }
.chat__input-row { display: flex; align-items: flex-end; gap: 4px; padding: 6px; }
.chat__input-row textarea { flex: 1; min-height: 40px; max-height: 240px; border: 0; resize: none; padding: 9px 8px; font-size: .98rem; line-height: 1.45; overflow-y: auto; box-shadow: none !important; }
.chat__send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fog); color: var(--faint); display: grid; place-items: center; transition: background .2s, color .2s; flex: none; }
.chat__send.is-ready { background: var(--ink); color: #fff; }
.chat__send svg { width: 16px; height: 16px; }
.chat__pending { display: flex; gap: 8px; padding: 10px 10px 0; flex-wrap: wrap; }
.pend { position: relative; width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; background: var(--fog); }
.pend img, .pend video { width: 100%; height: 100%; object-fit: cover; }
.pend__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(10,10,11,.75); color: #fff; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.pend__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--trail); width: var(--p, 0%); transition: width .15s; }
.pend.is-done .pend__bar { opacity: 0; transition: opacity .4s; }
.pend.is-error { outline: 2px solid var(--red); }
.pend__vid { position: absolute; left: 6px; bottom: 6px; font-size: .65rem; font-weight: 600; background: rgba(10,10,11,.7); color: #fff; padding: 2px 6px; border-radius: 99px; }
.chat__hint { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--faint); padding: 6px 8px 0; min-height: 24px; align-items: center; }
.chat__hint kbd { font-family: inherit; font-weight: 500; color: var(--muted); }
.chat__readonly { padding: 14px; text-align: center; font-size: .88rem; color: var(--muted); border-radius: 99px; background: var(--fog); }
.mention-pop { position: absolute; bottom: calc(100% + 8px); left: 0; width: 300px; padding: 6px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 6; }
.mention-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; text-align: left; color: var(--ink-2); }
.mention-pop button.is-sel, .mention-pop button:hover { background: var(--fog); color: var(--ink); }
.mention-pop small { color: var(--faint); font-weight: 400; }
.chat__members { border-left: 1px solid var(--line); overflow-y: auto; padding: var(--s1); background: var(--page); }
.member { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 99px; width: 100%; border: 0; background: none; text-align: left; color: var(--ink-2); font-size: .92rem; }
.member:hover { background: var(--fog-2); }
.member.is-off { opacity: .5; }
.member small { display: block; font-size: .74rem; color: var(--faint); }
.profile-pop { position: fixed; z-index: 70; width: 310px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; animation: modalIn .25s var(--ease); }
.profile-pop__band { height: 72px; background: radial-gradient(120% 120% at 0% 0%, rgba(47,91,255,.9), transparent 60%), radial-gradient(90% 90% at 100% 30%, rgba(138,92,255,.8), transparent 60%), radial-gradient(80% 80% at 60% 120%, rgba(255,122,61,.8), transparent 60%), var(--night); }
.profile-pop__body { padding: 0 var(--s2) var(--s2); margin-top: -32px; }
.profile-pop .avatar { border: 4px solid #fff; }
.chat__side-toggle { display: none; }

/* ---------- Error ---------- */
.err { min-height: 70vh; display: flex; align-items: center; }
.err__code { font-size: clamp(8rem, 24vw, 18rem); font-weight: 500; letter-spacing: -.06em; line-height: .8; font-stretch: 78%; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .chat { grid-template-columns: 250px 1fr; }
  .chat__members { display: none; }
  .nav__links a .ic { display: none; }
}
@media (max-width: 980px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); flex-direction: column; align-items: stretch; gap: 4px; padding: var(--s3) var(--gutter) max(var(--s3), env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav__links > *, .nav__links a { flex-shrink: 0; }
  .nav__links .menu__panel { min-width: 0; }
  html.nav-open { overflow: hidden; }
  .nav.is-menu .nav__links { display: flex; }
  .nav__links a { height: 52px; font-size: 1.2rem; padding: 0 16px; }
  .nav__links a .ic { display: inline-block; }
  .nav__burger { display: inline-grid; }
  .grid--3, .grid--4, .kpis, .cta-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .show { grid-column: span 12; min-height: 420px; }
  .phase-teaser { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .staff-layout { grid-template-columns: 1fr; }
  .staff-side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 10px var(--s2); border-right: 0; border-bottom: 1px solid var(--line); }
  .staff-side h6 { display: none; }
  .side-link { white-space: nowrap; }
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-side { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .rm-phase { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s6) 0; }
  .rm-phase__side { position: static; }
  .rm-phase__num { font-size: 4.6rem; }
  .rm-hero__bar { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .gallery figure, .gallery figure:nth-child(5n+1) { grid-column: span 12; aspect-ratio: 16 / 10; }
  .chat { grid-template-columns: 1fr; }
  .chat__side { position: absolute; inset: 0; z-index: 10; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .chat.is-side .chat__side { transform: none; }
  .chat__side-toggle { display: inline-grid; }
  .perm-grid { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; gap: var(--s3); padding-top: var(--s3); }
  .settings__nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings__nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .grid--2, .grid--3, .grid--4, .kpis, .cta-grid, .stat-grid, .stats { grid-template-columns: 1fr; }
  .section { padding: var(--s6) 0; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .hero__ctas .btn { flex: 1; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .chat__compose { padding: 0 var(--s1) var(--s1); }
  .cm { padding-left: var(--s2); padding-right: var(--s2); grid-template-columns: 36px 1fr; gap: 0 10px; }
  .flash-stack { left: 16px; right: 16px; bottom: 16px; }
  .table th, .table td { padding: 12px 12px; }
  .hide-sm { display: none !important; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .progress { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .ch, .fade-up { opacity: 1; transform: none; }
}

/* ============================================================ GARAGE (vehicle app) */
.board { transition: opacity .2s; }
.garage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s2); }
.vcard { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s; }
.vcard:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.vcard__hero { position: relative; height: 168px; background: var(--night); color: #fff; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; overflow: hidden; }
.vcard__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 100% 0%, rgba(47,91,255,.55), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(255,122,61,.4), transparent 60%); transition: transform 1.2s var(--ease); }
.vcard:hover .vcard__hero::before { transform: scale(1.1); }
.vcard__glyph { position: absolute; right: -12px; bottom: -26px; font-size: 150px; opacity: .14; z-index: -1; }
.vcard__name { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.vcard__meta { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: rgba(255,255,255,.7); }
.vcard__fav { color: #ffd166; }
.vcard__body { padding: 16px 20px 18px; display: grid; gap: 12px; }
.vcard__fuel { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.vcard__fuel .progress { height: 6px; }
.vcard__fuel.is-low .progress > i { background: var(--red); }
.vcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: .8rem; color: var(--muted); }
.vcard__stats b { display: block; color: var(--ink); font-size: .98rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.plate { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.14); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; letter-spacing: .08em; }
.plate--light { background: var(--fog); color: var(--ink-2); }

.vhero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: #fff; padding: clamp(24px, 4vw, 48px); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.vhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 100% 0%, rgba(47,91,255,.6), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255,122,61,.45), transparent 60%), radial-gradient(50% 60% at 60% 50%, rgba(138,92,255,.35), transparent 70%); }
.vhero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.vhero__glyph { position: absolute; right: 4%; bottom: -8%; font-size: clamp(180px, 26vw, 360px); opacity: .12; z-index: -1; }
.vhero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.045em; font-stretch: 86%; line-height: .95; max-width: 14em; }
.vhero__status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .88rem; backdrop-filter: blur(8px); }
.vhero__status i { width: 8px; height: 8px; border-radius: 50%; background: #5be0a6; }
.vhero__status.is-warn i { background: #ffb547; }
.vtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.vtile { padding: var(--s3); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.vtile > .ic { font-size: 18px; color: var(--muted); }
.vtile small { color: var(--muted); font-size: .85rem; margin-top: auto; }
.vtile b { font-size: 2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vtile b em { font-style: normal; font-size: .9rem; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.fuel-ring { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.fuel-ring svg { width: 148px; height: 148px; }
.fuel-ring__track { stroke: var(--fog-2); }
.fuel-ring__val { stroke: url(#fuelGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.fuel-ring.is-low .fuel-ring__val { stroke: var(--red); }
.fuel-ring__pct { font-size: 30px; font-weight: 500; font-family: var(--font); fill: var(--ink); letter-spacing: -.03em; }
.fuel-ring__lbl { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.trip { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px var(--s3); border-bottom: 1px solid var(--line); }
.trip:last-child { border-bottom: 0; }
.trip__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--fog); display: grid; place-items: center; }
.trip__nums { display: flex; gap: 18px; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.trip__nums b { color: var(--ink); font-weight: 500; }
.checks { display: grid; gap: 0; }
.checks div { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.checks div:last-child { border-bottom: 0; }
.checks .ic { color: var(--ok); }
.checks .is-warn .ic { color: var(--warn); }
@media (max-width: 980px) { .vtiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vtiles { grid-template-columns: 1fr 1fr; } .fuel-ring { grid-template-columns: 1fr; justify-items: center; text-align: center; } .vtile b { font-size: 1.6rem; } }
.cookie-notice{position:fixed;bottom:18px;left:18px;right:18px;z-index:10000;max-width:880px;margin:auto;padding:22px;border:1px solid #dedee8;border-radius:18px;background:#fff;box-shadow:0 12px 55px #1112;display:flex;gap:24px;align-items:center}.cookie-notice[hidden]{display:none}.cookie-notice p{font-size:14px;margin:6px 0}.cookie-notice .row{flex-wrap:wrap;flex-shrink:0;gap:8px}.legal-copy{padding-bottom:70px;line-height:1.8}.legal-copy h2{margin-top:32px;font-size:24px}.legal-copy ul{padding-left:24px}.footer__base{flex-wrap:wrap;gap:14px}@media(max-width:700px){.cookie-notice{flex-direction:column;align-items:stretch;padding:18px;bottom:10px;left:10px;right:10px;gap:14px}.cookie-notice .row{justify-content:flex-start}}
.draft-status{padding:12px 15px;margin-bottom:18px;border:1px solid #dedee8;background:#f8f8fc;border-radius:10px;font-size:13px;line-height:1.6}.draft-status .link{margin-left:6px}.cookie-notice .btn{white-space:normal}
