:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #697586;
  --line: #d9dee7;
  --blue: #1d4ed8;
  --green: #138a36;
  --red: #b42318;
  --orange: #b7791f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.install-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, .08), rgba(19, 138, 54, .06)),
    var(--bg);
}

.install-shell {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 28px;
  align-items: stretch;
}

.install-copy {
  min-height: 540px;
  background: #111827;
  color: white;
  border-radius: 8px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.install-copy .brand-mark {
  color: white;
}

.install-copy h1 {
  max-width: 620px;
  margin: auto 0 16px;
  font-size: 48px;
  line-height: 1.02;
}

.install-copy p {
  max-width: 620px;
  color: #dbe4f0;
  font-size: 18px;
  line-height: 1.55;
}

.install-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.install-highlights span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #eef2f7;
  background: rgba(255, 255, 255, .08);
  font-weight: 700;
}

.install-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.install-panel h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.install-panel p {
  line-height: 1.5;
}

.brand-mark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

h1, h2, p { margin-top: 0; }
p, .muted { color: var(--muted); }

.inline-field {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.install-form label {
  display: block;
  margin-top: 18px;
  font-weight: 800;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, .08), rgba(19, 138, 54, .06)),
    var(--bg);
}

.redirect-panel {
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.redirect-panel h1 {
  margin: 18px 0 8px;
  font-size: 26px;
}

.redirect-link {
  margin-top: 8px;
}

button, .link-button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled, .disabled {
  opacity: .45;
  pointer-events: none;
}

.primary {
  background: var(--blue);
  color: white;
}

.ghost {
  background: #eef2f7;
  color: var(--text);
}

.danger { color: var(--red); }

.alert {
  background: #fff1f0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: var(--red);
  padding: 12px;
  margin: 16px 0;
}

.compact { margin: 12px 0 0; padding: 8px 10px; }

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e3a8a;
  padding: 12px;
  margin: 0 0 18px;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 36px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.legal-page section {
  margin-top: 26px;
}

.legal-page p {
  line-height: 1.65;
}

.review-login-body {
  --bg: linear-gradient(180deg,#f6f7fa 0%,#e8edf4 48%,#dde4ee 100%);
  --panel: rgba(255,255,255,0.75);
  --accent:#0071b2;
  --accent2:#6a5acd;
  --muted:#6b7280;
  --text:#1b1e21;
  --danger:#d13333;
  --ok:#178647;
  --shadow:0 10px 40px rgba(0,0,0,0.06);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
}

.review-login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 18px;
  align-items: stretch;
}

.review-login-copy,
.review-login-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.50);
  box-shadow: var(--shadow);
}

.review-login-copy {
  min-height: 520px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(14px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-login-copy .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-login-copy .logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(140deg,var(--accent),var(--accent2));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 25px rgba(0,113,178,.4);
}

.review-login-copy .brand-text {
  font-size: 15px;
  font-weight: 800;
}

.review-login-copy h1 {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.04;
}

.review-login-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-badges span {
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.04);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.review-login-card {
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(14px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-card-head h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.review-card-head p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.review-form {
  display: grid;
  gap: 10px;
}

.review-login-card .field {
  display: grid;
  gap: 5px;
}

.review-login-card .field label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #4b5563;
}

.review-login-card input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 10px 11px;
  background: white;
  font: inherit;
  font-size: 13px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.review-login-card .btn {
  border: 0;
  border-radius: 10px;
  background: #2b2d2e;
  color: white;
  font-weight: 800;
  padding: 10px 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.review-login-card .btn.secondary {
  background: rgba(0,113,178,.10);
  color: var(--accent);
}

.review-submit {
  width: 100%;
  margin-top: 4px;
}

.privacy-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #111827;
  color: white;
  padding: 24px 18px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.sidebar a {
  color: #dbe4f0;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}

.sidebar a.active, .sidebar a:hover {
  background: #263244;
  color: white;
}

.app-shell {
  margin-left: 232px;
  padding: 28px;
}

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

.setup-strip, .kpi-grid, .metric-grid {
  display: grid;
  gap: 12px;
}

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

.setup-step, .kpi-grid article, .campaign-card, .empty-state, .metric-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.setup-step {
  padding: 14px;
  color: var(--muted);
}

.setup-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2f7;
  margin-right: 8px;
}

.setup-step.done {
  color: var(--green);
}

.empty-state {
  padding: 28px;
}

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

.kpi-grid article {
  padding: 16px;
}

.kpi-grid span, .metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.kpi-grid strong, .metric-grid strong {
  font-size: 24px;
}

.campaign-list {
  display: grid;
  gap: 16px;
}

.campaign-card {
  padding: 18px;
}

.campaign-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.head-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  background: #dbeafe;
  color: var(--blue);
}

.status.active { background: #dcfce7; color: var(--green); }
.status.paused { background: #fef3c7; color: var(--orange); }
.status.deleted, .status.archived { background: #fee2e2; color: var(--red); }

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

.metric-grid > div {
  padding: 14px;
  min-height: 96px;
  position: relative;
}

.tiny {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: #eef2f7;
  color: var(--text);
}

.positive { color: var(--green); }
.negative, .error-text { color: var(--red); }

.campaign-edit {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 8px;
  margin-top: 14px;
  align-items: start;
}

.demo-notes {
  margin-top: 14px;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
}

.modal-panel header, .toolbar, .order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.toolbar {
  margin: 12px 0;
}

.picker-list, .orders-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.picker-row, .order-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.picker-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.picker-row input {
  width: auto;
  margin-top: 5px;
}

small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .install-page { padding: 16px; }
  .install-shell { grid-template-columns: 1fr; }
  .install-copy { min-height: auto; padding: 28px; }
  .install-copy h1 { font-size: 34px; margin-top: 48px; }
  .review-login-body { padding: 16px; }
  .review-login-shell { grid-template-columns: 1fr; }
  .review-login-copy { min-height: auto; gap: 44px; }
  .review-login-copy h1 { font-size: 32px; }
  .inline-field { flex-direction: column; }
  .sidebar { position: static; width: auto; }
  .app-shell { margin-left: 0; padding: 18px; }
  .kpi-grid, .metric-grid, .setup-strip { grid-template-columns: 1fr; }
  .campaign-head, .topbar, .campaign-edit { grid-template-columns: 1fr; flex-direction: column; }
}

/* Publish Music admin dashboard styling, scoped to the AdMetric dashboard. */
.dashboard-body {
  --bg: linear-gradient(180deg,#f6f7fa 0%,#e8edf4 48%,#dde4ee 100%);
  --panel: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.05);
  --accent:#0071b2;
  --accent2:#6a5acd;
  --muted:#6b7280;
  --text:#1b1e21;
  --danger:#d13333;
  --warning:#c66b00;
  --ok:#178647;
  --blur:blur(14px);
  --shadow:0 10px 40px rgba(0,0,0,0.06);
  min-height:100vh;
  display:flex;
  font-family:"Inter",system-ui,sans-serif;
  color:var(--text);
  background:var(--bg);
}
.dashboard-body .sidebar{width:250px;background:rgba(255,255,255,.35);backdrop-filter:var(--blur);border-right:1px solid rgba(255,255,255,.3);display:flex;flex-direction:column;gap:22px;padding:22px 18px 16px;position:fixed;top:0;left:0;height:100vh;overflow-y:auto;}
.dashboard-body .brand{display:flex;align-items:center;gap:10px}
.dashboard-body .logo{width:38px;height:38px;border-radius:14px;background:linear-gradient(140deg,var(--accent),var(--accent2));display:grid;place-items:center;font-weight:800;color:white;box-shadow:0 10px 25px rgba(0,113,178,.4)}
.dashboard-body .brand-text{font-size:15px;font-weight:700}
.dashboard-body .sub,.dashboard-body .user-email{font-size:11px;color:var(--muted)}
.dashboard-body .user{background:rgba(255,255,255,.55);border-radius:14px;padding:11px 12px;box-shadow:var(--shadow)}
.dashboard-body .user-name{font-weight:700;font-size:14px}
.dashboard-body .nav{display:flex;flex-direction:column;height:100%}
.dashboard-body .nav-top{display:flex;flex-direction:column;gap:5px}
.dashboard-body .nav a{text-decoration:none;padding:7px 11px;border-radius:10px;color:var(--text);font-size:13.5px;display:flex;align-items:center;gap:7px}
.dashboard-body .nav a.active,.dashboard-body .nav a:hover{background:linear-gradient(90deg,rgba(0,113,178,.14),rgba(106,212,255,.05));color:var(--accent)}
.dashboard-body .mobile-topbar,.dashboard-body .mobile-menu{display:none;}
.dashboard-body .dashboard-main{flex:1;margin-left:250px;padding:20px 28px 60px;min-width:0;}
.dashboard-body .page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px}
.dashboard-body .page-header h1{font-size:22px;margin:0 0 4px}
.dashboard-body .page-subtitle{margin:0;color:var(--muted);font-size:13px}
.dashboard-body .page-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-body .currency-select{border:1px solid rgba(0,0,0,.08);border-radius:10px;background:white;padding:8px 10px;font:inherit;font-size:13px;font-weight:800;color:var(--text)}
.dashboard-body .panel{background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.48);border-radius:14px;box-shadow:var(--shadow);padding:16px;margin-bottom:14px;}
.dashboard-body .panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}
.dashboard-body .panel h2{font-size:16px;margin:0 0 4px}
.dashboard-body .panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.dashboard-body .action-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.dashboard-body .action-card{background:rgba(255,255,255,.70);border:1px solid rgba(255,255,255,.50);border-radius:14px;box-shadow:var(--shadow);padding:14px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.dashboard-body .action-card h2{font-size:15px;margin:0 0 4px}
.dashboard-body .action-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.dashboard-body .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dashboard-body .field{display:grid;gap:5px}
.dashboard-body .field label{font-size:12px;font-weight:800;color:#4b5563}
.dashboard-body .field input,.dashboard-body .field textarea{width:100%;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px 11px;background:white;font:inherit;font-size:13px}
.dashboard-body .field textarea{min-height:88px;resize:vertical}
.dashboard-body .wide{grid-column:1/-1}
.dashboard-body .btn{border:0;border-radius:10px;background:#2b2d2e;color:white;font-weight:800;padding:10px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.dashboard-body .btn.secondary{background:rgba(0,113,178,.10);color:var(--accent)}
.dashboard-body .btn.danger{background:rgba(209,51,51,.10);color:var(--danger)}
.dashboard-body .btn:disabled{opacity:.45;cursor:not-allowed}
.dashboard-body .summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.dashboard-body .summary-card{border-radius:12px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.04);padding:12px}
.dashboard-body .summary-card span{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}
.dashboard-body .summary-card strong{display:block;margin-top:7px;font-size:22px;line-height:1}
.dashboard-body .summary-card.positive strong{color:var(--ok)}
.dashboard-body .summary-card.negative strong{color:var(--danger)}
.dashboard-body .metric-label{display:flex!important;align-items:center;gap:5px;position:relative;width:max-content;max-width:100%}
.dashboard-body .tip{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;min-width:15px;border-radius:50%;border:0;background:rgba(0,0,0,.10);color:var(--muted);font-size:9px;font-weight:900;line-height:15px;cursor:help;position:relative;padding:0;text-align:center}
.dashboard-body .tip::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:220px;background:#1f2933;color:white;border-radius:8px;padding:8px 9px;font-size:12px;font-weight:700;line-height:1.35;text-transform:none;box-shadow:0 14px 35px rgba(15,23,42,.22);opacity:0;pointer-events:none;z-index:30}
.dashboard-body .tip::before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);border:5px solid transparent;border-top-color:#1f2933;opacity:0;pointer-events:none;z-index:31}
.dashboard-body .tip:hover::after,.dashboard-body .tip:focus::after,.dashboard-body .tip:hover::before,.dashboard-body .tip:focus::before{opacity:1}
.dashboard-body .campaign-grid{display:grid;grid-template-columns:1fr;gap:14px}
.dashboard-body .campaign-card{background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.56);border-radius:14px;box-shadow:0 10px 34px rgba(0,0,0,.06);padding:14px;display:grid;gap:12px;width:100%}
.dashboard-body .campaign-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.dashboard-body .campaign-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dashboard-body .campaign-title{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.dashboard-body .rename-btn,.dashboard-body .meta-open-btn{border:0;border-radius:9px;background:rgba(0,113,178,.10);color:var(--accent);height:28px;padding:0 9px;font-size:12px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.dashboard-body .meta-open-btn{background:rgba(0,0,0,.07);color:var(--text)}
.dashboard-body .campaign-id{color:var(--muted);font-size:12px;margin-top:3px}
.dashboard-body .campaign-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-body .status-badge{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(0,113,178,.10);color:var(--accent);white-space:nowrap}
.dashboard-body .status-badge.active{background:rgba(23,134,71,.12);color:var(--ok)}
.dashboard-body .status-badge.paused{background:rgba(236,130,0,.13);color:var(--warning)}
.dashboard-body .metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dashboard-body .metric{border-radius:10px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.04);padding:9px;min-width:0;text-align:left;position:relative}
.dashboard-body .metric span{display:block;color:var(--muted);font-size:11px;font-weight:800}
.dashboard-body .metric strong{display:block;margin-top:4px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-body .metric.positive strong{color:var(--ok)}
.dashboard-body .metric.negative strong{color:var(--danger)}
.dashboard-body .metric-button{width:100%;font:inherit;color:inherit;position:relative;padding-right:58px}
.dashboard-body .metric-button:hover{border-color:rgba(0,113,178,.22);background:rgba(0,113,178,.06)}
.dashboard-body .metric-cta{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;border-radius:999px;background:rgba(0,113,178,.12);color:var(--accent);padding:4px 8px;font-size:11px;font-weight:900;cursor:pointer}
.dashboard-body .notice{border-radius:12px;padding:10px 12px;margin-bottom:12px;font-size:13px;font-weight:800}
.dashboard-body .notice.ok{background:rgba(23,134,71,.11);color:var(--ok)}
.dashboard-body .notice.error{background:rgba(209,51,51,.10);color:var(--danger)}
.dashboard-body .error-card{border-color:rgba(209,51,51,.20);background:rgba(255,245,245,.84)}
.dashboard-body .error-text{color:var(--danger);font-size:12px;line-height:1.5}
.dashboard-body .card-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.dashboard-body .notes-form{display:grid;grid-template-columns:minmax(260px,520px) auto;align-items:end;gap:8px}
.dashboard-body .notes-form .field textarea{min-height:54px}
.dashboard-body .notes-form .btn{justify-self:start}
.dashboard-body .order-list{display:grid;gap:8px;margin-bottom:14px}
.dashboard-body .order-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border:1px solid rgba(0,0,0,.06);border-radius:10px;background:rgba(255,255,255,.78);padding:10px;color:var(--text)}
.dashboard-body .order-name{font-weight:800;font-size:13px}
.dashboard-body .order-meta{color:var(--muted);font-size:12px;margin-top:3px}
.dashboard-body .order-value{font-weight:800;font-size:13px;white-space:nowrap}
.dashboard-body .order-open{border-radius:9px;background:#2b2d2e;color:white;text-decoration:none;font-size:12px;font-weight:800;padding:7px 9px;white-space:nowrap}
.dashboard-body .campaign-picker-tools{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-bottom:10px}
.dashboard-body .campaign-picker-search{width:100%;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px 11px;background:white;font:inherit;font-size:13px}
.dashboard-body .picker-toggle{display:inline-flex;align-items:center;gap:7px;border-radius:10px;background:rgba(0,0,0,.06);height:40px;padding:0 10px;font-size:12px;font-weight:800;white-space:nowrap}
.dashboard-body .picker-toggle input{width:16px;height:16px}
.dashboard-body .campaign-picker-list{display:grid;gap:8px;max-height:420px;overflow:auto;margin-bottom:12px}
.dashboard-body .campaign-picker-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid rgba(0,0,0,.06);border-radius:10px;background:rgba(255,255,255,.78);padding:10px}
.dashboard-body .campaign-picker-item input{width:18px;height:18px}
.dashboard-body .campaign-picker-title{font-weight:800;font-size:13px}
.dashboard-body .campaign-picker-meta{color:var(--muted);font-size:12px;margin-top:3px}
.dashboard-body .campaign-picker-status{font-size:12px;font-weight:800;border-radius:999px;padding:5px 8px;background:rgba(0,113,178,.10);color:var(--accent)}
.dashboard-body .campaign-picker-status.active{background:rgba(22,163,74,.12);color:#16A34A}
.dashboard-body .campaign-picker-status.paused{background:rgba(245,158,11,.13);color:#F59E0B}
.dashboard-body .campaign-picker-status.deleted,.dashboard-body .campaign-picker-status.archived{background:rgba(209,51,51,.10);color:var(--danger)}
.dashboard-body .picker-loading{display:flex;align-items:center;gap:10px;border-radius:12px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.05);padding:14px;font-weight:800}
.dashboard-body .spinner{width:18px;height:18px;border:3px solid rgba(0,113,178,.18);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.dashboard-body .modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:20px;z-index:2000}
.dashboard-body .modal-backdrop.open{display:flex}
.dashboard-body .modal-panel{width:min(760px,100%);max-height:92vh;overflow:auto;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.72);border-radius:18px;box-shadow:0 30px 80px rgba(15,23,42,.24);padding:20px}
.dashboard-body .modal-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px}
.dashboard-body .modal-header h2{font-size:20px;margin:0 0 4px}
.dashboard-body .modal-header p{margin:0;color:var(--muted);font-size:13px}
.dashboard-body .modal-close{border:0;border-radius:12px;background:rgba(0,0,0,.07);width:42px;height:42px;font-size:24px;cursor:pointer}
.dashboard-body .modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
@media(max-width:1200px){.dashboard-body .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .dashboard-body{display:block}
  .dashboard-body .sidebar{display:none}
  .dashboard-body .mobile-topbar{z-index:999;position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--panel);backdrop-filter:var(--blur);padding:10px 14px;box-shadow:0 4px 18px rgba(0,0,0,.06)}
  .dashboard-body .mobile-menu{display:none;flex-direction:column;background:var(--panel);backdrop-filter:var(--blur);padding:10px 16px}
  .dashboard-body .mobile-menu a{text-decoration:none;color:var(--text);padding:10px 0;border-bottom:1px solid rgba(0,0,0,.05)}
  .dashboard-body .menu-btn{border:0;border-radius:10px;background:rgba(0,0,0,.07);min-width:64px;height:38px;font-size:13px;font-weight:800}
  .dashboard-body .dashboard-main{margin-left:0;padding:16px 12px 40px}
  .dashboard-body .page-header,.dashboard-body .panel-head{align-items:flex-start;flex-direction:column}
  .dashboard-body .action-strip,.dashboard-body .settings-grid,.dashboard-body .summary-grid,.dashboard-body .campaign-grid,.dashboard-body .notes-form{grid-template-columns:1fr}
  .dashboard-body .action-card{align-items:stretch;flex-direction:column}
  .dashboard-body .wide{grid-column:auto}
  .dashboard-body .btn{width:100%}
  .dashboard-body .card-actions,.dashboard-body .modal-actions{flex-direction:column;align-items:stretch}
  .dashboard-body .order-row{grid-template-columns:1fr}
  .dashboard-body .order-open{display:inline-flex;justify-content:center}
  .dashboard-body .modal-panel{padding:16px}
  .dashboard-body .modal-actions{flex-direction:column-reverse}
}

/* No-sidebar public app layout. */
.dashboard-body {
  display:block;
}
.dashboard-body .sidebar,
.dashboard-body .mobile-topbar,
.dashboard-body .mobile-menu {
  display:none!important;
}
.dashboard-body .dashboard-main {
  width:min(1380px,100%);
  margin:0 auto;
  padding:24px 28px 60px;
}
.dashboard-body .dashboard-brand {
  margin-bottom:18px;
}
.dashboard-body .tracked-panel {
  margin-top:10px;
}
.dashboard-body .summary-grid {
  margin-bottom:0;
}

/* Single-card review login. */
.review-login-shell {
  width:min(560px,100%);
  display:block;
}
.review-login-copy {
  display:none;
}
.review-login-card {
  min-height:auto;
  gap:18px;
}
.review-login-card .brand {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.review-login-card .logo {
  width:38px;
  height:38px;
  border-radius:14px;
  background:linear-gradient(140deg,var(--accent),var(--accent2));
  display:grid;
  place-items:center;
  font-weight:800;
  color:white;
  box-shadow:0 10px 25px rgba(0,113,178,.4);
}
.review-login-card .brand-text {
  font-size:15px;
  font-weight:800;
}
.review-card-head h1 {
  margin:0 0 8px;
  font-size:30px;
  line-height:1.08;
}
.review-badges {
  margin-bottom:4px;
}

@media(max-width:900px){
  .dashboard-body .dashboard-main{padding:16px 12px 40px}
  .dashboard-body .dashboard-brand{margin-bottom:14px}
  .dashboard-body .tracked-panel{margin-top:8px}
}
