/* Xolo Trade user app: rounded, balance-first, mobile-first. Builds on xolo.css tokens. */

body { font-feature-settings: "cv11", "ss01", "ss03"; }
.tnum { font-family: var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
h1, h2, h3, .ph h1 { font-family: var(--f-display); }
.ph h1 { font-weight: 750; letter-spacing: -.03em; }

/* shell refinements */
.side { gap: 2px; }
.nav a { height: 40px; border-radius: 12px; font-weight: 550; }
.nav a[aria-current="page"] { background: var(--accent-soft); }
.nav-label { letter-spacing: .07em; }
.int-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; border-radius: 10px; color: var(--fg-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.int-toggle:hover { color: var(--fg-2); background: var(--bg-2); }
.int-toggle .ico { transition: transform .25s var(--ease); margin-left: auto; }
.int-open .int-toggle .ico { transform: rotate(180deg); }
.int-items { display: none; gap: 2px; }
.int-open .int-items { display: grid; }
.int-items a { height: 34px; font-size: 13px; color: var(--fg-3); }
.admin-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 13px; flex-wrap: wrap; }
@media (max-width: 1099px) { .int-toggle span { display: none; } .int-toggle { justify-content: center; padding: 0; } .int-toggle .ico { margin: 0; } }

/* layout */
.u-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.u-col { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 1180px) { .u-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .u-grid, .u-col { gap: 14px; } }

.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 22px; min-width: 0; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; flex-wrap: wrap; }
.card-t { font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-b { padding: 12px 20px 20px; }
.card-b.flush { padding: 4px 0 8px; }
.card .more { font-size: 13px; font-weight: 600; color: var(--accent-fg); display: inline-flex; align-items: center; gap: 4px; }

/* balance hero */
.bal { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 26px 28px 24px; background: var(--hero-bg); color: var(--hero-fg); display: grid; gap: 22px; box-shadow: var(--shadow-lg); }
.bal canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; pointer-events: none; }
.bal .lbl { color: var(--hero-fg-2); font-size: 13.5px; font-weight: 550; display: flex; gap: 8px; align-items: center; }
.bal .lbl button { color: inherit; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.bal .lbl button:hover { background: var(--hero-chip); }
.bal .amt { font-family: var(--f-display); font-weight: 750; font-size: clamp(38px, 5.4vw, 56px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bal .amt .c { font-size: .5em; opacity: .7; letter-spacing: -.02em; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--hero-chip); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hchip span { color: var(--hero-fg-2); font-weight: 500; }
.qa { display: flex; gap: 22px; flex-wrap: wrap; }
.qa > * { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--hero-fg); min-width: 56px; }
.qa .qi { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--hero-chip); transition: transform .25s var(--ease), background .2s; }
.qa > *:hover .qi { transform: translateY(-2px); background: var(--hero-chip-2); }
.qa .qi .ico { width: 20px; height: 20px; }
@media (max-width: 480px) { .bal { padding: 22px 20px 20px; border-radius: 24px; } .qa { gap: 10px; justify-content: space-between; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles.col { grid-template-columns: minmax(0, 1fr); }
.tile { background: var(--bg-1); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 6px; min-width: 0; box-shadow: var(--shadow); }
.tile .k { font-size: 12.5px; color: var(--fg-3); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.tile .v { font-family: var(--f-display); font-size: 24px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.tile .s { font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; } .tile .v { font-size: 20px; } }

/* bot identity */
.bav { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.bav .ico { width: 21px; height: 21px; }
.bav.sm { width: 36px; height: 36px; border-radius: 11px; }
.bav.sm .ico { width: 18px; height: 18px; }
.status { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status.run { color: var(--gain); }
.status.pause { color: var(--warn); }
.status.stop { color: var(--fg-3); }
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.risk i { display: inline-flex; gap: 2px; }
.risk i b { width: 4px; height: 10px; border-radius: 2px; background: var(--bg-3); }
.risk i b.on { background: var(--fg-2); }

.brow { display: flex; align-items: center; gap: 14px; padding: 12px 20px; width: 100%; text-align: left; transition: background .15s; }
.brow:hover { background: var(--bg-2); }
.brow + .brow { border-top: 1px solid var(--line); }
.brow .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.brow .t b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .r { text-align: right; display: grid; gap: 2px; }
.brow .r b { font-family: var(--f-display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* bot cards */
.ubots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ubot { background: var(--bg-1); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; text-align: left; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; box-shadow: var(--shadow); min-width: 0; cursor: pointer; }
.ubot:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.ubot.enter { animation: rise .6s var(--ease) both; }
.ubot-h { display: flex; gap: 12px; align-items: center; }
.ubot-h .t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ubot-h .t b { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.ubot .big { font-family: var(--f-display); font-size: 30px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.ubot .foot { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.ubot .foot div { display: grid; gap: 2px; min-width: 0; }
.ubot .foot span { font-size: 11.5px; color: var(--fg-3); }
.ubot .foot b { font-family: var(--f-display); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ubot .note { font-size: 12.5px; }
.add-tile { border: 1.5px dashed var(--line-2); border-radius: 24px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; text-align: center; color: var(--fg-2); min-height: 220px; transition: border-color .2s, background .2s; }
.add-tile:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.add-tile .qi { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }

.minibars { display: block; overflow: visible; }

/* daily report */
.report { display: grid; gap: 0; }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.report-amt { font-family: var(--f-display); font-size: 30px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.report-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.report-row b { font-variant-numeric: tabular-nums; font-family: var(--f-display); font-weight: 700; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }

/* activity */
.act { display: flex; align-items: center; gap: 14px; padding: 13px 20px; width: 100%; text-align: left; transition: background .15s; }
.act:hover { background: var(--bg-2); }
.act + .act { border-top: 1px solid var(--line); }
.act-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--fg-2); flex: none; }
.act-ic.in { background: var(--gain-soft); color: var(--gain); }
.act-ic.out { background: var(--loss-soft); color: var(--loss); }
.act-ic.rep { background: var(--accent-soft); color: var(--accent-fg); }
.act .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.act .t b { font-size: 14px; font-weight: 600; }
.act .t span { font-size: 12.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act .r { text-align: right; display: grid; gap: 1px; }
.act .r b { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; }
.day-h { padding: 14px 20px 6px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-3); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--fg-3); padding-bottom: 2px; }
.cal .d { min-height: 64px; border-radius: 12px; padding: 7px 8px; display: grid; align-content: space-between; background: var(--bg-2); font-size: 11px; color: var(--fg-3); min-width: 0; transition: transform .2s var(--ease); }
.cal .d:hover { transform: scale(1.04); }
.cal .d b { font-family: var(--f-display); font-size: 12px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .d.empty { background: transparent; }
.cal .d.today { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 560px) { .cal { gap: 4px; } .cal .d { min-height: 44px; padding: 5px; border-radius: 9px; } .cal .d b { display: none; } }

/* wallet */
.wallet-card { display: grid; gap: 18px; padding: 22px; }
.addr-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--bg-2); font-family: var(--f-mono); font-size: 12.5px; max-width: 100%; }
.addr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; }
.split i { display: block; height: 100%; }
.perm { display: grid; gap: 10px; }
.perm div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.perm .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gain-soft); color: var(--gain); flex: none; }
.perm .no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--loss-soft); color: var(--loss); flex: none; }
.perm .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.phrase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; filter: blur(7px); transition: filter .35s; user-select: none; }
.phrase.show { filter: none; user-select: text; }
.phrase span { display: flex; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--bg-2); font-family: var(--f-mono); font-size: 13px; }
.phrase span i { font-style: normal; color: var(--fg-3); min-width: 16px; }
.passkey-anim { display: grid; justify-items: center; gap: 14px; padding: 18px 0; text-align: center; }
.passkey-anim .ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); position: relative; }
.passkey-anim .ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: .0; animation: ping 1.4s var(--ease) infinite; }
.passkey-anim .ring .ico { width: 34px; height: 34px; }
.passkey-anim.done .ring { background: var(--gain-soft); color: var(--gain); }
.passkey-anim.done .ring::after { display: none; }

/* market (add bot) */
.mk { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; background: var(--bg-1); }
.mk:hover { border-color: var(--line-2); }
.mk[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--ring); }
.mk .t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mk .t b { font-family: var(--f-display); font-size: 15px; }
.mk .stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.mk .stats b { font-family: var(--f-display); font-size: 13px; color: var(--fg); }
.amount-in { font-family: var(--f-display); font-size: 34px; font-weight: 750; letter-spacing: -.03em; border: 0; background: none; width: 100%; outline: none; color: var(--fg); font-variant-numeric: tabular-nums; }
.amount-box { border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.amount-box:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.quick-amts { display: flex; gap: 6px; flex-wrap: wrap; }

/* review dock */
.review { position: fixed; z-index: 62; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 99px; background: var(--bg-1); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); }
.review .lbl { font-size: 12px; font-weight: 650; color: var(--fg-3); white-space: nowrap; margin-right: 2px; }
.review .sw { width: 28px; height: 28px; border-radius: 50%; padding: 3px; border: 2px solid transparent; flex: none; transition: transform .2s var(--ease); }
.review .sw:hover { transform: scale(1.08); }
.review .sw[aria-pressed="true"] { border-color: var(--fg); }
.review .sw i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.review .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.review .btn { height: 32px; border-radius: 99px; }
.has-tabbar-view .review { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .has-tabbar-view .review { bottom: max(16px, env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 480px) { .review .lbl, .review .sep { display: none; } .review .sw { width: 26px; height: 26px; } }
.demo-fab { display: none !important; }
.is-app .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) { .is-app .toasts { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); } }

/* landing (user story) */
.l-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
@media (max-width: 960px) { .l-hero { grid-template-columns: minmax(0, 1fr); padding-block: 36px 48px; gap: 40px; } }
.l-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
.l-title em { font-style: normal; color: var(--accent-fg); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--fg-2); font-size: 13.5px; font-weight: 550; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--gain); }
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-glow { position: absolute; inset: 8% 10%; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .25; }
.phone { position: relative; width: min(320px, 100%); aspect-ratio: 320 / 650; border-radius: 46px; padding: 10px; background: var(--bg-3); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); animation: rise .9s var(--ease) both .15s; }
.phone-screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 12px 12px; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 99px; background: var(--bg-3); z-index: 3; }
.phone .bal { border-radius: 22px; padding: 16px; gap: 12px; box-shadow: none; }
.phone .bal .amt { font-size: 30px; }
.phone .bal .lbl { font-size: 11.5px; }
.phone .hchip { height: 24px; font-size: 11px; padding: 0 8px; }
.phone .card { border-radius: 18px; box-shadow: none; }
.phone .brow { padding: 9px 12px; gap: 10px; }
.phone .brow .t b { font-size: 12.5px; }
.phone .brow .r b { font-size: 12.5px; }
.phone .bav.sm { width: 30px; height: 30px; border-radius: 9px; }
.phone .status { font-size: 10.5px; }
.ph-notif { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--bg-1); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; font-size: 12px; }
.ph-notif.in { transform: none; opacity: 1; }
.ph-notif .bav { width: 30px; height: 30px; border-radius: 9px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps4 > div { background: var(--bg-1); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.steps4 .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); font-family: var(--f-display); font-weight: 800; }
.steps4 p { color: var(--fg-2); font-size: 14px; }
@media (max-width: 960px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }
.custody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .custody { grid-template-columns: minmax(0, 1fr); } }
.custody ul { display: grid; gap: 18px; }
.custody li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.custody li .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.custody li b { display: block; font-size: 16px; margin-bottom: 2px; }
.custody li p { color: var(--fg-2); font-size: 14px; }
.lfaq { max-width: 820px; }

/* mono looks stay monochrome: bot icons go neutral */
:root[data-palette="mono-dark"] .bav, :root[data-palette="mono-light"] .bav { background: var(--bg-2) !important; color: var(--fg) !important; }

/* ---------- live engines (fixed dark HUD look in every palette) ---------- */
.eng { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; background: #04070d; color: #a9c4e8; border: 1px solid #12223a; font-family: var(--f-mono); min-height: 240px; }
.eng > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.eng::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); z-index: 2; }
.eng-hud { position: absolute; inset: 0; pointer-events: none; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; z-index: 3; }
.eng-top { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; gap: 18px; align-items: center; padding: 0 14px; border-bottom: 1px solid rgba(80, 140, 255, .18); background: linear-gradient(rgba(4, 7, 13, .94), rgba(4, 7, 13, .7)); white-space: nowrap; overflow: hidden; }
.eng-top b { color: #e8f1ff; font-weight: 500; }
.eng-brand { color: #46d6ff; font-weight: 600; }
.eng-brand i { color: #5b7290; font-style: normal; }
.eng-live { color: #3dff9a; display: inline-flex; gap: 7px; align-items: center; }
.eng-clock { margin-left: auto; color: #e8f1ff; }
.eng-panel { position: absolute; top: 54px; width: 214px; border: 1px solid rgba(80, 140, 255, .24); background: rgba(6, 11, 20, .8); padding: 10px 11px 6px; }
.eng-panel.l { left: 12px; }
.eng-panel.r { right: 12px; }
.eng-panel h5 { margin: 0 0 6px; font-size: 9.5px; color: #46d6ff; letter-spacing: .12em; font-weight: 600; }
.eng-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 7px 0; border-top: 1px solid rgba(80, 140, 255, .13); align-items: center; }
.eng-row b { color: #e8f1ff; font-weight: 500; }
.eng-n { color: #e8f1ff; overflow: hidden; text-overflow: ellipsis; }
.eng-sub { color: #5b7290; font-size: 9.5px; }
.eng-bar { grid-column: 1 / -1; height: 3px; background: rgba(80, 140, 255, .16); }
.eng-bar i { display: block; height: 100%; background: #46d6ff; transition: width .7s ease; }
.e-green { color: #3dff9a !important; } .e-red { color: #ff4d5e !important; } .e-amber { color: #ffb53d !important; }
.eng-c { position: absolute; width: 14px; height: 14px; border: 0 solid #46d6ff; opacity: .7; }
.eng-c.tl { left: 6px; top: 46px; border-left-width: 1.5px; border-top-width: 1.5px; }
.eng-c.tr { right: 6px; top: 46px; border-right-width: 1.5px; border-top-width: 1.5px; }
.eng-c.bl { left: 6px; bottom: 6px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.eng-c.br { right: 6px; bottom: 6px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.eng.compact .eng-top .hm, .eng.compact .eng-top .hm2 { display: none; }
@media (max-width: 760px) { .eng-panel { display: none; } .eng-top .hm, .eng-top .hm2 { display: none; } .eng-top { gap: 12px; } }
@media (max-width: 1100px) { .eng-top .hm2 { display: none; } }
.eng-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.eng-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eng-cards button { text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--bg-1); display: grid; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.eng-cards button[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--ring); }
.eng-cards b { font-family: var(--f-display); font-size: 15px; }
.eng-cards span { color: var(--fg-3); font-size: 13px; }
@media (max-width: 760px) { .eng-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- bot page ---------- */
.bot-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bot-head .t { flex: 1; min-width: 200px; display: grid; gap: 6px; }
.bot-head h1 { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; }
.bot-head .bav { width: 56px; height: 56px; border-radius: 18px; }
.bot-head .bav .ico { width: 26px; height: 26px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--fg); }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gauge { background: var(--bg-1); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; justify-items: center; gap: 8px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.gauge svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.gauge .trk { fill: none; stroke: var(--bg-3); stroke-width: 9; }
.gauge .val { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.gauge .num-c { position: relative; display: grid; place-items: center; }
.gauge .num-c b { position: absolute; font-family: var(--f-display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gauge .k { font-weight: 650; font-size: 13.5px; }
.gauge .s { font-size: 12px; color: var(--fg-3); }
@media (max-width: 900px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .gauge svg { width: 88px; height: 88px; } }
.feed { font-family: var(--f-mono); font-size: 12px; max-height: 300px; overflow: hidden; display: grid; }
.feed div { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 20px; border-top: 1px solid var(--line); animation: feedIn .5s var(--ease); }
.feed div:first-child { border-top: 0; }
.feed i { width: 8px; height: 8px; border-radius: 50%; }
.feed span:last-child { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-ui); font-size: 13px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* ---------- interface picker ---------- */
.iface { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.iface button { border: 1.5px solid var(--line-2); border-radius: 16px; overflow: hidden; text-align: left; background: var(--bg-1); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.iface button:hover { transform: translateY(-2px); }
.iface button[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--ring); }
.iface .pv { height: 92px; padding: 10px; display: grid; grid-template-columns: 22% 1fr; gap: 6px; }
.iface .pv .sb { border-radius: 6px; opacity: .9; }
.iface .pv .mn { display: grid; gap: 5px; align-content: start; }
.iface .pv .hc { height: 30px; border-radius: 7px; }
.iface .pv .ln { height: 7px; border-radius: 3px; width: 70%; }
.iface .pv .ln.s { width: 45%; }
.iface .cap { padding: 9px 12px 11px; display: grid; gap: 2px; }
.iface .cap b { font-size: 13.5px; }
.iface .cap span { font-size: 12px; color: var(--fg-3); }

.eng.narrow .eng-panel { display: none; }
.eng.narrow .eng-top .hm2 { display: none; }

/* engine HUD: scan log, now-checking checklist */
.eng-log { display: grid; gap: 0; }
.eng-li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(80, 140, 255, .1); color: #e8f1ff; }
.eng-li.new { animation: feedIn .7s ease; }
.eng-li b { font-weight: 600; font-size: 9.5px; }
.eng-sym { font-size: 18px; font-weight: 600; color: #e8f1ff; letter-spacing: .02em; padding: 2px 0 8px; }
.eng-steps { display: grid; gap: 1px; }
.eng-step { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #5b7290; padding: 2px 0; transition: color .3s; }
.eng-step i { width: 8px; height: 8px; border-radius: 2px; background: rgba(80, 140, 255, .2); flex: none; transition: background .15s; }
.eng-step.ok { color: #a9c4e8; } .eng-step.ok i { background: #3dff9a; }
.eng-step.no { color: #ff4d5e; } .eng-step.no i { background: #ff4d5e; }
.eng-step.run { color: #e8f1ff; } .eng-step.run i { background: #46d6ff; box-shadow: 0 0 0 3px rgba(70, 214, 255, .25); }
.eng-now { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(70, 214, 255, .35); background: rgba(4, 7, 13, .82); color: #a9c4e8; font-size: 10px; }
.eng-now b { color: #e8f1ff; font-weight: 600; }
.eng-now .dot { color: #46d6ff; }
.eng:not(.narrow) .eng-now { left: 244px; }
.eng.resting .eng-now { display: none; }
.eng.resting [data-live-lbl] { color: #ffb53d; }
.eng-rest { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: grid; gap: 5px; justify-items: center; text-align: center; padding: 14px 20px; border: 1px solid rgba(255, 181, 61, .55); background: rgba(4, 7, 13, .88); font-size: 10px; letter-spacing: .12em; z-index: 4; max-width: calc(100% - 32px); }
.eng-rest[hidden] { display: none; }
.eng-rest b { font-size: 14px; color: #ffb53d; font-weight: 600; }
.eng-rest span { color: #a9c4e8; }

/* balance tile: content left, its own chart right */
.bal { grid-template-columns: minmax(0, 1fr) minmax(200px, 40%); grid-template-areas: "main chart" "qa chart"; column-gap: 24px; }
.bal-main { grid-area: main; display: grid; gap: 16px; align-content: start; }
.bal .qa { grid-area: qa; align-self: end; }
.bal-chart { grid-area: chart; position: relative; min-height: 150px; border-radius: 18px; background: var(--hero-chip); padding: 12px 12px 8px; display: grid; grid-template-rows: auto 1fr; gap: 6px; overflow: hidden; }
.bal-chart .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--hero-fg-2); font-weight: 550; }
.bal-chart .cap b { color: var(--hero-fg); font-family: var(--f-display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.bal-chart svg { width: 100%; height: 100%; min-height: 96px; display: block; overflow: visible; }
.hs-line { fill: none; stroke: var(--hero-line); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards .15s; }
.hs-area { animation: fadeIn 1s ease both .5s; }
.hs-dot { fill: var(--hero-line); }
.bal canvas { display: none; }
@media (max-width: 760px) {
  .bal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "chart" "qa"; row-gap: 18px; }
  .bal-chart { min-height: 120px; }
  .bal .qa { justify-content: space-between; }
}
.phone .bal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "chart"; row-gap: 10px; }
.phone .bal-chart { min-height: 70px; padding: 8px 8px 4px; border-radius: 12px; }
.phone .bal-chart svg { min-height: 44px; }
.phone .bal-chart .cap { font-size: 10px; }
.phone .bal-chart .cap b { font-size: 11px; }

/* engine HUD sizing: nothing gets cut at narrow widths */
.eng-top > * { flex-shrink: 0; }
.eng-top .eng-brand { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eng.narrow .eng-top { gap: 12px; padding: 0 12px; }
.eng.narrow .eng-top .hm, .eng.narrow .eng-top .hm2 { display: none; }
.eng.tiny .eng-top { font-size: 9.5px; gap: 10px; }
.eng.tiny .eng-clock { display: none; }
.eng-now { max-width: calc(100% - 28px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bot-head .wrap-row { min-width: 0; }


/* ===================== Newsroom: articles, growth, reviews ===================== */
.pub-links a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.news-head { display: grid; gap: 14px; padding-block: 56px 32px; }
.news-head .lead { max-width: 60ch; }

.art { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-1); overflow: hidden; color: inherit; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.art:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.art:focus-visible { outline: none; box-shadow: var(--ring); }
.art-cover { aspect-ratio: 400 / 220; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.cover-svg { display: block; width: 100%; height: 100%; }
.art-b { display: grid; gap: 10px; align-content: start; padding: 18px 20px 22px; min-width: 0; }
.art-b .row { flex-wrap: wrap; gap: 8px; }
.art-b h3 { font-family: var(--f-display); font-size: 19px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; color: var(--fg); text-wrap: balance; }
.art-b p { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.art.big { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.art.big .art-cover { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.art.big .art-b { padding: 40px; align-content: center; gap: 16px; }
.art.big h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.art.big p { font-size: 16.5px; line-height: 1.6; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .art.big { grid-template-columns: minmax(0, 1fr); }
  .art.big .art-cover { aspect-ratio: 400 / 220; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .art.big .art-b { padding: 22px 22px 26px; }
}
@media (max-width: 620px) { .art-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .news-head { padding-block: 36px 24px; } }

/* growth */
.growth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .growth { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.kfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kfacts > div { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); min-width: 0; }
.kfacts b { font-family: var(--f-display); font-size: 36px; font-weight: 760; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.kfacts span { color: var(--fg-2); font-size: 13px; line-height: 1.4; }
.kfacts.in-art { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-block: 28px; }
.kfacts.in-art > div { background: var(--bg-1); }
.kfacts.in-art b { font-size: 26px; }
.miles { list-style: none; margin: 0; padding: 0; display: grid; }
.miles li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.miles li:last-child { padding-bottom: 0; }
.miles li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
.miles li:last-child::before { display: none; }
.miles li.done::before { background: var(--gain); }
.miles li > div { display: grid; gap: 3px; min-width: 0; padding-top: 3px; }
.miles b { font-family: var(--f-display); font-size: 16.5px; font-weight: 680; letter-spacing: -.01em; color: var(--fg); }
.miles p { color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.miles li.next b { color: var(--fg-2); }
.mdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--bg); color: var(--fg-3); position: relative; z-index: 1; }
.miles li.done .mdot { background: var(--gain); border-color: var(--gain); color: var(--on-gain); }
.miles li.now .mdot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* reviews */
.rev-sum { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-1); }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } .rev-sum { gap: 20px; padding: 18px; } }
.rev { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); }
.rev blockquote { margin: 0; flex: 1; color: var(--fg); font-size: 15px; line-height: 1.6; }
.rev figcaption { gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.stars { display: inline-flex; gap: 2px; flex: none; }
.stars svg { display: block; width: 16px; height: 16px; }
.stars.one svg { width: 22px; height: 22px; }
.stars.one svg:not(:first-child) { display: none; }

/* article page */
.read { max-width: 800px; padding-top: 40px; }
.read .lead { max-width: none; }
.read-title { font-family: var(--f-display); font-weight: 720; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 14px; color: var(--fg); text-wrap: balance; }
.read-cover { aspect-ratio: 400 / 220; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 36px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 40px; font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--fg); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--fg-3); font-weight: 600; }
.prose blockquote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--f-display); font-size: 22px; font-weight: 620; line-height: 1.45; letter-spacing: -.01em; color: var(--fg); }
.prose .note { font-size: 14.5px; line-height: 1.55; padding: 14px 16px; }
.read-nav { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.read-nav a { display: inline-flex; align-items: center; gap: 6px; max-width: 48%; line-height: 1.45; }
.read-nav a:last-child:not(:first-child) { text-align: right; margin-left: auto; }
@media (max-width: 620px) { .prose { font-size: 16px; } .read { padding-top: 24px; } .read-nav a { max-width: 100%; } .read-nav a:last-child:not(:first-child) { text-align: left; margin-left: 0; } }
.land-news .row-b { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.foot-grid.five { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .foot-grid.five { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-grid.five > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .foot-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pub-links a { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 881px) { .pub-links { gap: 16px; font-size: 14px; } .pub-nav .wrap { gap: 20px; } }

/* anti-phishing code (Settings > Security) */
.apc-code { font-family: var(--f-mono); font-weight: 600; letter-spacing: .03em; color: var(--fg); white-space: nowrap; }
@media (max-width: 560px) { .apc-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } .apc-row > :last-child { justify-self: start; } }
.set-row .t span .apc-code { color: var(--fg); }
.apc-prev { display: grid; gap: 8px; padding: 4px 0 16px; }
.apc-mail { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 14px; display: grid; gap: 12px; max-width: 460px; }
.apc-mail .logo { font-size: 15px; gap: 8px; }
.apc-mail .logo svg { width: 22px; height: 22px; }
.apc-lbl { font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.apc-band { border-radius: 8px; background: var(--accent-soft); color: var(--fg-2); padding: 8px 12px; font-size: 12.5px; overflow-wrap: anywhere; }
.apc-band b { font-family: var(--f-mono); font-weight: 600; color: var(--fg); letter-spacing: .03em; }
.apc-band b.empty { color: var(--fg-3); }
.apc-lines { display: grid; gap: 6px; }
.apc-lines i { display: block; height: 7px; border-radius: 4px; background: var(--bg-3); }

/* admin analytics */
.an-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 16px; }
.an-note { font-size: 12.5px; color: var(--fg-3); }
.an-hint { font-size: 12.5px; color: var(--fg-3); }
.an-kpis .v { display: flex; align-items: center; gap: 10px; }
.an-delta { font-weight: 650; font-size: 12.5px; }
.an-delta.up { color: var(--gain); }
.an-delta.down { color: var(--loss); }
.an-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gain); flex: none; animation: anPulse 2s ease-out infinite; }
@keyframes anPulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--gain) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

.an-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: var(--h, 220px) auto; column-gap: 10px; padding-top: 8px; }
.an-y { position: relative; min-width: 26px; font: 500 11px/1 var(--f-mono); color: var(--fg-3); }
.an-y span { position: absolute; right: 0; transform: translateY(50%); }
.an-plot { position: relative; outline: none; border-radius: 6px; }
.an-plot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.an-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); }
.an-grid.base { border-top: 1px solid var(--line-2); }
.an-bars { position: absolute; inset: 0; display: flex; align-items: stretch; }
.an-bar { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; }
.an-bar i { display: block; width: min(30px, 66%); height: var(--v); min-height: var(--min, 0); background: var(--accent); border-radius: 4px 4px 0 0; opacity: .78; transition: opacity .15s, filter .15s; }
.an-bar.on i { opacity: 1; filter: brightness(1.2); }
.an-x { grid-column: 2; position: relative; height: 24px; font: 500 11px/1 var(--f-mono); color: var(--fg-3); }
.an-x span { position: absolute; top: 9px; transform: translateX(-50%); white-space: nowrap; }
.an-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }

.an-map { position: relative; }
.an-map svg { display: block; width: 100%; height: auto; }
.an-c { stroke: var(--bg-1); stroke-width: .5; transition: filter .12s; cursor: default; }
.an-c:hover { stroke: var(--fg); stroke-width: .9; filter: brightness(1.18); }
.an-dot circle { fill: var(--gain); }
.an-dot .ring { fill: none; stroke: var(--gain); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: anRing 2.2s ease-out infinite; }
@keyframes anRing { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
.an-maptip { transform: translate(-50%, calc(-100% - 6px)); }
.an-map-empty { aspect-ratio: 2.1 / 1; display: grid; place-items: center; color: var(--fg-3); background: var(--bg-2); border-radius: 12px; font-size: 13px; }
.an-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--fg-3); }
.an-legend i { width: 18px; height: 8px; border-radius: 2px; display: inline-block; }
.an-legend .grow { flex: 1; }

.an-live-h { display: flex; align-items: center; gap: 8px; font-size: 14px; padding-bottom: 6px; }
.an-live-h b { font-family: var(--f-mono); font-size: 16px; }
.an-lr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) 92px 84px; grid-template-areas: "who path dev kind ago"; gap: 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); font-size: 13px; border-radius: 6px; }
.an-lr .who { grid-area: who; display: flex; gap: 10px; align-items: center; min-width: 0; }
.an-lr .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lr .who span span { color: var(--fg-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lr code { grid-area: path; font: 500 12.5px/1.3 var(--f-mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lr .dev { grid-area: dev; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lr .kind { grid-area: kind; }
.an-lr .ago { grid-area: ago; color: var(--fg-3); text-align: right; font: 500 12px var(--f-mono); white-space: nowrap; }
.an-lr.flash { animation: anFlash 1.8s ease-out; }
@keyframes anFlash { from { background: color-mix(in oklab, var(--gain) 18%, transparent); } to { background: transparent; } }
.cc { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--bg-3); color: var(--fg-2); font: 600 10px/1 var(--f-mono); letter-spacing: .04em; flex: none; }

.an-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.an-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.an-rows li { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.an-rows li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in oklab, var(--accent) 18%, transparent); border-radius: 6px; z-index: -1; transition: background .15s; }
.an-rows li:hover::before { background: color-mix(in oklab, var(--accent) 32%, transparent); }
.an-rows .l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-rows .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-rows .t.mono { font-family: var(--f-mono); font-size: 12.5px; }
.an-rows b { font: 600 12.5px var(--f-mono); }
.an-flat .panel-b { padding: 0; }
.an-2col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.an-acc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.an-sec { font-family: var(--f-display); font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 14px 0 0; }
.tbl-wrap { overflow-x: auto; }
.an-tbl .r { text-align: right; }
.an-tbl .mono { font-family: var(--f-mono); font-size: 12.5px; }
.an-tbl td, .an-tbl th { white-space: nowrap; }
@media (max-width: 1180px) { .an-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-2col, .an-acc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .an-lr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who ago" "path kind"; row-gap: 6px; }
  .an-lr .dev { display: none; }
}
@media (max-width: 640px) { .an-grid3 { grid-template-columns: minmax(0, 1fr); } .an-note { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .an-live-dot, .an-dot .ring, .an-lr.flash { animation: none; } }
.reduce-motion .an-live-dot, .reduce-motion .an-dot .ring, .reduce-motion .an-lr.flash { animation: none; }
