:root {
  color-scheme: light;
  --bg: #f8fafd;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #e8eef8;
  --text: #202124;
  --muted: #5f6368;
  --line: #dfe4ee;
  --primary: #1a73e8;
  --primary-2: #174ea6;
  --success: #188038;
  --warning: #f29900;
  --danger: #d93025;
  --purple: #8430ce;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --shadow: 0 18px 44px rgba(32, 33, 36, 0.08);
  --shadow-soft: 0 1px 2px rgba(60, 64, 67, 0.18), 0 8px 24px rgba(60, 64, 67, 0.08);
  --radius: 8px;
}

.h5-page {
  min-height: 100vh;
  padding-bottom: 116px;
  background: #f3f6f8;
  color: #1f2933;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.h5-topbar,
.h5-hero,
.h5-panel,
.h5-feed,
.h5-footer {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
}

.h5-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 0;
}

.h5-brand,
.h5-topbar nav,
.h5-footer {
  display: flex;
  align-items: center;
}

.h5-brand {
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.h5-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 850;
}

.h5-brand b {
  font-size: 16px;
}

.h5-topbar nav {
  gap: 6px;
}

.h5-topbar nav a {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.h5-topbar nav a:hover {
  background: #e7edf3;
  color: #111827;
}

.h5-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: stretch;
  padding: 12px 0 14px;
}

.h5-hero > div,
.h5-date-card,
.h5-panel,
.h5-card {
  border: 1px solid #dde5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
}

.h5-hero > div {
  padding: 20px;
}

.h5-kicker {
  display: inline-block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.h5-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.h5-hero p,
.h5-card p,
.h5-note p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.65;
}

.h5-date-card {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
}

.h5-date-card span,
.h5-date-card small {
  color: #6b7684;
  font-size: 12px;
  font-weight: 750;
}

.h5-date-card strong {
  font-size: 32px;
}

.h5-panel {
  padding: 18px;
  margin-top: 10px;
}

.h5-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h5-panel-head h2,
.h5-note h2,
.h5-card h3 {
  margin: 0;
}

.h5-panel-head span {
  color: #6b7684;
  font-size: 12px;
  font-weight: 800;
}

.h5-task-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.h5-task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8fb;
}

.h5-task-list span {
  font-weight: 780;
}

.h5-task-list strong {
  color: #2563eb;
  font-size: 13px;
}

.h5-feed {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.h5-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  padding: 16px;
}

.h5-card > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 23px;
}

.h5-note {
  display: grid;
  gap: 8px;
}

.h5-bottom-banner {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
}

.h5-bottom-banner[data-adbridge-state="loading"],
.h5-bottom-banner[data-adbridge-state="filled"] {
  min-height: 82px;
}

.h5-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 34px;
  color: #6b7684;
  font-size: 13px;
}

.h5-footer a {
  color: #2563eb;
  font-weight: 820;
  text-decoration: none;
}

@media (max-width: 560px) {
  .h5-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .h5-date-card {
    text-align: left;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --surface: #171b20;
  --surface-2: #20252c;
  --surface-3: #2a3038;
  --text: #f1f3f4;
  --muted: #bdc1c6;
  --line: #333a45;
  --primary: #8ab4f8;
  --primary-2: #aecbfa;
  --success: #81c995;
  --warning: #fdd663;
  --danger: #f28b82;
  --purple: #c58af9;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.28), 0 12px 30px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.96) 44%, var(--bg) 100%),
    linear-gradient(90deg, rgba(26, 115, 232, 0.05), rgba(52, 168, 83, 0.04) 38%, rgba(251, 188, 4, 0.04) 72%, rgba(234, 67, 53, 0.035));
}

[data-theme="dark"] body::before {
  background:
    linear-gradient(180deg, #11161c 0%, var(--bg) 48%, var(--bg) 100%),
    linear-gradient(90deg, rgba(138, 180, 248, 0.08), rgba(129, 201, 149, 0.05), rgba(253, 214, 99, 0.04));
}

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

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  max-width: 100vw;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(125, 211, 252, 0.85), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 56%, #10b981 100%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: var(--shadow-soft);
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.top-actions,
.row-actions,
.toolbar,
.form-row,
.tabs,
.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-menu-toggle {
  display: none;
}

.language-select {
  display: block;
  width: auto;
  min-width: 78px;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  font-weight: 800;
}

.shell-main {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding: 18px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
}

.nav-btn:hover,
.nav-btn.active {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  font-size: 21px;
  font-weight: 500;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-label {
  margin: 10px 6px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.content {
  min-width: 0;
  padding: 28px;
}

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

.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-desc {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.panel,
.metric,
.landing-panel,
.auth-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 18px;
}

.panel.tight {
  padding: 12px;
}

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

.panel-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.panel-note,
.small,
.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric {
  min-height: 112px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--google-green), var(--google-yellow));
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.metric-value {
  margin-top: 9px;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.1;
}

.metric-foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.btn,
.icon-btn,
.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 750;
  text-decoration: none;
}

.icon-btn {
  width: 36px;
  padding: 0;
}

.top-actions .nav-menu-toggle {
  display: none;
}

.btn:hover,
.icon-btn:hover,
.seg-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.btn.primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #4285f4);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 18%, transparent);
}

.btn.success {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn.ghost {
  background: transparent;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px;
}

.language-switch {
  display: none;
  scrollbar-width: none;
}

.language-switch::-webkit-scrollbar {
  display: none;
}

.seg-btn {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.responsive-table {
  min-width: 0;
}

.mobile-cards {
  display: none;
}

.upload-panel,
.asset-list,
.creative-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.compact-list {
  max-height: 240px;
  overflow: auto;
}

.upload-drop {
  display: grid;
  gap: 8px;
  border: 1px dashed color-mix(in srgb, var(--primary) 36%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  padding: 18px;
  color: var(--text);
}

.upload-drop .material-symbols-rounded {
  color: var(--primary);
  font-size: 30px;
}

.upload-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.upload-pseudo {
  justify-self: start;
  margin-top: 2px;
}

.asset-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.asset-preview img,
.asset-chip img,
.creative-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.asset-preview img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.asset-chip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px;
  color: var(--text);
  text-align: left;
}

.asset-chip img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.asset-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.creative-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.creative-thumb {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  overflow: hidden;
}

.creative-meta {
  min-width: 0;
}

.creative-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.creative-title strong,
.creative-meta p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.creative-meta p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.45;
}

.creative-card.selected {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.creative-preview-panel .panel-head,
.admin-ad-preview-page .panel-head {
  align-items: center;
}

.toolbar.compact {
  justify-content: flex-end;
  gap: 8px;
}

.compact-control {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-control .compact-select {
  min-height: 34px;
}

.creative-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.creative-preview-stage,
.domain-preview-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 14px;
  overflow: hidden;
}

.preview-device-frame,
.domain-preview-browser {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.creative-preview-stage.h5 .preview-device-frame {
  width: min(390px, 100%);
  margin: 0 auto;
}

.preview-device-bar,
.domain-preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-device-bar span,
.domain-preview-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--google-red);
}

.preview-device-bar span:nth-child(2),
.domain-preview-top span:nth-child(2) {
  background: var(--google-yellow);
}

.preview-device-bar span:nth-child(3),
.domain-preview-top span:nth-child(3) {
  background: var(--google-green);
}

.preview-device-bar b,
.domain-preview-top strong {
  min-width: 0;
  margin-left: 5px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-content-surface {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.preview-page-lines {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.preview-page-lines span {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.preview-page-lines span:nth-child(2) {
  width: 72%;
}

.preview-page-lines span:nth-child(3) {
  width: 46%;
}

.admin-ad-preview {
  display: grid;
  grid-template-columns: minmax(88px, 150px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  border: 1px solid color-mix(in srgb, var(--creative-accent, var(--primary)) 32%, var(--line));
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.creative-preview-stage.h5 .admin-ad-preview,
.domain-preview-frame.h5 .admin-ad-preview {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 86px;
  padding: 9px;
}

.admin-ad-preview-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 8px;
}

.creative-preview-stage.h5 .admin-ad-preview-media,
.domain-preview-frame.h5 .admin-ad-preview-media {
  aspect-ratio: 1 / 1;
}

.admin-ad-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-ad-preview-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-ad-preview-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ad-preview-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.12;
}

.admin-ad-preview-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-ad-preview-cta {
  justify-self: end;
  border-radius: 8px;
  background: var(--creative-accent, var(--primary));
  color: #fff;
  padding: 10px 13px;
  font-size: 12px;
  white-space: nowrap;
}

.creative-preview-stage.h5 .admin-ad-preview-cta,
.domain-preview-frame.h5 .admin-ad-preview-cta {
  grid-column: 2;
  justify-self: start;
  padding: 7px 10px;
}

.creative-preview-meta {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.empty-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.empty-preview .material-symbols-rounded {
  color: var(--primary);
  font-size: 34px;
}

.domain-preview-frame.h5 .domain-preview-browser {
  width: min(390px, 100%);
  margin: 0 auto;
}

.domain-preview-page {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
}

.domain-preview-page header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-article {
  display: grid;
  gap: 7px;
  max-width: 780px;
}

.preview-article h3 {
  margin: 0;
  font-size: 20px;
}

.preview-article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.preview-article.muted {
  opacity: 0.75;
}

.domain-ad-block {
  display: grid;
  gap: 7px;
}

.domain-ad-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

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

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

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.active,
.status.approved,
.status.completed,
.status.paid,
.status.verified {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.status.submitted,
.status.pending,
.status.draft,
.status.under_review,
.status.paused {
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  color: var(--warning);
}

.status.rejected,
.status.suspended,
.status.archived,
.status.cancelled {
  background: color-mix(in srgb, var(--danger) 13%, transparent);
  color: var(--danger);
}

.codebox {
  position: relative;
  overflow: auto;
  min-height: 108px;
  max-height: 320px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #e5edf8;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 150px) minmax(0, 1fr) 80px;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  color: var(--muted);
  font-size: 12px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}

.event {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.ticket-list,
.ticket-thread,
.admin-ticket-list {
  display: grid;
  gap: 12px;
}

.ticket-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ticket-head > div,
.ticket-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ticket-head strong {
  display: block;
  margin-bottom: 3px;
}

.ticket-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ticket-reply-form {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.event code,
.env-list code {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--surface-2);
  padding: 2px 6px;
  color: var(--text);
  font-size: 11px;
}

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

.kv {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.kv strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.checklist,
.health-list {
  display: grid;
  gap: 8px;
}

.check-item,
.health-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.check-dot,
.health-row > span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--warning);
  font-size: 10px;
  font-weight: 900;
}

.check-item.done .check-dot,
.health-row.ok > span {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.health-row small,
.check-item .small {
  display: block;
  margin-top: 3px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.timeline-title,
.mobile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.timeline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-steps.wide span {
  flex: 1 1 130px;
}

.timeline-steps span {
  min-height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.timeline-steps span.done {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

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

.debug-column {
  min-width: 0;
}

.debug-column h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.readiness-card,
.mobile-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.source-toggle-grid {
  display: grid;
  gap: 12px;
}

.source-toggle-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.source-toggle-card .btn {
  justify-self: start;
}

.env-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.toggle input {
  width: auto;
  min-height: auto;
}

.compact-select,
.audit-filter {
  width: min(260px, 100%);
}

.row-actions.compact {
  align-items: stretch;
}

.security-event.high {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
}

.security-event.medium {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
}

.landing {
  min-height: 100vh;
}

.landing-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 30px;
  align-items: center;
}

.product-hero {
  min-height: min(560px, calc(100vh - 120px));
}

.hero-copy-block,
.login-gateway,
.console-preview,
.preview-screen {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-soft);
}

.hero-copy-block {
  padding: clamp(18px, 3.5vw, 42px) 0;
  display: grid;
  align-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy-luxe {
  background: transparent;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(26, 115, 232, 0.13), var(--shadow-soft);
  aspect-ratio: 16 / 10;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-visual figcaption span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(223, 228, 238, 0.9);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px);
  padding: 10px;
}

.hero-visual figcaption strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.hero-visual figcaption small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.login-gateway {
  padding: 22px;
}

.hero-product-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.product-shot {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(255, 255, 255, 0.96) 38%, rgba(52, 168, 83, 0.08)),
    var(--surface);
}

.product-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
}

.product-window-bar span {
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--google-red), var(--google-yellow), var(--google-green), var(--primary));
}

.product-window-bar strong {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.product-window-bar em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.product-shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
}

.shot-main,
.shot-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.shot-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shot-kpi-row span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.shot-kpi-row strong {
  font-size: 22px;
}

.shot-kpi-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.ad-format-sample {
  display: grid;
  gap: 8px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface) 46%, color-mix(in srgb, var(--google-green) 10%, var(--surface)));
  padding: 16px;
}

.ad-format-sample.compact {
  align-content: center;
}

.ad-format-sample strong {
  font-size: 20px;
  line-height: 1.15;
}

.ad-format-sample p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.ad-pill {
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 11%, var(--surface));
  color: var(--primary);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
}

.mini-browser {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0 12px;
}

.mini-browser span {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
}

.mini-browser span:first-child {
  width: 84px;
  background: linear-gradient(90deg, var(--primary), var(--google-green));
}

.flow-stack {
  display: grid;
  gap: 10px;
}

.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
  padding: 12px;
}

.flow-step > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  font-size: 24px;
}

.flow-step small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.gateway-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gateway-strip,
.trust-row,
.mediation-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gateway-strip span,
.trust-row span,
.mediation-preview span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.trust-row span:nth-child(1) {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  color: var(--primary);
}

.trust-row span:nth-child(2) {
  border-color: color-mix(in srgb, var(--google-green) 28%, var(--line));
  color: var(--success);
}

.trust-row span:nth-child(3) {
  border-color: color-mix(in srgb, var(--google-yellow) 35%, var(--line));
  color: #9a6500;
}

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

.trust-band span {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  padding: 14px;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.trust-band i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-2));
  color: var(--primary);
}

.trust-band b {
  line-height: 1.25;
}

.section-block {
  margin-top: 42px;
}

.legal-article {
  display: grid;
  gap: 16px;
}

.legal-article .section-block {
  margin-top: 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 18px;
}

.section-head h2,
.split-band h2,
.payout-band h2,
.public-page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p,
.split-band p,
.payout-band p,
.public-page-hero p,
.faq-item p,
.launch-step p,
.format-meta p {
  color: var(--muted);
  line-height: 1.55;
}

.split-band,
.payout-band,
.public-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface-2) 70%, var(--surface)));
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 3vw, 28px);
}

.launch-steps {
  display: grid;
  gap: 10px;
}

.launch-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.launch-step > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4285f4);
  color: #fff;
  font-weight: 900;
}

.launch-step p {
  margin: 4px 0 0;
}

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

.format-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.format-visual,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.format-visual {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 210px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), transparent 42%),
    linear-gradient(25deg, transparent, color-mix(in srgb, var(--google-green) 14%, var(--surface))),
    var(--surface);
}

.format-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.format-visual span {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 1px 7px rgba(32, 33, 36, 0.1);
}

.format-visual strong {
  font-size: 23px;
}

.format-visual p,
.format-meta p {
  margin: 0;
}

.format-meta {
  display: grid;
  gap: 8px;
}

.format-meta h3,
.faq-item strong {
  margin: 0;
  font-size: 17px;
}

.faq-block .grid {
  align-items: stretch;
}

.faq-item {
  padding: 16px;
}

.faq-item p {
  margin: 8px 0 0;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

.public-footer div,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-footer strong {
  color: var(--text);
}

.public-footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  font-weight: 750;
}

.public-footer button:hover {
  color: var(--primary);
}

.public-page-hero {
  margin-bottom: 18px;
}

.public-page-image {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.landing-panel,
.auth-panel {
  padding: 18px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), color-mix(in srgb, var(--google-green) 12%, var(--surface)));
  color: var(--primary);
  font-size: 25px;
}

.hero-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.console-preview {
  margin-top: 22px;
  padding: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
    var(--surface);
}

.preview-screen {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.preview-toolbar,
.preview-line {
  border-radius: 8px;
  background: var(--surface-2);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
}

.preview-toolbar span {
  display: block;
  width: 64px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--google-green));
}

.preview-toolbar span:nth-child(2) {
  background: linear-gradient(90deg, var(--google-red), var(--google-yellow));
}

.preview-toolbar span:nth-child(3) {
  width: 110px;
  background: var(--surface-3);
}

.preview-line {
  height: 12px;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-kpi {
  min-height: 78px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line);
  padding: 10px;
}

.preview-ad {
  min-height: 82px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), color-mix(in srgb, var(--google-yellow) 16%, var(--surface)));
  border: 1px solid var(--line);
  padding: 12px;
}

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

.waterfall-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.source-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--google-green) 18%, transparent));
  color: var(--primary);
  font-weight: 900;
}

.embedded-panel {
  display: grid;
  gap: 10px;
}

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

.auth-main,
.docs-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px 72px;
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 22px;
  align-items: stretch;
}

.auth-art,
.refined-auth,
.docs-nav,
.docs-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.auth-art {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 520px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.08), transparent 42%),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 62%, var(--surface)));
}

.auth-art h1,
.docs-content h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.auth-art p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.auth-signal-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.compact-shield span {
  font-size: 11px;
}

.auth-switch {
  margin-top: 12px;
  width: 100%;
}

.verification-card {
  align-self: center;
  padding: 22px;
}

.verification-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  padding: 12px;
}

.verification-notice .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
}

.verification-notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.verification-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.code-input {
  min-height: 58px;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 26px;
  font-weight: 850;
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.resend-row .btn {
  flex: 0 0 auto;
}

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

.docs-nav {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.docs-nav a {
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.docs-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.docs-mobile-nav {
  display: none;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.docs-mobile-nav summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 850;
}

.docs-mobile-nav div {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.docs-mobile-nav a {
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.docs-mobile-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.docs-content {
  padding: clamp(22px, 4vw, 42px);
}

.docs-section-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.docs-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.docs-section p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.docs-summary {
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 700;
}

.docs-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.docs-code {
  margin-top: 14px;
  min-height: 0;
}

.docs-callout {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  color: var(--text);
  padding: 12px;
  line-height: 1.55;
  font-size: 13px;
}

.compact-metrics .metric {
  min-height: 86px;
}

.compact-metrics .metric-value {
  font-size: 19px;
}

.intelligence-list {
  max-height: 420px;
}

.toast {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  box-shadow: var(--shadow);
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
}

.toast.error {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: #9d1c1c;
}

.toast.info {
  color: color-mix(in srgb, var(--primary) 74%, var(--text));
}

.toast .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 22px;
}

.toast strong {
  font-weight: 850;
  line-height: 1.35;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .top-actions .nav-menu-toggle {
    display: inline-flex;
  }

  .public-nav {
    position: absolute;
    top: 58px;
    right: 16px;
    z-index: 40;
    display: none;
    width: min(280px, calc(100vw - 32px));
    grid-template-columns: 1fr;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .public-nav.open {
    display: grid;
  }

  .public-nav .top-link {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .shell-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 68px;
    z-index: 15;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }

  .nav-group {
    display: flex;
    gap: 8px;
  }

  .nav-label {
    display: none;
  }

  .nav-btn {
    width: auto;
    white-space: nowrap;
  }

  .grid.cols-5,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .hero-grid,
  .doc-grid,
  .auth-main,
  .docs-layout,
  .product-shot-grid,
  .split-band,
  .payout-band,
  .public-page-hero,
  .format-showcase {
    grid-template-columns: 1fr;
  }

  .page-head {
    display: grid;
  }

  .debug-grid,
  .readiness-grid,
  .creative-preview-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    display: none;
  }

  .docs-mobile-nav {
    display: block;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 12px;
  }

  .content {
    padding: 14px;
  }

  .top-actions {
    gap: 6px;
  }

  .brand {
    max-width: 52px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .brand > span:not(.brand-mark) {
    display: none;
  }

  .brand-sub,
  .top-actions .hide-sm {
    display: none;
  }

  .language-select {
    min-width: 62px;
    max-width: 72px;
  }

  .top-actions > .btn.top-link {
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-actions > .icon-btn:not(.nav-menu-toggle) {
    display: none;
  }

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

  .resend-row .btn {
    width: 100%;
  }

  .page-title {
    font-size: 21px;
  }

  .hero-title {
    font-size: 36px;
  }

  .landing .status {
    white-space: normal;
  }

  .form-row,
  .row-actions,
  .toolbar {
    align-items: stretch;
  }

  .form-row > .field,
  .row-actions .btn,
  .toolbar .btn,
  .toolbar a.btn {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .responsive-table .table-wrap {
    display: none;
  }

  .mobile-cards {
    display: grid;
    gap: 10px;
  }

  .kv-grid,
  .preview-kpis,
  .shot-kpi-row {
    grid-template-columns: 1fr;
  }

  .kv {
    display: grid;
    gap: 4px;
  }

  .kv strong {
    text-align: left;
  }

  .timeline-title,
  .mobile-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .segmented {
    width: 100%;
  }

  .seg-btn {
    flex: 1 1 auto;
  }

  .codebox {
    max-height: 260px;
  }

  .creative-card,
  .asset-preview {
    grid-template-columns: 1fr;
  }

  .creative-thumb {
    min-height: 140px;
  }

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

  .creative-preview-panel .panel-head,
  .admin-ad-preview-page .panel-head {
    display: grid;
  }

  .admin-ad-preview {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-ad-preview-cta {
    grid-column: 2;
    justify-self: start;
  }

  .domain-preview-page,
  .preview-content-surface {
    padding: 12px;
  }

  .auth-main,
  .docs-layout,
  .landing-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-art {
    min-height: auto;
  }
}
