.shell { min-height: 100vh; padding: 28px var(--page-pad) 40px; }
.frame { max-width: var(--content); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #95bcff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), var(--shadow-soft);
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 15px; line-height: 1.1; letter-spacing: -0.03em; }
.brand-copy span { font-size: 12px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  padding: 10px 14px; border: 1px solid transparent; border-radius: 999px;
  color: var(--text-soft); transition: 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.hero {
  display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 24px;
  align-items: stretch; margin-bottom: 24px;
}
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.hero-main { padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.hero-main::after {
  content: ''; position: absolute; inset: auto -12% -20% auto; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(109,99,255,0.12), transparent 70%);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line); font-size: 12px; font-weight: 600;
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(109,99,255,0.12); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(42px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.05em; color: var(--text); max-width: 12ch; }
.hero p { margin: 0; max-width: 60ch; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--text);
  box-shadow: var(--shadow-soft); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(23,23,21,0.16); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #95bcff); color: white; border-color: transparent; }
.btn.ghost { background: transparent; box-shadow: none; }
.hero-side { padding: 20px; display: grid; gap: 14px; }
.side-card {
  background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
}
.side-card h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); }
.side-card strong { display: block; font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.side-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.meta { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.32); border: 1px solid var(--line); color: var(--text-soft); font-size: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.metric .label { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.metric .value { font-size: clamp(26px, 3vw, 40px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.metric .hint { margin-top: 10px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.two-col { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,0.8fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.feed { padding: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 4px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 13px; }
.feed-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }
.rank {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-weight: 700;
}
.feed-item h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.feed-item p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.feed-item .stamp { text-align: right; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.chips, .pill-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip, .badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--text-soft); font-size: 12px;
}
.chip { min-height: 32px; padding: 0 12px; }
.chip.active, .badge.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge.success { background: rgba(31,157,97,0.1); border-color: rgba(31,157,97,0.18); color: var(--success); }
.badge.warn { background: rgba(193,126,44,0.12); border-color: rgba(193,126,44,0.18); color: var(--warning); }
.chart { display: grid; gap: 14px; padding: 18px; }
.chart-row { display: grid; grid-template-columns: 92px 1fr 48px; gap: 14px; align-items: center; }
.chart-row .name { color: var(--text-soft); font-size: 13px; }
.track { height: 10px; border-radius: 999px; background: rgba(23,23,21,0.06); overflow: hidden; }
.fill { height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, var(--accent), #9fb8ff); }
.chart-row .pct { text-align: right; color: var(--text-muted); font-size: 13px; }
.kv-list { display: grid; gap: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-strong); border: 1px solid var(--line); }
.kv strong { font-size: 14px; } .kv span { color: var(--text-soft); font-size: 13px; text-align: right; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.table td { color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.table tr:last-child td { border-bottom: 0; }
footer { margin-top: 26px; color: var(--text-muted); font-size: 12px; text-align: center; }
.section { margin-bottom: 24px; }
.aside-stack { display: grid; gap: 14px; }
@media (max-width: 1040px) {
  .hero, .two-col { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { padding-top: 96px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-item .stamp { text-align: left; }
  .chart-row { grid-template-columns: 76px 1fr 40px; }
}
