:root {
  --ink: #151719;
  --muted: #626a73;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --line: #dce3ec;
  --teal: #0d9488;
  --gold: #d99a18;
  --rose: #d94f70;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.2rem;
  background: #101820;
  color: white;
}
.brand {
  display: block;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 950;
}
.sidebar nav { display: grid; gap: .45rem; }
.sidebar a:not(.brand) {
  border-radius: 6px;
  padding: .8rem;
  color: #cbd5df;
  font-weight: 800;
}
.sidebar a.active, .sidebar a:hover { background: #20313f; color: white; }
main { padding: clamp(1rem, 3vw, 2.5rem); }
.view[hidden] { display: none; }
.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
p, h1, h2, strong, span { overflow-wrap: anywhere; }
.dashboard-header p {
  margin: 0 0 .4rem;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2rem, 5vw, 4.7rem); max-width: 13ch; }
.search {
  display: grid;
  gap: .35rem;
  min-width: min(340px, 100%);
  color: var(--muted);
  font-weight: 800;
}
input, select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.metrics article, .panel, .visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 35px rgba(16, 24, 32, .06);
}
.metrics article { padding: 1rem; }
.metrics span { display: block; color: var(--muted); font-weight: 800; }
.metrics strong { display: block; margin-top: .4rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.panel { padding: 1rem; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td {
  padding: .9rem .75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
tbody tr:hover { background: #f1f6f8; }
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: .3rem .55rem;
  background: #e9f6f4;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
}
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: .3rem .55rem;
  background: #eef2f7;
  color: #445160;
  font-size: .78rem;
  font-weight: 900;
}
.status.live { background: #e7f7ef; color: #12804f; }
.status.paused { background: #fff4dc; color: #a86700; }
.status.review { background: #fce8ef; color: #b73758; }
.insights {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 1rem;
  margin-top: 1rem;
}
.visual { padding: 1rem; min-height: 320px; display: grid; align-items: end; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; align-items: end; min-height: 260px; }
.bar {
  display: grid;
  align-content: end;
  min-height: 44px;
  border-radius: 6px 6px 0 0;
  padding: .5rem .35rem;
  color: white;
  font-weight: 900;
  text-align: center;
}
.panel p { color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .brand { margin: 0; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .dashboard-header, .panel-heading { align-items: stretch; flex-direction: column; }
  .metrics, .insights { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sidebar { align-items: flex-start; flex-direction: column; }
  .metrics strong { font-size: 2rem; }
  .bars { gap: .35rem; }
}
