:root {
  --bg: #080c14;
  --panel: #0e1422;
  --panel-2: #111827;
  --panel-3: #151d31;
  --text: #e5eefb;
  --muted: #94a3b8;
  --faint: #64748b;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #0ea5a4;
  --accent-strong: #22d3ee;
  --indigo: #6366f1;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-body {
  background:
    radial-gradient(circle at 10% -20%, rgba(14, 165, 164, 0.18), transparent 36rem),
    radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.14), transparent 34rem),
    var(--bg);
}

.app-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 280px;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.92);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand strong,
.login-brand h1 {
  display: block;
  margin: 0;
  font-size: 20px;
}

.brand span,
.login-brand p,
.operator-card span,
.client-switcher label,
.eyebrow,
.subline {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.24), rgba(99, 102, 241, 0.28));
  color: #dffcff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  border-color: rgba(14, 165, 164, 0.34);
  background: rgba(14, 165, 164, 0.1);
  color: var(--text);
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.operator-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 13px;
}

.operator-card strong {
  display: block;
  margin-top: 3px;
}

.client-switcher {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 13px;
}

.client-switcher label {
  font-size: 12px;
  text-transform: uppercase;
}

.main {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.1;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px 14px;
  white-space: nowrap;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 165, 164, 0.22);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(148, 163, 184, 0.09);
  color: var(--text);
}

.button.ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.button.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.11);
  color: #fecaca;
}

.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-grid.compact {
  margin-bottom: 16px;
}

.metric-card,
.card,
.toolbar-card,
.login-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(14, 20, 34, 0.94));
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 120px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 29px;
  line-height: 1.1;
}

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

.dashboard-grid .wide {
  grid-column: span 1;
}

.card,
.toolbar-card {
  padding: 18px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.trend-chart {
  display: block;
  width: 100%;
  min-height: 170px;
}

.bar-chart {
  display: block;
  width: 100%;
  min-height: 170px;
}

.compact-chart {
  min-height: 130px;
}

.chart-grid,
.detail-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

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

.side-stack,
.button-stack {
  display: grid;
  gap: 16px;
}

.button-stack form {
  margin: 0;
}

.spaced {
  margin-top: 16px;
}

.trend-labels,
.creative-meta,
.card-actions,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trend-labels {
  color: var(--faint);
  font-size: 12px;
}

.progress-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.progress-track {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.66);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warning));
}

.pacing-list {
  display: grid;
  gap: 10px;
}

.pacing-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  padding: 12px;
}

.pacing-row span:not(.pill) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  padding: 12px;
}

.lead-row span,
.subline {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.status,
.pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #dbeafe;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.mini-pill {
  margin-left: 6px;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.13);
  color: #fde68a;
  padding: 2px 7px;
  font-size: 11px;
}

.status.active,
.status.qualified,
.status.winner,
.status.angle {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.13);
  color: #a7f3d0;
}

.status.paused,
.status.contacted,
.status.testing,
.status.targeting {
  border-color: rgba(99, 102, 241, 0.36);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.status.ended,
.status.dead,
.status.todo {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.status.new,
.status.offer {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.13);
  color: #fde68a;
}

.status.handed_to_josh {
  border-color: rgba(14, 165, 164, 0.42);
  background: rgba(14, 165, 164, 0.16);
  color: #99f6e4;
}

.text-link {
  color: #67e8f9;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(148, 163, 184, 0.04);
}

.highlight-row {
  background: rgba(245, 158, 11, 0.06);
}

td.numeric,
th.numeric {
  text-align: right;
}

.actions {
  width: 1%;
  white-space: nowrap;
}

td.actions {
  display: flex;
  gap: 8px;
}

td.actions form,
.card-actions form {
  margin: 0;
}

.clamped {
  max-width: 280px;
  color: var(--muted);
}

.toolbar-card {
  margin-bottom: 16px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.filter-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

.form-card {
  max-width: 920px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: rgba(8, 12, 20, 0.72);
  color: var(--text);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.78);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.18);
}

.form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 6px;
}

.check-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.42);
  padding: 11px 12px;
}

.check-row input {
  width: auto;
}

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

.task-column.overdue {
  border-color: rgba(239, 68, 68, 0.3);
}

.task-column.today {
  border-color: rgba(245, 158, 11, 0.34);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  padding: 12px;
}

.task-item form {
  margin: 0;
}

.task-item strong,
.task-item span,
.task-item a {
  display: block;
}

.task-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.task-item .text-link {
  margin-top: 6px;
}

.task-item.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.task-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 7px;
  background: rgba(14, 165, 164, 0.08);
  cursor: pointer;
}

.task-check::after {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  content: "";
  transform: rotate(-45deg);
}

.task-item.done .task-check {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.48);
}

.task-item.done .task-check::after {
  border-color: #a7f3d0;
}

.digest-box {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.72);
  color: #dbeafe;
  line-height: 1.6;
  padding: 14px;
  white-space: pre-wrap;
}

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

.creative-card,
.note-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.creative-card p,
.note-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.creative-meta,
.card-actions {
  margin-top: auto;
}

.empty-state,
.empty-inline {
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.empty-state {
  max-width: 520px;
  margin: 32px auto;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
}

.definition-list span,
.muted-copy {
  color: var(--muted);
}

.definition-list strong {
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border: 2px solid #67e8f9;
  border-radius: 50%;
  background: var(--panel);
}

.timeline-item p {
  margin: 4px 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.timeline-item span:not(.timeline-dot) {
  color: var(--faint);
  font-size: 12px;
}

.endpoint-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.endpoint-list div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.42);
  padding: 10px;
}

.endpoint-list span {
  color: var(--muted);
}

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

.mini-stats article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.42);
  padding: 12px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 12px;
}

.mini-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

code {
  overflow-wrap: anywhere;
  color: #a5f3fc;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(rgba(8, 12, 20, 0.76), rgba(8, 12, 20, 0.94)),
    radial-gradient(circle at 18% 20%, rgba(14, 165, 164, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(99, 102, 241, 0.2), transparent 30rem),
    var(--bg);
  padding: 24px;
}

.login-page {
  width: min(100%, 460px);
}

.login-panel {
  padding: 26px;
}

.login-brand {
  margin-bottom: 26px;
}

.login-brand p {
  margin: 6px 0 0;
}

.capture-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 12, 20, 0.78), rgba(8, 12, 20, 0.94)),
    var(--bg);
  padding: 24px;
}

.capture-page {
  display: grid;
  min-height: calc(100vh - 48px);
  place-items: center;
}

.capture-panel {
  width: min(100%, 560px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(14, 20, 34, 0.96));
  box-shadow: var(--shadow);
  padding: 28px;
}

.capture-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.capture-brand span,
.fine-print {
  color: var(--muted);
  font-size: 12px;
}

.capture-panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.capture-panel p {
  color: #cbd5e1;
  line-height: 1.55;
}

.thanks-state {
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 16px;
}

.report-body {
  min-height: 100vh;
  background: #e5e7eb;
  color: #111827;
}

.report-public {
  padding: 26px;
}

.report-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  padding: 34px;
}

.app-body .report-page {
  color: #111827;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 22px;
}

.report-actions form {
  margin: 0;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 22px;
}

.report-header h1 {
  margin: 6px 0;
  font-size: 36px;
  line-height: 1.1;
}

.report-header p {
  margin: 0;
  color: #4b5563;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-weight: 800;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.report-metrics article {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.report-metrics span,
.report-section-heading span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-metrics strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
}

.report-section {
  margin-top: 22px;
}

.report-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.report-section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

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

.report-table table {
  min-width: 900px;
}

.report-page table th,
.report-page table td {
  border-bottom-color: #e5e7eb;
  color: #111827;
}

.report-page table th {
  color: #64748b;
}

.report-page .lead-row {
  border-color: #e5e7eb;
  background: #f8fafc;
}

.report-page .empty-inline {
  border-color: #d1d5db;
  color: #64748b;
}

.stacked-form {
  display: grid;
  gap: 12px;
}

.alert {
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  padding: 10px 12px;
}

.mobile-bar,
.nav-toggle,
.scrim {
  display: none;
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body,
  .app-body,
  .report-body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .sidebar,
  .mobile-bar,
  .topbar,
  .no-print,
  .scrim {
    display: none !important;
  }

  .app-frame,
  .main,
  .report-public {
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .main {
    grid-column: auto !important;
  }

  .report-page {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .report-header,
  .report-section,
  .report-metrics article,
  .report-page .lead-row {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible !important;
  }

  .report-page table {
    min-width: 0 !important;
  }

  a {
    color: inherit !important;
  }
}

@media (max-width: 1120px) {
  .metric-grid,
  .creative-grid,
  .notes-grid,
  .chart-grid,
  .settings-grid,
  .task-board,
  .task-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .detail-grid,
  .report-chart-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .app-frame {
    display: block;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.94);
    padding: 12px 16px;
    backdrop-filter: blur(16px);
  }

  .mobile-bar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }

  .hamburger {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--text);
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.54);
  }

  .nav-toggle:checked ~ .app-frame .sidebar {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .app-frame .scrim {
    display: block;
  }

  .main {
    padding: 18px 16px 28px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 27px;
  }

  .metric-grid,
  .creative-grid,
  .notes-grid,
  .chart-grid,
  .settings-grid,
  .task-board,
  .task-list.compact,
  .entity-form,
  .mini-stats,
  .report-metrics {
    grid-template-columns: 1fr;
  }

  .pacing-row {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 104px;
  }

  .field.full,
  .form-actions {
    grid-column: auto;
  }

  .filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .capture-panel {
    padding: 22px;
  }

  .capture-panel h1 {
    font-size: 28px;
  }

  .report-public {
    padding: 12px;
  }

  .report-page {
    padding: 20px;
  }

  .report-header {
    flex-direction: column;
  }

  .report-header h1 {
    font-size: 29px;
  }
}
