:root {
  --bg: #f3efe7;
  --ink: #17221d;
  --muted: #68736d;
  --line: rgba(31, 39, 34, 0.12);
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --nav: #18251f;
  --nav-soft: #24362e;
  --cream: #fbf7ef;
  --green: #2f6f55;
  --red: #c65f66;
  --blue: #487ca0;
  --gold: #d7963f;
  --olive: #777c45;
  --shadow: 0 24px 70px rgba(25, 34, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 85, 0.16), transparent 34rem),
    linear-gradient(135deg, #f3efe7 0%, #ece5d8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--nav), #101913);
  color: #f6f1e8;
  overflow-y: auto;
}

.brandmark {
  padding: 14px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brandmark small {
  display: block;
  margin-bottom: 8px;
  color: #aac8b8;
  font-size: 12px;
  font-weight: 800;
}

.brandmark h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.nav-group {
  margin-top: 18px;
}

.nav-label {
  margin: 0 0 8px;
  padding: 0 12px;
  color: rgba(246, 241, 232, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #f6f1e8;
  text-align: left;
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-color);
  flex: 0 0 auto;
}

.nav-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-status {
  color: #f0c2bd;
  font-size: 12px;
  font-weight: 800;
}

.side-note {
  margin: 18px 12px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 241, 232, 0.75);
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 26px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.cover {
  min-height: calc(100dvh - 52px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 37, 31, 0.94), rgba(42, 78, 62, 0.84)),
    linear-gradient(90deg, rgba(246, 241, 232, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(246, 241, 232, 0.08) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: min(44vw, 470px);
  height: min(44vw, 470px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, rgba(183, 219, 198, 0.9), rgba(72, 124, 160, 0.72), rgba(215, 150, 63, 0.76), rgba(198, 95, 102, 0.72), rgba(183, 219, 198, 0.9));
  opacity: 0.24;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #b7dbc6;
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip,
.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hero .chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 14px 32px rgba(25, 34, 29, 0.08);
  overflow: hidden;
}

.panel-pad {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3 {
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.brand-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-color);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.brand-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-color) 15%, white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat strong {
  display: block;
  font-size: 30px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brand-page,
.focus-page {
  display: grid;
  gap: 16px;
}

.brand-hero {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 22%, white), rgba(255, 253, 248, 0.96));
  box-shadow: var(--shadow);
}

.brand-hero h2 {
  margin: 4px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.status-card {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  color: #9e403f;
}

.metric-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 38px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(31, 39, 34, 0.1);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: var(--brand-color);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.info-card p {
  color: var(--muted);
}

.evidence {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f2efe8;
  color: #5f6b63;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.consumer-trends {
  background:
    linear-gradient(135deg, rgba(47, 111, 85, 0.08), rgba(255, 253, 248, 0.94)),
    var(--panel);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.collection-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff9f4;
}

.collection-item b {
  display: block;
  margin-bottom: 6px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note-card {
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-color);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 8%, white), rgba(255, 253, 248, 0.96)),
    var(--panel);
}

.note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.note-head h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.note-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.note-metrics span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.comments {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.comments b {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-color);
}

.comments p {
  margin: 0 0 6px;
  color: #4f5a53;
  font-size: 13px;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.focus-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1c2a24, #33483d);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.focus-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 64px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.focus-card {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-color);
  border-radius: var(--radius);
  background: var(--panel);
}

.focus-card h3 {
  font-size: 22px;
}

.focus-card b {
  display: block;
  margin: 14px 0 4px;
  color: var(--brand-color);
}

.trend-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trend-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-group.brand-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-grid,
  .brand-hero,
  .split,
  .trend-board {
    grid-template-columns: 1fr;
  }

  .brand-strip,
  .stat-grid,
  .three-col,
  .note-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .content {
    padding: 14px;
  }

  .hero,
  .brand-hero,
  .focus-hero {
    padding: 22px;
  }

  .brand-strip,
  .stat-grid,
  .three-col,
  .note-grid,
  .collection-grid,
  .nav-group.brand-nav {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 74px 1fr 32px;
  }
}
