:root {
  --bg: #0b111b;
  --bg-2: #0f1724;
  --panel: #131d2c;
  --panel-2: #182436;
  --line: #24344b;
  --line-strong: #36507a;
  --text: #e6edf6;
  --text-2: #c4d0de;
  --muted: #8b9ab0;
  --accent: #38c6e8;
  --accent-2: #f2b33d;
  --on-accent: #04131a;
  --keep: #ff7a59;
  --craft: #f2b33d;
  --safe: #3fcf8e;
  --r-common: #9aa3ad;
  --r-uncommon: #3fbf6f;
  --r-rare: #3b9cff;
  --r-epic: #b25cff;
  --r-legendary: #f2b33d;
  --hero: #12263a;
  --chrome: rgba(11, 17, 27, .9);
  --scrim: rgba(4, 8, 14, .72);
  --glow: var(--hero);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1400px 700px at 70% -10%, var(--glow) 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Rajdhani, Inter, sans-serif; letter-spacing: .01em; margin: 0; line-height: 1.15; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: .4rem 0; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.muted { color: var(--muted); }
.error { color: var(--keep); }
.eyebrow { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 .15rem; }
.label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .8rem 0 .3rem; }
.lead { color: var(--text-2); }
.tip { background: color-mix(in srgb, var(--accent) 8%, transparent); border-left: 3px solid var(--accent); padding: .45rem .7rem; border-radius: 6px; }

.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.empty { text-align: center; padding: 40px; }

/* app shell: sidebar + full-width content (desktop), tabs (mobile) */
.app-shell { --side-w: 232px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; position: relative; transition: grid-template-columns .2s; }
.app-shell.collapsed { --side-w: 72px; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; background: var(--chrome); backdrop-filter: blur(12px); border-right: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: Rajdhani, sans-serif; font-size: 1.45rem; font-weight: 700; padding: 2px 6px; }
.brand b { color: var(--accent-2); }
.brand:hover { text-decoration: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; flex: 1; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.side-link .svg-icon { font-size: 1.2rem; }
.side-link:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.side-link.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.side-label { overflow: hidden; text-overflow: ellipsis; }
.account-link.signed-in { color: var(--accent); }
.collapsed .side-label, .collapsed .brand-text { display: none; }
.collapsed .side-link, .collapsed .brand { justify-content: center; padding-inline: 0; }

.main-col { min-width: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px clamp(16px, 2vw, 32px); background: var(--chrome); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.event-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; font-size: .85rem; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); padding: 3px 10px; border-radius: 99px; font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.live-pill:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.live-count { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 6px; font-size: .7rem; }
@keyframes pulse { 50% { opacity: .35; } }
.clock { font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.event-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); padding: 3px 10px 3px 6px; border-radius: 99px; color: var(--text); white-space: nowrap; }
.event-chip:hover { border-color: var(--accent); text-decoration: none; }
.event-chip .map { color: var(--muted); }
.event-icon { width: 18px; height: 18px; object-fit: contain; }

.content { flex: 1; padding: clamp(16px, 2vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 18px clamp(16px, 2vw, 32px) 28px; font-size: .82rem; color: var(--text-2); text-align: center; }
.site-footer p { margin: .2rem 0; }

.mobile-only { display: none !important; }
.bottom-nav { display: none; }
.account-pill { margin-left: auto; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.account-pill.signed-in { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 45; background: var(--scrim); display: flex; align-items: flex-end; }
.sheet { width: 100%; background: var(--panel); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 10px 16px calc(92px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: .85rem; }
.sheet-link .svg-icon { font-size: 1.5rem; color: var(--accent); }
.sheet-link.active { border-color: var(--accent); }
.sheet-link:hover { text-decoration: none; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-only { display: flex !important; }
  .topbar { padding: 8px 12px; gap: 10px; }
  .topbar .brand { font-size: 1.15rem; padding: 0; }
  .event-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .event-row::-webkit-scrollbar { display: none; }
  .event-chips { flex-wrap: nowrap; }
  .live-label, .clock, .event-chip .map { display: none; }
  .content { padding: 14px 12px calc(88px + env(safe-area-inset-bottom)); gap: 14px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--chrome); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: .68rem; font-weight: 600; cursor: pointer; }
  .tab .svg-icon { font-size: 1.35rem; }
  .tab.active { color: var(--accent); }
  .tab:hover { text-decoration: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .hero > .stat-row { grid-column: 1; grid-row: auto; margin-top: 12px; justify-content: flex-start; }
  .stat { min-width: 0; flex: 1 1 100px; }
}

.splash { display: grid; place-items: center; min-height: 100vh; gap: 12px; color: var(--muted); align-content: center; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero */
.hero { padding: 28px; background: linear-gradient(135deg, var(--hero), var(--bg-2) 60%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero p { max-width: 860px; color: var(--text-2); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
.hero > * { grid-column: 1; position: relative; z-index: 1; }
.hero > .stat-row { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; justify-content: flex-end; }
.stat-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.stat { background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; display: flex; flex-direction: column; min-width: 130px; }
.stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat b { font-size: 1.5rem; font-family: Rajdhani, sans-serif; font-variant-numeric: tabular-nums; }

/* controls */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; }
.search { flex: 1 1 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.search:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.icon-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented button { background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.segmented button.on { background: var(--panel-2); color: var(--text); }
.sticky-bar { position: sticky; top: calc(var(--header-h, 110px) + 8px); z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,.45); background: var(--panel); }
.search-box { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search-box .search { width: 100%; padding-left: 34px; padding-right: 34px; }
.search-icon { position: absolute; left: 11px; color: var(--muted); font-size: 1.1rem; pointer-events: none; }
.clear-btn { position: absolute; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.clear-btn:hover { color: var(--text); }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.match-count { font-size: .85rem; white-space: nowrap; }
.check { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); cursor: pointer; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 10px 0 0; }
.danger-btn { background: none; border: 1px solid color-mix(in srgb, var(--keep) 50%, transparent); color: var(--keep); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.danger-btn:hover { background: color-mix(in srgb, var(--keep) 10%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: .75rem; color: var(--text-2); font-family: Inter, sans-serif; font-weight: 500; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }

/* item browser */
.browser { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h, 64px) + 12px); display: flex; flex-direction: column; gap: 8px; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: Inter, sans-serif; margin-top: 6px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: .85rem; }
.tag:hover { border-color: var(--line-strong); }
.tag.on { background: color-mix(in srgb, var(--accent) 15%, transparent); border-color: var(--accent); color: var(--accent); }
.results { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.count { margin: 0 4px; font-size: .85rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.item-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; color: var(--text); display: flex; flex-direction: column; gap: 8px; transition: transform .12s, border-color .12s; }
.item-card:hover { transform: translateY(-2px); border-color: var(--line-strong); text-decoration: none; }
.card-body h2 { font-size: 1.1rem; }
.mini-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mini-tags span { font-size: .68rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--muted); }

.art { --rc: var(--r-common); position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--rc) 22%, var(--bg)), var(--bg)); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); overflow: hidden; }
.art img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.art .rarity { position: absolute; top: 8px; left: 8px; }
.art .verdict { position: absolute; top: 8px; right: 8px; }
.art-lg { width: 280px; flex-shrink: 0; }
.r-common { --rc: var(--r-common); }
.r-uncommon { --rc: var(--r-uncommon); }
.r-rare { --rc: var(--r-rare); }
.r-epic { --rc: var(--r-epic); }
.r-legendary { --rc: var(--r-legendary); }
.rarity { --rc: var(--r-common); display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 2px 8px; border-radius: 99px; color: var(--rc); border: 1px solid var(--rc); background: color-mix(in srgb, var(--bg) 70%, transparent); }

.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; border-radius: 99px; padding: 2px 10px; background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid currentColor; }
.verdict.compact { padding: 0; width: 26px; height: 26px; justify-content: center; }
.verdict.keep { color: var(--keep); }
.verdict.craft { color: var(--craft); }
.verdict.safe { color: var(--safe); }

.icon { --rc: var(--r-common); display: inline-grid; place-items: center; border-radius: 8px; flex-shrink: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 28%, var(--bg)), var(--bg)); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); overflow: hidden; position: relative; }
.icon img { width: 88%; height: 88%; object-fit: contain; }
.icon .initials { font-size: .7em; font-weight: 700; color: var(--muted); }
.icon-xs { width: 24px; height: 24px; border-radius: 6px; font-size: .8rem; }
.icon-sm { width: 36px; height: 36px; }
.icon-md { width: 56px; height: 56px; font-size: 1.2rem; }
.icon.trader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.table-wrap { padding: 0; overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.items-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.items-table td { padding: 6px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.items-table tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.item-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px 3px 3px; color: var(--text); font-size: .85rem; }
a.item-chip:hover { border-color: var(--accent); text-decoration: none; }
.item-chip.done { opacity: .45; text-decoration: line-through; }
.chip-qty { color: var(--accent-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.with-note { display: inline-flex; flex-direction: column; gap: 1px; }
.with-note small { font-size: .7rem; padding-left: 4px; }
.bot-thumb { width: 24px; height: 24px; object-fit: contain; }

/* item detail */
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); }
.item-hero { display: flex; gap: 24px; }
.item-info { flex: 1; min-width: 0; }
.item-info h1 { margin-bottom: .3rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 14px 0; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; }
.have-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict-box { border-left: 4px solid currentColor; }
.verdict-box.keep { color: var(--keep); }
.verdict-box.craft { color: var(--craft); }
.verdict-box.safe { color: var(--safe); }
.verdict-box ul { color: var(--text); margin: .5rem 0; padding-left: 1.2rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.detail-grid h2 { margin-bottom: 10px; }
.use-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.use-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.use-list li.done { opacity: .5; }
.use-list .qty { color: var(--accent-2); font-weight: 600; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.stepper button { background: none; border: 0; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.stepper button:hover { background: var(--panel-2); }
.stepper input { width: 56px; text-align: center; background: none; border: 0; border-inline: 1px solid var(--line); height: 30px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* tracker */
.tracker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 12px; }
.track-row { display: flex; gap: 14px; align-items: center; padding: 12px; }
.track-row.complete { border-color: color-mix(in srgb, var(--safe) 50%, transparent); }
.track-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.track-name { color: var(--text); font-weight: 600; }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--safe)); }
.needed-by { display: flex; gap: 4px; flex-wrap: wrap; }
.needed-by .pill { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.track-count { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }

/* projects / quests / stations */
.group { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--header-h, 110px) + 90px); }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.project summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.project summary::-webkit-details-marker { display: none; }
.project summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.project[open] summary::before { transform: rotate(90deg); }
.phases { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.phase { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.phase.done { border-color: color-mix(in srgb, var(--safe) 45%, transparent); }
.phase-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.check-btn { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--bg); cursor: pointer; flex-shrink: 0; color: var(--on-accent); font-weight: 800; }
.check-btn.on { background: var(--safe); border-color: var(--safe); }

.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.quest { scroll-margin-top: calc(var(--header-h, 110px) + 90px); display: flex; flex-direction: column; gap: 2px; }
.quest header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.quest header h3 { flex: 1; }
.quest.done { opacity: .6; }
.objectives { margin: 4px 0; padding-left: 1.1rem; color: var(--text-2); }
.chain { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; margin-top: 8px; }
.story summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.story p { white-space: pre-line; color: var(--text-2); font-size: .9rem; }
.trader-jump { display: flex; gap: 10px; flex-wrap: wrap; }
.trader-jump a { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); }

.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.station-head { display: flex; gap: 12px; align-items: center; }
.station-head img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.level-picker { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.level-picker button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; }
.level-picker button.past { border-color: color-mix(in srgb, var(--safe) 45%, transparent); color: var(--safe); }
.level-picker button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.levels { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.levels li { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; border: 1px solid transparent; }
.levels li.done { opacity: .5; }
.levels li.next { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.lvl { font-family: Rajdhani, sans-serif; font-weight: 700; color: var(--accent-2); min-width: 28px; padding-top: 2px; }

/* events */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.map-card h2 { font-size: 1.2rem; }
.ev { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.ev.live b { color: var(--accent); }
.ev .event-icon { width: 24px; height: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sched-group { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sched-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sched-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .9rem; border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.sched-row.live { color: var(--accent); font-weight: 600; }
.slot .time { font-variant-numeric: tabular-nums; min-width: 50px; display: inline-block; color: var(--text-2); }

/* ARCs */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.bot { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.bot-art { margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.bot-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bot:hover .bot-art img { transform: scale(1.04); }
.bot-body { min-width: 0; padding: 0 18px 18px; }
.threat.critical { color: var(--keep); border-color: var(--keep); }
.threat.high { color: var(--accent-2); border-color: var(--accent-2); }

@media (max-width: 900px) {
  .browser { grid-template-columns: 1fr; }
  .filters { position: static; }
  .item-hero { flex-direction: column; }
  .art-lg { width: 100%; max-width: 360px; }
  .tracker-list, .quest-grid, .station-grid, .bot-grid, .detail-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  .track-row { flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* quest objectives + guide dialog */
.objectives { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 4px; }
.objectives li { display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 3px 4px; }
.objectives li.done .obj-text { color: var(--muted); text-decoration: line-through; }
.objectives li.focus { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.check-btn.small { width: 20px; height: 20px; border-radius: 5px; font-size: .75rem; margin-top: 2px; }
.obj-body { flex: 1; min-width: 0; }
.obj-text { background: none; border: 0; padding: 0; text-align: left; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.obj-text:hover { color: var(--accent); text-decoration: underline; }
.obj-step { margin: 4px 0 6px; color: var(--text); font-size: .9rem; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 6px; padding: 6px 10px; }
.objectives.detailed li { padding: 6px; }
.one-round { color: var(--accent-2); font-size: .8rem; margin: 2px 0; }
.quest-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .85rem; }
.guide-btn { margin-left: auto; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); border-radius: 8px; padding: 4px 12px; cursor: pointer; font-weight: 600; }
.guide-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--scrim); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 0; outline: none; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.modal-body { overflow-y: auto; padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.modal-body h3 { margin-top: 12px; font-size: 1.05rem; }
.tips { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.link-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pill.warn { color: var(--accent-2); border-color: var(--accent-2); }
.pill-btn { cursor: pointer; }
.pill-btn.on { color: var(--safe); border-color: var(--safe); }
.find-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.find-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; }

/* in-progress quests */
.active-btn { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 600; font-size: .8rem; }
.active-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.active-btn.on { background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: var(--accent-2); color: var(--accent-2); }
.quest.active { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 25%, transparent) inset; }
.in-progress .group-title { color: var(--accent-2); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2s infinite; }

/* inline svg icons */
.svg-icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.verdict-box h2 { display: flex; align-items: center; gap: 8px; }
.verdict .v-icon { font-size: 1rem; }
.verdict.compact .v-icon { font-size: .95rem; }
.check-btn { display: inline-grid; place-items: center; }
.check-btn .svg-icon { width: 14px; height: 14px; stroke-width: 3; }
.check-btn.small .svg-icon { width: 12px; height: 12px; }
.stepper button { display: inline-grid; place-items: center; }
.icon-btn, .clear-btn { display: inline-grid; place-items: center; }
.icon-btn .svg-icon { font-size: 1.1rem; }
.clear-btn .svg-icon { font-size: .95rem; }
.countdown { display: inline-flex; align-items: center; gap: 5px; }
.breadcrumb { align-items: center; }
.breadcrumb .svg-icon { font-size: .85rem; }
.tip { display: flex; gap: 8px; align-items: flex-start; }
.tip .svg-icon { margin-top: .2em; color: var(--accent); }
.one-round { display: flex; align-items: center; gap: 6px; }
.active-btn, .guide-btn, .pill-btn { display: inline-flex; align-items: center; gap: 6px; }
.active-btn .svg-icon { font-size: .8rem; }
.chain a { display: inline-flex; align-items: center; gap: 4px; }
.search-box .search-icon { position: absolute; left: 11px; color: var(--muted); font-size: 1rem; }

/* objective counters */
.obj-counter { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.obj-counter .progress { flex: 1; min-width: 60px; height: 5px; }
.obj-counter .count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.mini-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg); }
.mini-stepper button { background: none; border: 0; width: 22px; height: 22px; cursor: pointer; display: inline-grid; place-items: center; font-size: .75rem; }
.mini-stepper button:hover { background: var(--panel-2); }
.mini-stepper input { width: 52px; height: 22px; text-align: center; background: none; border: 0; border-inline: 1px solid var(--line); font-size: .78rem; -moz-appearance: textfield; }
.mini-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.objectives li.done .obj-counter .progress div { background: var(--safe); }

/* account */
.account-modal { width: min(520px, 100%); }
.account-section { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.account-section:last-of-type { border-bottom: 0; }
.storage-note { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.storage-note .svg-icon { margin-top: .2em; color: var(--accent); font-size: 1.1rem; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.auth-form input[type=text], .auth-form input[type=password] { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: .95rem; }
.auth-form input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-msg { margin: 6px 0 0; color: var(--safe); }
.form-msg.error { color: var(--keep); }
/* stash capacity + level notes */
.stash-capacity { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0 2px; display: flex; flex-direction: column; gap: 10px; }
.cap-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cap-total b { font-family: Rajdhani, sans-serif; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.cap-total .label { margin: 0; }
.cap-exp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.stash-capacity .small { font-size: .8rem; margin: 0; }
.stash-capacity .link-btn { padding: 0; font-size: .8rem; }
.level-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.level-note { margin: 0; font-size: .8rem; color: var(--muted); }
.pill.reward { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); }

/* Mobile overrides that must come after the desktop hero/layout rules. */
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .hero > .stat-row { grid-column: 1; grid-row: auto; margin-top: 12px; justify-content: flex-start; }
  .topbar .brand-text { display: none; }
  .toolbar { padding: 10px; }
  .filters { position: static; }
}
.filters-toggle { display: none; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.filters-toggle.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 820px) {
  .filters-toggle { display: inline-flex; order: -1; }
  .browser { gap: 12px; }
  .browser > .filters { display: none; }
  .browser > .filters.open { display: flex; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* keyboard focus + key badges */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal:focus-visible, .modal:focus { outline: none; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--text-2); font: 600 .72rem/1.4 Inter, system-ui, sans-serif; text-align: center; }

/* top bar search button */
.cmd-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; padding: 6px 8px 6px 12px; min-width: 210px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted); cursor: pointer; }
.cmd-btn:hover { border-color: var(--accent); color: var(--text); }
.cmd-label { flex: 1; text-align: left; font-size: .85rem; }

/* command palette */
.palette-backdrop { align-items: flex-start; padding-top: 12vh; }
.palette { width: min(640px, 100%); padding: 0; display: flex; flex-direction: column; max-height: 70vh; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 1rem; }
.palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.palette-group { padding: 10px 10px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text-2); }
.palette-item .svg-icon { font-size: 1.05rem; color: var(--muted); }
.palette-item.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.palette-item.on .svg-icon { color: var(--accent); }
.pi-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-hint { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.palette-empty { padding: 18px 10px; }
.palette-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: .75rem; flex-wrap: wrap; }
.palette-foot kbd { margin-right: 2px; }

/* shortcuts help */
.help-modal { width: min(520px, 100%); }
.shortcuts { width: 100%; border-collapse: collapse; }
.shortcuts td { padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.shortcuts .keys { white-space: nowrap; width: 40%; color: var(--muted); }

/* settings: language */
.lang-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lang-select { display: flex; flex-direction: column; gap: 4px; }
.lang-select .label { margin: 0; }

/* home */
.home-hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 1; }
.home-hero .btn kbd { margin-left: 4px; background: color-mix(in srgb, var(--on-accent) 20%, transparent); color: inherit; border-color: color-mix(in srgb, var(--on-accent) 35%, transparent); }
a.btn { color: var(--text); }
a.btn:hover { text-decoration: none; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.home-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-card.span-2 { grid-column: span 2; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.card-head h2 .svg-icon { color: var(--accent); }
.home-quests, .home-events, .home-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.home-quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.home-quest { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.home-quest:hover { border-color: var(--accent); text-decoration: none; }
.hq-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.hq-next { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-events li { display: flex; align-items: center; gap: 10px; }
.home-events li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.home-events .event-icon { width: 26px; height: 26px; }
.home-item { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 4px; border-radius: 8px; }
.home-item:hover { background: var(--panel-2); text-decoration: none; }
.home-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-item b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.home-upgrades { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.upgrade-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }

/* limited-time projects: card styled after the game's hub tile */
.home-limited { margin-bottom: 18px; }
.limited-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.limited-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.lc-art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; min-height: 160px; padding: 12px 16px; color: #fff; }
.lc-art:hover { text-decoration: none; }
.lc-art-img { position: absolute; inset: 0; z-index: -1; background: var(--hero) center / cover no-repeat; transition: transform .3s ease; }
.lc-art-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .8)); }
.lc-art.no-art .lc-art-img { background-image: linear-gradient(135deg, var(--hero), var(--panel-2)); }
.lc-art:hover .lc-art-img { transform: scale(1.04); }
.lc-art h3 { margin: 0; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.lc-timer { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; background: var(--accent-2); color: var(--on-accent); font-weight: 700; font-size: .85rem; }
.lc-timer .svg-icon { width: 16px; height: 16px; }
.lc-track { --fill: 0; position: relative; display: flex; justify-content: space-between; margin: 14px 16px 2px; padding: 0; list-style: none; }
.lc-track::before, .lc-track::after { content: ""; position: absolute; top: 50%; left: 17px; height: 2px; transform: translateY(-50%); }
.lc-track::before { right: 17px; background: var(--line); }
.lc-track::after { width: calc((100% - 34px) * var(--fill)); background: var(--accent); }
.lc-track li { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-2); font-weight: 700; font-size: .85rem; }
.lc-track li.done { border-color: var(--safe); color: var(--safe); }
.lc-track li.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.lc-track li .svg-icon { width: 16px; height: 16px; }
.lc-next { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 16px; }
.lc-next .label { margin: 0; }
.lc-next p { margin: 0; display: flex; align-items: center; gap: 6px; }
.pill.timer { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); }
.pill.timer .svg-icon { width: 13px; height: 13px; }
@media (min-width: 1000px) {
  .limited-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 760px), 1fr)); }
  .limited-card { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .lc-art { grid-row: 1 / 3; min-height: 190px; }
  .lc-track { margin: 18px 20px 2px; }
  .lc-next { padding: 10px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .lc-art-img { transition: none; } .lc-art:hover .lc-art-img { transform: none; } }
@media (max-width: 1280px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-card.span-2 { grid-column: auto; }
  .cmd-btn { min-width: 0; margin-left: 0; padding: 8px; }
  .cmd-label, .cmd-kbd { display: none; }
  .account-pill { margin-left: 0; }
  .palette-backdrop { padding-top: 6vh; }
}

/* items handed in to a project phase */
.deposit-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.deposit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.deposit .item-chip { flex: 0 1 auto; min-width: 0; }
.deposit-count { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: .78rem; font-variant-numeric: tabular-nums; }
.deposit-count .mini-stepper input { width: 40px; }
.deposit-count > .muted { min-width: 2.6em; }
.deposit .mini-stepper button:disabled { opacity: .35; cursor: default; }
.deposit > small { flex-basis: 100%; text-align: right; font-size: .7rem; }
.deposit.full .mini-stepper { border-color: var(--safe); }

/* project phase stepper */
.phase-stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.phase-stepper .icon-btn { width: 34px; height: 34px; }
.phase-stepper .icon-btn:disabled { opacity: .35; cursor: default; }
.phase-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.phase-dot { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-weight: 700; font-size: .8rem; cursor: pointer; }
.phase-dot:hover { border-color: var(--line-strong); }
.phase-dot.done { border-color: color-mix(in srgb, var(--safe) 55%, transparent); color: var(--safe); }
.phase-dot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.phase-title { font-weight: 600; color: var(--text-2); }
.phase-all { margin-left: auto; padding: 0; }

/* ---- tour: the scout drone ---- */
.tour { position: fixed; inset: 0; z-index: 1000; outline: none; }
.tour-block { position: fixed; inset: 0; }
.tour-spot { position: fixed; border: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(3, 6, 11, .66), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; transition: left .7s cubic-bezier(.5, 0, .2, 1), top .7s cubic-bezier(.5, 0, .2, 1), width .7s, height .7s; }
.tour-spot.none { border-color: transparent; box-shadow: 0 0 0 9999px rgba(3, 6, 11, .66); }
.app-shell:has(.tour) .backdrop-front { display: none; }
.tour-drone { position: fixed; z-index: 2; width: 88px; pointer-events: none; transition: left .85s cubic-bezier(.45, 0, .2, 1), top .85s cubic-bezier(.45, 0, .2, 1); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.tour-drone .drone-svg { transform: rotate(var(--tilt, 0deg)); transition: transform .35s ease-out; }
.tour-drone::after { content: ""; position: absolute; left: 50%; top: 100%; width: 34px; height: 10px; margin-left: -17px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%); animation: tour-beam 1.6s ease-in-out infinite alternate; }
@keyframes tour-beam { from { opacity: .35; transform: scaleX(.7); } to { opacity: .9; transform: scaleX(1.1); } }
.tour-bubble { position: fixed; z-index: 3; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 14px 16px 12px; background: linear-gradient(var(--panel), var(--panel)), #0b111b; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transition: left .85s cubic-bezier(.45, 0, .2, 1), top .85s cubic-bezier(.45, 0, .2, 1); animation: tour-pop .35s ease-out .45s both; }
@keyframes tour-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.tour-bubble h2 { margin: 2px 0 6px; font-size: 1.3rem; }
.tour-bubble p { margin: 0 0 8px; color: var(--text-2); font-size: .9rem; line-height: 1.45; }
.tour-head { display: flex; align-items: center; justify-content: space-between; }
.tour-count { color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.tour-lang, .tour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.tour-actions .btn { flex: 1 1 140px; }
.tour-note { display: flex; gap: 8px; align-items: flex-start; color: var(--accent) !important; }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-foot .btn { padding: 7px 12px; }
.tour-dots { display: flex; gap: 4px; margin-right: auto; }
.tour-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background .2s, width .2s; }
.tour-dots span.seen { background: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); }
.tour-dots span.on { width: 16px; border-radius: 3px; background: var(--accent); }
.tour-bubble.dock-top, .tour-bubble.dock-bottom { left: 16px; right: 16px; width: auto; }
.tour-bubble.dock-top { top: 72px; }
.tour-bubble.dock-bottom { bottom: calc(84px + env(safe-area-inset-bottom)); }
[data-motion="off"] .tour-spot, [data-motion="off"] .tour-drone, [data-motion="off"] .tour-bubble { transition: none; animation: none; }

/* ---- raid list ---- */
.raid-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.raid-map { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.raid-map .svg-icon { color: var(--accent); }
.raid-map select { padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.raid-hint { flex-basis: 100%; margin: 0; font-size: .82rem; }
.raid-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; align-items: start; }
.raid-group .section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.raid-group h2 .muted { font-size: .95rem; font-weight: 500; }
.raid-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.raid-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.raid-row:first-child { border-top: 0; }
.raid-row.done { opacity: .55; }
.raid-main { display: flex; flex-direction: column; min-width: 0; }
.raid-name { color: var(--text); font-weight: 600; }
.raid-why { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.raid-bots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.raid-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--keep); }
.raid-count.ok { color: var(--safe); }
@media (max-width: 820px) {
  .raid-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .raid-row .stepper { grid-column: 2 / -1; justify-self: start; }
}

/* ---- interactive maps ---- */
.obj-line { display: flex; align-items: flex-start; gap: 6px; }
.obj-line .obj-text { flex: 1; min-width: 0; }
.obj-map { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); }
.obj-map:hover { border-color: var(--accent); text-decoration: none; }
.quest-maps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.quest-maps .muted { font-size: .75rem; }
.content:has(> .map-page) { padding: 0; gap: 0; }
.main-col:has(.map-page) .site-footer { display: none; }
.map-page { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - var(--header-h, 57px)); min-height: 480px; }
.map-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 14px; background: var(--chrome); border-right: 1px solid var(--line); }
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.map-tab { padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text-2); font-size: .82rem; font-weight: 600; }
.map-tab:hover { border-color: var(--line-strong); color: var(--text); text-decoration: none; }
.map-tab.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.map-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.map-search:focus-within { border-color: var(--accent); }
.map-search-wrap { position: relative; }
.map-suggest { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: linear-gradient(var(--panel), var(--panel)), var(--bg); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); max-height: 320px; overflow-y: auto; }
.map-suggest li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.map-suggest li:hover, .map-suggest li.on { background: var(--panel-2); }
.sg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.sg-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .88rem; overflow: hidden; }
.sg-name small { font-size: .72rem; }
.sg-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-search input { flex: 1; min-width: 0; padding: 8px 0; background: none; border: 0; outline: none; color: var(--text); }
.map-layers { align-self: flex-start; }
.map-field { display: flex; flex-direction: column; }
.map-field .label { margin: 0 0 .3rem; }
.map-field select { padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.solo-pill { align-self: flex-start; gap: 6px; padding: 4px 10px; border-color: var(--accent); color: var(--accent); font-size: .82rem; cursor: pointer; }
/* ARC Frigate overlay */
.frigate-panel { padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.frigate-panel.on { border-color: #e05cff; }
.frigate-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.frigate-toggle .muted { margin-left: auto; font-size: .78rem; }
.frigate-panel p { margin: 8px 0 0; font-size: .8rem; }

/* raid route */
.route-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.route-panel.drawing { border-color: #ff4fa3; }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; }
.route-head h3 .svg-icon { color: #ff4fa3; }
.route-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.route-actions .btn { padding: 6px 10px; font-size: .85rem; }
.route-actions .icon-btn { width: 34px; height: 34px; }
.route-actions .icon-btn:disabled, .route-actions .btn:disabled { opacity: .4; cursor: default; }
.route-hint { margin: 0; font-size: .8rem; }
.route-panel .label { margin: 4px 0 0; }
.route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.route-list li { display: flex; align-items: center; gap: 4px; }
.route-list .icon-btn { width: 28px; height: 28px; flex-shrink: 0; }
.route-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.route-swatch { width: 14px; height: 4px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.route-name { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.route-name .muted { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaflet-container.route-drawing, .leaflet-container.route-drawing .leaflet-interactive { cursor: crosshair; }
.route-pt span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid rgba(8, 12, 18, .9); font: 700 11px/1 Inter, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.route-pt.start span { background: #3fcf8e; color: #04140b; }
.route-pt.end span { outline: 2px solid #fff; outline-offset: 1px; }
.route-drawing .route-pt { cursor: grab; }
.route-pt { cursor: pointer; }
.route-pop { display: flex; flex-direction: column; gap: 6px; }
.route-pop .btn { padding: 6px 10px; font-size: .85rem; justify-content: center; }
.map-count { margin: 0; font-size: .82rem; font-variant-numeric: tabular-nums; }
.map-cats { display: flex; flex-direction: column; gap: 6px; }
.map-cat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.map-cat-head { display: flex; align-items: center; }
.map-cat-name { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: none; border: 0; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
.map-cat-name .muted { margin-left: auto; font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.map-cat .chev { color: var(--muted); transition: transform .15s; }
.map-cat.open .chev { transform: rotate(90deg); }
.map-cat-all { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 6px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.map-cat-all.on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.map-kinds { display: flex; flex-direction: column; margin: 0; padding: 0 6px 8px; list-style: none; }
.map-kind { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: .86rem; cursor: pointer; }
.map-kind:hover { background: var(--panel-2); }
.map-kind input { margin: 0; accent-color: var(--accent); }
.map-kind-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-kind .muted { font-size: .78rem; font-variant-numeric: tabular-nums; }
.map-kind.done .map-kind-label { color: var(--muted); text-decoration: line-through; }
.map-kind-opt { margin: 0 6px; color: var(--text-2); font-size: .82rem; }
.swatch { width: 11px; height: 11px; flex-shrink: 0; background: var(--c); border: 1.5px solid rgba(8, 12, 18, .85); }
.swatch.circle { border-radius: 50%; }
.swatch.square { border-radius: 2px; }
.swatch.diamond { border-radius: 1px; transform: rotate(45deg) scale(.85); }
.swatch.triangle { border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.swatch.star { width: 13px; height: 13px; border: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.map-note { margin-top: auto; font-size: .75rem; }
.map-stage { position: relative; min-width: 0; }
.map-canvas { position: absolute; inset: 0; background: #05080d; }
.map-loading { position: absolute; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); pointer-events: none; }
.map-filters-btn { display: none; }

/* Leaflet, themed (scoped so it beats leaflet.css, which loads later) */
.map-stage .leaflet-container { background: #05080d; font: inherit; }
.map-stage .leaflet-bar { border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.map-stage .leaflet-bar a { background: var(--panel); border-bottom-color: var(--line); color: var(--text); }
.map-stage .leaflet-bar a:hover { background: var(--panel-2); }
.map-stage .leaflet-popup-content-wrapper, .map-stage .leaflet-popup-tip { background: linear-gradient(var(--panel), var(--panel)), #0b111b; border: 1px solid var(--line); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.map-stage .leaflet-popup-content { margin: 12px 14px; font-size: .86rem; line-height: 1.4; }
.map-stage .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map-stage .leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--muted); font-size: .7rem; }
.map-stage .leaflet-control-attribution a { color: var(--accent); }
.map-pop h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.map-pop p { margin: 3px 0; }
.map-pop-kind { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.map-pop-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.map-pop-kind-title { display: flex; align-items: center; gap: 8px; padding-right: 14px; }
.map-pop-kind-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.map-pop-warn { color: var(--keep); }
.app-shell:has(.map-page) .backdrop-front { display: none; }
.map-pop-muted { color: var(--muted); font-size: .78rem; }

.bot-maps { display: flex; flex-wrap: wrap; gap: 6px; }
.map-link { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-2); font-size: .8rem; }
.map-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@media (max-width: 820px) {
  .content:has(> .map-page) { padding: 0; }
  .map-page { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--header-h, 55px) - 66px - env(safe-area-inset-bottom)); min-height: 360px; }
  .map-side { display: none; }
  .map-side.open { display: flex; position: absolute; inset: auto 0 0 0; z-index: 600; max-height: 72%; border-right: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); }
  .map-filters-btn { display: inline-flex; position: absolute; top: 12px; left: 12px; z-index: 700; align-items: center; gap: 6px; padding: 8px 12px; background: var(--chrome); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-weight: 600; cursor: pointer; }
}
.key-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.key-map-btn { color: var(--accent); text-decoration: none; }
.key-map-btn:hover { text-decoration: none; }

/* Pre-rendered page content (scripts/build_seo.py): readable until the app replaces it. */
.seo-prerender { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; color: var(--text); line-height: 1.55; }
.seo-prerender header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 18px; font-size: .9rem; }
.seo-prerender a { color: var(--accent); }
.seo-prerender h1 { font-family: Rajdhani, sans-serif; font-size: 2rem; margin: 8px 0 12px; }
.seo-prerender img { float: right; margin: 0 0 12px 16px; border-radius: 10px; background: var(--panel); }
.seo-prerender dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.seo-prerender dt { color: var(--muted); }
.seo-prerender dd { margin: 0; }
.seo-prerender .seo-crumbs, .seo-prerender footer { color: var(--muted); font-size: .85rem; }

/* Quest page (/quests/<id>): the guide dialog's body as a page */
.quest-page { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.quest-page h1 { margin: 0 0 6px; }
.quest-page h3 { margin: 12px 0 0; font-size: 1.05rem; }
.quest-chain { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.quest-chain p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.quest-chain .label { margin: 0; min-width: 110px; }
.quest h3 a { color: inherit; }

/* ARC page (/arcs/<id>): picture beside the details on wide screens */
.bot-page { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 0 22px; }
.bot-page .bot-art { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; aspect-ratio: auto; min-height: 260px; }
.bot-page .bot-body { padding: 18px 22px 22px 0; }
.bot-page h1 { margin: 2px 0 10px; }
.bot h2 a { color: inherit; }
@media (max-width: 900px) {
  .bot-page { grid-template-columns: 1fr; }
  .bot-page .bot-art { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; min-height: 0; }
  .bot-page .bot-body { padding: 0 18px 18px; }
}

/* Weekly trials */
.trials-hero h1 { display: flex; align-items: center; gap: 10px; }
.trials-hero h1 .svg-icon { color: var(--accent-2); }
.trials-hero .stat select, .trials-hero .stat input { width: 100%; margin-top: 4px; padding: 4px 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 700 1.05rem Rajdhani, sans-serif; }
.trials-hero .stat input { max-width: 90px; }
.trial-timer { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); }
.trial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.trial { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.trial.done { border-color: color-mix(in srgb, var(--accent-2) 60%, var(--line)); }
.trial h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.trial-map { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.trial-map.limited { color: var(--accent); font-weight: 700; }
.trial-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.trial-score label { display: flex; flex-direction: column; gap: 4px; }
.trial-score .label { margin: 0; }
.trial-score input { width: 120px; padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 700 1.4rem Rajdhani, sans-serif; font-variant-numeric: tabular-nums; }
.trial-stars { display: inline-flex; gap: 2px; }
.trial-star { display: inline-grid; color: var(--line-strong); font-size: 1.35rem; }
.trial-star.on { color: var(--accent-2); }
.trial-star.on .svg-icon { fill: currentColor; }
.trial-bar { position: relative; height: 8px; margin: 6px 0 18px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.trial-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 100%); border-radius: 4px; background: var(--accent-2); }
.trial-bar .tick { position: absolute; top: -4px; left: calc(var(--at) * 100%); width: 2px; height: 14px; background: var(--line-strong); transform: translateX(-1px); }
.trial-bar .tick b { position: absolute; top: 16px; right: 0; font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trial-next { margin: 0; font-size: .82rem; }
.trial-guide summary { cursor: pointer; font-weight: 600; }
.trial-guide ol { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; line-height: 1.45; }
.trial-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.trial-history { margin-top: 14px; }
.trial-history h2 { margin-top: 0; font-size: 1.1rem; }
.trial-history details { border-top: 1px solid var(--line); padding: 8px 0; }
.trial-history summary { cursor: pointer; font-weight: 600; }
.trial-history ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.trial-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: .88rem; }
.trial-history .trial-star { font-size: 1rem; }
