/* Hills Coffee - design system v3 (2026-10-25). Previous versions: design-backup-2026-10-25 (teal/dark)
   and design-backup-2026-10-25-terrain (lime + 3D terrain dashboard).
   - A cool light canvas with a dot grid and soft drifting green orbs.
   - Frosted glass surfaces with a white hairline edge. No drop shadows.
   - Premium green: deep emerald to mint. Used as feathered colour cards (.fx) and as a glow on black
     cards (.ink); everything else is ink on glass.
   - Small round icon buttons on cards, barcode bar charts, segmented pill bars, dial gauges, rings. */

:root {
  color-scheme: light;
  --bg: #e9ecea;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-solid: #f8faf9;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.72);
  --edge: rgba(255, 255, 255, 0.9);
  --blur: blur(22px) saturate(150%);
  --ink: #111413;
  --ink-2: #181c1a;
  --ink-3: #222725;
  --line: rgba(17, 20, 19, 0.07);
  --line-2: rgba(17, 20, 19, 0.12);
  --line-3: rgba(17, 20, 19, 0.2);
  --line-dark: rgba(255, 255, 255, 0.09);
  --text: #111413;
  --text-2: #4b524e;
  --text-3: #858c88;
  --text-4: #b2b8b4;
  --on-dark: #f1f4f2;
  --on-dark-2: rgba(241, 244, 242, 0.66);
  --on-dark-3: rgba(241, 244, 242, 0.42);
  --g-900: #062a19; --g-700: #0b5a33; --g-600: #10773f; --g-500: #1b9a55; --g-400: #3dbb72; --g-300: #7ed6a0; --g-200: #bdebcb; --g-100: #e3f6e8;
  --green: var(--g-500);
  --grad: linear-gradient(115deg, #0b5a33 0%, #178f4e 38%, #3fb873 72%, #8fdaad 100%);
  --grad-fx: radial-gradient(farthest-corner at 50% 66%, #0a5c33 0%, #178f4e 28%, #3fb873 56%, #93ddb0 82%, #d6f2df 100%);
  --glow: radial-gradient(70% 90% at 30% 125%, rgba(63, 184, 115, 0.62), rgba(23, 143, 78, 0.25) 45%, transparent 72%);
  --lime: var(--g-400); --lime-2: var(--g-500); --lime-soft: rgba(61, 187, 114, 0.14); --lime-ink: #fff;
  --accent: var(--g-500); --accent-2: var(--g-600); --accent-ink: #fff; --accent-soft: rgba(61, 187, 114, 0.12); --accent-line: rgba(27, 154, 85, 0.35);
  --up: #14894a; --down: #d0522b;
  --up-soft: rgba(27, 154, 85, 0.1); --down-soft: rgba(208, 82, 43, 0.1);
  --warn: #b8691a; --warn-soft: rgba(184, 105, 26, 0.12);
  --info: #3d63b0; --info-soft: rgba(61, 99, 176, 0.1);
  --danger: #e2484d;
  --shadow: none;
  --radius: 22px; --radius-lg: 30px;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.1, .9, .2, 1);
  --hatch: repeating-linear-gradient(-45deg, rgba(17, 20, 19, 0.07) 0 1px, transparent 1px 7px);
}
::selection { background: rgba(61, 187, 114, 0.3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 2px; }

/* ---------------------------------------------------------------- canvas: dot grid + soft green orbs
   (static on purpose: anything moving under the frosted cards makes every card re-blur each frame) */
html { background: var(--bg); }
body { background: transparent !important; color: var(--text); }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(circle, rgba(17, 20, 19, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px, linear-gradient(180deg, #edf0ee, #e5e9e7); }
body::after { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(32% 30% at 82% 8%, rgba(126, 214, 160, 0.42), transparent 70%),
              radial-gradient(30% 32% at 6% 58%, rgba(189, 235, 203, 0.55), transparent 70%),
              radial-gradient(28% 26% at 62% 96%, rgba(214, 228, 196, 0.6), transparent 70%);
}
.shell::before, .shell::after { display: none !important; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--text-3); } .dim { color: var(--text-2); }
.tail, .big .tail { color: var(--text-4); }
.up, .chg.up { color: var(--up); } .down, .chg.down { color: var(--down); }
h1 { font-weight: 300; letter-spacing: -0.035em; }
.page-head h1 { font-size: 42px; color: var(--ink); }
.page-head p { color: var(--text-3); }

/* ---------------------------------------------------------------- header */
.topnav, body.immersive .topnav { position: sticky; height: 76px; gap: 18px; padding: 0 28px; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.topnav.scrolled { background: rgba(233, 236, 234, 0.72); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.brand-mark img { width: 34px; height: 34px; filter: invert(1) brightness(0.1); opacity: 1; }
.brand-mark > div { display: block; }
.brand-mark span { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.brand-mark small { display: none; }
.pills, body.immersive .pills { flex: 0 1 auto; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.pill, body.immersive .pill { height: 36px; padding: 0 16px; font-size: 13.5px; color: var(--text-2); border: 0; background: none; box-shadow: none; }
.pill:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.pill.active, body.immersive .pill.active { color: #fff; background: var(--ink); border: 0; box-shadow: none; }
.topnav-right { margin-left: auto; gap: 8px; }
.search-pill, body.immersive .search-pill { width: 240px; height: 42px; padding: 0 44px 0 18px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: width .4s var(--ease); }
.search-pill:focus-within { width: 290px; box-shadow: none; }
.search-pill input { color: var(--ink); } .search-pill input::placeholder { color: var(--text-3); } .search-pill svg { color: var(--text-2); }
.icon-btn, .avatar, body.immersive .icon-btn, body.immersive .avatar { width: 42px; height: 42px; background: var(--glass); border: 1px solid var(--edge); color: var(--ink); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: none; }
.icon-btn:hover { background: #fff; color: var(--ink); }
.avatar { background: var(--grad-fx); color: #fff; border-color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.dot-badge { background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.avatar-dot { background: var(--g-400); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 1280px) { .search-pill, body.immersive .search-pill { width: 180px; } .pill, body.immersive .pill { padding: 0 12px; font-size: 13px; } }
@media (max-width: 1100px) { .search-pill { display: none; } .brand-mark > div { display: none; } }

/* ---------------------------------------------------------------- surfaces */
.card, .stage .card, .order-row, .group-card, .panel { background: var(--glass); border: 1px solid var(--edge); box-shadow: none; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--text); border-radius: var(--radius-lg); }
a.card:hover, .asset-card:hover, .group-card:hover, .lot-card:hover { transform: translateY(-3px); background: var(--glass-2); box-shadow: none; }
.card-head p, .stat-sub { color: var(--text-3); }
.stat-label { color: var(--text-2); }
.corner-link { color: var(--ink); background: rgba(255, 255, 255, 0.8); border: 0; }
.corner-link:hover { background: #fff; }
.banner { background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); color: var(--text); }
.banner.warn { background: rgba(255, 240, 225, 0.8); }
.banner.danger { background: rgba(253, 232, 232, 0.85); }
.warn-panel { background: var(--glass); border: 1px solid var(--edge); box-shadow: none; }
.warn-item { background: rgba(255, 238, 230, 0.75); border: 1px solid rgba(255, 255, 255, 0.8); color: var(--text); }
.warn-item.calm { background: rgba(255, 255, 255, 0.6); }
.order-row.attention { background: rgba(255, 238, 230, 0.75); }

/* feathered green card (also every .card.light highlight in the inner pages) */
.fx, .card.light, .card.glow { position: relative; isolation: isolate; color: #fff; overflow: hidden; border: 0 !important; background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important; text-shadow: 0 1px 14px rgba(10, 60, 30, 0.18); backdrop-filter: none !important; }
.fx::before, .card.light::before, .card.glow::before { content: ''; position: absolute; inset: 3px; z-index: -2; border-radius: inherit; background: var(--grad-fx); filter: blur(8px); transition: filter .6s var(--ease), transform .6s var(--ease); }
.fx::after, .card.light::after, .card.glow::after { content: ''; position: absolute; inset: 8px; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fx:hover::before, .card.light:hover::before { filter: blur(11px); transform: scale(1.01); }
.card.light .muted, .card.light .tail, .card.light .stat-sub, .card.light .stat-label, .card.light small, .fx .muted, .fx .tail { color: rgba(255, 255, 255, 0.72) !important; }
.card.light .up, .card.light .down { color: #fff; }
.card.light .btn, .fx .btn { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.card.light .btn.primary, .fx .btn.primary { background: #fff; color: var(--g-700); }
.card.light .corner-link { background: rgba(255, 255, 255, 0.22); color: #fff; }
.card.light .ac-art { color: rgba(255, 255, 255, 0.7); }
.card.light .ac-tag { background: rgba(255, 255, 255, 0.92); color: var(--ink); text-shadow: none; }
.card.light .outline-pill { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); }
.card.light .ticks { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 1px, transparent 1px 4px) left center / var(--f) 9px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 4px) center / 100% 9px no-repeat; }

/* black card with a green glow (Lumin) */
.ink, .hero, .mk-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-2) !important; color: var(--on-dark); border: 0; border-radius: var(--radius-lg); }
.ink::before, .hero::before, .mk-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--glow); }
.ink .muted, .ink .tail, .hero .hero-label, .hero .muted, .hero small, .mk-hero p { color: var(--on-dark-3) !important; }
.hero .hero-value, .ink b { color: #fff; }
.hero .up, .ink .up { color: var(--g-300); }
.hero .btn, .ink .btn, .mk-hero .btn { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--line-dark); }
.hero .btn.primary, .ink .btn.primary, .mk-hero .btn.primary, .hero .btn.lime, .mk-hero .btn.lime { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn.primary svg { color: var(--ink); }

/* ---------------------------------------------------------------- controls */
.btn { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--edge); color: var(--ink); box-shadow: none; font-weight: 400; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn:hover { background: #fff; border-color: #fff; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
.btn.primary:hover { background: #2a302d; border-color: #2a302d; box-shadow: none; }
.btn.primary svg { color: #fff; }
.btn.lime, .btn.green { position: relative; overflow: hidden; background: var(--grad); background-size: 140% 100%; color: #fff; border: 0; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15); transition: background-position .5s var(--ease), transform .2s; }
.btn.lime:hover, .btn.green:hover { background: var(--grad); background-size: 140% 100%; background-position: 100% 0; }
.btn.lime svg, .btn.green svg { color: #fff; }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); backdrop-filter: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.btn.danger { background: rgba(253, 232, 232, 0.85); color: #b4262b; border-color: rgba(226, 72, 77, 0.25); }
.btn.sell { background: rgba(255, 238, 230, 0.85); color: var(--down); border-color: rgba(208, 82, 43, 0.25); }
.link { color: var(--ink); text-decoration-color: rgba(17, 20, 19, 0.3); }
.input, .select, .textarea { background: rgba(255, 255, 255, 0.75); border-color: var(--edge); color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--g-400); background: #fff; box-shadow: 0 0 0 4px rgba(61, 187, 114, 0.12); }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.select option { background: #fff; color: var(--ink); }
.seg, .tabs, .chips { background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.seg button, .tabs button { color: var(--text-2); }
.seg button:hover, .tabs button:hover { color: var(--ink); }
.seg button.active, .tabs button.active { background: var(--ink); color: #fff; box-shadow: none; }
.tabs .count { background: rgba(17, 20, 19, 0.07); color: var(--text-2); }
.tabs button.active .count { background: var(--g-400); color: #fff; }
.chip { background: rgba(255, 255, 255, 0.7); color: var(--text-2); border: 1px solid var(--edge); }
.chip b { color: var(--ink); }
.chip.active { background: var(--ink); color: rgba(255, 255, 255, 0.75); border-color: var(--ink); }
.chip.active b { color: var(--g-300); }
.badge { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line-2); color: var(--text-2); }
.badge.green { color: var(--g-700); background: var(--g-100); border-color: rgba(27, 154, 85, 0.3); }
.badge.red { color: #b4262b; background: rgba(253, 232, 232, 0.9); border-color: rgba(226, 72, 77, 0.3); }
.badge.amber { color: var(--warn); background: var(--warn-soft); border-color: rgba(184, 105, 26, 0.3); }
.badge.blue { color: var(--info); background: var(--info-soft); border-color: rgba(61, 99, 176, 0.3); }
.badge.accent { color: var(--ink); background: rgba(17, 20, 19, 0.06); border-color: var(--line-2); }
.outline-pill { color: var(--text-2); border-color: var(--line-3); }
.outline-pill.green { color: var(--g-700); border-color: rgba(27, 154, 85, 0.45); background: var(--g-100); }
.outline-pill.amber { color: var(--warn); border-color: rgba(184, 105, 26, 0.4); }
.cup, .score { color: #7a6215; }
.chg.up.pill { background: var(--g-100); color: var(--g-700); }
.chg.down.pill { background: var(--down-soft); }
.status-dot i { background: var(--g-400); } .status-dot i svg { color: #fff; }
.status-dot:not(.bad) i::after { border-color: rgba(61, 187, 114, 0.6); }
.toggle input:checked + span { background: var(--g-500); }
.dropzone { border-color: var(--line-3); background: rgba(255, 255, 255, 0.5); }
.progress, .range-bar { background: rgba(17, 20, 19, 0.08); }
.progress > i, .range-bar i { background: var(--grad); }
.table th { color: var(--text-3); border-bottom-color: var(--line); }
.table td { border-bottom-color: var(--line); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.55); }
a.list-item:hover { background: rgba(255, 255, 255, 0.55); }
.list-item .icon-circle { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.summary, .callout, .pay-opt, .bank-box, .copy-field, .pre, .msg { background: rgba(255, 255, 255, 0.55); border-color: var(--edge); color: var(--text); }
.pay-opt.active { background: var(--g-100); border-color: rgba(27, 154, 85, 0.45); }
.msg.me { background: var(--ink); color: #fff; }
.step.done .bubble, .ship-steps .ss.done i, .order-steps .os.done i { background: var(--g-500); border-color: var(--g-500); color: #fff; }
.timeline i.on { background: var(--g-400); }
.ticks { background: repeating-linear-gradient(90deg, rgba(17, 20, 19, 0.55) 0 1px, transparent 1px 4px) left center / var(--f) 9px no-repeat, repeating-linear-gradient(90deg, rgba(17, 20, 19, 0.14) 0 1px, transparent 1px 4px) center / 100% 9px no-repeat; }
.ticks .mark { background: #fff; border-color: var(--line-2); }
.overlay { background: rgba(225, 230, 227, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal, .drawer, .menu { background: rgba(250, 252, 251, 0.88); border: 1px solid var(--edge); box-shadow: none; color: var(--text); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); }
.modal-foot { border-top-color: var(--line); }
.menu a, .menu button { color: var(--text-2); }
.menu a:hover, .menu button:hover, .menu a.active { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.menu .menu-todo { background: var(--g-100); border-color: rgba(27, 154, 85, 0.3); }
.menu-todo .mt-ic { background: var(--grad-fx); color: #fff; }
.notif-panel .np-head { background: rgba(250, 252, 251, 0.95); }
.notif { background: rgba(255, 255, 255, 0.6); }
.notif.unread { background: var(--g-100); }
.toast { background: var(--ink); color: #fff; border: 0; box-shadow: none; }
.toast.ok svg { color: var(--g-300); }
.toast.err { background: #b4262b; }
.asset-card .ac-art { color: rgba(17, 20, 19, 0.42); }
.asset-card .ac-tag { background: #fff; border-color: var(--line-2); color: var(--ink); backdrop-filter: none; }
.asset-card .ac-tag i { background: var(--ink); color: #fff; border: 0; }
.asset-card .ac-foot { border-top-color: var(--line); }
.asset-card .ac-art.photo { overflow: hidden; border-radius: 14px; }
.asset-card .ac-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.segchart .c-grid { stroke: rgba(17, 20, 19, 0.07); } .segchart .c-faint { stroke: rgba(17, 20, 19, 0.16); } .segchart .c-avg { stroke: rgba(17, 20, 19, 0.22); }
.segchart .c-line { stroke: var(--g-600); } .segchart text.c-ink { fill: var(--ink); } .segchart circle.c-ink { fill: var(--g-500); } .segchart .c-ink-s { stroke: var(--ink); }
.segchart text.c-down, .segchart circle.c-down { fill: var(--down); } .segchart .c-down-s { stroke: var(--down); }
.segchart .c-mute { fill: var(--text-3); } .segchart .c-dim { fill: var(--text-4); }
.ink .segchart .c-line { stroke: var(--g-300); } .ink .segchart .c-avg { stroke: rgba(255, 255, 255, 0.2); }
.auth-visual { background: var(--ink-2) !important; color: var(--on-dark); isolation: isolate; }
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--glow); }
.auth-visual h1 { color: #fff; } .auth-visual h1 em { color: var(--g-300); font-family: var(--serif); font-style: italic; font-weight: 400; }
.auth-visual p, .auth-visual small, .auth-visual .muted { color: var(--on-dark-2); }
.auth-visual .tag { background: rgba(255, 255, 255, 0.06); border-color: var(--line-dark); color: var(--on-dark-2); }
.auth-visual .mini-ticker, .auth-visual .card { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid var(--line-dark); color: var(--on-dark); }
.auth-visual .up { color: var(--g-300); } .auth-visual .glow-dot { background: var(--g-300); box-shadow: none; }
.auth-visual .brand-mark span, .auth-visual a { color: #fff; }

/* ================================================================ shared micro components */
.ibtns { display: inline-flex; gap: 6px; }
.ib { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink); background: rgba(255, 255, 255, 0.82); border: 0; cursor: pointer;
  transition: transform .45s var(--ease), background .25s; }
.ib svg { width: 14px; height: 14px; }
.ib:hover { background: #fff; transform: rotate(45deg); }
.ib.flat:hover { transform: scale(1.08); }
.ib.dark { background: rgba(255, 255, 255, 0.09); color: #fff; }
.ib.dark:hover { background: rgba(255, 255, 255, 0.18); }
.ib.go { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.fx .ib, .card.light .ib { background: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(8px); }
.bc { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.bc i { flex: 1; min-width: 1.5px; max-width: 4px; border-radius: 2px; background: rgba(17, 20, 19, 0.2); transform-origin: bottom; animation: bcup .9s var(--ease) both; animation-delay: calc(var(--k, 0) * 14ms); }
.bc i.on { background: var(--g-500); } .bc i.hi { background: var(--ink); }
.ink .bc i { background: rgba(255, 255, 255, 0.18); } .ink .bc i.on { background: var(--g-300); } .ink .bc i.hi { background: #fff; }
.fx .bc i { background: rgba(255, 255, 255, 0.4); } .fx .bc i.on { background: #fff; }
@keyframes bcup { from { transform: scaleY(0.05); opacity: 0; } }
.sg { display: flex; gap: 6px; align-items: stretch; }
.sg > div { position: relative; flex: var(--w) 1 0; min-width: 44px; height: 46px; border-radius: 999px; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; color: var(--ink);
  background: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; transform-origin: left; animation: sggrow 1s var(--ease) both; animation-delay: calc(var(--k, 0) * 90ms); }
.sg > div:first-child { background: var(--grad); color: #fff; }
.sg > div.hatch { background: var(--hatch), rgba(255, 255, 255, 0.35); color: var(--text-3); }
.sg-l { display: flex; gap: 6px; margin-bottom: 8px; font-size: 11.5px; color: var(--text-3); }
.sg-l span { flex: var(--w) 1 0; min-width: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.ink .sg > div { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ink .sg > div:first-child { background: var(--grad); }
.ink .sg > div.hatch { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 7px); color: var(--on-dark-3); }
.ink .sg-l { color: var(--on-dark-3); }
@keyframes sggrow { from { transform: scaleX(0.2); opacity: 0; } }
.dial { position: relative; width: 100%; max-width: 260px; margin: 0 auto; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial .tk { stroke: rgba(17, 20, 19, 0.16); stroke-width: 1.4; stroke-linecap: round; }
.dial .tk.on { stroke: var(--ink); }
.dial .tk.lead { stroke: var(--g-500); stroke-width: 2.4; }
.dial .arc { fill: none; stroke: rgba(17, 20, 19, 0.14); stroke-width: 1; stroke-dasharray: 2 4; }
.dial .knob { fill: var(--g-500); }
.dial .knob-r { fill: none; stroke: rgba(27, 154, 85, 0.45); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: knob 2.4s ease-out infinite; }
@keyframes knob { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.dial-c { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.dial-c b { display: block; font-size: 40px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.dial-c span { font-size: 12px; color: var(--text-3); }
.dial-s { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-4); margin-top: 6px; }
.rings { position: absolute; right: 18%; top: 46%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.rings i { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); animation: ringp 3.6s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: 1.2s; } .rings i:nth-child(3) { animation-delay: 2.4s; }
.rings i.core { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 0; background: #fff; opacity: .95; animation: none; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.28); }
@keyframes ringp { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.dotfield { position: absolute; pointer-events: none; background: radial-gradient(circle, currentColor 1.3px, transparent 1.7px) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); opacity: .35; }
.glass-pill { height: 32px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.38); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s; }
.glass-pill:hover { background: rgba(255, 255, 255, 0.32); }
.glass-pill svg { width: 13px; height: 13px; }

/* ================================================================ DASHBOARD (v3) */
.dh { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 6px 0 22px; }
.dh h1 { font-size: 46px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.dh h1 em.s { color: var(--g-600); }
.dh p { font-size: 13.5px; color: var(--text-3); margin-top: 8px; }
.hs { display: flex; gap: 28px; flex-wrap: wrap; }
.hs > div { display: flex; align-items: flex-end; gap: 12px; }
.hs b { font-size: 30px; font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.hs b .tail { font-size: 18px; }
.hs .bc { height: 26px; width: 54px; gap: 2px; }
.hs small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.dg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c8 { grid-column: span 8; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c12 { grid-column: span 12; }
.dc { padding: 22px 24px; border-radius: 30px; min-width: 0; display: flex; flex-direction: column; }
.dc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-t { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; }
.dc-t .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); color: var(--ink); flex: none; }
.dc-t .ic svg { width: 15px; height: 15px; }
.ink .dc-t .ic { background: rgba(255, 255, 255, 0.09); color: #fff; }
.fx .dc-t .ic { background: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(8px); }
.dc-big { font-size: 54px; font-weight: 300; letter-spacing: -0.045em; line-height: 1; margin-top: 22px; }
.dc-big .tail { color: inherit; opacity: .4; }
.ink .dc-big .tail, .fx .dc-big .tail { opacity: .5; }
.dc-sub { font-size: 12.5px; color: var(--text-3); margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ink .dc-sub { color: var(--on-dark-3); } .fx .dc-sub { color: rgba(255, 255, 255, 0.78); }
.delta { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; background: var(--g-100); color: var(--g-700); }
.delta.dn { background: var(--down-soft); color: var(--down); }
.ink .delta { background: rgba(126, 214, 160, 0.16); color: var(--g-300); }
.ink .delta.dn { background: rgba(208, 82, 43, 0.2); color: #ff9c7a; }
.dfoot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ink .dfoot { border-top-color: var(--line-dark); }
.dfoot > div { padding: 0 14px; border-left: 1px solid var(--line); }
.ink .dfoot > div { border-left-color: var(--line-dark); }
.dfoot > div:first-child { padding-left: 0; border-left: 0; }
.dfoot b { display: block; font-size: 22px; font-weight: 300; letter-spacing: -0.03em; }
.dfoot span { font-size: 11.5px; color: var(--text-3); }
.ink .dfoot span { color: var(--on-dark-3); }
.fx-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.fx-acts a, .fx-acts button { flex: 1; justify-content: center; }
.rows { margin-top: 14px; }
.row-i { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 18px; transition: background .2s; color: inherit; }
.row-i:hover { background: rgba(255, 255, 255, 0.65); }
.row-i + .row-i { border-top: 1px solid var(--line); }
.fl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--grad-fx); overflow: hidden; flex: none; }
.fl.dk { background: var(--ink); }
.fl img { width: 100%; height: 100%; object-fit: cover; }
.row-i .nm { min-width: 0; }
.row-i .nm b { display: block; font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-i .nm small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.row-i .bc { height: 26px; }
.row-i .px { text-align: right; }
.row-i .px b { display: block; font-weight: 400; font-size: 14.5px; }
.row-i .px small { font-size: 11.5px; color: var(--text-3); }
.mring { --p: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; position: relative; background: conic-gradient(var(--g-500) calc(var(--p) * 1%), rgba(17, 20, 19, 0.08) 0); }
.mring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface-solid); }
.mring span { position: relative; }
.todo { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; }
.todo:first-child { border-top: 0; }
.todo .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; background: rgba(255, 255, 255, 0.85); }
.todo .n.hot { background: var(--grad-fx); color: #fff; }
.todo .n svg { width: 14px; height: 14px; }
.todo .grow { flex: 1; min-width: 0; }
.todo .t-t { font-size: 13.5px; }
.todo .t-s { font-size: 12px; color: var(--text-3); margin-top: 1px; }
a.todo:hover .t-t { color: var(--g-600); }
.dc-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--text-3); }
.dc-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--g-500); vertical-align: 0; }
.dc-legend span.k::before { background: var(--ink); } .dc-legend span.m::before { background: rgba(17, 20, 19, 0.2); }
.bc.big { height: 120px; gap: 4px; margin-top: 18px; }
.bc.big i { max-width: 6px; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-4); margin-top: 8px; }
@media (max-width: 1180px) { .c7, .c5, .c8, .c4, .c6 { grid-column: span 12; } .row-i { grid-template-columns: 40px minmax(0, 1fr) auto auto; } .row-i .bc { display: none; } }

/* ---------------------------------------------------------------- coffee cards (market, buy desk, landing) */
.coffee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.coffee-card { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; color: var(--text);
  background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .45s var(--ease), background .25s; will-change: transform; }
.coffee-card:hover { background: var(--glass-2); }
.coffee-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx) var(--my), rgba(61, 187, 114, 0.16), transparent 45%); }
.coffee-card:hover::before { opacity: 1; }
.coffee-card .cc-art { position: relative; height: 156px; display: grid; place-items: center; overflow: hidden; color: rgba(17, 20, 19, 0.38); margin: 8px 8px 0; border-radius: 22px; background: rgba(255, 255, 255, 0.55); }
.coffee-card .cc-art svg { width: 190px; height: 108px; transition: transform .8s var(--ease); }
.coffee-card:hover .cc-art svg { transform: translateY(-4px) scale(1.04); color: rgba(17, 20, 19, 0.6); }
.coffee-card .cc-art .ac-tag { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 3px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-family: var(--mono); white-space: nowrap; }
.coffee-card .cc-art .ac-tag i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-family: var(--font); background: var(--grad-fx); color: #fff; }
.coffee-card .cc-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.coffee-card:hover .cc-art.photo img { transform: scale(1.05); }
.coffee-card .cc-flag { position: absolute; left: 18px; top: 18px; z-index: 3; display: inline-flex; gap: 6px; }
.coffee-card .cc-flag span { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink); background: rgba(255, 255, 255, 0.85); }
.coffee-card .cc-flag span.brand { background: var(--grad); color: #fff; }
.coffee-card .cc-flag svg { width: 12px; height: 12px; }
.coffee-card .cc-body { position: relative; z-index: 3; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.coffee-card .cc-title { font-size: 17px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.coffee-card .cc-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.coffee-card .cc-notes { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.coffee-card .cc-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.coffee-card .cc-rate { font-size: 32px; font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.coffee-card .cc-rate small { font-size: 12px; color: var(--text-3); font-weight: 300; letter-spacing: 0; }
.coffee-card .cc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.coffee-card .cc-facts span { display: block; font-size: 11px; color: var(--text-3); }
.coffee-card .cc-facts b { display: block; font-size: 13px; font-weight: 400; margin-top: 1px; }
.coffee-card .cc-cta { display: flex; gap: 8px; margin-top: auto; }
.coffee-card .cc-cta .btn { flex: 1; }
.coffee-card.mine { border-style: dashed; border-color: var(--line-3); }
.deal { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.deal.good { color: var(--g-700); background: var(--g-100); } .deal.high { color: var(--warn); background: var(--warn-soft); } .deal.flat { color: var(--text-3); background: rgba(255, 255, 255, 0.7); }

.mk-hero { padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 24px; align-items: center; }
.mk-hero h1 { font-size: 42px; font-weight: 300; letter-spacing: -0.035em; line-height: 1; color: #fff; }
.mk-hero p { margin-top: 10px; }
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-stat { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); }
.mk-stat > span { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--on-dark-3); }
.mk-stat > span svg { width: 13px; height: 13px; color: var(--g-300); }
.mk-stat b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.03em; margin-top: 8px; color: #fff; }
.mk-stat b .tail { color: var(--on-dark-3); }
.mk-stat small { font-size: 11.5px; color: var(--on-dark-3); }
@media (max-width: 1100px) { .mk-hero { grid-template-columns: 1fr; } .mk-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- motion */
.fx-line { position: fixed; z-index: 9999; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; transition: opacity .45s ease; }
.fx-line i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.fx-line.out { opacity: 0; }
@keyframes hrise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: hrise .8s var(--ease) both; animation-delay: var(--rd, 0s); }
.rise.wait, .wait .bc i, .wait .sg > div, .wait .dial .knob-r { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  body::after, .bc i, .sg > div, .rings i, .dial .knob-r { animation: none; }
  .rise { animation: none; }
}

.bc.mini { height: 26px; gap: 2px; }
.bc.mini i { max-width: 3px; }
.count-badge { margin-left: 4px; }

/* ---------------------------------------------------------------- v3.1 fixes and header capsule */
/* logos keep their own proportions (the mark is taller than wide) */
.brand-mark img, .l-brand img { width: auto !important; height: 34px !important; object-fit: contain; }
/* feathered green behind dense content (lot page offers, highlighted stats): a deeper, saturated feather
   so white text stays readable everywhere, edges included */
.card.light, .card.glow { --fxg: radial-gradient(farthest-corner at 45% 55%, #063f24 0%, #0b5c33 36%, #137a44 66%, #1d8f50 88%, #2a9e5d 100%); }
.card.light::before, .card.glow::before { background: var(--fxg); filter: blur(5px); }
.card.glow { color: #fff; }
.card.light .table td, .card.light .table th, .card.light .list-item, .card.light hr,
.card.glow .table td, .card.glow .table th, .card.glow .list-item, .card.glow hr { border-color: rgba(255, 255, 255, 0.16) !important; color: #fff; }
.card.light .card-head p, .card.light p, .card.light .small, .card.light .tiny, .card.light .dim, .card.light .muted,
.card.glow .card-head p, .card.glow p, .card.glow .small, .card.glow .tiny, .card.glow .dim, .card.glow .muted, .card.glow small { color: rgba(255, 255, 255, 0.86) !important; }
.card.light .card-head h2, .card.glow .card-head h2, .card.glow .num { color: #fff; }
.card.light .card-body > *, .card.light .card-foot, .card.glow .card-body > *, .card.glow .card-foot { color: #fff; }
.card.light .card-foot, .card.glow .card-foot { border-top-color: rgba(255, 255, 255, 0.16); }
.card.light .badge, .card.glow .badge { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.card.light .list-item .icon-circle, .card.light .icon-circle, .card.glow .icon-circle { background: rgba(255, 255, 255, 0.92); color: var(--g-700); }
.card.glow .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }

/* dashboard header: one floating glass capsule (logo | nav | tools) */
.topnav, body.immersive .topnav { position: sticky; top: 12px; z-index: 40; height: 64px; margin: 12px 20px 0; padding: 0 10px 0 20px; gap: 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.topnav.scrolled { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.pills, body.immersive .pills { margin: 0 auto; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pill, body.immersive .pill { height: 40px; gap: 7px; }
.pill svg { width: 15px; height: 15px; display: none; }
.pill.active svg { display: block; color: var(--g-300); }
.topnav-right { margin-left: 0; }
.search-pill, body.immersive .search-pill, .icon-btn, body.immersive .icon-btn { background: rgba(255, 255, 255, 0.75); }
.content { padding-top: 22px; }

/* ---- v3.3: trading background (soft, blurred) + compact dashboard header ---- */
#trade-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; will-change: transform; }

/* one slim glass bar: logo + name | nav track (sliding hover highlight) | clock, search, tools */
.topnav, body.immersive .topnav { top: 10px; height: 54px; margin: 10px 20px 0; padding: 0 7px 0 18px; gap: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 rgba(17, 20, 19, 0.04), 0 8px 24px -14px rgba(17, 20, 19, 0.18); }
.topnav.scrolled { background: rgba(255, 255, 255, 0.82); }
.brand-mark { gap: 9px; }
.brand-mark img { width: auto !important; height: 26px !important; padding: 0; background: none; filter: invert(1) brightness(0.1) !important; }
.brand-mark span { font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.brand-mark small { display: none !important; }
.pills, body.immersive .pills { position: relative; margin: 0 auto; gap: 0; padding: 3px; border-radius: 999px; background: rgba(17, 20, 19, 0.04); border: 0; box-shadow: none; }
.pill, body.immersive .pill { position: relative; z-index: 1; height: 32px; padding: 0 13px; gap: 6px; font-size: 13px; }
.pill:hover { background: none; color: var(--ink); }
.pill svg { width: 14px; height: 14px; }
.pill-ind { position: absolute; left: 0; top: 3px; height: 32px; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(17, 20, 19, 0.08); opacity: 0; transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s; }
.topnav-right { gap: 6px; }
.mkt-clock { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; white-space: nowrap; border-right: 1px solid var(--line); margin-right: 2px; }
.mkt-clock b { font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 12.5px; color: var(--ink); }
.mkt-clock small { font-size: 11px; color: var(--text-3); }
.mkt-clock .live { width: 6px; height: 6px; }
.search-pill, body.immersive .search-pill { width: 190px; height: 38px; padding: 0 38px 0 15px; font-size: 13px; background: rgba(17, 20, 19, 0.04); border: 0; }
.search-pill:focus-within { width: 240px; background: #fff; }
.icon-btn, .avatar, body.immersive .icon-btn, body.immersive .avatar { width: 38px; height: 38px; }
.icon-btn, body.immersive .icon-btn { background: transparent; border-color: transparent; }
.icon-btn:hover { background: rgba(17, 20, 19, 0.05); }
.icon-btn svg { width: 18px; height: 18px; }
.dot-badge { transform: scale(.9); }
@media (max-width: 1400px) { .mkt-clock small { display: none; } .search-pill, body.immersive .search-pill { width: 150px; } }
@media (max-width: 1280px) { .mkt-clock { display: none; } }
/* no whole-page scale-in on load: it re-blurred every glass card and made fixed headers jump */
html.fx-revealed #app { animation: none; }

/* ---- v3.4: phone layout for the dashboard header and stat rows ---- */
@media (max-width: 760px) {
  .topnav, body.immersive .topnav { flex-wrap: wrap; height: auto; top: 8px; margin: 8px 10px 0; padding: 7px; row-gap: 6px; border-radius: 26px; }
  .brand-mark { order: 1; padding-left: 8px; }
  .topnav-right { order: 2; margin-left: auto; }
  .pills, body.immersive .pills { order: 3; flex: 1 1 100%; margin: 0; overflow-x: auto; scroll-snap-type: x proximity; }
  .pill { flex: none; scroll-snap-align: center; }
  .pill-ind, .mkt-clock, .search-pill { display: none !important; }
}
@media (max-width: 640px) {
  .dfoot { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .dfoot > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .dfoot b { font-size: 20px; }
}

/* dashboards use more of large screens, stay compact on small laptops */
.content { max-width: 1680px; padding-left: clamp(16px, 2.2vw, 40px); padding-right: clamp(16px, 2.2vw, 40px); }

/* ================================================================ v3.7 header: one compact solid card
   (dark in light mode, white in dark mode), mild 14px corners. Links left, logo centred, tools right.
   On pointer devices it starts compact (dashboard pills show icons, active page labelled) and widens
   when hovered or focused, the labels sliding out. */
:root { --hd-bg: rgba(17, 20, 19, 0.9); --hd-fg: #fff; --hd-2: rgba(255, 255, 255, 0.62); --hd-hover: rgba(255, 255, 255, 0.09); --hd-line: rgba(255, 255, 255, 0.12);
  --hd-act-bg: #fff; --hd-act-fg: #111413; --hd-logo: none; }
[data-theme="dark"] { --hd-bg: rgba(238, 240, 243, 0.95); --hd-fg: #111413; --hd-2: rgba(17, 20, 19, 0.6); --hd-hover: rgba(17, 20, 19, 0.06); --hd-line: rgba(17, 20, 19, 0.12);
  --hd-act-bg: #111413; --hd-act-fg: #fff; --hd-logo: invert(1) brightness(0.1); }

.topnav, body.immersive .topnav, .l-nav, .l-nav.light, .l-nav.light.scrolled {
  height: 54px; border-radius: 14px; background: var(--hd-bg); color: var(--hd-fg); border: 0;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.45); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.topnav.scrolled { background: var(--hd-bg); }
.topnav .brand-mark img, .l-nav .l-brand img, .l-nav.light .l-brand img { filter: var(--hd-logo) !important; height: 28px !important; }
.topnav .brand-mark span, .l-nav .l-brand, .l-nav.light .l-brand { color: var(--hd-fg); }
.topnav .brand-mark span { font-size: 12.5px; letter-spacing: .12em; }

/* dashboard */
.pills, body.immersive .pills { background: none; box-shadow: none; padding: 0; gap: 2px; }
.pill-ind { display: none !important; }
.topnav .pill, body.immersive .topnav .pill { height: 34px; padding: 0 11px; gap: 0; border-radius: 9px; color: var(--hd-2); background: none; font-size: 13px; }
.topnav .pill svg { display: block !important; width: 15px; height: 15px; color: currentColor; flex: none; }
.topnav .pill .pl { display: inline-flex; align-items: center; gap: 4px; margin-left: 7px; white-space: nowrap; overflow: hidden; }
.topnav .pill .pl svg { width: 12px; height: 12px; }
.topnav .pill:hover { color: var(--hd-fg); background: var(--hd-hover); }
.topnav .pills .pill.active, body.immersive .topnav .pills .pill.active { color: var(--hd-act-fg); background: var(--hd-act-bg); }
.topnav .pills .pill.active > svg { color: var(--g-500); }
.topnav .mkt-clock { border-right-color: var(--hd-line); }
.topnav .mkt-clock b { color: var(--hd-fg); } .topnav .mkt-clock small { color: var(--hd-2); }
.topnav .search-pill, body.immersive .topnav .search-pill { background: var(--hd-hover); border: 0; }
.topnav .search-pill input { color: var(--hd-fg); } .topnav .search-pill input::placeholder { color: var(--hd-2); }
.topnav .search-pill svg { color: var(--hd-fg); }
.topnav .search-pill:focus-within { background: var(--hd-hover); box-shadow: inset 0 0 0 1px var(--hd-line); }
.topnav .icon-btn, body.immersive .topnav .icon-btn { width: 36px; height: 36px; border-radius: 9px; background: none; border: 0; color: var(--hd-fg); }
.topnav .icon-btn:hover { background: var(--hd-hover); }
.topnav .avatar { width: 36px; height: 36px; border-radius: 10px; border: 0; }
.topnav .dot-badge { box-shadow: 0 0 0 2px var(--hd-bg); }

/* landing */
.l-nav.light .l-links, .l-links { padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; margin: 0; gap: 2px; }
.l-nav .l-links a, .l-nav.light .l-links a { height: 34px; padding: 0 13px; border-radius: 9px; color: var(--hd-2); }
.l-nav .l-links a:hover, .l-nav.light .l-links a:hover { color: var(--hd-fg); background: var(--hd-hover); }
.l-nav .l-links a.active, .l-nav.light .l-links a.active { color: var(--hd-act-fg); background: var(--hd-act-bg); }
.l-nav .l-nav-right { align-items: center; gap: 6px; }
.l-nav .btn, .l-nav.light .btn { height: 36px; border-radius: 10px; padding: 0 15px; font-size: 13px; background: var(--hd-hover); border: 0; color: var(--hd-fg); backdrop-filter: none; }
.l-nav .btn:hover { background: var(--hd-line); }
.l-nav .btn.primary, .l-nav.light .btn.primary { background: var(--hd-act-bg); color: var(--hd-act-fg); }
.l-nav .btn.primary svg { color: var(--hd-act-fg); }
.l-nav .l-theme { width: 36px; height: 36px; border-radius: 9px; background: none; border: 0; color: var(--hd-fg); }
.l-nav .l-theme:hover { background: var(--hd-hover); }
.l-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; left: 0; right: 0; margin: 0 auto;
  width: min(1040px, 100% - 32px); padding: 0 8px 0 10px; }
.l-nav .l-left { justify-self: start; } .l-nav .l-brand { justify-self: center; } .l-nav .l-nav-right { justify-self: end; }
.landing .l-nav { transition: width .55s var(--ease), height .45s var(--ease), padding .45s var(--ease), opacity .8s, transform .8s; }
@media (hover: hover) and (min-width: 1081px) {
  .l-nav:hover, .l-nav:focus-within { width: min(1320px, 100% - 32px); height: 64px; padding: 0 12px 0 16px; }
  .l-nav .l-links a { transition: padding .45s var(--ease), color .2s, background .2s; }
  .l-nav:hover .l-links a, .l-nav:focus-within .l-links a { padding: 0 18px; }
}
@media (max-width: 1080px) { .l-nav { grid-template-columns: auto minmax(0, 1fr) auto; } .l-nav .l-brand { grid-column: 1; justify-self: start; padding-left: 6px; } .l-nav .l-nav-right { grid-column: 3; } }
@media (max-width: 640px) { .l-nav { width: calc(100% - 24px); } .l-nav .btn:not(.primary) { display: none; } }

@media (min-width: 761px) {
  .topnav, body.immersive .topnav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; top: 10px;
    margin: 10px auto 0; width: min(1480px, 100% - 40px); padding: 0 8px; }
  .topnav .pills { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
  .topnav .brand-mark { grid-column: 2; grid-row: 1; justify-self: center; }
  .topnav .topnav-right { grid-column: 3; grid-row: 1; margin: 0; }
}
/* compact until hovered (pointer devices only; touch keeps everything visible) */
@media (hover: hover) and (min-width: 761px) {
  .topnav, body.immersive .topnav { width: min(1000px, 100% - 40px); transition: width .55s var(--ease), height .45s var(--ease), padding .45s var(--ease); }
  .topnav .pill .pl { max-width: 0; margin-left: 0; opacity: 0; transition: max-width .5s var(--ease), margin .5s var(--ease), opacity .3s ease; }
  .topnav .pill.active .pl { max-width: 160px; margin-left: 7px; opacity: 1; }
  .topnav .mkt-clock { max-width: 0; padding: 0; margin: 0; border-right-width: 0; overflow: hidden; opacity: 0; transition: max-width .5s var(--ease), opacity .3s, padding .5s var(--ease); }
  .topnav .search-pill, body.immersive .topnav .search-pill { width: 36px; padding: 0; transition: width .5s var(--ease), padding .5s var(--ease); }
  .topnav .search-pill input { opacity: 0; transition: opacity .3s; }
  .topnav .search-pill svg { right: 10px; }
  .topnav:hover, .topnav:focus-within, body.immersive .topnav:hover { width: min(1480px, 100% - 40px); height: 62px; padding: 0 12px; }
  .topnav:hover .pill .pl, .topnav:focus-within .pill .pl { max-width: 160px; margin-left: 7px; opacity: 1; }
  .topnav:hover .mkt-clock, .topnav:focus-within .mkt-clock { max-width: 120px; padding: 0 12px; margin-right: 2px; border-right-width: 1px; opacity: 1; }
  .topnav:hover .search-pill, .topnav:focus-within .search-pill { width: 200px; padding: 0 38px 0 15px; }
  .topnav:hover .search-pill input, .topnav:focus-within .search-pill input { opacity: 1; }
}
@media (hover: hover) and (min-width: 761px) and (max-width: 1400px) { .topnav:hover .mkt-clock, .topnav:focus-within .mkt-clock { max-width: 0; padding: 0; border-right-width: 0; opacity: 0; } }
@media (max-width: 760px) { .topnav, body.immersive .topnav { height: auto; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .topnav, .l-nav, .topnav .pill .pl, .topnav .search-pill { transition: none !important; } }
/* v3.7 fixes: no backdrop blur on buttons inside the bar (it darkened them into squares);
   the menu column can shrink and scroll instead of running under the logo; search and clock stay
   compact on hover (search opens when focused, the clock shows on wide screens) */
.topnav .icon-btn, .topnav .avatar, .topnav .search-pill, .l-nav .l-theme, .l-nav .btn { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none; }
@media (min-width: 761px) {
  .topnav, body.immersive .topnav { grid-template-columns: minmax(0, max-content) 1fr auto; }
  .topnav .pills { overflow-x: auto; scrollbar-width: none; }
}
@media (hover: hover) and (min-width: 761px) {
  .topnav:hover .search-pill, body.immersive .topnav:hover .search-pill { width: 36px; padding: 0; }
  .topnav:hover .search-pill input { opacity: 0; }
  .topnav .search-pill:focus-within, .topnav:hover .search-pill:focus-within { width: 220px; padding: 0 38px 0 15px; }
  .topnav .search-pill:focus-within input { opacity: 1; }
  .topnav:hover .mkt-clock { max-width: 0; padding: 0; border-right-width: 0; opacity: 0; }
}
@media (hover: hover) and (min-width: 1600px) {
  .topnav:hover .mkt-clock, .topnav:focus-within .mkt-clock { max-width: 120px; padding: 0 12px; margin-right: 2px; border-right-width: 1px; opacity: 1; }
}

/* v3.8 dashboard header: no stroke when scrolled, logo alone on the left (no name), menu centred,
   softer selection pill */
.topnav, .topnav.scrolled, body.immersive .topnav, body.immersive .topnav.scrolled { border: 0 !important; box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.45); }
.topnav .brand-mark > div { display: none !important; }
.topnav .brand-mark { padding: 0 6px; }
.topnav .brand-mark img { height: 30px !important; }
.topnav .pill, body.immersive .topnav .pill { border-radius: 999px; }
@media (min-width: 761px) {
  .topnav, body.immersive .topnav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .topnav .brand-mark { grid-column: 1; justify-self: start; }
  .topnav .pills { grid-column: 2; justify-self: center; max-width: 100%; }
  .topnav .topnav-right { grid-column: 3; }
}

/* v3.9: header selection is only slightly rounded; landing header fits six links in page order */
.topnav .pill, body.immersive .topnav .pill, .l-nav .l-links a, .l-nav.light .l-links a { border-radius: 8px; }
.l-nav { width: min(1180px, 100% - 32px); }
.l-nav .l-links a, .l-nav.light .l-links a { padding: 0 11px; }
@media (hover: hover) and (min-width: 1081px) {
  .l-nav:hover, .l-nav:focus-within { width: min(1400px, 100% - 32px); }
  .l-nav:hover .l-links a, .l-nav:focus-within .l-links a { padding: 0 16px; }
}
@media (min-width: 1081px) and (max-width: 1240px) { .l-nav .btn:not(.primary) { display: none; } }
/* the menu strip clips its contents (it scrolls); a rounded strip was rounding the first pill's left corners */
.topnav .pills, body.immersive .topnav .pills { border-radius: 0; }

/* ================================================================ v4.1 sign-in pages */
.au2 { grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr); min-height: 100vh; }
.au2-vis { margin: 12px 0 12px 12px; height: calc(100vh - 24px); position: sticky; top: 12px; border: 0 !important; border-radius: 28px; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; overflow: hidden; }
.au2-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.au2-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.au2-brand img { height: 30px; width: auto; }
.au2-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border-radius: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); transition: background .2s, color .2s; }
.au2-back:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.au2-back svg { width: 14px; height: 14px; }
.au2-back.dark { color: var(--text-2); background: var(--glass); border: 1px solid var(--edge); }
.au2-back.dark:hover { color: var(--text); }
.au2-stage { position: relative; flex: 1; min-height: 0; margin: 10px 0; display: grid; place-items: center; }
.au2-stage canvas { width: min(100%, 62vh); aspect-ratio: 1; display: block; }
.au2-card { position: absolute; z-index: 2; padding: 14px 16px; border-radius: 18px; background: rgba(28, 32, 36, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7); animation: au2float 7s ease-in-out infinite; }
@keyframes au2float { 50% { transform: translate3d(0, -8px, 0); } }
.au2-offers { right: 0; top: 8%; width: min(270px, 46%); }
.au2-ch { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.au2-ch .live { width: 6px; height: 6px; }
.au2-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.au2-row:first-child { border-top: 0; }
.au2-cc { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; background: var(--grad-fx); color: #fff; }
.au2-nm { min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au2-nm small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }
.au2-row b { font-weight: 400; font-size: 13px; }
.au2-custody { left: 0; bottom: 12%; display: flex; align-items: center; gap: 12px; animation-delay: -3.5s; }
.au2-custody > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-fx); }
.au2-custody > span svg { width: 17px; height: 17px; }
.au2-custody small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.au2-custody b { font-size: 22px; font-weight: 300; letter-spacing: -0.02em; }
.au2-vis .av-content { margin-top: 0; }
.au2-vis h1 { font-size: clamp(32px, 3.2vw, 48px); max-width: 560px; }
.au2-stats { display: flex; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.au2-stats > div { padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.au2-stats > div:first-child { padding-left: 0; border-left: 0; }
.au2-stats b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; color: #fff; }
.au2-stats span { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
/* form side */
.au2-side { position: relative; justify-content: space-between; padding: 24px clamp(24px, 4vw, 56px); }
.au2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.au2-head .auth-theme { position: static; }
.au2-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); }
.au2-switch a { height: 34px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 13px; color: var(--text-2); transition: background .2s, color .2s; }
.au2-switch a:hover { color: var(--text); }
.au2-switch a.on { background: var(--ink); color: #fff; }
.au2-side .auth-box { max-width: 420px; padding: 24px 0; }
.au2-side .auth-box h2 { font-size: clamp(32px, 2.8vw, 42px); letter-spacing: -0.035em; }
.au2-side .auth-box h2 em.s { color: var(--g-600); }
.au2-in { position: relative; }
.au2-in .au2-ii { position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--text-3); pointer-events: none; z-index: 1; }
.au2-in .input { padding-left: 42px; height: 48px; border-radius: 14px; }
.au2-in:focus-within .au2-ii { color: var(--g-500); }
.au2-side .btn.primary.lg { height: 50px; border-radius: 14px; gap: 8px; }
.au2-side .btn.primary.lg svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.au2-side .btn.primary.lg:hover svg { transform: translateX(3px); }
.au2-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 12px; color: var(--text-3); }
.au2-trust span { display: inline-flex; align-items: center; gap: 6px; }
.au2-trust svg { width: 14px; height: 14px; color: var(--g-500); }
[data-theme="dark"] .au2-switch a.on { background: #eef0f3; color: #111413; }
[data-theme="dark"] .au2-side .auth-box h2 em.s { color: var(--g-300); }
@media (max-width: 1100px) { .au2 { grid-template-columns: 1fr; } .au2-vis { display: none; } .au2-side { min-height: 100vh; } }
@media (max-height: 700px) { .au2-stage .au2-card { display: none; } }
@media (prefers-reduced-motion: reduce) { .au2-card { animation: none; } }
.au2-stage canvas { width: min(92%, 58vh); margin-right: 16%; }
.au2-offers { top: 4%; }
.au2-custody { bottom: 6%; }
.wh3-steps { margin-top: 18px; }

/* sign-in pages on phones/tablets: a top bar with the logo and a way back (the visual panel is hidden there) */
.au2-mtop { display: none; }
@media (max-width: 1100px) {
  .au2-mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -8px 18px; padding: 8px 8px 8px 14px; border-radius: 14px; background: #111413; }
  .au2-mbrand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
  .au2-mbrand img { height: 26px; width: auto; }
  .au2-mback { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 9px; border-radius: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.08); }
  .au2-mback svg { width: 14px; height: 14px; }
  .au2-side { justify-content: flex-start; }
  .au2-side .auth-box { margin-top: 6vh; }
  .au2-trust { margin-top: auto; padding-top: 30px; }
}

/* ================================================================ v4.7 phones: compact header + bottom tab bar */
.tabbar, .tsheet { display: none; }
@media (max-width: 760px) {
  /* header: one slim row, logo left, tools right; the page menu moves to the bottom bar */
  .topnav, body.immersive .topnav { display: flex !important; flex-wrap: nowrap; height: 56px; padding: 0 6px 0 14px; margin: 8px 10px 0; top: 8px; border-radius: 16px; }
  .topnav .pills { display: none !important; }
  .topnav .brand-mark { order: 0; padding: 0; }
  .topnav .brand-mark img { height: 28px !important; }
  .topnav .topnav-right { order: 1; margin-left: auto; gap: 2px; }
  .topnav .search-pill, .topnav .mkt-clock { display: none !important; }
  .topnav .icon-btn, .topnav .avatar { width: 38px; height: 38px; }

  .tabbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr);
    height: 64px; padding: 6px; border-radius: 20px; background: rgba(17, 20, 19, 0.92); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
  .tb { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px;
    color: rgba(255, 255, 255, 0.55); font-size: 10.5px; letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
  .tb svg { width: 20px; height: 20px; }
  .tb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
  .tb.active { background: #fff; color: #111413; }
  .tb.active svg { color: var(--g-600); }
  .tb:focus-visible { outline: 2px solid var(--g-400); outline-offset: -2px; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  footer.content { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }

  .tsheet { display: block; position: fixed; inset: 0; z-index: 80; }
  .tsheet[hidden] { display: none; }
  .tsheet-bg { position: absolute; inset: 0; background: rgba(10, 12, 11, 0.4); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .tsheet-in { position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; padding: 14px 14px 16px; border-radius: 24px;
    background: #f6f8f7; color: var(--text); transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .85, .2, 1); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.35); }
  .tsheet.on .tsheet-bg { opacity: 1; } .tsheet.on .tsheet-in { transform: none; }
  .tsheet-h { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
  .tsheet-h b { font-weight: 500; font-size: 15px; }
  .tsheet-h .icon-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(17, 20, 19, 0.05); border: 0; }
  .tsheet-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tsi { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(17, 20, 19, 0.06); font-size: 13.5px; color: var(--text); min-width: 0; }
  .tsi span { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(17, 20, 19, 0.05); color: var(--text); }
  .tsi span svg { width: 16px; height: 16px; }
  .tsi.active { border-color: rgba(27, 154, 85, 0.4); } .tsi.active span { background: var(--grad-fx); color: #fff; }
  html.no-scroll, html.no-scroll body { overflow: hidden; }

  /* tables: keep columns readable and let the table scroll sideways inside its card */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .table-wrap > table.table { min-width: 640px; }
  .table td, .table th { padding: 11px 12px; }
  .table td.tiny[style*="max-width"] { min-width: 240px; }
}
@media (max-width: 760px) {
  .lot-art-box { width: 100% !important; }
  .lot-art-box > * { width: 100%; }
  .ph-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ph-head > .row { flex-wrap: wrap; gap: 8px; }
  .promo-banner { flex-wrap: wrap; align-items: flex-start; }
  .promo-banner > .grow { flex: 1 1 calc(100% - 40px); }
  .promo-banner > .tiny { flex-basis: 100%; padding-left: 30px; }
}
