@charset "UTF-8";
:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --paper: #ffffff;
  --paper-elevated: #ffffff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-accent: #0891b2;
  --soft: #eef2ff;
  --soft-accent: #ecfeff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(79, 70, 229, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --header-bg: rgba(248, 250, 252, 0.88);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #090d16;
  --bg-subtle: #111827;
  --paper: #131c2e;
  --paper-elevated: #1e293b;
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e293b;
  --line-strong: #334155;
  --brand: #6366f1;
  --brand-hover: #818cf8;
  --brand-accent: #22d3ee;
  --soft: rgba(99, 102, 241, 0.15);
  --soft-accent: rgba(34, 211, 238, 0.12);
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, 0.15);
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(9, 13, 22, 0.88);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand);
}

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

button, .button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  min-height: 42px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

button:hover, .button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--soft);
  transform: translateY(-1px);
}

.primary, button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand), #4338ca);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.primary:hover, button[aria-pressed="true"]:hover {
  background: linear-gradient(135deg, var(--brand-hover), #3730a3);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.accent:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.small {
  font-size: 13px;
  padding: 7px 13px;
  min-height: 36px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1220px;
  margin: auto;
  padding: 0 28px;
}

header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}

.nav a:hover {
  color: var(--brand);
  background: var(--soft);
}

.nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-btn {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 7px 12px;
  min-height: 38px;
}

.cmd-btn kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.theme-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.menu-button {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--soft);
  padding: 5px 12px;
  border-radius: 999px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  margin: 16px 0 20px;
}

h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  margin: 14px 0 18px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 10px;
}

h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 8px;
}

p {
  margin: 0 0 18px;
}

.muted, .lead {
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 780px;
  line-height: 1.6;
}

.hero {
  padding: 76px 0 64px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, var(--soft) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, var(--soft-accent) 0%, transparent 45%);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  max-width: 960px;
  margin: 18px auto 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 auto 30px;
  max-width: 740px;
}

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

.hero .actions {
  justify-content: center;
}

.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.trust li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  margin-right: 7px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 42px auto 0;
}

.metric-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

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

.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pills button {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  min-height: 36px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--soft), var(--soft-accent));
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  font: 700 18px var(--font-mono);
}

.card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--bg-subtle);
  color: var(--muted);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.card .open {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  box-shadow: var(--shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-grid h3 {
  font-size: 17px;
  margin: 8px 0;
}

.feature-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.number {
  display: inline-block;
  color: var(--brand);
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 6px;
  font: 700 12px var(--font-mono);
}

.cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 26px;
}

.cta .button {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  font-weight: 700;
}

.cta .button:hover {
  background: #e0e7ff;
  color: #1e1b4b;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 8px;
}

.crumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.crumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--line-strong);
}

.page-heading {
  padding: 18px 0 32px;
}

.page-heading .lead {
  margin-bottom: 0;
}

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

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
  box-shadow: var(--shadow);
}

.panel h2 {
  font: 700 19px var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

label, .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: block;
  margin: 16px 0 6px;
}

input:not([type="checkbox"], [type="range"], [type="color"]), select, textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"], [type="range"], [type="color"]):focus, select:focus, textarea:focus {
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--soft);
  outline: none;
}

textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.6;
}

textarea.code, pre, .mono {
  font: 13px/1.6 var(--font-mono);
}

input[type="color"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  background: var(--paper);
  cursor: pointer;
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  vertical-align: middle;
  margin: 0 8px 0 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.check {
  font-weight: 500;
  display: flex;
  align-items: center;
  margin: 10px 0;
  cursor: pointer;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.pills button {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.stat-box span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}

.notice {
  padding: 16px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 20px;
}

.article {
  max-width: 880px;
  margin: 56px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.article h2 {
  font-size: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-block-start: 1px solid var(--line);
}

.article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-block-start: none;
}

.article h3 {
  margin-top: 24px;
  font-size: 19px;
}

.article p, .article li {
  color: var(--ink-secondary);
  font-size: 15.5px;
}

.article ul, .article ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--brand);
  font-weight: 600;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 15px 18px;
  margin: 12px 0;
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: var(--brand);
  background: var(--paper);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

details p {
  margin: 12px 0 0;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 16px 0;
}

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

th, td {
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
  border: 1px solid var(--line);
}

th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
}

td input {
  min-width: 85px;
}

.big-result {
  font: 800 44px/1.1 var(--font-display);
  color: var(--brand);
  margin: 8px 0;
}

.preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  overflow-wrap: anywhere;
  transition: all 0.15s ease;
}

.preview h3 {
  font: inherit;
  font-size: 1.45em;
  margin-top: 0;
}

.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 200px;
  max-height: 600px;
  overflow: auto;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

.canvas-wrap {
  background: #0f172a;
  padding: 18px;
  border-radius: var(--radius);
  text-align: center;
}

.canvas-wrap canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  margin: auto;
  border-radius: 8px;
}

.swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  min-height: 32px;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  display: inline-block;
}

.serp-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 16px 0;
  font-family: Arial, sans-serif;
}

.serp-url {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.serp-title {
  font-size: 18px;
  color: #1a0dab;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

html[data-theme="dark"] .serp-title {
  color: #8ab4f8;
}

.serp-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.social-card-preview {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  margin: 16px 0;
}

.social-card-img {
  height: 190px;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.social-card-body {
  padding: 16px;
}

.social-card-domain {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.social-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 6px;
  color: var(--ink);
}

.social-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.bar-chart {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

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

.bar-fill {
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  height: 100%;
  border-radius: 999px;
}

footer {
  background: var(--paper);
  border-block-start: 1px solid var(--line);
  margin-top: 72px;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.2fr 1fr;
  gap: 36px;
}

.footer-grid p {
  font-size: 13.5px;
  max-width: 320px;
  color: var(--muted);
  margin-top: 16px;
}

.footer-grid h2 {
  font: 700 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  display: grid;
  gap: 9px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.copyright {
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 24px;
  border-block-start: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}

.status:empty {
  display: none;
}

.error {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}

.search {
  max-width: 520px;
  flex: 1;
}

.hide, [hidden] {
  display: none !important;
}

.history {
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.history button {
  text-align: left;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}

.schema-fields:empty {
  display: none;
}

.upload {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-subtle);
  text-align: center;
  transition: border-color 0.15s ease;
}

.upload:hover {
  border-color: var(--brand);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.cmd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px;
}

.cmd-dialog {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 580px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.cmd-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}

.cmd-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.cmd-list a:hover {
  background: var(--soft);
  color: var(--brand);
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace, .band {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-cta, .cmd-btn span {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }
  .menu-button {
    display: inline-flex;
  }
  .nav {
    display: none;
    width: 100%;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open {
    display: flex;
  }
  .hero {
    padding: 48px 0;
  }
  .grid, .row, .row-3, .footer-grid, .feature-grid, .hero-metrics {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 40px 0;
  }
  .card, .panel, .article, .band, .cta {
    padding: 22px;
  }
  .actions > * {
    flex-grow: 1;
  }
  .bar-row {
    grid-template-columns: 100px 1fr 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  header, footer, .actions, .crumb, .status, .cmd-modal {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .panel, .card, .article {
    box-shadow: none;
  }
  .workspace {
    display: block;
  }
}
