/* ============================================================================
   Central RR — sistema visual baseado no MANUAL BASE · REDE RONALDO
   Cores oficiais: azul #2226FF · amarelo #FDD306 · branco #FFFFFF · laranja #FF4700 · preto
   Fontes oficiais: Champion HTF-Bantamweight (títulos e números grandes) · Rajdhani (texto)
   Elementos-base: faixas diagonais, pontilhado, tipografia vazada (outline)
   ============================================================================ */
@font-face { font-family: "Champion"; font-weight: 400; src: url("/static/fonts/Champion-HTF-Bantamweight.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Champion Fly"; font-weight: 400; src: url("/static/fonts/Champion-HTF-Flyweight.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 300; src: url("/static/fonts/Rajdhani-Light.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 400; src: url("/static/fonts/Rajdhani-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 500; src: url("/static/fonts/Rajdhani-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 600; src: url("/static/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 700; src: url("/static/fonts/Rajdhani-Bold.ttf") format("truetype"); font-display: swap; }

:root {
  --blue: #2226FF; --blue-deep: #1418C4; --blue-ink: #0C0E7A; --blue-soft: #E8E9FF; --blue-tint: #F3F4FF;
  --yellow: #FDD306; --yellow-deep: #D9B300; --yellow-soft: #FFF6C2;
  --orange: #FF4700; --orange-soft: #FFE4D9;
  --ink: #0B0B0F; --ink-2: #33343D; --muted: #6E7080;
  --paper: #F4F5FA; --card: #FFFFFF; --line: #E3E4EC; --line-2: #CDCFDD; --paper-2: #FFFFFF; --paper-3: #ECEDF5;
  --ig: #FF4700; --yt: #2226FF; --tt: #0B0B0F; --tw: #D9B300;
  --radius: 6px;
  --shadow: none;
  --display: "Champion", "Rajdhani", "Arial Narrow", sans-serif;
  --font: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  --dots: radial-gradient(rgba(34,38,255,.13) 1px, transparent 1.2px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }

/* faixas diagonais (elemento-base do manual) */
.stripes { display: inline-block; height: 10px; width: 150px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 12px, transparent 12px 22px); }
.stripes.blue { background: repeating-linear-gradient(-60deg, var(--blue) 0 12px, transparent 12px 22px); }
.stripes.white { background: repeating-linear-gradient(-60deg, #fff 0 12px, transparent 12px 22px); }
.slash { display: inline-block; width: 26px; height: 10px; background: var(--yellow); transform: skewX(-30deg); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 14px 14px; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.22); margin-bottom: 12px; }
.sidebar .brand img { height: 46px; }
.sidebar .brand .name { font-family: var(--display); font-size: 26px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.sidebar .brand .sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-top: 4px; font-weight: 700; }
.sidebar .stripes { margin: 2px 6px 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: rgba(255,255,255,.86); transition: background .15s, color .15s, transform .15s; }
.nav a .k { font-size: 11px; letter-spacing: .14em; opacity: .6; width: 22px; font-weight: 700; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.active { background: var(--yellow); color: var(--ink); }
.nav a.active .k { opacity: .7; }
.nav a .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.nav a.active .badge { background: var(--ink); color: var(--yellow); }
.sidebar .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.8); display: flex; flex-direction: column; gap: 8px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); display: inline-block; }
.live-dot.on i { background: var(--yellow); box-shadow: 0 0 0 4px rgba(253,211,6,.22); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(253,211,6,.22);} 50% { box-shadow: 0 0 0 7px rgba(253,211,6,.06);} }
.demo-pill { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; letter-spacing: .14em; font-size: 11px; padding: 3px 9px; border-radius: 3px; }
.user-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.user-line button { background: none; border: 1px solid rgba(255,255,255,.4); color: inherit; border-radius: 4px; padding: 3px 8px; font-size: 12px; }

.main { padding: 22px 36px 60px; min-width: 0; position: relative; }
.main::before { content: ""; display: block; height: 10px; width: 180px; margin: 0 0 18px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 12px, transparent 12px 22px); }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--display); font-weight: 400; font-size: 50px; margin: 0; letter-spacing: .01em; line-height: .95; text-transform: uppercase; color: var(--ink); }
.topbar .eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.topbar .lead { color: var(--ink-2); font-size: 15px; margin-top: 10px; max-width: 760px; line-height: 1.4; }
.topbar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sources { display: flex; gap: 6px; flex-wrap: wrap; }
.src { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px 4px 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.src.stale i { background: var(--orange); }
.src.demo { border-style: dashed; border-color: var(--line-2); }
.src small { color: var(--muted); font-weight: 500; }

/* ---------- period selector ---------- */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 3px; font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.seg button.active { background: var(--blue); color: #fff; }
.custom-range { display: inline-flex; gap: 6px; align-items: center; }
.custom-range input { border: 1px solid var(--line-2); border-radius: 4px; padding: 5px 8px; background: #fff; font-size: 13px; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 16px; }
.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)); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 3fr 2fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; min-width: 0; }
.card.fill.blue { background: var(--blue); color: #fff; border-color: var(--blue); background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 14px 14px; }
.card.fill.blue .label { color: var(--yellow); }
.card.fill.blue .muted { color: rgba(255,255,255,.75); }
.card.fill.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.card.fill.yellow .label { color: rgba(11,11,15,.6); }
.card.flat { background: transparent; }
.card.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); background: var(--blue); }
.card.accent.blue::before { background: var(--yellow); }
.card.accent.yellow::before { background: var(--yellow); }
.card.accent.orange::before { background: var(--orange); }
.label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; gap: 12px; }
.section-title h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.section-title h2::before { content: ""; display: inline-block; width: 18px; height: 8px; background: var(--yellow); transform: skewX(-30deg); margin-right: 10px; vertical-align: 4px; }
.section-title .hint { color: var(--blue); font-size: 13px; font-weight: 700; }

/* KPI */
.kpi .value { font-family: var(--display); font-weight: 400; font-size: 58px; line-height: .95; margin: 10px 0 8px; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--blue); }
.card.fill.blue .kpi .value { color: #fff; }
.kpi .value.xl { font-size: 76px; }
.kpi .value .unit { font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 8px; text-transform: none; letter-spacing: 0; }
.card.fill.blue .kpi .value .unit { color: rgba(255,255,255,.8); }
.kpi .cap { color: var(--muted); font-size: 13px; }
.kpi .cap .capt { display: block; margin-top: 7px; line-height: 1.3; }
.card.fill.blue .kpi .cap .capt { color: rgba(255,255,255,.8); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 3px; background: var(--paper-3); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.delta.up { background: var(--yellow); color: var(--ink); }
.delta.down { background: var(--orange); color: #fff; }
.delta.flat { background: var(--paper-3); }
.card.fill.blue .delta { background: rgba(255,255,255,.16); color: #fff; }
.card.fill.blue .delta.up { background: var(--yellow); color: var(--ink); }
.card.fill.blue .delta.down { background: var(--orange); color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.tick { transition: color .3s; }
.tick.bump { color: var(--ink); }
.card.fill.blue .tick.bump { color: var(--yellow); }

/* mini KPIs (engajamento) */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 10px; }
.mini .v { font-family: var(--display); font-size: 34px; line-height: 1; margin: 4px 0 6px; }

/* platform rows */
.plat { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.plat:first-of-type { border-top: 0; }
.plat:hover .name { color: var(--blue); }
.pmark { width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: #fff; }
.pmark.instagram { background: var(--ig); } .pmark.youtube { background: var(--yt); } .pmark.tiktok { background: var(--tt); } .pmark.twitch { background: var(--yellow); color: var(--ink); }
.plat .name { font-weight: 700; font-size: 17px; }
.plat .meta { font-size: 12px; color: var(--muted); }
.plat .val { font-family: var(--display); font-size: 34px; text-align: right; line-height: 1; }
.plat .val small { display: block; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 5px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.badge.viralizando { background: var(--yellow); color: var(--ink); }
.badge.em_alta { background: var(--blue); color: #fff; }
.badge.normal { background: var(--paper-3); color: var(--ink-2); }
.badge.abaixo { background: var(--orange-soft); color: #B33100; }
.badge.recuperando { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.badge.live { background: var(--orange); color: #fff; }
.badge.demo { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.badge.sev-critico { background: var(--orange); color: #fff; }
.badge.sev-atencao { background: var(--yellow); color: var(--ink); }
.badge.sev-info { background: var(--blue-soft); color: var(--blue); }
.badge.sev-recorde { background: var(--blue); color: #fff; }

/* content list */
.clist { display: flex; flex-direction: column; gap: 10px; }
.crow { display: grid; grid-template-columns: 112px 1fr 150px 150px 150px 96px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; transition: border-color .15s, transform .15s; cursor: pointer; }
.crow:hover { border-color: var(--blue); }
.crow.viralizando { border-color: var(--yellow); box-shadow: inset 5px 0 0 var(--yellow); }
.crow.em_alta { box-shadow: inset 5px 0 0 var(--blue); }
.crow.recuperando { box-shadow: inset 5px 0 0 var(--blue); border-style: dashed; }
.crow.abaixo { box-shadow: inset 5px 0 0 var(--orange); }
.crow .thumb { width: 112px; height: 63px; border-radius: 4px; object-fit: cover; background: var(--paper-3); display: block; }
.crow .title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.crow .sub { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crow .stat { text-align: right; }
.crow .stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1; }
.crow .stat span { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.crow .stat .d { color: var(--blue); }
.crow .spark svg { width: 96px; height: 34px; display: block; }
.clist-head { display: grid; grid-template-columns: 112px 1fr 150px 150px 150px 96px; gap: 16px; padding: 0 16px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.clist-head span:nth-child(n+3) { text-align: right; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 3px; padding: 5px 12px; font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.search { border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px; font-size: 14px; min-width: 240px; background: #fff; }
.search:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* charts */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { font-family: var(--font); font-size: 11px; fill: var(--muted); font-weight: 600; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.tooltip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 4px; font-size: 12px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: opacity .1s; white-space: nowrap; }
.tooltip b { color: var(--yellow); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.share-bar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; background: var(--paper-3); margin: 10px 0 6px; }
.share-bar div { height: 100%; }

/* insights */
.qa { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.qa:first-child { border-top: 0; }
.qa .q { font-weight: 700; font-size: 17px; color: var(--blue); }
.qa .a { font-size: 17px; line-height: 1.35; }
.qa .ev { margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.quote { font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink-2); border-left: 4px solid var(--yellow); padding-left: 12px; }

/* alerts */
.alert { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.alert.ack { opacity: .55; }
.alert .t { font-weight: 700; font-size: 16px; }
.alert .b { color: var(--ink-2); margin-top: 3px; line-height: 1.35; }
.alert .m { font-size: 12px; color: var(--muted); margin-top: 6px; }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 3px; padding: 9px 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* tables & forms (admin) */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl td.num, table.tbl th.num { text-align: right; }
table.tbl tr:hover td { background: var(--blue-tint); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.form input, .form select { border: 1px solid var(--line-2); border-radius: 3px; padding: 8px 10px; background: #fff; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.form input:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; letter-spacing: .02em; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--yellow); }
.ok-dot { color: var(--blue); font-weight: 700; } .bad-dot { color: var(--orange); font-weight: 700; }
.note { background: var(--yellow-soft); border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: 3px; font-size: 14px; }
.note.blue { background: var(--blue-soft); border-left-color: var(--blue); }
.note.orange { background: var(--orange-soft); border-left-color: var(--orange); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-size: 15px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 380px; font-size: 14px; border-left: 5px solid var(--yellow); animation: slidein .25s ease-out; }
.toast b { display: block; font-size: 15px; margin-bottom: 2px; color: var(--yellow); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* detail drawer */
.drawer { position: fixed; top: 0; right: 0; width: min(580px, 100%); height: 100vh; background: #fff; border-left: 6px solid var(--blue); box-shadow: -20px 0 60px rgba(11,11,15,.18); padding: 26px 28px; overflow: auto; z-index: 40; transform: translateX(100%); transition: transform .2s ease-out; }
.drawer.open { transform: none; }
.drawer h3 { margin: 6px 0 4px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; }
.drawer .close { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 10px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0; }
.kv div { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.kv b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1; }
.kv span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.why { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* guia (página de ajuda) */
.guide h2 { font-family: var(--display); font-weight: 400; font-size: 32px; text-transform: uppercase; margin: 26px 0 8px; letter-spacing: .01em; }
.guide p, .guide li { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.guide ol li, .guide ul li { margin: 4px 0; }
.guide .step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.guide .step:first-of-type { border-top: 0; }
.guide .step .n { font-family: var(--display); font-size: 44px; line-height: .9; color: var(--blue); }
.guide .step b { font-size: 17px; display: block; margin-bottom: 4px; color: var(--ink); }
.guide code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--paper-3); padding: 1px 6px; border-radius: 3px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-left { background: var(--blue); color: #fff; padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 16px 16px; }
.login-left::before { content: ""; position: absolute; top: 0; left: 0; width: 360px; height: 18px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 22px, transparent 22px 40px); }
.login-left::after { content: ""; position: absolute; right: -80px; bottom: -40px; width: 420px; height: 110px; background: var(--yellow); transform: skewX(-30deg); opacity: .95; }
.login-left .ghost { position: absolute; right: -10px; top: 120px; font-family: var(--display); font-size: 200px; line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.28); pointer-events: none; text-align: right; }
.login-left h1 { font-family: var(--display); font-weight: 400; font-size: 78px; line-height: .92; margin: 0; letter-spacing: .01em; text-transform: uppercase; position: relative; }
.login-left h1 em { font-style: normal; color: var(--yellow); }
.login-left .big { font-family: var(--display); font-size: 200px; line-height: .85; color: var(--yellow); letter-spacing: .01em; position: relative; }
.login-left .caption { font-size: 18px; color: rgba(255,255,255,.85); max-width: 520px; position: relative; }
.login-right { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 44px; text-transform: uppercase; line-height: 1; }
.login-box .err { color: var(--orange); font-weight: 700; margin-top: 8px; min-height: 20px; }

@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g23, .g32 { grid-template-columns: 1fr; }
  .crow, .clist-head { grid-template-columns: 90px 1fr 120px 120px; }
  .crow .stat:nth-of-type(5), .crow .spark, .clist-head span:nth-child(n+5) { display: none; }
  .login-left .ghost { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
  .sidebar .brand { border: 0; margin: 0; padding: 4px 8px; }
  .sidebar .stripes { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { padding: 7px 10px; font-size: 13px; }
  .sidebar .foot { margin: 0 0 0 auto; }
  .main { padding: 18px 16px 50px; }
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 38px; }
  .qa { grid-template-columns: 1fr; gap: 6px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { padding: 34px 24px; }
  .login-left .big { font-size: 110px; }
  .login-left h1 { font-size: 52px; }
  .kpi .value { font-size: 44px; }
  .kpi .value.xl { font-size: 56px; }
  .crow, .clist-head { grid-template-columns: 70px 1fr 90px; }
  .crow .stat:nth-of-type(4), .clist-head span:nth-child(n+4) { display: none; }
  .guide .step { grid-template-columns: 40px 1fr; }
}
