:root {
  --coke-red: #f40000;
  --coke-red-dark: #b80000;
  --ink: #161616;
  --muted: #6c6c6c;
  --paper: #ffffff;
  --canvas: #f6f6f4;
  --line: #e4e1dc;
  --line-strong: #cac4bb;
  --soft-red: #fff0f0;
  --soft-gray: #ededeb;
  --good: #0b7a42;
  --warn: #b76b00;
  --bad: #b42318;
  --shadow: 0 16px 36px rgba(22, 22, 22, 0.08);
  --sidebar-open: 320px;
  --sidebar-collapsed: 96px;
  --sidebar-width: var(--sidebar-open);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(244, 0, 0, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.04) 0 1px, transparent 1px 100%),
    var(--canvas);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed);
}

body.sidebar-pinned,
body.sidebar-expanded {
  --sidebar-width: var(--sidebar-open);
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.brand-rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  max-width: var(--sidebar-width);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 170px),
    var(--coke-red);
  color: white;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  transition: width 180ms ease, max-width 180ms ease, padding 180ms ease;
}

.brand-rail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-lockup-copy {
  display: grid;
  gap: 1px;
}

.brand-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--coke-red);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-lockup p,
.brand-lockup h1 {
  margin: 0;
}

.brand-lockup p {
  font-size: 0.82rem;
  opacity: 0.8;
}

.brand-lockup h1 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.sidebar-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.rail-toggle {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.rail-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
}

.rail-toggle.active {
  background: white;
  color: var(--coke-red);
  border-color: white;
}

.rail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rail-group,
.ask-form {
  display: grid;
  gap: 8px;
}

.rail-group label,
.ask-form label,
.rail-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  opacity: 0.82;
}

.rail-group select,
.ask-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  padding: 10px;
  outline: none;
}

.rail-group {
  position: relative;
}

.rail-group select {
  appearance: none;
  padding-right: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rail-group::after {
  content: "▾";
  position: absolute;
  right: 12px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
  font-size: 0.8rem;
}

.rail-group select option {
  color: var(--ink);
}

.ask-form textarea {
  resize: vertical;
  line-height: 1.4;
}

.ask-form button {
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--coke-red);
  padding: 11px 12px;
  font-weight: 900;
}

.rail-section {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.copilot-answer {
  min-height: 170px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.88rem;
}

body.sidebar-collapsed .brand-rail {
  padding: 18px 12px;
  gap: 12px;
}

body.sidebar-collapsed .brand-rail-top {
  flex-direction: column;
  align-items: center;
}

body.sidebar-collapsed .brand-lockup {
  justify-content: center;
  padding-bottom: 0;
  border-bottom: 0;
}

body.sidebar-collapsed .brand-lockup-copy,
body.sidebar-collapsed .rail-group,
body.sidebar-collapsed .rail-grid,
body.sidebar-collapsed .rail-section {
  display: none;
}

body.sidebar-collapsed .sidebar-controls {
  flex-direction: column;
}

body.sidebar-collapsed .brand-disc {
  width: 50px;
  height: 50px;
  font-size: 0.88rem;
}

.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.ask-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.ask-form {
  gap: 12px;
}

.ask-form textarea {
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(22, 22, 22, 0.03);
}

.ask-form textarea::placeholder {
  color: #8b8b8b;
}

.ask-form button {
  width: fit-content;
  min-width: 160px;
  padding: 12px 16px;
  background: var(--coke-red);
  color: white;
  box-shadow: 0 14px 22px rgba(244, 0, 0, 0.18);
}

.ask-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ask-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-detail-note {
  margin-top: 10px;
}

.ask-answer {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfb;
  padding: 14px;
}

.ask-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ask-hint {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ffd0d0;
  background: var(--soft-red);
  color: var(--coke-red-dark);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.path-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.path-chips span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.path-chips.compact {
  justify-content: flex-end;
  margin-top: 0;
}

.path-chips.compact span {
  background: var(--soft-red);
  color: var(--coke-red-dark);
}

.dashboard {
  min-width: 0;
  flex: 1;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.topbar {
  display: grid;
  gap: 16px;
  padding: 4px 0 2px;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 14px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(244, 0, 0, 0.98), rgba(184, 0, 0, 0.96));
  color: white;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(22, 22, 22, 0.16);
  backdrop-filter: blur(14px);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-disc {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.header-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.header-brand-copy p,
.header-brand-copy h1 {
  margin: 0;
}

.header-brand-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-brand-copy h1 {
  font-size: 1.02rem;
  line-height: 1.1;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: white;
}

.page-heading .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.page-heading h2 {
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.header-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  min-height: 40px;
  overflow: hidden;
}

.header-channel-row.spacer {
  visibility: hidden;
}

.header-channel-row.visible {
  visibility: visible;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.header-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 2px;
}

.header-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.header-filter label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-filter select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.08);
}

.header-filter select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: rgba(255, 255, 255, 0.78);
}

.header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.header-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 22px rgba(22, 22, 22, 0.16);
}

.header-pill.active,
.nav-dropdown.active > summary.header-pill {
  background: white;
  color: var(--coke-red);
  border-color: white;
  box-shadow: 0 12px 24px rgba(22, 22, 22, 0.14);
}

.page-header .status-pill {
  display: none;
}

.channel-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.channel-switch {
  min-width: 92px;
}

@media (min-width: 821px) {
  .page-header {
    min-height: 192px;
  }

  .header-main {
    min-height: 78px;
    align-items: flex-start;
  }

  .header-actions {
    align-self: stretch;
  }

  .header-nav {
    flex-wrap: nowrap;
    overflow: visible;
  }

  .header-filter select {
    min-height: 44px;
  }

  .channel-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .channel-switcher::-webkit-scrollbar {
    display: none;
  }

  .channel-switcher .header-pill {
    white-space: nowrap;
  }

  .header-filters {
    min-height: 54px;
  }
}

.channel-hero {
  display: grid;
  gap: 14px;
}

.channel-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}

.channel-summary-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 4px solid var(--coke-red);
  border-radius: 8px;
  background: var(--soft-red);
}

.channel-summary-kicker {
  margin: 0;
  color: var(--coke-red-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-summary-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.channel-summary-text {
  margin: 0;
  line-height: 1.5;
}

.channel-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}

.channel-hero .path-chips {
  margin-top: 0;
}

.nav-dropdown {
  position: relative;
  z-index: 40;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 30;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.dropdown-menu a:hover {
  background: var(--soft-red);
  color: var(--coke-red-dark);
}

.dropdown-menu a:focus-visible,
.header-pill:focus-visible,
.header-filter select:focus-visible,
.brand-card:focus-visible,
.month-card:focus-visible,
.channel-tab:focus-visible,
.data-row:focus-visible,
.launch-card:focus-visible,
.ask-form button:focus-visible {
  outline: 2px solid var(--coke-red);
  outline-offset: 2px;
}

.analysis-hub {
  padding-bottom: 22px;
}

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

.launch-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 0, 0, 0.04), rgba(255, 255, 255, 0.95)),
    var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.launch-card:hover {
  transform: translateY(-2px);
  border-color: var(--coke-red);
  box-shadow: 0 18px 36px rgba(22, 22, 22, 0.12);
}

.launch-card strong {
  font-size: 1.02rem;
}

.launch-card span {
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--coke-red-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.page-heading h2,
.section-head h3,
.root-grid h4 {
  margin: 0;
}

.page-heading h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-red {
  color: var(--coke-red-dark);
  background: var(--soft-red);
  border-color: #ffd0d0;
}

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

.kpi-card,
.surface,
.brand-card,
.month-card,
.channel-tab,
.data-row,
.metric-card,
.insight {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.kpi-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.kpi-card span,
.metric-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi-card strong,
.metric-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.kpi-card small,
.metric-card small {
  color: var(--muted);
  line-height: 1.35;
}

.analysis-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.surface {
  min-width: 0;
  padding: 16px;
}

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

.section-head h3 {
  font-size: 1rem;
}

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

.brand-card,
.month-card,
.channel-tab,
.data-row {
  width: 100%;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
}

.brand-card {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.brand-card.active,
.month-card.active,
.channel-tab.active,
.data-row.active {
  border-color: var(--coke-red);
  background: var(--soft-red);
}

.brand-card .rank {
  color: var(--coke-red-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--soft-gray);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coke-red);
}

.card-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.month-card {
  padding: 11px;
  display: grid;
  gap: 4px;
}

.month-card strong {
  font-size: 1.05rem;
}

.month-card span,
.month-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.trend-box {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafa;
  padding: 10px;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.red {
  background: var(--coke-red);
}

.dot.black {
  background: var(--ink);
}

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

.channel-tab {
  padding: 13px;
  display: grid;
  gap: 7px;
  min-height: 162px;
}

.channel-tab.is-empty {
  opacity: 0.72;
}

.channel-label {
  color: var(--coke-red-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.channel-tab strong {
  font-size: 1.25rem;
}

.channel-tab small,
.channel-tab em,
.channel-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.row-list {
  display: grid;
  gap: 9px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
}

.data-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.data-row strong {
  overflow-wrap: anywhere;
}

.data-row small {
  color: var(--muted);
  line-height: 1.35;
}

.data-row b {
  color: var(--coke-red-dark);
}

.root-summary {
  padding: 12px;
  border-left: 4px solid var(--coke-red);
  background: var(--soft-red);
  border-radius: 8px;
  line-height: 1.5;
  margin-bottom: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.metric-card {
  padding: 12px;
  box-shadow: none;
}

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

.root-grid h4 {
  font-size: 0.92rem;
  margin-bottom: 9px;
}

.insight {
  box-shadow: none;
  padding: 11px;
  display: grid;
  gap: 5px;
}

.insight strong {
  color: var(--ink);
}

.insight small {
  color: var(--muted);
  line-height: 1.35;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #fbfbfa;
}

.channel-empty {
  margin: 0;
}

svg {
  width: 100%;
  height: 170px;
  display: block;
}

svg text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.axis {
  stroke: var(--line-strong);
}

.focus-line {
  stroke: var(--coke-red);
  stroke-dasharray: 4 5;
  opacity: 0.45;
}

.value-line,
.volume-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-line {
  stroke: var(--coke-red);
}

.volume-line {
  stroke: var(--ink);
  stroke-dasharray: 8 6;
}

.value-dot {
  fill: var(--coke-red);
  stroke: white;
  stroke-width: 2;
}

body.loading .dashboard {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 1220px) {
  .app-shell {
    flex-direction: column;
  }

  .header-main {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-items: start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .header-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-hero-body {
    grid-template-columns: 1fr;
  }

  .channel-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-rail {
    position: relative;
    min-height: auto;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.sidebar-collapsed .brand-rail {
    padding: 22px;
    gap: 18px;
  }

  body.sidebar-collapsed .brand-rail-top {
    flex-direction: row;
    align-items: flex-start;
  }

  body.sidebar-collapsed .brand-lockup {
    justify-content: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  body.sidebar-collapsed .brand-lockup-copy,
  body.sidebar-collapsed .rail-group,
  body.sidebar-collapsed .rail-grid,
  body.sidebar-collapsed .rail-section {
    display: block;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ask-layout {
    grid-template-columns: 1fr;
  }

  .channel-tabs,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard,
  .brand-rail {
    padding: 14px;
  }

  .brand-rail {
    width: 100% !important;
    max-width: 100% !important;
  }

  .header-main,
  .header-filters {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-items: start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .section-head,
  .data-row {
    flex-direction: column;
    align-items: stretch;
  }

  .kpi-grid,
  .analysis-grid,
  .analysis-launcher,
  .ask-layout,
  .detail-grid,
  .brand-grid,
  .month-grid,
  .channel-tabs,
  .metric-grid,
  .root-grid {
    grid-template-columns: 1fr;
  }

  .channel-metric-grid {
    grid-template-columns: 1fr;
  }
}
