:root {
  --color-background: #f5f7fa;
  --color-surface: #fff;
  --color-surface-muted: #f8fafc;
  --color-border: #e1e6ee;
  --color-border-strong: #c9d3df;
  --color-text-primary: #1c2939;
  --color-text-secondary: #526275;
  --color-text-muted: #6b7a8c;
  --color-primary: #1f4e8c;
  --color-primary-hover: #173d70;
  --color-primary-soft: #edf3fa;
  --color-primary-border: #c8d8ea;
  --color-success: #23704f;
  --color-warning: #8a631b;
  --color-danger: #a63d42;
  --color-info: #315e8d;
  --focus-ring: 0 0 0 3px rgba(31, 78, 140, .18);
  --app-bg: var(--color-background);
  --panel-bg: var(--color-surface);
  --panel-soft: var(--color-surface-muted);
  --text: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --primary: var(--color-primary);
  --primary-strong: var(--color-primary-hover);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --danger: var(--color-danger);
  --info: var(--color-info);
  --accent: var(--color-primary);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius: var(--radius-md);
  --button-min-height: 34px;
  --shadow-sm: 0 1px 3px rgba(23, 42, 65, .045);
  --shadow-md: 0 8px 28px rgba(23, 42, 65, .055);
  --shadow: var(--shadow-md);
  --soft-shadow: var(--shadow-sm);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.92)),
    var(--app-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.app-shell.wizard-shell {
  grid-template-columns: 76px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 18px 14px;
  color: #e7edf8;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #16a34a 58%, #7c3aed);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-mark strong,
.brand-mark small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark small {
  color: #9ca8ba;
  font-size: 11px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  color: #b8c4d6;
  text-decoration: none;
  border-radius: 8px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.wizard-shell .app-sidebar {
  align-items: center;
  padding: 16px 10px;
}

.wizard-shell .brand-mark {
  grid-template-columns: 42px;
  padding: 6px;
}

.wizard-shell .brand-mark span:not(.brand-logo),
.wizard-shell .sidebar-link span {
  display: none;
}

.wizard-shell .sidebar-nav {
  width: 100%;
}

.wizard-shell .sidebar-link {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 9px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-kicker,
.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-version {
  display: inline-block;
  margin-left: 6px;
  color: #475569;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}

.app-topbar h1,
.content-panel h2,
.hero-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

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

.env-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #334155;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.env-badge-compact {
  width: 26px;
  min-width: 26px;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: none;
  opacity: 0.58;
}

.language-select {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-select .form-select {
  width: 128px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-content {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 18px 22px 28px;
}

.wizard-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.96)),
    var(--app-bg);
}

.wizard-layout {
  min-width: 0;
  min-height: 100vh;
}

.wizard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.wizard-brand {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.wizard-brand strong,
.wizard-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.wizard-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 22px 30px;
}

.wizard-focus-panel {
  max-width: 980px;
  margin-inline: auto;
}

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

.dashboard-simple {
  gap: 14px;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-list {
  display: grid;
  gap: 10px;
  container-type: inline-size;
}

.project-row-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) 180px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.project-row-main,
.project-row-domain,
.project-row-progress,
.scanned-site-time {
  min-width: 0;
}

.project-row-card > .btn {
  width: 100%;
  max-width: 180px;
  justify-self: end;
  white-space: normal;
}

.project-row-progress .status-badge {
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.project-row-main strong,
.project-row-main span,
.project-row-domain span,
.project-row-domain strong,
.project-row-progress span {
  display: block;
}

.project-row-main strong,
.project-row-domain strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.project-row-main span,
.project-row-domain span,
.project-row-progress span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.demo-panel-collapsed {
  border-style: dashed;
  box-shadow: none;
}

.demo-panel-collapsed > summary {
  display: flex;
  cursor: pointer;
  list-style: none;
}

.demo-panel-collapsed > summary::-webkit-details-marker {
  display: none;
}

.demo-panel-collapsed > summary strong,
.demo-panel-collapsed > summary small {
  display: block;
}

.demo-panel-collapsed > summary small {
  margin-top: 3px;
  color: var(--muted);
}

.demo-panel-collapsed[open] > summary {
  margin-bottom: 12px;
}

.content-panel,
.hero-panel,
.metric-card,
.workflow-card,
.settings-card,
.result-card,
.review-card,
.policy-card,
.checklist-card,
.artifact-card,
.payment-card,
.template-panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.content-panel,
.hero-panel {
  padding: 18px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}

.panel-text,
.panel-heading p,
.workflow-card p,
.result-card p,
.review-card p,
.policy-card p,
.payment-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.demo-panel {
  display: grid;
  gap: 12px;
}

.demo-panel-secondary {
  order: 20;
  border-style: dashed;
  box-shadow: none;
}

.demo-panel-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.demo-actions,
.demo-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

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

.demo-status-item {
  min-height: 58px;
  padding: 10px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-status-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.demo-status-item strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.demo-shortcuts {
  justify-content: flex-start;
}

.demo-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #334155;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.demo-shortcuts a:hover {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.34);
}

.project-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.demo-muted {
  color: var(--muted);
  font-size: 12px;
}

.mini-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

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

.metric-card {
  padding: 14px;
}

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

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.workflow-cards,
.result-grid,
.settings-grid,
.policy-section-grid,
.generate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-cards {
  order: 30;
}

.workflow-card,
.result-card,
.policy-card,
.settings-card,
.checklist-card,
.artifact-card,
.payment-card {
  padding: 14px;
}

.workflow-card h3,
.review-card h3,
.policy-card h3,
.template-panel h3,
.checklist-card h3,
.artifact-card h3,
.payment-card h3,
.crk-preview-banner h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.card-icon {
  display: inline-grid;
  width: 30px;
  height: 24px;
  margin-bottom: 10px;
  place-items: center;
  color: #334155;
  background: #eef2f7;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.workflow-card.info,
.result-card.info {
  border-top: 3px solid var(--info);
}

.workflow-card.warning,
.result-card.warning {
  border-top: 3px solid var(--warning);
}

.workflow-card.success,
.result-card.success {
  border-top: 3px solid var(--success);
}

.workflow-card.accent,
.result-card.accent,
.status-badge.accent {
  border-top: 3px solid var(--accent);
}

.result-card.danger {
  border-top: 3px solid var(--danger);
}

.result-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

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

.assistant-stat-grid .result-card strong {
  font-size: 24px;
}

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

.assistant-summary-grid article {
  min-width: 0;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assistant-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.assistant-summary-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

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

.compact-panel {
  max-width: 760px;
}

.compact-form {
  display: grid;
  gap: 14px;
}

.website-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.website-entry-card .btn {
  min-height: 48px;
  padding-inline: 16px;
}

.detected-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(22, 135, 91, 0.22);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

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

.detected-summary-head strong,
.detected-summary-head span {
  display: block;
}

.detected-summary-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.detected-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detected-summary dl div {
  min-width: 0;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detected-summary dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.detected-summary dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.detected-edit-details {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detected-edit-details > summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.detected-edit-details[open] > summary {
  margin-bottom: 10px;
}

.advanced-domain-details {
  background: var(--panel-soft);
}

.autodetect-status {
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.autodetect-status.success {
  color: var(--success);
}

.autodetect-status.warning {
  color: var(--warning);
}

.autodetect-status.danger {
  color: var(--danger);
}

.detected-badge {
  display: inline-flex;
  min-height: 18px;
  margin-left: 5px;
  padding: 2px 6px;
  color: var(--success);
  background: rgba(22, 135, 91, 0.09);
  border: 1px solid rgba(22, 135, 91, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
}

.simple-scan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.simple-scan-card h3 {
  margin: 8px 0 0;
  font-size: 17px;
}

.simple-scan-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.scan-target-url {
  display: inline-flex;
  max-width: 100%;
  margin-top: 10px !important;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  color: #334155 !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.scan-target-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 13px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scan-target-card span,
.review-card-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scan-target-card strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.scan-target-card p {
  margin: 3px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.simple-scan-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.simple-scan-card dl div {
  min-width: 0;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.simple-scan-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-scan-card dd {
  margin: 2px 0 0;
  font-weight: 900;
}

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

.scanner-mode-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 86px;
  margin: 0;
  padding: 13px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scanner-mode-card.selected {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: inset 3px 0 0 var(--primary);
}

.scanner-mode-card.disabled {
  color: #94a3b8;
  background: #f1f5f9;
}

.scanner-mode-card strong,
.scanner-mode-card small {
  display: block;
}

.scanner-mode-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.scanner-mode-card em {
  margin-left: 6px;
  color: var(--warning);
  font-size: 11px;
  font-style: normal;
}

.form-label {
  margin-bottom: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.form-control,
.form-select {
  border-color: #d8e0eb;
  border-radius: 8px;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

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

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.compact-accordion .accordion-item {
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.compact-accordion .accordion-button {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

.label-with-help {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.label-with-help span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--info);
  background: rgba(15, 119, 183, 0.1);
  border-radius: 999px;
  font-size: 11px;
  cursor: help;
}

.range-meta {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
}

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

.toggle-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 84px;
  margin: 0;
  padding: 13px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(124px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.stepper-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--muted);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

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

.stepper-item.active,
.stepper-item.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.stepper-item.done,
.stepper-item.complete,
.stepper-item.is-complete {
  color: var(--success);
  background: rgba(22, 135, 91, 0.08);
  border-color: rgba(22, 135, 91, 0.22);
}

.stepper-item.warning,
.stepper-item.is-warning {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.08);
  border-color: rgba(183, 121, 31, 0.24);
}

.stepper-item.missing,
.stepper-item.is-missing {
  color: #64748b;
  background: #fff;
  border-color: #e2e8f0;
}

.stepper-item.optional,
.stepper-item.is-optional {
  color: #64748b;
  background: #f8fafc;
  border-style: dashed;
}

.step-index {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  font-size: 11px;
}

.stepper-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-count {
  min-width: 22px;
  margin-left: auto;
  padding: 1px 6px;
  text-align: center;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  font-size: 11px;
}

.stepper-item.active .step-index,
.stepper-item.current .step-index {
  background: rgba(255, 255, 255, 0.22);
}

.status-badge.success,
.status-badge.complete,
.status-badge.safe {
  color: var(--success);
  background: rgba(22, 135, 91, 0.1);
  border-color: rgba(22, 135, 91, 0.22);
}

.status-badge.warning {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.12);
  border-color: rgba(183, 121, 31, 0.24);
}

.status-badge.danger,
.status-badge.missing {
  color: var(--danger);
  background: rgba(194, 65, 65, 0.1);
  border-color: rgba(194, 65, 65, 0.22);
}

.status-badge.info {
  color: var(--info);
  background: rgba(15, 119, 183, 0.1);
  border-color: rgba(15, 119, 183, 0.22);
}

.status-badge.neutral,
.status-badge.optional {
  color: #475569;
  background: #f1f5f9;
  border-color: #dbe3ef;
}

.status-badge.accent {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.22);
}

.notice-card,
.empty-state {
  margin-bottom: 14px;
  padding: 13px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-card strong,
.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.notice-card p,
.empty-state p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.notice-card .btn,
.empty-state .btn {
  margin-top: 10px;
}

.notice-card.warning {
  background: rgba(183, 121, 31, 0.08);
  border-color: rgba(183, 121, 31, 0.22);
}

.notice-card.info {
  background: rgba(15, 119, 183, 0.08);
  border-color: rgba(15, 119, 183, 0.2);
}

.notice-card.danger {
  background: rgba(194, 65, 65, 0.08);
  border-color: rgba(194, 65, 65, 0.22);
}

.notice-card.success {
  background: rgba(22, 135, 91, 0.08);
  border-color: rgba(22, 135, 91, 0.22);
}

.notice-card.neutral {
  background: #f8fafc;
}

.next-action-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.next-action-card p {
  max-width: 760px;
}

.readiness-panel {
  margin-bottom: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

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

.readiness-panel-head strong,
.readiness-panel-head span {
  display: block;
}

.readiness-panel-head strong {
  font-size: 14px;
}

.readiness-panel-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.readiness-panel:not(.compact) .readiness-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readiness-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-item.is-warning {
  border-color: rgba(183, 121, 31, 0.24);
}

.readiness-item.is-missing {
  border-color: rgba(194, 65, 65, 0.2);
}

.readiness-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-icon.success {
  color: var(--success);
  background: rgba(22, 135, 91, 0.12);
}

.readiness-icon.warning {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.13);
}

.readiness-icon.danger {
  color: var(--danger);
  background: rgba(194, 65, 65, 0.12);
}

.readiness-icon.info {
  color: var(--info);
  background: rgba(15, 119, 183, 0.1);
}

.readiness-item strong {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
}

.readiness-item strong span {
  min-width: 20px;
  padding: 1px 5px;
  color: #475569;
  text-align: center;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  font-size: 10px;
}

.readiness-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.readiness-action {
  grid-column: 2;
  width: max-content;
  margin-top: 2px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.tooltip-dot {
  display: inline-grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  color: var(--info);
  background: rgba(15, 119, 183, 0.1);
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  cursor: help;
}

.install-guidance {
  margin-top: 12px;
  padding: 10px;
  background: rgba(15, 119, 183, 0.08);
  border: 1px solid rgba(15, 119, 183, 0.2);
  border-radius: 8px;
}

.install-guidance strong {
  display: block;
  font-size: 13px;
}

.install-guidance p {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.35;
}

.compact-table-wrap {
  margin-top: 4px;
}

.compact-table {
  margin: 0;
  font-size: 13px;
}

.compact-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.compact-table td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.language-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

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

.summary-card {
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.summary-card p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-summary {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-summary h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.settings-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.settings-summary div {
  padding: 9px;
  background: var(--panel-soft);
  border-radius: 8px;
}

.settings-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-summary dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.scan-sections {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.result-details,
.scan-technical-details {
  margin-top: 14px;
}

.scan-section {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title-row h3 {
  margin: 0;
  font-size: 15px;
}

.progress-shell {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress {
  height: 9px;
  background: #dce5f0;
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--info), var(--success));
}

.worker-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.worker-panel > summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.worker-panel[open] > summary {
  margin-bottom: 4px;
}

.worker-panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.worker-panel h3 {
  margin: 0;
  font-size: 15px;
}

.worker-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.worker-meta-grid div {
  min-width: 0;
  padding: 9px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.worker-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.worker-meta-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.worker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.worker-log {
  color: var(--muted);
  font-size: 12px;
}

.worker-log summary {
  cursor: pointer;
  font-weight: 800;
}

.worker-log pre {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  color: #1f2937;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.review-grouped-section {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.review-grouped-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-grouped-head strong {
  display: block;
  font-size: 14px;
}

.review-grouped-head p {
  margin: 3px 0 0;
  color: var(--muted);
}

.review-grouped-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.review-grouped-actions form {
  display: inline-flex;
  margin: 0;
}

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

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}

.review-group-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.review-group-card.is-saving {
  opacity: 0.72;
}

.review-group-card.is-resolved {
  border-color: rgba(22, 135, 91, 0.28);
  box-shadow: inset 3px 0 0 var(--success), var(--soft-shadow);
}

.review-group-main {
  min-width: 0;
}

.review-group-main h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.review-group-main p {
  margin: 4px 0 0;
  color: var(--muted);
}

.review-group-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.review-group-types {
  font-size: 12px;
}

.review-group-explanation {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.45;
}

.review-example-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 12px;
}

.review-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-summary-strip article {
  min-width: 0;
  padding: 11px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-summary-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 21px;
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.review-filters a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #475569;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-filters a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.review-filters span {
  min-width: 22px;
  padding: 1px 6px;
  text-align: center;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
}

.review-filters a.active span {
  background: rgba(255, 255, 255, 0.22);
}

.review-card.is-saving {
  opacity: 0.72;
}

.review-card.is-resolved {
  border-color: rgba(22, 135, 91, 0.28);
  box-shadow: inset 3px 0 0 var(--success);
}

.review-card-main {
  min-width: 0;
}

.review-card-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

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

.review-source-grid div {
  min-width: 0;
  padding: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-source-grid dt,
.review-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-source-grid dd,
.review-details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.review-evidence-preview {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
}

.review-evidence-preview strong {
  color: var(--text);
}

.review-evidence-preview span {
  overflow-wrap: anywhere;
}

.review-details,
.review-note {
  margin-top: 9px;
}

.review-details summary,
.review-note summary {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.review-details dl {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
}

.review-details div {
  padding: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-action-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-action-panel > strong {
  font-size: 13px;
  line-height: 1.35;
}

.review-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.review-action-btn {
  min-height: 30px;
  padding: 5px 9px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-action-btn.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.review-action-btn.primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.review-action-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.review-action-btn.success {
  color: var(--success);
  border-color: rgba(22, 135, 91, 0.24);
}

.review-action-btn.warning {
  color: var(--warning);
  border-color: rgba(183, 121, 31, 0.28);
}

.review-action-btn.danger {
  color: var(--danger);
  border-color: rgba(194, 65, 65, 0.25);
}

.review-action-btn.info {
  color: var(--info);
  border-color: rgba(15, 119, 183, 0.24);
}

.review-action-btn.accent {
  color: var(--accent);
  border-color: rgba(124, 58, 237, 0.24);
}

.review-inline-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-inline-status.success {
  color: var(--success);
}

.review-inline-status.danger {
  color: var(--danger);
}

.review-toast {
  display: none;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.review-toast.visible {
  display: block;
}

.review-toast.success {
  color: var(--success);
  background: rgba(22, 135, 91, 0.08);
  border-color: rgba(22, 135, 91, 0.22);
}

.review-toast.danger {
  color: var(--danger);
  background: rgba(194, 65, 65, 0.08);
  border-color: rgba(194, 65, 65, 0.22);
}

.review-complete-state {
  display: grid;
  justify-items: start;
}

.review-secondary-details {
  margin-top: 12px;
}

.banner-designer {
  display: grid;
  gap: 14px;
}

.banner-designer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  gap: 14px;
  align-items: start;
}

.banner-settings-stack,
.designer-section,
.designer-advanced,
.compliance-panel {
  display: grid;
  gap: 12px;
}

.designer-section,
.designer-advanced,
.compliance-panel,
.banner-preview-panel {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.designer-section-heading,
.compliance-panel-head,
.preview-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.designer-section-heading h3,
.preview-toolbar h3 {
  margin: 0;
  font-size: 15px;
}

.designer-section-heading span,
.preview-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

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

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

.banner-template-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-height: 92px;
  margin: 0;
  padding: 11px;
  cursor: pointer;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.banner-template-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.banner-template-card strong,
.banner-template-card small {
  display: block;
}

.banner-template-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.banner-template-card.selected {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: inset 3px 0 0 var(--primary);
}

.template-thumb {
  position: relative;
  display: block;
  width: 74px;
  height: 56px;
  overflow: hidden;
  background: #e8eef6;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
}

.template-thumb i,
.template-thumb b,
.template-thumb em {
  position: absolute;
  display: block;
  content: "";
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 5px;
}

.template-thumb i {
  top: 8px;
  left: 8px;
  width: 36px;
  height: 6px;
}

.template-thumb b {
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 16px;
}

.template-thumb em {
  right: 10px;
  bottom: 11px;
  width: 18px;
  height: 5px;
  background: #2563eb;
  border-color: #2563eb;
}

.template-thumb.crk-template-soft-modal b,
.template-thumb.crk-template-enterprise-center b {
  inset: 14px 14px 10px;
  height: auto;
}

.template-thumb.crk-template-compact-bottom b {
  height: 12px;
}

.template-thumb.crk-template-minimal-floating b {
  right: 8px;
  left: auto;
  width: 36px;
}

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

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

.compact-toggle {
  min-height: 76px;
  background: var(--panel-soft);
}

.designer-advanced summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.technical-details {
  color: inherit;
}

.designer-advanced[open] summary {
  margin-bottom: 8px;
}

.designer-advanced .advanced-body {
  padding: 0;
  border: 0;
}

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

.color-control .form-control-color {
  width: 100%;
  min-height: 38px;
}

.logo-control {
  grid-column: span 2;
}

.compliance-panel {
  border-left: 4px solid var(--success);
}

.compliance-panel.warning {
  border-left-color: var(--warning);
}

.compliance-panel.blocked,
.compliance-panel.danger {
  border-left-color: var(--danger);
}

.compliance-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-badge.safe {
  color: var(--success);
  background: rgba(22, 135, 91, 0.1);
  border-color: rgba(22, 135, 91, 0.22);
}

.status-badge.blocked {
  color: var(--danger);
  background: rgba(194, 65, 65, 0.1);
  border-color: rgba(194, 65, 65, 0.22);
}

.banner-preview-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
}

.preview-mode-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.preview-mode-buttons .active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.banner-preview-frame {
  min-height: 520px;
  overflow: hidden;
  background: #dfe8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crk-preview-surface {
  --crk-bg: #fff;
  --crk-text: #172033;
  --crk-border: #dbe3ef;
  --crk-accent: #2563eb;
  --crk-radius: 10px;
  --crk-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  position: relative;
  min-height: 520px;
  color: var(--crk-text);
  background: #eef4fb;
}

.crk-theme-dark {
  background: #182235;
}

.preview-page-shell {
  position: absolute;
  inset: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}

.crk-theme-dark .preview-page-shell {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

.preview-browser-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(203, 213, 225, 0.68);
  font-size: 11px;
}

.preview-browser-bar span {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 999px;
}

.preview-browser-bar strong {
  margin-left: 6px;
  font-weight: 800;
}

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

.preview-hero-line {
  width: min(330px, 72%);
  height: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 8px;
}

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

.preview-copy-grid span {
  height: 86px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.66);
  border-radius: 8px;
}

.preview-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-service-strip span {
  padding: 4px 7px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.crk-preview-banner,
.crk-preview-modal-card {
  color: var(--crk-text);
  background: var(--crk-bg);
  border: 1px solid var(--crk-border);
  border-radius: var(--crk-radius);
  box-shadow: var(--crk-shadow);
}

.crk-preview-banner {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.crk-preview-banner h4,
.crk-preview-modal-card h4 {
  margin: 0;
  color: var(--crk-text);
  font-size: 16px;
  line-height: 1.25;
}

.crk-preview-banner p,
.crk-preview-modal-card p,
.crk-preview-category small {
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--crk-text) 72%, #64748b);
  line-height: 1.35;
}

.crk-preview-logo {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--crk-accent);
  font-size: 12px;
  font-weight: 900;
}

.crk-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.crk-preview-links a {
  color: var(--crk-accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.crk-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.crk-preview-btn {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--crk-text);
  background: var(--crk-bg);
  border: 1px solid var(--crk-border);
  border-radius: max(6px, calc(var(--crk-radius) - 2px));
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.crk-preview-btn-equal {
  min-width: 138px;
  color: #fff;
  background: var(--crk-accent);
  border-color: var(--crk-accent);
}

.crk-preview-btn-link {
  color: var(--crk-accent);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.crk-template-soft-modal .crk-preview-banner,
.crk-template-enterprise-center .crk-preview-banner {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(520px, calc(100% - 56px));
  transform: translate(-50%, -50%);
  grid-template-columns: 1fr;
}

.crk-template-enterprise-center .crk-preview-banner {
  width: min(620px, calc(100% - 56px));
}

.crk-template-compact-bottom .crk-preview-banner {
  right: 34px;
  left: 34px;
  padding: 11px 12px;
}

.crk-template-minimal-floating .crk-preview-banner {
  right: 28px;
  left: auto;
  width: min(360px, calc(100% - 56px));
  grid-template-columns: 1fr;
}

.crk-position-bottom_left .crk-preview-banner {
  right: auto;
  left: 28px;
  width: min(430px, calc(100% - 56px));
}

.crk-position-bottom_right .crk-preview-banner {
  right: 28px;
  left: auto;
  width: min(430px, calc(100% - 56px));
}

.crk-position-center .crk-preview-banner {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(540px, calc(100% - 56px));
  transform: translate(-50%, -50%);
  grid-template-columns: 1fr;
}

.crk-density-comfortable .crk-preview-banner,
.crk-density-comfortable .crk-preview-modal-card {
  padding: 18px;
}

.crk-preview-preferences {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.banner-preview-frame[data-mode="preferences"] .crk-preview-preferences {
  display: grid;
}

.banner-preview-frame[data-mode="preferences"] .crk-preview-banner {
  opacity: 0.36;
}

.crk-preview-modal-card {
  width: min(620px, 100%);
  max-height: 470px;
  overflow: auto;
  padding: 16px;
}

.crk-preview-modal-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.crk-preview-modal-head button {
  width: 30px;
  height: 30px;
  color: var(--crk-text);
  background: var(--crk-bg);
  border: 1px solid var(--crk-border);
  border-radius: 8px;
}

.crk-preview-category-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.crk-preview-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--crk-bg) 84%, #f1f5f9);
  border: 1px solid var(--crk-border);
  border-radius: 8px;
}

.crk-preview-category strong,
.crk-preview-category small {
  display: block;
}

.crk-preview-category input {
  width: 38px;
  height: 22px;
  accent-color: var(--crk-accent);
}

.crk-preview-actions.modal-actions {
  margin-top: 12px;
}

.generate-grid {
  grid-template-columns: 0.95fr 1.35fr 0.95fr 0.95fr;
}

.package-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.package-checklist li {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 9px;
  color: #334155;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.package-checklist li.warning {
  color: var(--warning);
  border-color: rgba(183, 121, 31, 0.22);
}

.package-checklist li.missing {
  color: #64748b;
}

.clean-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.check-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 999px;
}

.check-dot.muted {
  background: #cbd5e1;
}

.check-dot.warning {
  background: var(--warning);
}

.install-steps {
  margin-top: 14px;
}

.install-steps ol {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.install-steps li {
  padding-left: 2px;
  line-height: 1.4;
}

.secondary-actions,
.package-details {
  margin-top: 14px;
}

.visually-compact {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.artifact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: flex-start;
}

.artifact-card h3,
.artifact-card p,
.artifact-card .install-snippet,
.artifact-card .meta-list,
.artifact-card .artifact-actions,
.artifact-card .form-label {
  flex: 1 0 100%;
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1fr);
  gap: 8px;
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.install-snippet {
  margin-top: 4px;
  padding: 10px;
  overflow-x: auto;
  color: #334155;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

textarea.install-snippet {
  min-height: 64px;
  resize: vertical;
  white-space: pre-wrap;
}

.tooltip {
  font-size: 12px;
}

.tooltip-inner {
  max-width: 260px;
  padding: 8px 10px;
  color: #f8fafc;
  background: #0f172a;
  border-radius: 8px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .workflow-cards,
  .demo-status-grid,
  .result-grid,
  .review-summary-strip,
  .readiness-list,
  .readiness-panel:not(.compact) .readiness-list,
  .policy-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid,
  .scanner-mode-grid,
  .toggle-list,
  .summary-grid,
  .worker-meta-grid,
  .settings-summary dl,
  .generate-grid,
  .banner-designer-grid,
  .designer-toggle-grid {
    grid-template-columns: 1fr;
  }

  .banner-preview-panel {
    position: static;
  }
}

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

  .app-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

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

  .app-topbar {
    position: static;
    align-items: flex-start;
    padding: 14px;
  }

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

  .app-content {
    padding: 14px;
  }

  .hero-panel,
  .demo-panel-main,
  .panel-heading,
  .review-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-actions,
  .demo-actions,
  .form-actions {
    justify-content: flex-start;
  }

  .metric-strip,
  .demo-status-grid,
  .workflow-cards,
  .result-grid,
  .review-summary-strip,
  .review-source-grid,
  .readiness-list,
  .readiness-panel:not(.compact) .readiness-list,
  .summary-grid,
  .settings-summary dl,
  .policy-section-grid {
    grid-template-columns: 1fr;
  }

  .banner-template-grid,
  .designer-control-grid,
  .color-control-grid,
  .preview-copy-grid {
    grid-template-columns: 1fr;
  }

  .logo-control {
    grid-column: span 1;
  }

  .crk-preview-banner,
  .crk-template-soft-modal .crk-preview-banner,
  .crk-template-enterprise-center .crk-preview-banner,
  .crk-template-minimal-floating .crk-preview-banner,
  .crk-position-bottom_left .crk-preview-banner,
  .crk-position-bottom_right .crk-preview-banner,
  .crk-position-center .crk-preview-banner {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    grid-template-columns: 1fr;
    transform: none;
  }

  .crk-preview-actions {
    justify-content: flex-start;
  }
}

.policy-readiness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.policy-readiness-item,
.policy-panel,
.policy-missing-card,
.policy-generate-card,
.policy-meta-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.policy-readiness-item {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 12px;
}

.policy-readiness-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.policy-readiness-item.is-complete {
  border-color: rgba(22, 135, 91, 0.22);
}

.policy-readiness-item.is-pending {
  border-color: rgba(183, 121, 31, 0.24);
}

.policy-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.policy-smart-card,
.package-card,
.install-steps,
.secondary-actions {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.policy-smart-card,
.package-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.policy-smart-card h3,
.package-card h3,
.install-steps h3,
.secondary-actions h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.policy-smart-card p,
.package-card p {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.policy-smart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.policy-smart-stats div {
  min-width: 0;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-smart-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-smart-stats dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.policy-smart-actions,
.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 340px;
}

.policy-smart-actions form,
.package-actions form {
  display: inline-flex;
}

.package-preflight-card {
  grid-template-columns: minmax(0, 1fr);
}

.package-preflight {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin-top: 24px;
}

.package-preflight-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.package-preflight-section + .package-preflight-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.package-preflight-section > legend,
.package-preflight-section > h4 {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.package-protection-choice,
.package-domain-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.package-protection-choice + .package-protection-choice {
  margin-top: 10px;
}

.package-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.package-choice-content {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.package-choice-content strong {
  font-size: 15px;
}

.package-choice-content > span {
  color: var(--muted);
  line-height: 1.45;
}

.package-protection-choice-secondary .package-choice-content {
  padding: 12px 16px;
}

.package-protection-choice-secondary .package-choice-content strong {
  font-size: 14px;
}

.package-choice-input:checked + .package-choice-content {
  border-color: var(--primary);
  background: #f1f6ff;
  box-shadow: inset 3px 0 0 var(--primary);
}

.package-choice-input:focus-visible + .package-choice-content,
.package-choice-input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.package-domain-decision {
  margin: 0;
  padding: 0;
  border: 0;
}

.package-domain-decision legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.package-domain-options {
  display: flex;
  gap: 8px;
}

.package-domain-option > span {
  display: block;
  min-width: 68px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-align: center;
}

.package-domain-option .package-choice-input:checked + span {
  border-color: var(--primary);
  color: var(--primary);
  background: #f1f6ff;
  font-weight: 700;
}

body[data-theme="glass"] .package-choice-content,
body[data-theme="glass"] .package-domain-option > span {
  color: var(--text);
  background: var(--glass-bg-panel);
}

body[data-theme="glass"] .package-choice-input:checked + .package-choice-content,
body[data-theme="glass"] .package-domain-option .package-choice-input:checked + span {
  background: var(--glass-bg-panel-strong);
}

.package-domain-confirmation {
  margin: 0;
  color: var(--muted);
}

#owner-domain-fields {
  margin-top: 16px;
}

#owner-domain-fields[hidden] {
  display: none;
}

#owner-domain-fields > p {
  margin: 0 0 12px;
}

#owner-domain-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.owner-domain-row {
  display: flex;
  align-items: end;
  gap: 10px;
}

.owner-domain-row > label {
  flex: 1;
  min-width: 0;
}

.owner-domain-row .form-control {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.package-preflight-actions {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .owner-domain-row {
    align-items: stretch;
    flex-direction: column;
  }
}

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

.policy-optional-details {
  margin-top: 12px;
  box-shadow: none;
}

.policy-suggestion {
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #334155;
  text-align: left;
  background: rgba(15, 119, 183, 0.07);
  border: 1px solid rgba(15, 119, 183, 0.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.policy-panel {
  padding: 14px;
}

.policy-panel .section-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.policy-missing-grid,
.policy-generate-grid {
  display: grid;
  gap: 10px;
}

.policy-missing-card,
.policy-generate-card {
  padding: 12px;
}

.policy-card-head {
  display: grid;
  gap: 7px;
  margin-bottom: 7px;
}

.policy-card-head strong,
.policy-generate-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.policy-missing-card p,
.policy-generate-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.38;
}

.policy-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.policy-generate-card {
  display: grid;
  gap: 8px;
}

.policy-generate-card.emphasis {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.24);
}

.policy-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.policy-meta-grid article {
  padding: 12px;
}

.policy-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-meta-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.policy-editor {
  min-height: 560px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.policy-section-preview {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--border-color, #d7dde5);
  background: #fff;
}

.policy-table-wrap {
  margin: 10px 0;
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.policy-table th,
.policy-table td {
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dbe3ef;
}

.policy-table th {
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
}

.policy-warning-block,
.policy-warning-inline,
.policy-missing-inline {
  color: var(--warning);
  font-weight: 800;
}

.policy-warning-block {
  margin: 12px 0;
  padding: 12px;
  background: rgba(183, 121, 31, 0.08);
  border: 1px solid rgba(183, 121, 31, 0.24);
  border-radius: 8px;
}

.policy-warning-block p,
.policy-warning-block ul {
  margin: 6px 0 0;
}

.policy-disclaimer,
.policy-muted {
  color: #65748b;
}

.generated-policy__section {
  margin-top: 18px;
}

.generated-policy__section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.policy-list {
  margin: 8px 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .policy-readiness-grid,
  .policy-workspace,
  .policy-meta-grid {
    grid-template-columns: 1fr;
  }
}

.content-panel,
.hero-panel {
  padding: 16px;
}

.dashboard-grid {
  gap: 12px;
}

.hero-panel {
  min-height: 0;
  gap: 14px;
}

.hero-panel .panel-text {
  max-width: 780px;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.system-snapshot-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.system-snapshot-head,
.system-snapshot-items,
.snapshot-item,
.scanner-mode-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.system-snapshot-head {
  justify-content: space-between;
}

.system-snapshot-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.system-snapshot-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-item {
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.snapshot-item span:not(.snapshot-mark) {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.snapshot-item strong {
  margin-left: auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.snapshot-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.snapshot-mark.success {
  color: var(--success);
  background: rgba(22, 135, 91, 0.12);
}

.snapshot-mark.warning {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.13);
}

.snapshot-mark.info {
  color: var(--info);
  background: rgba(15, 119, 183, 0.1);
}

.panel-heading {
  margin-bottom: 12px;
}

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

.settings-card,
.workflow-card,
.result-card,
.policy-card,
.checklist-card,
.artifact-card,
.payment-card,
.scan-section,
.summary-card {
  padding: 12px;
}

.scanner-mode-grid {
  gap: 10px;
}

.scanner-mode-card {
  min-height: 74px;
  padding: 11px;
}

.scanner-mode-head {
  justify-content: space-between;
  align-items: flex-start;
}

.scanner-mode-head .status-badge,
.scanner-mode-card em.status-badge {
  min-height: 22px;
  margin-left: 0;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
}

.scanner-mode-reason {
  color: var(--warning);
  font-weight: 800;
}

.scanner-unavailable-note {
  margin-bottom: 0;
}

.toggle-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.toggle-row {
  min-height: 74px;
  padding: 11px;
}

.compact-table th,
.compact-table td {
  padding: 8px 9px;
}

.compact-table td {
  vertical-align: middle;
}

.compact-table td:first-child,
.projects-table td:first-child {
  overflow-wrap: anywhere;
}

.projects-table {
  table-layout: fixed;
}

.projects-table td {
  overflow-wrap: anywhere;
}

.projects-table th:nth-child(1) {
  width: 29%;
}

.projects-table th:nth-child(2) {
  width: 15%;
}

.projects-table th:nth-child(3),
.projects-table th:nth-child(4),
.projects-table th:nth-child(6) {
  width: 13%;
}

.projects-table th:nth-child(5) {
  width: 9%;
}

.projects-table th:nth-child(7) {
  width: 18%;
}

.project-action-group .btn {
  min-height: 30px;
  padding: 5px 8px;
}

.readiness-panel {
  margin-bottom: 12px;
  padding: 10px;
}

.readiness-list {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.wizard-stepper {
  grid-template-columns: repeat(6, minmax(124px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.stepper-item {
  min-height: 34px;
  padding: 6px 8px;
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .app-content {
    padding: 16px;
  }

  .wizard-content {
    padding: 16px;
  }

  .hero-panel,
  .demo-panel-main,
  .panel-heading,
  .dashboard-hero,
  .website-entry-card {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .demo-actions,
  .status-stack,
  .wizard-topbar-actions,
  .review-grouped-actions {
    justify-content: flex-start;
  }

  .system-snapshot-items,
  .workflow-cards,
  .result-grid,
  .assistant-summary-grid,
  .review-summary-strip,
  .detected-summary dl,
  .policy-readiness-grid,
  .policy-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .readiness-list,
  .readiness-panel:not(.compact) .readiness-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .banner-designer-grid,
  .policy-workspace,
  .generate-grid,
  .policy-smart-card,
  .package-card {
    grid-template-columns: 1fr;
  }

  .policy-smart-actions,
  .package-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .banner-preview-panel {
    position: static;
  }
}

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

  .app-sidebar {
    position: static;
    height: auto;
  }

  .app-topbar {
    position: static;
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 14px;
  }

  .wizard-topbar {
    position: static;
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 14px;
  }

  .wizard-brand {
    max-width: 100%;
  }

  .wizard-content {
    padding: 14px;
  }

  .website-entry-card .btn,
  .project-row-card .btn {
    width: 100%;
  }

  .detected-summary dl {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .hero-actions,
  .demo-actions,
  .form-actions {
    justify-content: flex-start;
  }

  .panel-heading {
    flex-direction: column;
  }

  .content-panel,
  .hero-panel {
    padding: 14px;
  }

  .system-snapshot-items,
  .scanner-mode-grid,
  .settings-grid,
  .toggle-list,
  .demo-status-grid,
  .workflow-cards,
  .result-grid,
  .assistant-summary-grid,
  .review-summary-strip,
  .review-source-grid,
  .summary-grid,
  .settings-summary dl,
  .policy-readiness-grid,
  .policy-meta-grid,
  .policy-smart-stats,
  .policy-missing-grid.compact,
  .package-checklist,
  .designer-control-grid,
  .designer-toggle-grid,
  .color-control-grid {
    grid-template-columns: 1fr;
  }

  .wizard-stepper {
    grid-template-columns: repeat(6, max-content);
    padding-bottom: 6px;
  }

  .stepper-item {
    min-width: 112px;
  }

  .readiness-list,
  .readiness-panel:not(.compact) .readiness-list {
    grid-template-columns: 1fr;
  }

  .projects-table thead {
    display: none;
  }

  .projects-table,
  .projects-table tbody,
  .projects-table tr,
  .projects-table td {
    display: block;
    width: 100%;
  }

  .projects-table tbody {
    display: grid;
    gap: 10px;
  }

  .projects-table tr {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .projects-table td {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    text-align: left !important;
    border: 0;
  }

  .projects-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .project-action-group {
    justify-content: flex-start;
  }

  .banner-preview-frame,
  .crk-preview-surface {
    min-height: 430px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 13px;
  }

  .app-content {
    padding: 12px;
  }

  .app-topbar h1,
  .content-panel h2,
  .hero-panel h2 {
    font-size: 18px;
  }

  .topbar-actions,
  .language-select {
    width: 100%;
  }

  .language-select .form-select {
    width: 100%;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .system-snapshot-head,
  .scan-target-card,
  .snapshot-item,
  .next-action-card,
  .section-title-row,
  .designer-section-heading,
  .compliance-panel-head,
  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .snapshot-item strong {
    margin-left: 0;
  }

  .form-actions,
  .artifact-actions,
  .project-action-group,
  .policy-smart-actions,
  .package-actions,
  .preview-mode-buttons,
  .crk-preview-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .form-actions > .btn,
  .form-actions > form,
  .form-actions > form .btn,
  .scan-target-card form,
  .scan-target-card form .btn,
  .artifact-actions .btn,
  .artifact-actions form,
  .artifact-actions form .btn,
  .policy-smart-actions .btn,
  .policy-smart-actions form,
  .policy-smart-actions form .btn,
  .package-actions .btn,
  .package-actions form,
  .package-actions form .btn,
  .project-action-group .btn {
    width: 100%;
  }

  .projects-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .review-card,
  .review-action-panel,
  .policy-panel,
  .policy-missing-card,
  .policy-generate-card,
  .artifact-card,
  .checklist-card {
    padding: 11px;
  }

  .crk-preview-btn-equal {
    min-width: 0;
    width: 100%;
  }
}

.review-smart-service-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.review-smart-service-row {
  align-items: center;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.review-smart-service-row strong,
.review-smart-service-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-smart-service-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-grouped-head.compact {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 16px;
  padding-top: 14px;
}

@media (max-width: 980px) {
  .simple-scan-card,
  .review-group-card {
    grid-template-columns: 1fr;
  }

  .simple-scan-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .simple-scan-card dl,
  .review-grouped-head {
    grid-template-columns: 1fr;
  }

  .review-grouped-head {
    display: grid;
  }

  .review-group-card {
    padding: 12px;
  }

  .review-action-panel {
    padding: 11px;
  }
}

@media (max-width: 576px) {
  .simple-scan-card dl {
    grid-template-columns: 1fr;
  }

  .review-action-group {
    align-items: stretch;
    flex-direction: column;
  }

  .review-action-btn {
    width: 100%;
  }
}

/* Glass release theme */
body[data-theme="glass"] {
  --glass-bg-main: #070b16;
  --glass-bg-soft: rgba(255, 255, 255, 0.055);
  --glass-bg-panel: rgba(255, 255, 255, 0.075);
  --glass-bg-panel-strong: rgba(255, 255, 255, 0.105);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --glass-text: #f7f9ff;
  --glass-muted: #9ba8c7;
  --glass-muted-2: #687694;
  --glass-accent: #4f8cff;
  --glass-accent-2: #20e3d2;
  --glass-success: #32d583;
  --glass-warning: #fdb022;
  --glass-danger: #ff5c8a;
  --glass-radius-lg: 28px;
  --glass-radius-md: 18px;
  --glass-radius-sm: 12px;
  --app-bg: var(--glass-bg-main);
  --panel-bg: var(--glass-bg-panel);
  --panel-soft: var(--glass-bg-soft);
  --text: var(--glass-text);
  --muted: var(--glass-muted);
  --line: var(--glass-border);
  --primary: var(--glass-accent);
  --primary-strong: #79a8ff;
  --success: var(--glass-success);
  --warning: var(--glass-warning);
  --danger: var(--glass-danger);
  --info: var(--glass-accent-2);
  --accent: #9b8cff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  color: var(--glass-text);
  background:
    radial-gradient(circle at 14% 8%, rgba(79, 140, 255, 0.22), transparent 34%),
    radial-gradient(circle at 84% 4%, rgba(32, 227, 210, 0.16), transparent 28%),
    radial-gradient(circle at 74% 88%, rgba(155, 140, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #070b16 0%, #0a1020 52%, #060913 100%);
}

body[data-theme="glass"] .wizard-page {
  background: transparent;
}

body[data-theme="glass"] a:hover {
  color: #d9e7ff;
}

body[data-theme="glass"] .app-sidebar,
body[data-theme="glass"] .wizard-topbar,
body[data-theme="glass"] .app-topbar {
  background: rgba(8, 13, 27, 0.78);
  border-color: var(--glass-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

body[data-theme="glass"] .app-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 13, 27, 0.88);
}

body[data-theme="glass"] .brand-logo {
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-2));
  border-radius: var(--glass-radius-sm);
  box-shadow: 0 16px 36px rgba(79, 140, 255, 0.28);
}

body[data-theme="glass"] .sidebar-link,
body[data-theme="glass"] .wizard-brand,
body[data-theme="glass"] .brand-mark {
  color: var(--glass-text);
}

body[data-theme="glass"] .sidebar-link {
  color: var(--glass-muted);
  border: 1px solid transparent;
}

body[data-theme="glass"] .sidebar-link:hover,
body[data-theme="glass"] .sidebar-link.active {
  color: var(--glass-text);
  background: var(--glass-bg-panel-strong);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .brand-mark small,
body[data-theme="glass"] .wizard-brand small,
body[data-theme="glass"] .topbar-kicker,
body[data-theme="glass"] .eyebrow,
body[data-theme="glass"] .language-select,
body[data-theme="glass"] .panel-heading p,
body[data-theme="glass"] .panel-text,
body[data-theme="glass"] .workflow-card p,
body[data-theme="glass"] .result-card p,
body[data-theme="glass"] .review-card p,
body[data-theme="glass"] .policy-card p,
body[data-theme="glass"] .payment-card p,
body[data-theme="glass"] .mini-status,
body[data-theme="glass"] .demo-muted,
body[data-theme="glass"] .preview-toolbar span,
body[data-theme="glass"] .designer-section-heading span {
  color: var(--glass-muted);
}

body[data-theme="glass"] .app-topbar h1,
body[data-theme="glass"] .content-panel h2,
body[data-theme="glass"] .hero-panel h2,
body[data-theme="glass"] h3,
body[data-theme="glass"] h4,
body[data-theme="glass"] .notice-card strong,
body[data-theme="glass"] .empty-state strong {
  color: var(--glass-text);
}

body[data-theme="glass"] .content-panel,
body[data-theme="glass"] .hero-panel,
body[data-theme="glass"] .metric-card,
body[data-theme="glass"] .workflow-card,
body[data-theme="glass"] .settings-card,
body[data-theme="glass"] .result-card,
body[data-theme="glass"] .review-card,
body[data-theme="glass"] .review-group-card,
body[data-theme="glass"] .policy-card,
body[data-theme="glass"] .checklist-card,
body[data-theme="glass"] .artifact-card,
body[data-theme="glass"] .payment-card,
body[data-theme="glass"] .template-panel,
body[data-theme="glass"] .designer-section,
body[data-theme="glass"] .designer-advanced,
body[data-theme="glass"] .compliance-panel,
body[data-theme="glass"] .banner-preview-panel,
body[data-theme="glass"] .policy-panel,
body[data-theme="glass"] .policy-smart-card,
body[data-theme="glass"] .package-card,
body[data-theme="glass"] .install-steps,
body[data-theme="glass"] .secondary-actions,
body[data-theme="glass"] .workflow-insight-panel {
  background: linear-gradient(180deg, var(--glass-bg-panel-strong), var(--glass-bg-panel));
  border-color: var(--glass-border);
  border-radius: var(--glass-radius-md);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(20px);
}

body[data-theme="glass"] .hero-panel,
body[data-theme="glass"] .dashboard-side-panel {
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow);
}

body[data-theme="glass"] .notice-card,
body[data-theme="glass"] .empty-state,
body[data-theme="glass"] .website-entry-card,
body[data-theme="glass"] .simple-scan-card,
body[data-theme="glass"] .scan-target-card,
body[data-theme="glass"] .summary-card,
body[data-theme="glass"] .settings-summary,
body[data-theme="glass"] .scan-section,
body[data-theme="glass"] .worker-panel,
body[data-theme="glass"] .review-action-panel,
body[data-theme="glass"] .assistant-summary-grid article,
body[data-theme="glass"] .detected-summary,
body[data-theme="glass"] .detected-edit-details,
body[data-theme="glass"] .toggle-row,
body[data-theme="glass"] .scanner-mode-card,
body[data-theme="glass"] .banner-template-card,
body[data-theme="glass"] .policy-smart-stats div,
body[data-theme="glass"] .policy-missing-card,
body[data-theme="glass"] .policy-generate-card,
body[data-theme="glass"] .demo-status-item,
body[data-theme="glass"] .project-row-card,
body[data-theme="glass"] .workflow-project-card,
body[data-theme="glass"] .workflow-metric-list article,
body[data-theme="glass"] .workflow-attention-list {
  background: var(--glass-bg-soft);
  border-color: var(--glass-border);
  box-shadow: none;
}

body[data-theme="glass"] .form-control,
body[data-theme="glass"] .form-select,
body[data-theme="glass"] .input-group-text,
body[data-theme="glass"] .review-action-btn,
body[data-theme="glass"] .demo-shortcuts a,
body[data-theme="glass"] .scan-target-url,
body[data-theme="glass"] .language-check,
body[data-theme="glass"] .crk-preview-modal-head button {
  color: var(--glass-text);
  background-color: rgba(255, 255, 255, 0.075);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .form-control::placeholder {
  color: var(--glass-muted-2);
}

body[data-theme="glass"] .form-control:focus,
body[data-theme="glass"] .form-select:focus,
body[data-theme="glass"] .form-check-input:focus,
body[data-theme="glass"] .btn:focus,
body[data-theme="glass"] .review-action-btn:focus {
  border-color: var(--glass-accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.22);
}

body[data-theme="glass"] .btn {
  border-radius: var(--glass-radius-sm);
}

body[data-theme="glass"] .btn-primary,
body[data-theme="glass"] .review-action-btn.primary {
  color: #07101f;
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-2));
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.24);
}

body[data-theme="glass"] .btn-primary:hover,
body[data-theme="glass"] .review-action-btn.primary:hover {
  color: #030712;
  filter: brightness(1.06);
}

body[data-theme="glass"] .btn-outline-secondary,
body[data-theme="glass"] .btn-outline-primary,
body[data-theme="glass"] .btn-outline-danger {
  color: var(--glass-text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .btn-outline-secondary:hover,
body[data-theme="glass"] .btn-outline-primary:hover,
body[data-theme="glass"] .btn-outline-danger:hover {
  color: var(--glass-text);
  background: var(--glass-bg-panel-strong);
  border-color: var(--glass-border-strong);
}

body[data-theme="glass"] .status-badge {
  color: var(--glass-muted);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .status-badge.success,
body[data-theme="glass"] .status-badge.complete,
body[data-theme="glass"] .status-badge.safe,
body[data-theme="glass"] .workflow-metric-list strong.success,
body[data-theme="glass"] .dashboard-side-stats strong.success {
  color: var(--glass-success);
}

body[data-theme="glass"] .status-badge.warning,
body[data-theme="glass"] .workflow-metric-list strong.warning,
body[data-theme="glass"] .dashboard-side-stats strong.warning {
  color: var(--glass-warning);
}

body[data-theme="glass"] .status-badge.danger,
body[data-theme="glass"] .status-badge.missing,
body[data-theme="glass"] .workflow-metric-list strong.danger,
body[data-theme="glass"] .dashboard-side-stats strong.danger {
  color: var(--glass-danger);
}

body[data-theme="glass"] .status-badge.info,
body[data-theme="glass"] .workflow-metric-list strong.info,
body[data-theme="glass"] .dashboard-side-stats strong.info {
  color: var(--glass-accent-2);
}

body[data-theme="glass"] .status-badge.accent,
body[data-theme="glass"] .workflow-metric-list strong.accent,
body[data-theme="glass"] .dashboard-side-stats strong.accent {
  color: #b9b0ff;
}

body[data-theme="glass"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--glass-text);
  --bs-table-border-color: var(--glass-border);
  color: var(--glass-text);
}

body[data-theme="glass"] .compact-table th,
body[data-theme="glass"] .compact-table td,
body[data-theme="glass"] .projects-table td,
body[data-theme="glass"] .projects-table th {
  border-color: var(--glass-border);
}

body[data-theme="glass"] .compact-table td span,
body[data-theme="glass"] .projects-table td::before,
body[data-theme="glass"] .review-details dt,
body[data-theme="glass"] .review-source-grid dt,
body[data-theme="glass"] .policy-smart-stats dt,
body[data-theme="glass"] .workflow-metric-list span,
body[data-theme="glass"] .workflow-project-card span,
body[data-theme="glass"] .workflow-project-card small {
  color: var(--glass-muted);
}

body[data-theme="glass"] code,
body[data-theme="glass"] pre,
body[data-theme="glass"] .install-snippet {
  color: #cfe2ff;
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .accordion-item,
body[data-theme="glass"] .accordion-button {
  color: var(--glass-text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--glass-border);
}

body[data-theme="glass"] .accordion-button:not(.collapsed) {
  color: var(--glass-text);
  background: rgba(79, 140, 255, 0.14);
}

body[data-theme="glass"] .crk-preview-banner h4,
body[data-theme="glass"] .crk-preview-modal-card h4,
body[data-theme="glass"] .crk-preview-category strong {
  color: var(--crk-text);
}

.dashboard-cockpit {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  align-items: start;
}

.dashboard-cockpit > .notice-card {
  grid-column: 1 / -1;
}

.dashboard-main-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-side-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.dashboard-side-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-side-stats {
  display: grid;
  gap: 10px;
}

.dashboard-side-stats article {
  min-width: 0;
  padding: 11px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-side-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-side-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 22px;
}

.wizard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.wizard-main-column {
  min-width: 0;
}

.workflow-insight-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.workflow-insight-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.workflow-insight-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.workflow-project-card {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-project-card strong,
.workflow-project-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workflow-insight-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workflow-metric-list {
  display: grid;
  gap: 8px;
}

.workflow-metric-list article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-metric-list strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 18px;
}

.workflow-attention-list {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-attention-list strong,
.workflow-actions strong {
  font-size: 13px;
}

.workflow-attention-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.workflow-actions {
  display: grid;
  gap: 8px;
}

.workflow-actions .btn {
  width: 100%;
}

.preview-control-stack {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.preview-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.preview-status-strip .btn {
  margin-left: auto;
}

.banner-preview-frame {
  display: grid;
  justify-items: center;
  min-height: 560px;
  padding: 14px;
  overflow: auto;
}

.banner-preview-frame .crk-preview-surface {
  width: 100%;
  max-width: 940px;
  min-height: 532px;
  overflow: hidden;
  border-radius: 8px;
}

.banner-preview-frame[data-preview-viewport="tablet"] .crk-preview-surface {
  width: min(660px, 100%);
  min-height: 560px;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-surface {
  width: min(380px, 100%);
  min-height: 600px;
}

.banner-preview-frame[data-preview-viewport="mobile"] .preview-copy-grid {
  grid-template-columns: 1fr;
}

.banner-preview-frame[data-preview-viewport="mobile"] .preview-service-strip span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-template-soft-modal .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-template-enterprise-center .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-template-minimal-floating .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-template-compact-bottom .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-position-bottom_left .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-position-bottom_right .crk-preview-banner,
.banner-preview-frame[data-preview-viewport="mobile"] .crk-position-center .crk-preview-banner {
  top: auto;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  grid-template-columns: 1fr;
  transform: none;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-actions {
  justify-content: stretch;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-btn {
  flex: 1 1 136px;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-btn-equal {
  min-width: 0;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-preferences {
  padding: 12px;
}

.banner-preview-frame[data-preview-viewport="mobile"] .crk-preview-modal-card {
  max-height: 560px;
}

.banner-preview-frame[data-preview-viewport="tablet"] .crk-preview-banner {
  grid-template-columns: 1fr;
}

.banner-preview-frame[data-preview-viewport="tablet"] .crk-preview-actions {
  justify-content: flex-start;
}

@media (min-width: 1100px) {
  .wizard-content {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    width: min(1420px, 100%);
    align-items: start;
  }

  .wizard-content > :not(.wizard-stepper) {
    grid-column: 2;
    min-width: 0;
  }

  .wizard-stepper {
    position: sticky;
    top: 84px;
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px;
    overflow: visible;
    background: linear-gradient(180deg, var(--glass-bg-panel-strong), var(--glass-bg-panel));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-md);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(20px);
  }

  .stepper-item {
    flex-direction: column;
    gap: 6px;
    min-height: 70px;
    padding: 9px 6px;
    text-align: center;
    white-space: normal;
  }

  .stepper-label {
    max-width: 72px;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
  }

  .step-index {
    width: 30px;
    height: 30px;
  }

  .step-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 1180px) {
  .dashboard-cockpit,
  .wizard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-side-panel,
  .workflow-insight-panel {
    position: static;
  }
}

@media (max-width: 1099px) {
  .wizard-stepper {
    grid-template-columns: repeat(6, minmax(124px, 1fr));
  }

  .step-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 768px) {
  .dashboard-side-panel {
    order: 2;
  }

  .dashboard-main-column {
    order: 1;
  }

  .preview-control-stack {
    justify-items: stretch;
    width: 100%;
  }

  .preview-status-strip .btn {
    margin-left: 0;
  }

  .workflow-insight-panel {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="glass"] *,
  body[data-theme="glass"] *::before,
  body[data-theme="glass"] *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Premium dark aura glass polish */
body[data-theme="glass"] {
  --glass-bg-main: #050815;
  --glass-bg-soft: rgba(15, 27, 50, 0.58);
  --glass-bg-panel: rgba(11, 20, 38, 0.72);
  --glass-bg-panel-strong: rgba(23, 38, 66, 0.72);
  --glass-border: rgba(168, 199, 255, 0.16);
  --glass-border-strong: rgba(203, 224, 255, 0.27);
  --glass-text: #edf5ff;
  --glass-muted: #a9b7d6;
  --glass-muted-2: #7888aa;
  --glass-accent: #6ea4ff;
  --glass-accent-2: #2dd4c7;
  --glass-success: #4ade9a;
  --glass-warning: #ffbd4a;
  --glass-danger: #ff6b91;
  --glass-radius-lg: 24px;
  --glass-radius-md: 16px;
  --glass-radius-sm: 10px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 20px 58px rgba(0, 0, 0, 0.3);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 16% 0%, rgba(72, 126, 255, 0.26), transparent 68%),
    radial-gradient(760px 520px at 88% 6%, rgba(45, 212, 199, 0.16), transparent 70%),
    radial-gradient(780px 560px at 76% 92%, rgba(151, 119, 255, 0.15), transparent 72%),
    linear-gradient(180deg, #050815 0%, #081022 46%, #050713 100%);
  color: var(--glass-text);
}

body.wizard-page[data-theme="glass"] {
  background:
    radial-gradient(860px 500px at 12% 0%, rgba(72, 126, 255, 0.24), transparent 68%),
    radial-gradient(680px 460px at 88% 4%, rgba(45, 212, 199, 0.15), transparent 70%),
    radial-gradient(760px 520px at 78% 96%, rgba(151, 119, 255, 0.13), transparent 72%),
    linear-gradient(180deg, #050815 0%, #081022 52%, #050713 100%);
}

body[data-theme="glass"]::before,
body[data-theme="glass"]::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body[data-theme="glass"]::before {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 76% 20%, rgba(116, 210, 255, 0.08), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 26%, rgba(255, 255, 255, 0.02) 54%, transparent 72%);
  opacity: 0.76;
}

body[data-theme="glass"]::after {
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.56), transparent 42%);
}

body[data-theme="glass"] .app-shell,
body[data-theme="glass"] .wizard-layout {
  position: relative;
  z-index: 1;
}

body[data-theme="glass"] .app-sidebar,
body[data-theme="glass"] .wizard-topbar,
body[data-theme="glass"] .app-topbar {
  background:
    linear-gradient(180deg, rgba(12, 20, 39, 0.88), rgba(5, 9, 20, 0.78)),
    rgba(5, 9, 20, 0.82);
  border-color: rgba(183, 210, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px) saturate(145%);
}

body[data-theme="glass"] .app-sidebar {
  background:
    radial-gradient(circle at 14% 8%, rgba(78, 140, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(19, 29, 51, 0.92), rgba(4, 8, 18, 0.92));
}

body[data-theme="glass"] .app-topbar,
body[data-theme="glass"] .wizard-topbar {
  border-bottom-color: rgba(183, 210, 255, 0.16);
}

body[data-theme="glass"] .brand-logo {
  background: linear-gradient(135deg, #68a0ff 0%, #35d6cb 64%, #56e0a3 100%);
  box-shadow:
    0 16px 38px rgba(45, 120, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-theme="glass"] .sidebar-link {
  border-color: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body[data-theme="glass"] .sidebar-link:hover,
body[data-theme="glass"] .sidebar-link.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(109, 163, 255, 0.12));
  border-color: rgba(203, 224, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="glass"] .sidebar-link:hover {
  transform: translateX(1px);
}

body[data-theme="glass"] .content-panel,
body[data-theme="glass"] .hero-panel,
body[data-theme="glass"] .metric-card,
body[data-theme="glass"] .workflow-card,
body[data-theme="glass"] .settings-card,
body[data-theme="glass"] .result-card,
body[data-theme="glass"] .review-card,
body[data-theme="glass"] .review-group-card,
body[data-theme="glass"] .policy-card,
body[data-theme="glass"] .checklist-card,
body[data-theme="glass"] .artifact-card,
body[data-theme="glass"] .payment-card,
body[data-theme="glass"] .template-panel,
body[data-theme="glass"] .designer-section,
body[data-theme="glass"] .designer-advanced,
body[data-theme="glass"] .compliance-panel,
body[data-theme="glass"] .banner-preview-panel,
body[data-theme="glass"] .policy-panel,
body[data-theme="glass"] .policy-smart-card,
body[data-theme="glass"] .package-card,
body[data-theme="glass"] .install-steps,
body[data-theme="glass"] .secondary-actions,
body[data-theme="glass"] .workflow-insight-panel {
  background:
    linear-gradient(145deg, rgba(27, 42, 72, 0.74), rgba(10, 18, 35, 0.68) 54%, rgba(20, 35, 56, 0.62)) padding-box,
    linear-gradient(135deg, rgba(214, 231, 255, 0.3), rgba(45, 212, 199, 0.14) 44%, rgba(122, 156, 255, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--glass-radius-md);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(138%);
}

body[data-theme="glass"] .hero-panel,
body[data-theme="glass"] .dashboard-side-panel,
body[data-theme="glass"] .workflow-insight-panel {
  position: relative;
  overflow: hidden;
}

body[data-theme="glass"] .hero-panel::before,
body[data-theme="glass"] .dashboard-side-panel::before,
body[data-theme="glass"] .workflow-insight-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 76% 16%, rgba(45, 212, 199, 0.16), transparent 38%),
    radial-gradient(circle at 12% 0%, rgba(110, 164, 255, 0.16), transparent 34%);
  opacity: 0.92;
}

body[data-theme="glass"] .hero-panel > *,
body[data-theme="glass"] .dashboard-side-panel > *,
body[data-theme="glass"] .workflow-insight-panel > * {
  position: relative;
}

body[data-theme="glass"] .notice-card,
body[data-theme="glass"] .empty-state,
body[data-theme="glass"] .website-entry-card,
body[data-theme="glass"] .simple-scan-card,
body[data-theme="glass"] .scan-target-card,
body[data-theme="glass"] .summary-card,
body[data-theme="glass"] .settings-summary,
body[data-theme="glass"] .scan-section,
body[data-theme="glass"] .worker-panel,
body[data-theme="glass"] .review-action-panel,
body[data-theme="glass"] .assistant-summary-grid article,
body[data-theme="glass"] .detected-summary,
body[data-theme="glass"] .detected-edit-details,
body[data-theme="glass"] .toggle-row,
body[data-theme="glass"] .scanner-mode-card,
body[data-theme="glass"] .banner-template-card,
body[data-theme="glass"] .policy-smart-stats div,
body[data-theme="glass"] .policy-missing-card,
body[data-theme="glass"] .policy-generate-card,
body[data-theme="glass"] .demo-status-item,
body[data-theme="glass"] .project-row-card,
body[data-theme="glass"] .workflow-project-card,
body[data-theme="glass"] .workflow-metric-list article,
body[data-theme="glass"] .workflow-attention-list,
body[data-theme="glass"] .review-grouped-head,
body[data-theme="glass"] .review-source-grid div,
body[data-theme="glass"] .review-details div,
body[data-theme="glass"] .review-evidence-preview,
body[data-theme="glass"] .summary-card,
body[data-theme="glass"] .package-checklist li,
body[data-theme="glass"] .snapshot-item,
body[data-theme="glass"] .system-snapshot-card,
body[data-theme="glass"] .language-check,
body[data-theme="glass"] .compact-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(214, 231, 255, 0.19), rgba(45, 212, 199, 0.08)) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body[data-theme="glass"] .project-row-card,
body[data-theme="glass"] .banner-template-card,
body[data-theme="glass"] .scanner-mode-card,
body[data-theme="glass"] .toggle-row,
body[data-theme="glass"] .review-group-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body[data-theme="glass"] .project-row-card:hover,
body[data-theme="glass"] .banner-template-card:hover,
body[data-theme="glass"] .scanner-mode-card:hover,
body[data-theme="glass"] .toggle-row:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

body[data-theme="glass"] .banner-template-card.selected,
body[data-theme="glass"] .scanner-mode-card.selected {
  background:
    linear-gradient(180deg, rgba(72, 126, 255, 0.18), rgba(45, 212, 199, 0.08)) padding-box,
    linear-gradient(135deg, rgba(111, 164, 255, 0.7), rgba(45, 212, 199, 0.42)) border-box;
  box-shadow:
    0 18px 44px rgba(28, 105, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="glass"] .workflow-card.info,
body[data-theme="glass"] .result-card.info,
body[data-theme="glass"] .workflow-card.warning,
body[data-theme="glass"] .result-card.warning,
body[data-theme="glass"] .workflow-card.success,
body[data-theme="glass"] .result-card.success,
body[data-theme="glass"] .workflow-card.accent,
body[data-theme="glass"] .result-card.accent,
body[data-theme="glass"] .result-card.danger {
  border-top: 1px solid transparent;
}

body[data-theme="glass"] .form-label,
body[data-theme="glass"] .range-meta,
body[data-theme="glass"] .compact-table th,
body[data-theme="glass"] .policy-table th,
body[data-theme="glass"] .summary-card span,
body[data-theme="glass"] .settings-summary dt,
body[data-theme="glass"] .detected-summary dt,
body[data-theme="glass"] .simple-scan-card dt,
body[data-theme="glass"] .worker-meta-grid span,
body[data-theme="glass"] .review-summary-strip span,
body[data-theme="glass"] .dashboard-side-stats span,
body[data-theme="glass"] .project-row-main span,
body[data-theme="glass"] .project-row-domain span,
body[data-theme="glass"] .project-row-progress span,
body[data-theme="glass"] .metric-card span,
body[data-theme="glass"] .scan-target-card span,
body[data-theme="glass"] .review-card-kicker,
body[data-theme="glass"] .policy-meta-grid span,
body[data-theme="glass"] .meta-list dt,
body[data-theme="glass"] .package-checklist li.missing,
body[data-theme="glass"] .install-guidance p,
body[data-theme="glass"] .workflow-insight-summary,
body[data-theme="glass"] .workflow-attention-list p {
  color: var(--glass-muted);
}

body[data-theme="glass"] .form-control,
body[data-theme="glass"] .form-select,
body[data-theme="glass"] .input-group-text,
body[data-theme="glass"] .review-action-btn,
body[data-theme="glass"] .demo-shortcuts a,
body[data-theme="glass"] .scan-target-url,
body[data-theme="glass"] .crk-preview-modal-head button {
  color: var(--glass-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.058)) padding-box,
    linear-gradient(135deg, rgba(214, 231, 255, 0.18), rgba(45, 212, 199, 0.08)) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="glass"] .form-control:disabled,
body[data-theme="glass"] .form-select:disabled,
body[data-theme="glass"] .scanner-mode-card.disabled {
  color: rgba(169, 183, 214, 0.62);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(168, 199, 255, 0.09);
  opacity: 1;
}

body[data-theme="glass"] .form-select option {
  color: var(--glass-text);
  background: #10182a;
}

body[data-theme="glass"] .form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 224, 255, 0.28);
}

body[data-theme="glass"] .form-check-input:checked {
  background-color: var(--glass-accent-2);
  border-color: var(--glass-accent-2);
}

body[data-theme="glass"] .form-range::-webkit-slider-runnable-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

body[data-theme="glass"] .form-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-2));
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 5px rgba(110, 164, 255, 0.16);
}

body[data-theme="glass"] .form-range::-moz-range-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

body[data-theme="glass"] .form-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-2));
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 5px rgba(110, 164, 255, 0.16);
}

body[data-theme="glass"] .btn {
  min-height: var(--button-min-height);
  border-radius: var(--glass-radius-sm);
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body[data-theme="glass"] .btn:hover,
body[data-theme="glass"] .review-action-btn:hover {
  transform: translateY(-1px);
}

body[data-theme="glass"] .btn-primary,
body[data-theme="glass"] .review-action-btn.primary,
body[data-theme="glass"] .preview-mode-buttons .active {
  color: #06111f;
  background:
    linear-gradient(135deg, rgba(135, 180, 255, 0.98) 0%, rgba(87, 158, 255, 0.98) 42%, rgba(45, 212, 199, 0.98) 100%) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(45, 212, 199, 0.32)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 15px 34px rgba(28, 105, 255, 0.24),
    0 0 28px rgba(45, 212, 199, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body[data-theme="glass"] .btn-primary:hover,
body[data-theme="glass"] .review-action-btn.primary:hover,
body[data-theme="glass"] .preview-mode-buttons .active:hover {
  color: #020714;
  box-shadow:
    0 18px 42px rgba(28, 105, 255, 0.3),
    0 0 34px rgba(45, 212, 199, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  filter: none;
}

body[data-theme="glass"] .btn-outline-secondary,
body[data-theme="glass"] .btn-outline-primary,
body[data-theme="glass"] .btn-outline-danger,
body[data-theme="glass"] .review-action-btn,
body[data-theme="glass"] .preview-mode-buttons .btn {
  color: #d9e6ff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(203, 224, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body[data-theme="glass"] .btn-outline-secondary:hover,
body[data-theme="glass"] .btn-outline-primary:hover,
body[data-theme="glass"] .btn-outline-danger:hover,
body[data-theme="glass"] .review-action-btn:hover,
body[data-theme="glass"] .preview-mode-buttons .btn:hover {
  color: var(--glass-text);
  background: rgba(255, 255, 255, 0.096);
  border-color: rgba(203, 224, 255, 0.3);
}

body[data-theme="glass"] .icon-button {
  color: #d9e6ff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(203, 224, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body[data-theme="glass"] .icon-button:hover {
  color: var(--glass-text);
  background: rgba(255, 255, 255, 0.105);
}

body[data-theme="glass"] .status-badge,
body[data-theme="glass"] .env-badge {
  color: #c9d8f3;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(203, 224, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body[data-theme="glass"] .status-badge.success,
body[data-theme="glass"] .status-badge.complete,
body[data-theme="glass"] .status-badge.safe,
body[data-theme="glass"] .readiness-icon.success,
body[data-theme="glass"] .detected-badge {
  color: var(--glass-success);
  background: rgba(74, 222, 154, 0.12);
  border-color: rgba(74, 222, 154, 0.28);
}

body[data-theme="glass"] .status-badge.warning,
body[data-theme="glass"] .readiness-icon.warning {
  color: var(--glass-warning);
  background: rgba(255, 189, 74, 0.13);
  border-color: rgba(255, 189, 74, 0.3);
}

body[data-theme="glass"] .status-badge.danger,
body[data-theme="glass"] .status-badge.missing,
body[data-theme="glass"] .status-badge.blocked,
body[data-theme="glass"] .readiness-icon.danger {
  color: var(--glass-danger);
  background: rgba(255, 107, 145, 0.12);
  border-color: rgba(255, 107, 145, 0.28);
}

body[data-theme="glass"] .status-badge.info,
body[data-theme="glass"] .readiness-icon.info {
  color: var(--glass-accent-2);
  background: rgba(45, 212, 199, 0.12);
  border-color: rgba(45, 212, 199, 0.28);
}

body[data-theme="glass"] .status-badge.neutral,
body[data-theme="glass"] .status-badge.optional {
  color: #c2cee5;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(203, 224, 255, 0.15);
}

body[data-theme="glass"] .notice-card.success,
body[data-theme="glass"] .compliance-panel.safe {
  background:
    linear-gradient(180deg, rgba(74, 222, 154, 0.12), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(74, 222, 154, 0.38), rgba(203, 224, 255, 0.12)) border-box;
}

body[data-theme="glass"] .notice-card.warning,
body[data-theme="glass"] .compliance-panel.warning {
  background:
    linear-gradient(180deg, rgba(255, 189, 74, 0.13), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 189, 74, 0.36), rgba(203, 224, 255, 0.1)) border-box;
}

body[data-theme="glass"] .notice-card.info {
  background:
    linear-gradient(180deg, rgba(45, 212, 199, 0.11), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(45, 212, 199, 0.32), rgba(110, 164, 255, 0.12)) border-box;
}

body[data-theme="glass"] .notice-card.danger,
body[data-theme="glass"] .compliance-panel.blocked,
body[data-theme="glass"] .compliance-panel.danger {
  background:
    linear-gradient(180deg, rgba(255, 107, 145, 0.12), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 107, 145, 0.36), rgba(203, 224, 255, 0.1)) border-box;
}

body[data-theme="glass"] .wizard-stepper {
  background:
    linear-gradient(180deg, rgba(22, 36, 62, 0.76), rgba(8, 15, 31, 0.66)) padding-box,
    linear-gradient(135deg, rgba(214, 231, 255, 0.24), rgba(45, 212, 199, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--glass-radius-md);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(22px) saturate(138%);
}

body[data-theme="glass"] .stepper-item {
  color: #aebbdd;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(203, 224, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-theme="glass"] .stepper-item:hover {
  color: var(--glass-text);
  background: rgba(255, 255, 255, 0.075);
}

body[data-theme="glass"] .stepper-item.current,
body[data-theme="glass"] .stepper-item.active {
  color: #06111f;
  background:
    linear-gradient(135deg, rgba(135, 180, 255, 0.98), rgba(45, 212, 199, 0.98)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(45, 212, 199, 0.32)) border-box;
  border-color: transparent;
  box-shadow:
    0 12px 30px rgba(28, 105, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body[data-theme="glass"] .stepper-item.done,
body[data-theme="glass"] .stepper-item.complete,
body[data-theme="glass"] .stepper-item.is-complete {
  color: var(--glass-success);
  background: rgba(74, 222, 154, 0.105);
  border-color: rgba(74, 222, 154, 0.26);
}

body[data-theme="glass"] .stepper-item.warning,
body[data-theme="glass"] .stepper-item.is-warning {
  color: var(--glass-warning);
  background: rgba(255, 189, 74, 0.105);
  border-color: rgba(255, 189, 74, 0.26);
}

body[data-theme="glass"] .stepper-item.missing,
body[data-theme="glass"] .stepper-item.is-missing,
body[data-theme="glass"] .stepper-item.optional,
body[data-theme="glass"] .stepper-item.is-optional {
  color: #94a3c7;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(203, 224, 255, 0.1);
}

body[data-theme="glass"] .step-index {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="glass"] .stepper-item.current .step-index,
body[data-theme="glass"] .stepper-item.active .step-index {
  background: rgba(6, 17, 31, 0.12);
}

body[data-theme="glass"] .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.065);
  --bs-table-color: var(--glass-text);
  --bs-table-border-color: rgba(203, 224, 255, 0.13);
}

body[data-theme="glass"] .table > :not(caption) > * > * {
  color: var(--glass-text);
  background-color: transparent;
  border-color: rgba(203, 224, 255, 0.13);
}

body[data-theme="glass"] .policy-table th {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(203, 224, 255, 0.15);
}

body[data-theme="glass"] .policy-table td {
  border-color: rgba(203, 224, 255, 0.13);
}

body[data-theme="glass"] .compact-accordion .accordion-item,
body[data-theme="glass"] .compact-accordion .accordion-button {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(203, 224, 255, 0.14);
}

body[data-theme="glass"] .accordion-button::after {
  filter: invert(1) grayscale(1);
  opacity: 0.74;
}

body[data-theme="glass"] .accordion-body {
  color: var(--glass-text);
}

body[data-theme="glass"] .label-with-help span,
body[data-theme="glass"] .tooltip-dot {
  color: var(--glass-accent-2);
  background: rgba(45, 212, 199, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="glass"] .readiness-panel {
  background:
    linear-gradient(145deg, rgba(27, 42, 72, 0.74), rgba(10, 18, 35, 0.66)) padding-box,
    linear-gradient(135deg, rgba(214, 231, 255, 0.24), rgba(45, 212, 199, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--glass-radius-md);
  box-shadow: var(--soft-shadow);
}

body[data-theme="glass"] .readiness-item {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(203, 224, 255, 0.13);
}

body[data-theme="glass"] .dashboard-side-stats article,
body[data-theme="glass"] .workflow-metric-list article {
  border-radius: 12px;
}

body[data-theme="glass"] .dashboard-side-stats strong,
body[data-theme="glass"] .workflow-metric-list strong,
body[data-theme="glass"] .metric-card strong,
body[data-theme="glass"] .result-card strong,
body[data-theme="glass"] .summary-card strong,
body[data-theme="glass"] .policy-smart-stats dd {
  color: var(--glass-text);
}

body[data-theme="glass"] .dashboard-side-stats strong.success,
body[data-theme="glass"] .workflow-metric-list strong.success {
  color: var(--glass-success);
}

body[data-theme="glass"] .dashboard-side-stats strong.warning,
body[data-theme="glass"] .workflow-metric-list strong.warning {
  color: var(--glass-warning);
}

body[data-theme="glass"] .dashboard-side-stats strong.info,
body[data-theme="glass"] .workflow-metric-list strong.info {
  color: var(--glass-accent-2);
}

body[data-theme="glass"] .dashboard-side-stats strong.neutral,
body[data-theme="glass"] .workflow-metric-list strong.neutral {
  color: #d6e1f7;
}

body[data-theme="glass"] .template-thumb {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border-color: rgba(203, 224, 255, 0.18);
}

body[data-theme="glass"] .template-thumb i,
body[data-theme="glass"] .template-thumb b {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(203, 224, 255, 0.32);
}

body[data-theme="glass"] .template-thumb em {
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-2));
  border-color: transparent;
}

body[data-theme="glass"] .banner-preview-frame {
  background:
    radial-gradient(circle at 22% 10%, rgba(110, 164, 255, 0.16), transparent 36%),
    radial-gradient(circle at 82% 14%, rgba(45, 212, 199, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(9, 17, 33, 0.9), rgba(6, 10, 21, 0.94));
  border-color: rgba(203, 224, 255, 0.15);
  border-radius: var(--glass-radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body[data-theme="glass"] .banner-preview-frame .crk-preview-surface {
  border: 1px solid rgba(203, 224, 255, 0.14);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
}

body[data-theme="glass"] .banner-preview-frame .crk-preview-banner {
  grid-template-columns: 1fr;
  align-items: start;
}

body[data-theme="glass"] .banner-preview-frame .crk-preview-banner p {
  max-width: 62ch;
}

body[data-theme="glass"] .banner-preview-frame .crk-preview-actions {
  justify-content: flex-start;
}

body[data-theme="glass"] .preview-page-shell {
  background:
    linear-gradient(180deg, rgba(18, 27, 48, 0.74), rgba(10, 18, 34, 0.68));
  border-color: rgba(203, 224, 255, 0.16);
}

body[data-theme="glass"] .preview-browser-bar {
  color: #a9b7d6;
  background: rgba(255, 255, 255, 0.07);
  border-bottom-color: rgba(203, 224, 255, 0.14);
}

body[data-theme="glass"] .preview-browser-bar span,
body[data-theme="glass"] .preview-hero-line,
body[data-theme="glass"] .preview-copy-grid span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(203, 224, 255, 0.15);
}

body[data-theme="glass"] .preview-service-strip span {
  color: #c9d8f3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 224, 255, 0.18);
}

body[data-theme="glass"] .crk-preview-btn-equal {
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--crk-accent) 34%, transparent);
}

body[data-theme="glass"] .clean-list li,
body[data-theme="glass"] .policy-disclaimer,
body[data-theme="glass"] .policy-muted,
body[data-theme="glass"] .review-example-list,
body[data-theme="glass"] .review-smart-service-row span {
  color: var(--glass-muted);
}

body[data-theme="glass"] .review-smart-service-row {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(203, 224, 255, 0.13);
}

body[data-theme="glass"] .invalid-feedback,
body[data-theme="glass"] .field-error {
  color: #ff8dac;
}

body[data-theme="glass"] .form-control.is-invalid,
body[data-theme="glass"] .form-select.is-invalid {
  border-color: rgba(255, 107, 145, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 107, 145, 0.14);
}

@media (min-width: 1100px) {
  body[data-theme="glass"] .wizard-stepper {
    padding: 9px;
  }
}

@media (max-width: 768px) {
  body[data-theme="glass"] .app-sidebar {
    background:
      linear-gradient(180deg, rgba(19, 29, 51, 0.96), rgba(5, 9, 20, 0.94));
  }

  body[data-theme="glass"] .wizard-topbar,
  body[data-theme="glass"] .app-topbar {
    background: rgba(6, 11, 24, 0.92);
  }

  body[data-theme="glass"] .wizard-stepper {
    padding: 8px;
  }

  body[data-theme="glass"] .project-row-card:hover,
  body[data-theme="glass"] .banner-template-card:hover,
  body[data-theme="glass"] .scanner-mode-card:hover,
  body[data-theme="glass"] .toggle-row:hover,
  body[data-theme="glass"] .btn:hover,
  body[data-theme="glass"] .review-action-btn:hover {
    transform: none;
  }
}

/* Keep installation checks readable on narrow screens. */
#validation-report .validation-status { display: inline-block; padding: .25rem .5rem; border-radius: .4rem; }
#validation-report .validation-status[data-status="passed"] { color: #08775c; background: #d7f7ec; }
#validation-report .validation-status[data-status="warning"] { color: #785000; background: #fff0c4; }
#validation-report .validation-status[data-status="failed"] { color: #9d2020; background: #ffe1e1; }
#validation-report .validation-status[data-status="manual_check_required"] { color: #214c78; background: #e0edff; }
@media (max-width: 768px) {
  #validation-report table, #validation-report tbody { display: block; }
  #validation-report tr { display: grid; gap: .35rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #71809655; }
  #validation-report th, #validation-report td { display: block; padding: .2rem 0; border: 0; }
  #validation-report th { font-size: 1rem; }
}

/* Phase 4: light application surface. Glass remains an opt-in theme. */
body[data-theme="light"] {
  color-scheme: light;
  --app-bg: var(--color-background);
  --panel-bg: var(--color-surface);
  --panel-soft: var(--color-surface-muted);
  --text: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --primary: var(--color-primary);
  --primary-strong: var(--color-primary-hover);
  --shadow: var(--shadow-md);
  --soft-shadow: var(--shadow-sm);
  background: var(--app-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="light"] .brand-logo {
  background: var(--primary);
  border-radius: 11px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

body[data-theme="light"] .app-sidebar {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}
body[data-theme="light"] .brand-mark { color: var(--text); }
body[data-theme="light"] .sidebar-link { color: var(--muted); }
body[data-theme="light"] .sidebar-link:hover,
body[data-theme="light"] .sidebar-link.active { color: var(--primary); background: var(--color-primary-soft); }

body[data-theme="light"] .wizard-topbar {
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1272px) / 2));
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
body[data-theme="light"] .wizard-brand { grid-template-columns: 36px minmax(0, 1fr); }
body[data-theme="light"] .wizard-brand .brand-logo { width: 36px; height: 36px; }
body[data-theme="light"] .wizard-brand strong { font-weight: 700; letter-spacing: -.3px; }
body[data-theme="light"] .wizard-brand small { font-weight: 400; }
body[data-theme="light"] .wizard-topbar-actions { gap: 16px; }
body[data-theme="light"] .wizard-topbar .language-select > span { display: none; }
body[data-theme="light"] .wizard-content {
  display: block;
  width: min(1320px, 100%);
  padding: 24px 24px 48px;
}
body[data-theme="light"] .wizard-content > * { min-width: 0; }
body[data-theme="light"] .wizard-stepper {
  position: static;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 24px;
  padding: 0 0 16px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body[data-theme="light"] .stepper-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  white-space: normal;
  box-shadow: none;
}
body[data-theme="light"] .stepper-item:hover { background: #edf0f5; color: var(--text); }
body[data-theme="light"] .step-index {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: var(--muted);
  background: #e9ecf1;
  font-size: 12px;
  font-weight: 600;
}
body[data-theme="light"] .stepper-label {
  max-width: none;
  overflow: visible;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-theme="light"] .stepper-item.is-complete .step-index { color: #18734f; background: #e8f4ec; }
body[data-theme="light"] .stepper-item.is-warning .step-index { color: #93630d; background: #fcf2d9; }
body[data-theme="light"] .stepper-item[aria-current="step"] { color: var(--primary); background: var(--color-primary-soft); }
body[data-theme="light"] .stepper-item[aria-current="step"] .step-index { color: #fff; background: var(--primary); }
body[data-theme="light"] .wizard-workspace { grid-template-columns: minmax(0, 1fr) 248px; gap: 24px; }
body[data-theme="light"] .content-panel { padding: 28px; border-radius: 16px; box-shadow: var(--shadow); }
body[data-theme="light"] .wizard-focus-panel { max-width: none; }
body[data-theme="light"] .panel-heading { gap: 18px; margin-bottom: 26px; }
body[data-theme="light"] .panel-heading > div { min-width: 0; }
body[data-theme="light"] .panel-heading h2 { margin: 0 0 8px; font-size: clamp(23px, 2vw, 28px); font-weight: 650; letter-spacing: -.75px; line-height: 1.25; }
body[data-theme="light"] .panel-heading p:not(.eyebrow) { max-width: 64ch; margin: 0; font-size: 14px; line-height: 1.6; }
body[data-theme="light"] .eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }
body[data-theme="light"] .status-badge { max-width: 100%; padding: 4px 8px; border: 0; font-size: 11px; font-weight: 600; white-space: normal; line-height: 1.4; }
body[data-theme="light"] .panel-heading > .status-badge { flex-shrink: 0; max-width: 35%; margin-top: 3px; }
body[data-theme="light"] .workflow-insight-panel {
  position: static;
  gap: 18px;
  padding: 22px 0 22px 20px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
body[data-theme="light"] .workflow-project-card { padding: 0; border: 0; gap: 5px; }
body[data-theme="light"] .workflow-project-card > span { color: var(--muted); font-size: 11px; font-weight: 500; }
body[data-theme="light"] .workflow-project-card strong { font-size: 14px; font-weight: 600; }
body[data-theme="light"] .workflow-project-card small { color: var(--muted); font-size: 12px; }
body[data-theme="light"] .workflow-insight-summary { font-size: 13px; line-height: 1.65; }
body[data-theme="light"] .workflow-metric-list { gap: 0; }
body[data-theme="light"] .workflow-metric-list article { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 12px; }
body[data-theme="light"] .workflow-metric-list strong { margin: 0; font-size: 12px; font-weight: 600; }
body[data-theme="light"] .workflow-metric-list strong.success { color: #18734f; }
body[data-theme="light"] .workflow-metric-list strong.warning { color: #93630d; }
body[data-theme="light"] .workflow-attention-list { padding: 0; border: 0; font-size: 12px; }
body[data-theme="light"] .workflow-attention-list p { line-height: 1.6; }

/* Consistent controls and quiet, accessible secondary actions. */
body[data-theme="light"] .btn { min-height: 40px; padding: 9px 15px; font-size: 13px; font-weight: 600; line-height: 1.45; border-radius: 9px; white-space: normal; }
body[data-theme="light"] .btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12px; }
body[data-theme="light"] .btn-primary { --bs-btn-active-bg: var(--primary-strong); --bs-btn-active-border-color: var(--primary-strong); box-shadow: 0 1px 2px #2449b81a; }
body[data-theme="light"] .btn-outline-secondary { color: #526071; background: #fff; border-color: #dce1e8; }
body[data-theme="light"] .btn-outline-secondary:hover { color: var(--text); background: #f4f6f9; border-color: #b8c2d2; }
body[data-theme="light"] .btn-outline-primary { color: var(--primary); background: #fff; border-color: #d0dcf8; }
body[data-theme="light"] .btn-outline-primary:hover { background: #edf2ff; border-color: var(--primary); }
body[data-theme="light"] :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #325cdb80; outline-offset: 3px; }
body[data-theme="light"] .form-label { color: #344054; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
body[data-theme="light"] :is(.form-control, .form-select) { min-height: 42px; padding-top: 9px; padding-bottom: 9px; background-color: #fff; border-color: #d7dde5; border-radius: 9px; color: var(--text); }
body[data-theme="light"] .form-control::placeholder { color: #8792a3; }
body[data-theme="light"] :is(.form-control, .form-select).is-invalid { border-color: var(--danger); }
body[data-theme="light"] .form-select { padding-right: 36px; }
body[data-theme="light"] .form-select-sm { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
body[data-theme="light"] .compact-form { gap: 18px; }
body[data-theme="light"] .form-actions { gap: 10px; margin-top: 24px; padding-top: 20px; }
body[data-theme="light"] .form-actions > .btn-outline-secondary:first-child { margin-right: auto; }
body[data-theme="light"] :is(.notice-card, .empty-state) { padding: 14px 16px; border-radius: 10px; box-shadow: none; }
body[data-theme="light"] .notice-card p { line-height: 1.6; }
body[data-theme="light"] :is(.designer-advanced, .detected-edit-details) { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
body[data-theme="light"] :is(.designer-advanced, .detected-edit-details) > summary { color: #526071; font-size: 13px; font-weight: 500; cursor: pointer; }
body[data-theme="light"] :is(.designer-advanced, .detected-edit-details)[open] > summary { margin-bottom: 16px; color: var(--text); }
body[data-theme="light"] :is(.designer-advanced, .detected-edit-details) > summary:hover { color: var(--primary); }
body[data-theme="light"] .compact-accordion .accordion-button { padding: 15px 16px; background: #fff; color: #526071; font-weight: 500; box-shadow: none; }
body[data-theme="light"] .compact-accordion .accordion-button:not(.collapsed) { color: var(--text); background: var(--panel-soft); }
body[data-theme="light"] .compact-accordion .accordion-body { padding: 18px; }
body[data-theme="light"] .table { --bs-table-border-color: var(--line); font-size: 12px; }
body[data-theme="light"] .table th { color: var(--muted); font-weight: 600; background: var(--panel-soft); }
body[data-theme="light"] .table :is(th, td) { padding: 12px; }
body[data-theme="light"] .compact-table-wrap { border-color: var(--line); border-radius: 9px; }
body[data-theme="light"] .wizard-content :is(form, section, article, aside, details) { min-width: 0; }
body[data-theme="light"] .wizard-content :is(p, h3, strong, dd, .mini-status) { overflow-wrap: anywhere; }

/* Step-specific surfaces: one main task per screen. */
body[data-theme="light"] .website-entry-card { padding: 0 0 6px; border: 0; background: transparent; gap: 12px; }
body[data-theme="light"] .website-entry-card .btn { min-height: 46px; }
body[data-theme="light"] .website-entry-card .form-control-lg { min-height: 46px; font-size: 15px; }
body[data-theme="light"] .autodetect-status:empty { display: none; }
body[data-theme="light"] .detected-summary { padding: 18px; border-color: var(--line); background: var(--panel-soft); box-shadow: none; border-radius: 10px; }
body[data-theme="light"] .detected-summary dl div { padding: 0; background: transparent; border: 0; }
body[data-theme="light"] .detected-summary :is(dt, dd) { font-weight: 500; }
body[data-theme="light"] .detected-summary dt { font-size: 11px; text-transform: none; }
body[data-theme="light"] .simple-scan-card { padding: 18px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 10px; }
body[data-theme="light"] .simple-scan-card h3 { margin-top: 0; }
body[data-theme="light"] .scan-target-url { padding: 0; background: transparent; border: 0; }
body[data-theme="light"] .assistant-stat-grid.result-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
body[data-theme="light"] .assistant-stat-grid .result-card { padding: 16px 12px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body[data-theme="light"] .assistant-stat-grid .result-card:last-child { border-right: 0; }
body[data-theme="light"] .assistant-stat-grid .result-card span { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: none; }
body[data-theme="light"] .assistant-stat-grid .result-card strong { margin: 7px 0 0; color: var(--text); font-size: 26px; font-weight: 600; }
body[data-theme="light"] .assistant-stat-grid .result-card p { font-size: 11px; line-height: 1.5; }
body[data-theme="light"] .assistant-summary-grid { gap: 0; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 22px; }
body[data-theme="light"] .assistant-summary-grid article { padding: 0 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
body[data-theme="light"] .assistant-summary-grid article:first-child { padding-left: 0; }
body[data-theme="light"] .assistant-summary-grid article:last-child { border: 0; }
body[data-theme="light"] .assistant-summary-grid span { font-size: 11px; font-weight: 500; text-transform: none; }
body[data-theme="light"] .assistant-summary-grid strong { font-size: 18px; font-weight: 600; }
body[data-theme="light"] .assistant-summary-grid article:last-child strong { font-size: 13px; }
body[data-theme="light"] :is(.review-card, .review-group-card) { grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr); padding: 20px; gap: 20px; border-radius: 12px; border-color: var(--line); box-shadow: none; }
body[data-theme="light"] .review-action-panel { margin: 0; padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
body[data-theme="light"] .review-action-btn { min-height: 38px; padding: 8px 12px; font-weight: 600; border-radius: 8px; }
body[data-theme="light"] .review-action-btn.primary { color: var(--primary); background: var(--color-primary-soft); border-color: var(--color-primary-border); }
body[data-theme="light"] .review-action-btn.primary:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
body[data-theme="light"] .review-secondary-details { margin-top: 20px; }
body[data-theme="light"] .review-secondary-details .content-panel { padding: 0; border: 0; box-shadow: none; }
body[data-theme="light"] :is(.policy-smart-card, .package-card) { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; border-radius: 12px; background: var(--panel-soft); box-shadow: none; }
body[data-theme="light"] :is(.policy-smart-actions, .package-actions) { justify-content: flex-start; max-width: none; align-items: center; }
body[data-theme="light"] .policy-smart-main > .policy-optional-details { margin-top: 16px; }
body[data-theme="light"] .policy-source-details { margin-top: 16px; }
body[data-theme="light"] .policy-optional-details > .policy-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
body[data-theme="light"] .install-code-details { margin-top: 14px; }
body[data-theme="light"] .install-steps { padding: 22px 0; border: 0; border-radius: 0; box-shadow: none; }
body[data-theme="light"] .install-steps li { margin: 8px 0; line-height: 1.6; }
body[data-theme="light"] #validation-report { padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body[data-theme="light"] #validation-report h3 { font-size: 15px; }
body[data-theme="light"] .banner-consent-details { margin: 0 0 20px; }
body[data-theme="light"] .banner-consent-details .status-badge { margin-left: 5px; }
body[data-theme="light"] .banner-designer-grid { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 24px; }
body[data-theme="light"] .designer-section { padding: 18px; border-radius: 12px; box-shadow: none; }
body[data-theme="light"] .banner-preview-panel { position: static; min-width: 0; padding: 18px; background: var(--panel-soft); border-radius: 12px; box-shadow: none; }
body[data-theme="light"] .preview-toolbar { flex-wrap: wrap; gap: 12px; }
body[data-theme="light"] .preview-control-stack { justify-items: start; }
body[data-theme="light"] .banner-preview-frame { min-height: 450px; padding: 8px; border-radius: 10px; }
body[data-theme="light"] .banner-preview-frame .crk-preview-surface { min-height: 430px; }
body[data-theme="light"] .banner-preview-frame .crk-preview-banner { grid-template-columns: 1fr; }
body[data-theme="light"] .banner-preview-frame .crk-preview-actions { justify-content: flex-start; }
body[data-theme="light"] .banner-preview-frame .crk-preview-btn-equal { min-width: 0; }

@media (max-width: 1100px) {
  body[data-theme="light"] .wizard-workspace { grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; }
  body[data-theme="light"] .content-panel { padding: 24px; }
  body[data-theme="light"] :is(.review-card, .review-group-card) { grid-template-columns: 1fr; gap: 16px; }
  body[data-theme="light"] .review-action-panel { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  body[data-theme="light"] .assistant-stat-grid.result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-theme="light"] .assistant-stat-grid .result-card { border: 0; }
  body[data-theme="light"] .banner-designer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body[data-theme="light"] .wizard-workspace { grid-template-columns: minmax(0, 1fr); }
  body[data-theme="light"] .workflow-insight-panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  body[data-theme="light"] .wizard-brand small { display: none; }
  body[data-theme="light"] .stepper-item { gap: 6px; padding: 7px 5px; }
  body[data-theme="light"] .stepper-label { font-size: 11px; }
}
@media (max-width: 600px) {
  body[data-theme="light"] .wizard-topbar { position: static; flex-direction: row; flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
  body[data-theme="light"] .wizard-topbar-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; width: 100%; gap: 8px; }
  body[data-theme="light"] .wizard-topbar-actions .language-select { width: auto; margin: 0; }
  body[data-theme="light"] .wizard-topbar-actions .language-select .form-select { width: 112px; }
  body[data-theme="light"] .wizard-topbar-actions > .btn { padding-inline: 8px; font-size: 11px; }
  body[data-theme="light"] .wizard-content { padding: 16px 12px 28px; }
  body[data-theme="light"] .wizard-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; padding-bottom: 12px; }
  body[data-theme="light"] .stepper-item { padding: 7px; }
  body[data-theme="light"] .stepper-label { font-size: 11px; }
  body[data-theme="light"] .content-panel { padding: 20px 16px; border-radius: 12px; }
  body[data-theme="light"] .panel-heading { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  body[data-theme="light"] .panel-heading > .status-badge { max-width: 100%; }
  body[data-theme="light"] .panel-heading h2 { font-size: 23px; }
  body[data-theme="light"] .website-entry-card { grid-template-columns: 1fr; }
  body[data-theme="light"] :is(.form-control, .form-select) { font-size: 16px; }
  body[data-theme="light"] .form-select-sm { font-size: 13px; }
  body[data-theme="light"] .detected-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-theme="light"] .assistant-stat-grid.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-theme="light"] .assistant-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  body[data-theme="light"] .assistant-summary-grid article:nth-child(2) { border-right: 0; }
  body[data-theme="light"] .assistant-summary-grid article:last-child { grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); }
  body[data-theme="light"] :is(.review-card, .review-group-card, .policy-smart-card, .package-card, .designer-section, .banner-preview-panel) { padding: 16px; }
  body[data-theme="light"] :is(.policy-smart-actions, .package-actions) { flex-direction: column; align-items: stretch; }
  body[data-theme="light"] :is(.policy-smart-actions, .package-actions) form .btn { width: 100%; }
  body[data-theme="light"] .form-actions { align-items: stretch; }
  body[data-theme="light"] .form-actions > .btn-primary { width: 100%; }
  body[data-theme="light"] .banner-preview-frame { padding: 0; }
  body[data-theme="light"] .preview-control-stack { width: 100%; }
  body[data-theme="light"] .preview-mode-buttons { display: flex; flex-direction: row; flex-wrap: wrap; }
  body[data-theme="light"] .preview-mode-buttons .btn { flex: 1 1 auto; }
  body[data-theme="light"] .banner-preview-frame .crk-preview-surface { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-theme="light"] *, body[data-theme="light"] *::before, body[data-theme="light"] *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Keep template names legible within the settings column. */
body[data-theme="light"] .banner-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-theme="light"] .banner-template-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; align-content: start; }
body[data-theme="light"] .banner-template-card strong { font-size: 13px; font-weight: 600; overflow-wrap: normal; }
body[data-theme="light"] .banner-template-card small { grid-column: 1 / -1; line-height: 1.5; }
body[data-theme="light"] .banner-template-card:focus-within { outline: 3px solid #325cdb80; outline-offset: 2px; }
body[data-theme="light"] .wizard-screen-banner .designer-section-heading { flex-wrap: wrap; }
body[data-theme="light"] .review-note summary,
body[data-theme="light"] .review-details summary { font-weight: 500; color: #526071; }
body[data-theme="light"] .install-steps ol { gap: 10px; }
body[data-theme="light"] .install-steps li { margin: 0; }
body[data-theme="light"] #integration-install-snippet { font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
body[data-theme="light"] :is(#owner-assets, #business-details) { scroll-margin-top: 90px; }
@media (max-width: 380px) {
  body[data-theme="light"] .banner-template-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Shared auth and site list refinements */
.profile-menu-trigger { display: inline-flex; align-items: center; gap: 8px; }
.profile-menu-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-menu .dropdown-menu { min-width: 180px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.profile-menu .dropdown-item { border-radius: 6px; padding: 8px 10px; }
.profile-menu form { margin: 0; }
.auth-page { min-height: 100vh; }
.auth-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 28px 20px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 18px; }
.auth-brand .brand-logo { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 13px; }
.auth-main { display: grid; place-items: center; min-height: calc(100vh - 100px); padding: 20px; }
.auth-card { width: min(100%, 480px); padding: 32px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 8px; }
.auth-card .panel-text { margin-bottom: 22px; }
.auth-form { display: grid; gap: 8px; }
.auth-form .form-control { margin-bottom: 8px; }
.auth-form .btn { margin-top: 8px; }
.auth-notice { margin: 16px 0; }
.auth-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 13px; }
.profile-card { width: min(100%, 680px); box-shadow: var(--soft-shadow); }
.scanned-site-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 180px; }
.scanned-site-time { display: flex; flex-direction: column; gap: 4px; }
.scanned-site-time span { color: var(--muted); font-size: 12px; }
.scanned-site-time strong { font-size: 13px; overflow-wrap: anywhere; }
@container (max-width: 820px) {
  .scanned-site-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scanned-site-row > .btn { grid-column: 1 / -1; }
}
@container (max-width: 680px) {
  .project-row-card,
  .scanned-site-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row-card > .btn { grid-column: 1 / -1; }
}
@container (max-width: 500px) {
  .project-row-card,
  .scanned-site-row { grid-template-columns: minmax(0, 1fr); }
  .project-row-card > .btn { max-width: none; }
}
@media (max-width: 760px) { .auth-topline { padding: 16px; } .auth-card { padding: 22px; } }
.scanned-site-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.scanned-site-pagination span { color: var(--muted); font-size: 13px; }

/* Precision Minimalism: shared authenticated and public surfaces. */
body[data-theme="light"] .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
body[data-theme="light"] .app-sidebar {
  gap: var(--space-8);
  padding: 24px 14px;
  border-right: 1px solid var(--color-border);
}
body[data-theme="light"] .brand-mark { gap: 11px; padding: 5px 7px; }
body[data-theme="light"] .brand-mark strong { font-size: 14px; font-weight: 700; letter-spacing: -.025em; }
body[data-theme="light"] .brand-mark small { margin-top: 2px; color: var(--color-text-muted); font-size: 11px; font-weight: 450; }
body[data-theme="light"] .brand-logo { width: 38px; height: 38px; border-radius: var(--radius-md); }
body[data-theme="light"] .sidebar-nav { gap: 4px; }
body[data-theme="light"] .sidebar-link {
  min-height: 42px;
  padding: 10px 11px;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 550;
  transition: background-color .15s ease, color .15s ease;
}
body[data-theme="light"] .sidebar-link:hover { color: var(--color-text-primary); background: var(--color-surface-muted); }
body[data-theme="light"] .sidebar-link.active { color: var(--color-primary); background: var(--color-primary-soft); font-weight: 650; }
body[data-theme="light"] .nav-icon { width: 17px; height: 17px; stroke-width: 1.7; }

body[data-theme="light"] .app-topbar {
  min-height: 76px;
  padding: 13px 28px;
  background: var(--color-surface);
  backdrop-filter: none;
}
body[data-theme="light"] .topbar-kicker { margin-bottom: 2px; color: var(--color-text-muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; }
body[data-theme="light"] .app-topbar h1 { font-size: 19px; font-weight: 675; letter-spacing: -.03em; }
body[data-theme="light"] .topbar-actions { gap: 10px; }
body[data-theme="light"] .language-select { color: var(--color-text-secondary); font-weight: 550; }
body[data-theme="light"] .language-select .form-select { width: 124px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
body[data-theme="light"] .icon-button { width: 36px; height: 36px; color: var(--color-text-secondary); border-color: var(--color-border); border-radius: var(--radius-md); }
body[data-theme="light"] .icon-button:hover { color: var(--color-primary); background: var(--color-primary-soft); border-color: var(--color-primary-border); }
body[data-theme="light"] .profile-menu-trigger { min-height: 36px; padding: 6px 11px; color: var(--color-text-primary); border-color: var(--color-border); background: var(--color-surface); }
body[data-theme="light"] .profile-menu-trigger:hover,
body[data-theme="light"] .profile-menu-trigger[aria-expanded="true"] { color: var(--color-primary); background: var(--color-primary-soft); border-color: var(--color-primary-border); }
body[data-theme="light"] .profile-menu .dropdown-menu { min-width: 194px; padding: 6px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md) !important; }
body[data-theme="light"] .profile-menu .dropdown-item { padding: 9px 11px; color: var(--color-text-secondary); border-radius: var(--radius-sm); font-size: 13px; }
body[data-theme="light"] .profile-menu .dropdown-item:hover,
body[data-theme="light"] .profile-menu .dropdown-item:focus { color: var(--color-primary); background: var(--color-primary-soft); }
body[data-theme="light"] .profile-menu .dropdown-divider { margin: 5px 3px; border-color: var(--color-border); }

body[data-theme="light"] .app-content { width: min(1240px, 100%); padding: 28px 30px 48px; }
body[data-theme="light"] .content-panel { padding: 26px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
body[data-theme="light"] .panel-heading h2,
body[data-theme="light"] .hero-panel h2 { color: var(--color-text-primary); letter-spacing: -.035em; }
body[data-theme="light"] .eyebrow { color: var(--color-text-muted); }
body[data-theme="light"] .panel-text,
body[data-theme="light"] .panel-heading p:not(.eyebrow) { color: var(--color-text-secondary); }
body[data-theme="light"] :is(.dashboard-grid, .dashboard-main-column) { gap: 18px; }
body[data-theme="light"] .dashboard-hero { align-items: center; }
body[data-theme="light"] .dashboard-hero .panel-text { max-width: 62ch; margin: 10px 0 0; line-height: 1.65; }
body[data-theme="light"] .dashboard-projects-panel .panel-heading { margin-bottom: 20px; }
body[data-theme="light"] .dashboard-side-panel { top: 94px; gap: 13px; }
body[data-theme="light"] .dashboard-side-panel > p:not(.eyebrow) { line-height: 1.6; }
body[data-theme="light"] .dashboard-side-stats { gap: 0; border-top: 1px solid var(--color-border); }
body[data-theme="light"] .dashboard-side-stats article { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; background: transparent; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; }
body[data-theme="light"] .dashboard-side-stats span { color: var(--color-text-secondary); font-size: 12px; font-weight: 550; text-transform: none; }
body[data-theme="light"] .dashboard-side-stats strong { margin: 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
body[data-theme="light"] .dashboard-side-panel > .btn { margin-top: 4px; }

body[data-theme="light"] .project-list { gap: 0; }
body[data-theme="light"] .project-row-card {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr) minmax(0, 1.15fr) 166px;
  gap: 16px;
  padding: 16px 4px;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
}
body[data-theme="light"] .project-row-card:last-child { border-bottom: 1px solid var(--color-border); }
body[data-theme="light"] .project-row-card > :is(.project-row-main, .project-row-domain, .project-row-progress, .scanned-site-time) { min-width: 0; }
body[data-theme="light"] .project-row-main strong,
body[data-theme="light"] .project-row-domain strong { color: var(--color-text-primary); font-weight: 650; line-height: 1.4; }
body[data-theme="light"] .project-row-main span { overflow-wrap: anywhere; }
body[data-theme="light"] .project-row-domain span,
body[data-theme="light"] .project-row-progress span,
body[data-theme="light"] .scanned-site-time span { margin-bottom: 4px; color: var(--color-text-muted); font-size: 11px; }
body[data-theme="light"] .project-row-card > .btn { width: 166px; max-width: none; min-height: 36px; padding: 7px 10px; justify-self: end; text-align: center; }
body[data-theme="light"] .scanned-site-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr) 166px; }
body[data-theme="light"] .scanned-sites-panel .panel-heading { align-items: center; margin-bottom: 22px; }
body[data-theme="light"] .scanned-sites-panel .panel-heading > .btn { flex-shrink: 0; }
body[data-theme="light"] .scanned-site-time strong { font-variant-numeric: tabular-nums; font-weight: 600; }
body[data-theme="light"] .scanned-site-pagination { padding-top: 4px; }
@container (min-width: 641px) and (max-width: 820px) {
  body[data-theme="light"] .project-row-card { grid-template-columns: repeat(2, minmax(0, 1fr)) 142px; gap: 10px 16px; }
  body[data-theme="light"] .project-row-main { grid-column: 1 / 3; grid-row: 1; }
  body[data-theme="light"] .project-row-domain { grid-column: 1; grid-row: 2; }
  body[data-theme="light"] .project-row-progress { grid-column: 2; grid-row: 2; }
  body[data-theme="light"] .project-row-card > .btn { grid-column: 3; grid-row: 1 / 3; width: 142px; }
  body[data-theme="light"] .scanned-site-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 142px; }
  body[data-theme="light"] .scanned-site-row .project-row-main { grid-column: 1 / 4; }
  body[data-theme="light"] .scanned-site-row .scanned-site-time { grid-column: 3; grid-row: 2; }
  body[data-theme="light"] .scanned-site-row > .btn { grid-column: 4; }
}

body[data-theme="light"] .btn-primary { --bs-btn-bg: var(--color-primary); --bs-btn-border-color: var(--color-primary); --bs-btn-hover-bg: var(--color-primary-hover); --bs-btn-hover-border-color: var(--color-primary-hover); --bs-btn-active-bg: var(--color-primary-hover); --bs-btn-active-border-color: var(--color-primary-hover); background: var(--color-primary); border-color: var(--color-primary); box-shadow: none; }
body[data-theme="light"] .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
body[data-theme="light"] .btn-outline-secondary { color: var(--color-text-secondary); border-color: var(--color-border-strong); background: var(--color-surface); box-shadow: none; }
body[data-theme="light"] .btn-outline-secondary:hover { color: var(--color-text-primary); background: var(--color-surface-muted); border-color: #aebdce; }
body[data-theme="light"] .btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary-border); background: var(--color-surface); }
body[data-theme="light"] .btn-outline-primary:hover { color: var(--color-primary-hover); border-color: var(--color-primary); background: var(--color-primary-soft); }
body[data-theme="light"] :is(.btn, .form-control, .form-select, .icon-button):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; box-shadow: var(--focus-ring); }
body[data-theme="light"] :is(.form-control, .form-select):focus { border-color: var(--color-primary); box-shadow: var(--focus-ring); }
body[data-theme="light"] :is(.form-control, .form-select) { border-color: var(--color-border-strong); border-radius: var(--radius-md); }
body[data-theme="light"] .form-control[readonly] { color: var(--color-text-secondary); background: var(--color-surface-muted); }
body[data-theme="light"] .form-label { color: var(--color-text-secondary); }
body[data-theme="light"] .status-badge { min-height: 25px; padding: 4px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; }
body[data-theme="light"] .status-badge:is(.success, .complete, .safe) { color: var(--color-success); background: #eaf4ee; border-color: #d3e7db; }
body[data-theme="light"] .status-badge.warning { color: var(--color-warning); background: #fbf5e8; border-color: #eee1c5; }
body[data-theme="light"] .status-badge:is(.danger, .missing) { color: var(--color-danger); background: #faf0f0; border-color: #efd6d8; }
body[data-theme="light"] .status-badge:is(.info, .accent) { color: var(--color-info); background: var(--color-primary-soft); border-color: var(--color-primary-border); }
body[data-theme="light"] .status-badge:is(.neutral, .optional) { color: var(--color-text-secondary); background: var(--color-surface-muted); border-color: var(--color-border); }
body[data-theme="light"] .notice-card.info { color: var(--color-info); background: var(--color-primary-soft); border-color: var(--color-primary-border); }

body[data-theme="light"] .wizard-content { width: min(1240px, 100%); padding: 28px 30px 48px; }
body[data-theme="light"] .wizard-stepper { margin-bottom: 24px; }
body[data-theme="light"] .stepper-item[aria-current="step"] { background: var(--color-primary-soft); }
body[data-theme="light"] .stepper-item:hover { background: var(--color-surface-muted); }
body[data-theme="light"] .wizard-workspace { gap: 24px; }

body.auth-page { background: var(--color-background); }
body.auth-page .auth-topline { max-width: 1160px; padding: 28px 24px; border-bottom: 1px solid var(--color-border); }
body.auth-page .auth-brand { font-size: 16px; letter-spacing: -.025em; }
body.auth-page .auth-main { min-height: calc(100vh - 96px); padding: 48px 20px 80px; align-items: start; }
body.auth-page .auth-card { width: min(100%, 454px); padding: 34px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
body.auth-page .auth-card h2 { font-size: 24px; font-weight: 675; letter-spacing: -.035em; }
body.auth-page .auth-card .panel-text { color: var(--color-text-secondary); line-height: 1.6; }
body.auth-page .auth-form { gap: 0; }
body.auth-page .auth-form .form-label { margin-top: 9px; }
body.auth-page .auth-form .btn { margin-top: 14px; }
body.auth-page .auth-links { padding-top: 18px; border-top: 1px solid var(--color-border); }
body.auth-page .auth-links a { color: var(--color-primary); text-decoration: none; }
body.auth-page .auth-links a:hover { text-decoration: underline; }
body[data-theme="light"] .profile-card { width: min(100%, 700px); }

.brand-mark .brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
body[data-theme="light"] .brand-mark .brand-icon { width: 38px; height: 38px; }
.auth-brand .auth-full-logo {
  display: block;
  width: 220px;
  height: 80px;
  object-fit: cover;
}
@media (max-width: 480px) {
  .auth-brand .auth-full-logo { width: 180px; height: 66px; }
}

@container (max-width: 640px) {
  body[data-theme="light"] .project-row-card,
  body[data-theme="light"] .scanned-site-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 16px 4px; }
  body[data-theme="light"] .project-row-card > .btn { grid-column: 1 / -1; width: auto; justify-self: start; }
}
@container (max-width: 470px) {
  body[data-theme="light"] .project-row-card,
  body[data-theme="light"] .scanned-site-row { grid-template-columns: minmax(0, 1fr); }
  body[data-theme="light"] .project-row-card > .btn { width: 100%; justify-self: stretch; }
}
@media (max-width: 1180px) {
  body[data-theme="light"] .dashboard-side-panel { position: static; }
}
@media (max-width: 900px) and (min-width: 761px) {
  body[data-theme="light"] .app-topbar { flex-wrap: wrap; }
  body[data-theme="light"] .topbar-actions { width: 100%; justify-content: flex-start; }
  body[data-theme="light"] .wizard-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body[data-theme="light"] .app-shell { display: block; }
  body[data-theme="light"] .app-sidebar { position: static; height: auto; gap: 16px; padding: 14px 16px; }
  body[data-theme="light"] .sidebar-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  body[data-theme="light"] .sidebar-link { display: flex; justify-content: center; gap: 7px; padding: 8px 6px; font-size: 12px; text-align: center; }
  body[data-theme="light"] .app-topbar { position: static; min-height: 0; padding: 16px; }
  body[data-theme="light"] .app-content,
  body[data-theme="light"] .wizard-content { padding: 18px 16px 36px; }
  body[data-theme="light"] .dashboard-hero { grid-template-columns: minmax(0, 1fr); }
  body.auth-page .auth-topline { padding: 17px 16px; }
  body.auth-page .auth-main { padding: 30px 16px 56px; }
  body.auth-page .auth-card { padding: 26px 22px; }
}
@media (max-width: 520px) {
  body[data-theme="light"] .app-topbar { gap: 12px; }
  body[data-theme="light"] .topbar-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; gap: 8px; }
  body[data-theme="light"] .language-select { width: auto; min-width: 0; }
  body[data-theme="light"] .language-select > span { display: none; }
  body[data-theme="light"] .language-select .form-select { width: 100%; }
  body[data-theme="light"] .profile-menu-trigger { white-space: nowrap; }
  body[data-theme="light"] .content-panel { padding: 20px 16px; }
  body[data-theme="light"] .sidebar-link { flex-direction: column; gap: 3px; font-size: 11px; line-height: 1.2; }
  body[data-theme="light"] .sidebar-link .nav-icon { flex: none; }
  body[data-theme="light"] .scanned-site-pagination { justify-content: space-between; flex-wrap: wrap; }
}
