:root {
  --ink: #090a0b;
  --coal: #111315;
  --graphite: #1a1d20;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --teal: #0be8c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(11, 232, 200, 0.09), transparent 34rem),
    linear-gradient(135deg, var(--ink), var(--coal) 56%, #161819);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 288px;
  padding: 20px;
  background: rgba(9, 10, 11, 0.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--teal); color: var(--ink); font-weight: 900; box-shadow: 0 0 32px rgba(11, 232, 200, .22); }
.brand-title { font-weight: 700; }
.brand-subtitle { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 12px; }

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: rgba(255,255,255,.66);
  text-align: left;
  transition: .18s ease;
}

.nav-button:hover, .nav-button.active { background: #fff; color: var(--ink); }

.signal {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-left: 288px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 11, .82);
  backdrop-filter: blur(18px);
}

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--teal); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.app-header h1 { margin: 3px 0 0; font-size: 24px; }
.search-shell, .field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.45);
  padding: 10px 12px;
}

.search-shell { min-width: 320px; }
.field input { width: 100%; color: white; background: transparent; border: 0; outline: 0; }
.field input::placeholder { color: rgba(255,255,255,.35); }

.main { margin-left: 288px; padding: 24px 32px 48px; }
.view { display: none; }
.view.active { display: block; }
.stack { display: grid; gap: 32px; }

.section-title h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 46px); }
.section-title p { max-width: 760px; color: var(--muted); line-height: 1.6; }

.grid { display: grid; gap: 16px; }
.summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seven-grid { grid-template-columns: repeat(7, minmax(210px, 1fr)); overflow-x: auto; }

.panel, .card, .metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.panel { padding: 20px; }
.card { padding: 12px; text-align: left; color: white; }
.metric { padding: 14px; background: rgba(9,10,11,.52); }
.metric-label { color: rgba(255,255,255,.42); font-size: 12px; }
.metric-value { margin-top: 4px; font-size: 20px; font-weight: 750; }
.metric-value.accent { color: var(--teal); }

.button-primary, .button-secondary {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 750;
  border: 1px solid transparent;
}
.button-primary { background: var(--teal); color: var(--ink); }
.button-secondary { background: transparent; border-color: rgba(255,255,255,.16); color: #fff; }

.creative-preview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--creative-bg);
}
.creative-preview.wide { aspect-ratio: 16 / 9; min-height: 180px; }
.creative-preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 68% 18%, rgba(255,255,255,.35), transparent 145px); }
.preview-format, .play-dot {
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
}
.preview-format { left: 16px; top: 16px; border-radius: 999px; padding: 6px 10px; font-size: 12px; color: rgba(255,255,255,.82); }
.play-dot { right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.preview-caption { position: absolute; inset: auto 0 0; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,.82), transparent); }
.preview-caption strong { display: block; color: var(--teal); font-size: 12px; }
.preview-caption span { display: block; margin-top: 4px; font-size: 20px; font-weight: 750; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 650;
}
.badge.winner, .badge.live { border-color: rgba(11,232,200,.58); background: rgba(11,232,200,.14); color: var(--teal); }
.badge.weak { color: rgba(255,255,255,.5); }

.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card-kicker { color: var(--teal); font-size: 12px; font-weight: 750; }
.card-title { margin-top: 4px; font-weight: 750; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; color: rgba(255,255,255,.58); font-size: 12px; }

.attention { display: grid; gap: 12px; margin-top: 16px; }
.attention button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,10,11,.62); color: rgba(255,255,255,.78); padding: 16px; text-align: left; }

.callout { border: 1px solid rgba(11,232,200,.42); border-radius: 8px; background: rgba(11,232,200,.1); padding: 24px; box-shadow: 0 0 32px rgba(11,232,200,.16); }
.callout h2 { margin: 10px 0; font-size: clamp(26px, 3vw, 38px); }
.callout p { color: rgba(255,255,255,.72); }

.matrix { min-width: 720px; display: grid; grid-template-columns: 150px repeat(5, 1fr); gap: 8px; }
.matrix .head { color: rgba(255,255,255,.45); font-size: 14px; }
.matrix .row-label { padding: 12px 0; color: rgba(255,255,255,.76); font-weight: 650; }
.matrix button { border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: rgba(255,255,255,.72); padding: 12px; }
.matrix .winning { border-color: rgba(11,232,200,.62); background: rgba(11,232,200,.14); color: var(--teal); }
.matrix .untested { border-style: dashed; border-color: rgba(11,232,200,.38); background: transparent; color: var(--teal); }
.matrix .weak { background: rgba(255,255,255,.03); color: rgba(255,255,255,.44); }

.client-card { padding: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; text-align: left; color: white; }
.client-top { display: flex; gap: 16px; align-items: start; }
.logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; background: white; color: var(--ink); font-size: 22px; font-weight: 900; }
.mini-panel { margin-top: 18px; padding: 16px; border-radius: 8px; background: rgba(9,10,11,.55); }

.tabs, .filters, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tab, .filter { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.72); padding: 10px 13px; }
.tab.active { background: white; color: var(--ink); }

.kanban-col { min-width: 246px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
details { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); padding: 20px; }
summary { list-style: none; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
details p { color: rgba(255,255,255,.7); line-height: 1.6; }

.drawer, .modal-wrap { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.64); backdrop-filter: blur(12px); }
.drawer.open, .modal-wrap.open { display: block; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 590px); overflow-y: auto; padding: 22px; background: var(--coal); border-left: 1px solid var(--line); }
.modal { width: min(100%, 760px); margin: 7vh auto; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--coal); }
.close { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: white; padding: 8px 10px; }
.textarea { min-height: 112px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,10,11,.7); color: white; padding: 12px; outline: none; }

@media (max-width: 1040px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal { display: none; }
  .nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .app-header, .main { margin-left: 0; padding-left: 18px; padding-right: 18px; }
  .search-shell { display: none; }
  .summary-grid, .three-grid, .four-grid, .two-grid, .brief-grid { grid-template-columns: 1fr; }
}
