@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@600&display=swap");

:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #64748b;
  --blue: #0284c7;
  --blue-dark: #075985;
  --accent-soft: #eaf6fc;
  --accent-ink: #075985;
  --line: #e2e8f0;
  --line-soft: #edf2f7;
  --paper: #f7fafc;
  --white: #fff;
  --surface: #fff;
  --surface-muted: #f1f5f9;
  --surface-hover: #f0f9ff;
  --ink-subtle: #475569;
  --input-border: #cbd5e1;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-accent="teal"] { --blue: #0f766e; --blue-dark: #115e59; --accent-soft: #ccfbf1; --accent-ink: #115e59; }
:root[data-accent="violet"] { --blue: #7c3aed; --blue-dark: #5b21b6; --accent-soft: #ede9fe; --accent-ink: #5b21b6; }
:root[data-accent="rose"] { --blue: #e11d48; --blue-dark: #9f1239; --accent-soft: #ffe4e6; --accent-ink: #9f1239; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e2e8f0;
  --muted: #9aabc0;
  --line: #334155;
  --line-soft: #334155;
  --paper: #0b1220;
  --white: #111c2d;
  --surface: #111c2d;
  --surface-muted: #1e293b;
  --surface-hover: #203047;
  --ink-subtle: #cbd5e1;
  --input-border: #475569;
  --accent-soft: color-mix(in srgb, var(--blue) 18%, var(--surface));
  --accent-ink: color-mix(in srgb, var(--blue) 42%, white);
}

* { box-sizing: border-box; }
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
.button::after,
.auth-screen::before,
.auth-screen::after,
.welcome-card::before,
.auth-card::after,
.panel::after,
.welcome-card::after,
.metric::after,
.template-card::after,
.step-card::after {
  display: none !important;
}
.wordmark:hover .wordmark-logo,
.auth-card:hover,
.panel:hover,
.welcome-card:hover,
.metric:hover,
.template-card:hover,
.step-card:hover {
  transform: none !important;
  box-shadow: none !important;
}
.motion-reveal,
.motion-ready .motion-reveal {
  opacity: 1 !important;
  transform: none !important;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  box-shadow: none !important;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgb(2 132 199 / 36%); outline-offset: 2px; }
[hidden] { display: none !important; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 600 20px "Montserrat", sans-serif; text-decoration: none; letter-spacing: -.04em; }
.wordmark-logo { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; clip-path: circle(50%); object-fit: cover; transition: transform .35s cubic-bezier(.2,.75,.25,1), box-shadow .35s; }
.wordmark-name { display: grid; justify-items: start; gap: 2px; line-height: 1.05; }
.wordmark-name small { color: var(--ink-subtle); font: 600 9px "Montserrat", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted, .section-intro p, .panel-heading p { color: var(--muted); }
.auth-screen { display: grid; min-height: 100vh; align-content: center; justify-items: center; gap: 26px; padding: 32px 18px; background: radial-gradient(ellipse at var(--spotlight-x, 50%) var(--spotlight-y, 0%), rgb(2 132 199 / 10%), transparent 50%), var(--paper); }
.auth-card { width: min(100%, 470px); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 42px); background: var(--white); box-shadow: 0 22px 60px -44px rgb(16 42 67 / 45%); }
.auth-card h1 { margin: 12px 0 8px; font-size: clamp(28px, 5vw, 36px); letter-spacing: -.05em; line-height: 1.12; }
.auth-card h2 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.04em; }
.auth-card > p.muted { margin: 0; font-size: 14px; line-height: 1.6; }
.auth-foot { margin: 0; color: var(--muted); font-size: 12px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 26px 0 20px; border-radius: 9px; padding: 4px; background: var(--surface-muted); }
.tab { border: 0; border-radius: 7px; padding: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(16 42 67 / 12%); }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label, .check-field { color: var(--ink-subtle); font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; border: 1px solid var(--input-border); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 82px; resize: vertical; }
.field small, .optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.primary:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover:not(:disabled) { border-color: #94a3b8; background: #f8fafc; }
.button.full { width: 100%; margin-top: 6px; }
.status { min-height: 18px; margin: 10px 0 0; color: #b91c1c; font-size: 12px; line-height: 1.5; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 252px; flex-direction: column; border-right: 1px solid var(--line); padding: 22px 16px 16px; background: var(--surface); }
.sidebar .wordmark { padding: 0 8px 26px; }
.workspace-label { display: flex; min-height: 46px; align-items: center; gap: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--ink-subtle); font-size: 12px; font-weight: 700; text-overflow: ellipsis; }
.workspace-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-avatar { display: block; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; clip-path: circle(50%); object-fit: cover; }
.side-nav { display: grid; gap: 5px; margin-top: 26px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 0 12px; background: transparent; color: var(--ink-subtle); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.nav-item > span { width: 18px; color: #64748b; font-size: 16px; text-align: center; }
.nav-item:hover { background: #f8fafc; color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item.active > span { color: var(--blue-dark); }
.sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.principles-note { display: grid; gap: 5px; border: 1px solid #cfe9f6; border-radius: 10px; padding: 12px; background: #f0f9ff; }
.principles-note strong { font-size: 12px; }
.principles-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.signout { display: grid; gap: 3px; border: 0; border-top: 1px solid var(--line); padding: 14px 4px 0; background: transparent; color: var(--ink-subtle); font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.signout span { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; }
.main-content { min-height: 100vh; margin-left: 252px; padding: 30px clamp(18px, 4vw, 52px) 22px; }
.topbar { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.topbar h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.045em; }
.global-status { min-height: 0; margin: 0; color: #b91c1c; font-size: 13px; }
.global-status:not(:empty) { margin: -8px 0 15px; }
.view { display: none; }
.view.active { display: grid; gap: 18px; }
.welcome-card { display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); border-radius: 16px; padding: 28px; background: radial-gradient(ellipse at 90% 5%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 50%), var(--surface); }
.welcome-card h2 { margin: 10px 0 7px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.045em; }
.welcome-card p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.welcome-card .button { flex: 0 0 auto; }
.metric-grid { display: grid; gap: 13px; grid-template-columns: repeat(3, 1fr); }
.metric { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); }
.metric strong { display: block; font-size: 25px; letter-spacing: -.04em; }
.metric span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 21px; background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.text-button { border: 0; padding: 4px 0; background: transparent; color: var(--blue-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.section-intro { max-width: 770px; }
.section-intro h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.04em; }
.section-intro p { margin: 0; font-size: 13px; line-height: 1.7; }
.two-column { display: grid; align-items: start; gap: 16px; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); }
.inline-form { display: flex; align-items: end; gap: 11px; flex-wrap: wrap; }
.inline-form .field { min-width: 170px; flex: 1; margin: 0; }
.inline-form.vertical { display: grid; align-items: stretch; }
.inline-form.vertical .field { min-width: 0; }
.inline-form .button { margin-bottom: 1px; }
.implementation-filters { display: grid; align-items: end; gap: 12px; grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(135px, 1fr)) auto; }
.implementation-filters .field { min-width: 0; margin: 0; }
.implementation-filters .field input, .implementation-filters .field select { min-height: 40px; }
.filter-summary { margin: 12px 0 8px; color: var(--muted); font-size: 11px; }
.attention-chips { display: flex; min-width: 120px; flex-wrap: wrap; gap: 4px; }
.attention-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; color: var(--ink-subtle); font-size: 10px; white-space: nowrap; }
.attention-chip.blocked, .attention-chip.overdue { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.attention-chip.waiting, .attention-chip.missing, .attention-chip.unassigned { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.badge.status-not_started { background: var(--surface-muted); color: var(--ink-subtle); }
.badge.status-in_progress { background: var(--accent-soft); color: var(--accent-ink); }
.badge.status-complete { background: #dcfce7; color: #166534; }
.form-status { min-height: 18px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-status:not(:empty) { padding: 5px 8px; border-left: 2px solid var(--blue); background: var(--accent-soft); }
.field-error { display: block; margin-top: 4px; color: #b91c1c; font-size: 11px; line-height: 1.4; }
[aria-invalid="true"] { border-color: #dc2626 !important; }
.list-stack { display: grid; gap: 7px; margin-top: 18px; }
.list-row { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; background: var(--surface); }
.list-row strong { display: block; font-size: 12px; }
.list-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.list-row button { flex: 0 0 auto; }
.list-row.selected { border-color: var(--blue); background: var(--accent-soft); }
.empty-state { border: 1px dashed var(--input-border); border-radius: 9px; padding: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.step-list { display: grid; gap: 9px; }
.step-card { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 11px; border: 1px solid var(--line-soft); border-radius: 9px; padding: 12px; }
.step-card .button-row { grid-column: 2 / -1; margin-top: 0; }
.task-main { min-width: 0; }
.task-controls { display: grid; width: min(100%, 300px); gap: 9px; }
.task-controls label, .info-row label { display: grid; gap: 4px; color: var(--ink-subtle); font-size: 11px; font-weight: 700; }
.task-controls input, .task-controls textarea, .info-row input, .info-row textarea, .info-row select {
  width: 100%; min-height: 36px; border: 1px solid var(--input-border); border-radius: 7px; padding: 8px 9px; background: var(--surface); color: var(--ink); font: inherit;
}
.task-controls textarea, .info-row textarea { min-height: 58px; resize: vertical; }
.task-controls .check-field, .info-row .check-field { display: flex; align-items: center; }
.task-controls .status.warning { margin-top: 9px; }
.step-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.step-card strong { font-size: 12px; }
.step-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.step-card small { display: inline-block; margin-top: 6px; color: var(--ink-subtle); font-size: 10px; }
.subform { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.subform h3 { margin: 0 0 12px; font-size: 14px; }
.subform .button { justify-self: start; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-box { margin-top: 13px; border: 1px solid #bbf7d0; border-radius: 9px; padding: 12px 14px; background: #f0fdf4; color: #166534; font-size: 12px; line-height: 1.6; }
.result-box.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.result-box ul { margin: 7px 0 0; padding-left: 18px; }
.card-grid { display: grid; gap: 11px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.template-card { display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.template-card h3 { margin: 0; font-size: 14px; }
.template-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.template-card .button { justify-self: start; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 9px 10px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { border-top: 1px solid var(--line-soft); padding: 12px 10px; font-size: 12px; vertical-align: middle; }
.data-table td:first-child { font-weight: 700; }
.data-table .row-button { border: 0; padding: 0; background: transparent; color: var(--blue-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.attention { background: #fff7ed; color: #9a3412; }
.badge.ready { background: #f0fdf4; color: #166534; }
.share-box { overflow-wrap: anywhere; border: 1px solid #bae6fd; border-radius: 9px; padding: 12px; background: #f0f9ff; color: #075985; font-size: 12px; line-height: 1.55; }
.share-box a { color: #075985; }
.subheading { margin: 21px 0 10px; font-size: 14px; }
.status-select { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; background: var(--surface); color: var(--ink); font-size: 11px; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.check-field input { width: 16px; height: 16px; accent-color: var(--blue); }
.info-row { border-bottom: 1px solid var(--line-soft); padding: 11px 0; }
.info-row[data-edit-requirement] { display: grid; gap: 7px; }
.info-row:last-child { border: 0; }
.info-row strong { display: block; font-size: 12px; }
.info-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.info-row .badge { margin-top: 7px; }
.app-footer { margin-top: 25px; padding: 15px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(400px, calc(100% - 40px)); border-radius: 9px; padding: 12px 16px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.customer-card { width: min(100%, 600px); }
.customer-card .field { margin-top: 17px; }
.customer-card .field textarea { min-height: 90px; }
.customer-privacy { border-left: 3px solid #fbbf24; padding-left: 11px; color: #78350f; font-size: 11px; line-height: 1.6; }
.status.error { color: #b91c1c; }
.help-widget { position: fixed; right: 22px; bottom: 22px; z-index: 25; display: grid; justify-items: end; gap: 12px; }
.help-launcher { display: inline-flex; min-height: 48px; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 0 18px; background: var(--blue-dark); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgb(7 89 133 / 25%); cursor: pointer; transition: background .2s, box-shadow .2s; }
.help-launcher:hover { background: #0c4a6e; box-shadow: 0 12px 28px rgb(7 89 133 / 32%); }
.help-launcher > span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; font-size: 14px; }
.help-panel { display: grid; width: min(390px, calc(100vw - 28px)); height: min(590px, calc(100dvh - 105px)); min-height: 360px; grid-template-rows: auto auto minmax(100px, 1fr) auto auto auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 72px rgb(16 42 67 / 22%); }
.help-brand { display: flex; align-items: center; gap: 10px; }
.help-brand > span { display: grid; gap: 3px; }
.ray-logo { display: block; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.help-brand .ray-logo { width: 40px; height: 40px; }
.help-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 11px; border-bottom: 1px solid var(--line); }
.help-panel-header .eyebrow { margin-bottom: 4px; }
.help-panel-header h2 { margin: 0; font-size: 18px; }
.help-icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; }
.help-privacy-note { margin: 0; padding: 10px 17px; background: var(--accent-soft); color: var(--ink-subtle); font-size: 10px; line-height: 1.55; }
.help-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px 16px; color: var(--ink-subtle); font-size: 10px; line-height: 1.5; }
.help-consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue-dark); }
.help-messages { display: flex; min-height: 0; flex-direction: column; gap: 11px; overflow-y: auto; padding: 15px; overscroll-behavior: contain; }
.help-empty { margin: auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.help-message { max-width: 92%; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.help-message.assistant { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; align-self: flex-start; background: var(--surface-muted); color: var(--ink); }
.help-message.user { align-self: flex-end; background: var(--accent-soft); color: var(--accent-ink); }
.help-message strong { display: block; margin-bottom: 3px; font-size: 10px; }
.help-message p { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; }
.ray-message-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.help-status { min-height: 0; margin: 0; padding-inline: 15px; color: #b91c1c; font-size: 11px; }
.help-status:not(:empty) { padding-block: 7px; }
.help-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.help-form textarea { width: 100%; min-height: 44px; max-height: 110px; resize: vertical; border: 1px solid var(--input-border); border-radius: 9px; padding: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.4; }
.help-form textarea:focus { border-color: var(--blue); outline: 3px solid rgb(2 132 199 / 16%); }
.help-form .button { min-height: 40px; }
.help-clear { justify-self: start; margin: 0 14px 10px; font-size: 11px; }
.help-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.appearance-panel { max-width: 760px; }
.appearance-controls { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appearance-controls .field { margin: 0; }
.appearance-controls .field label { color: var(--ink); }
.appearance-controls .field select { min-height: 46px; }
.appearance-controls .field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.appearance-status { min-height: 18px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.getting-started { border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.getting-started .panel-heading { align-items: flex-start; }
.getting-started .panel-heading .eyebrow { margin-bottom: 5px; }
.getting-started-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.getting-started-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: 12px; border-top: 1px solid var(--line-soft); padding: 14px 0; }
.getting-started-check { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--input-border); border-radius: 50%; color: var(--muted); font-size: 12px; font-weight: 700; }
.getting-started-step.complete .getting-started-check { border-color: #16a34a; background: #f0fdf4; color: #166534; }
.getting-started-step.current .getting-started-check { border-color: var(--blue); background: var(--accent-soft); color: var(--accent-ink); }
.getting-started-copy { min-width: 0; }
.getting-started-copy strong { font-size: 13px; }
.getting-started-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.getting-started-copy .text-button { margin-top: 6px; }
.getting-started-copy small { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.getting-started-state { padding-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.getting-started-step.complete .getting-started-state { color: #15803d; }
.getting-started-status { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.show-getting-started { justify-self: start; }
.empty-state > strong { display: block; color: var(--ink); font-size: 13px; }
.empty-state > p { margin: 5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state .button { margin-top: 2px; }
.account-deletion-panel { border-color: #fecaca; }
.account-deletion-summary { color: var(--ink-subtle); font-size: 13px; line-height: 1.6; }
.account-deletion-summary > p { margin: 8px 0 12px; }
.account-deletion-workspace { border-top: 1px solid var(--line); padding: 12px 0; }
.account-deletion-workspace > strong { font-size: 13px; }
.account-deletion-workspace > p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.account-deletion-panel .field { max-width: 440px; }
.account-deletion-status { min-height: 18px; margin: 10px 0 0; color: #b91c1c; font-size: 12px; }
.danger-button { border-color: #b91c1c; background: #b91c1c; color: #fff; }
.danger-button:hover:not(:disabled) { border-color: #991b1b; background: #991b1b; }
:root[data-theme="dark"] .account-deletion-panel { border-color: #7f1d1d; }

@media (max-width: 900px) {
  .sidebar { width: 210px; }
  .main-content { margin-left: 210px; padding-inline: 20px; }
  .two-column { grid-template-columns: 1fr; }
  .implementation-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 13px 14px 10px; }
  .sidebar .wordmark { padding: 0 3px 11px; }
  .workspace-label, .principles-note, .signout { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 5px; margin: 0; padding-bottom: 2px; }
  .nav-item { min-height: 36px; flex: 0 0 auto; gap: 6px; padding-inline: 10px; font-size: 11px; white-space: nowrap; }
  .nav-item > span { font-size: 13px; }
  .main-content { margin-left: 0; padding: 18px 14px; }
  .topbar h1 { font-size: 23px; }
  .welcome-card { align-items: flex-start; flex-direction: column; padding: 20px; }
  .appearance-controls { grid-template-columns: 1fr; }
  .implementation-filters { grid-template-columns: 1fr; }
  .welcome-card .button { align-self: flex-start; }
  .metric-grid { gap: 8px; }
  .metric { padding: 13px 11px; }
  .metric strong { font-size: 21px; }
  .metric span { font-size: 10px; line-height: 1.4; }
  .panel { padding: 16px 13px; }
  .inline-form { display: grid; align-items: stretch; }
  .inline-form .field { min-width: 0; }
  .inline-form .button { justify-self: start; }
  .data-table th, .data-table td { padding-inline: 7px; }
  .step-card { grid-template-columns: 26px minmax(0, 1fr); }
  .step-card .task-controls, .step-card .button-row { grid-column: 2; width: 100%; }
  .step-card > :last-child { grid-column: 2; justify-self: stretch; }
  .help-widget { right: 12px; bottom: 12px; left: 12px; }
  .help-panel { width: 100%; height: min(590px, calc(100dvh - 97px)); min-height: min(360px, calc(100dvh - 97px)); }
}

.scroll-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #0b5cad, #38bdf8, #102a43); pointer-events: none; }
.wordmark:hover .wordmark-logo { transform: rotate(-8deg) scale(1.06); box-shadow: 0 8px 20px rgb(2 132 199 / 24%); }
.topbar { animation: nav-arrive .65s cubic-bezier(.2,.75,.25,1) both; transition: box-shadow .3s; }
.topbar.is-scrolled { box-shadow: 0 12px 28px -26px rgb(9 9 11 / 55%); }
.sidebar { animation: sidebar-arrive .65s cubic-bezier(.2,.75,.25,1) both; }
.auth-screen { position: relative; isolation: isolate; overflow: hidden; }
.auth-screen::before, .auth-screen::after { position: fixed; z-index: -1; top: 5%; right: -11rem; width: 34rem; aspect-ratio: 1; border: 1px solid rgb(2 132 199 / 9%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(2 132 199 / 3%), 0 0 0 84px rgb(2 132 199 / 2%); content: ""; pointer-events: none; animation: orbit-drift 32s linear infinite; }
.auth-screen::after { top: auto; right: auto; bottom: -24rem; left: -13rem; width: 40rem; animation-direction: reverse; animation-duration: 42s; }
.auth-card { position: relative; animation: fade-up .7s .08s both; }
.auth-card::after, .panel::after, .welcome-card::after, .metric::after, .template-card::after, .step-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(230px circle at var(--pointer-x, -100%) var(--pointer-y, -100%), rgb(2 132 199 / 8%), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.auth-card:hover::after, .panel:hover::after, .welcome-card:hover::after, .metric:hover::after, .template-card:hover::after, .step-card:hover::after { opacity: 1; }
.panel, .welcome-card, .metric, .template-card, .step-card {
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.auth-card { transition: box-shadow .3s; }
.panel:hover, .welcome-card:hover, .metric:hover, .template-card:hover, .step-card:hover { border-color: rgb(2 132 199 / 32%); box-shadow: 0 20px 42px -32px rgb(9 9 11 / 35%); }
.auth-card:hover { box-shadow: 0 27px 64px -42px rgb(16 42 67 / 42%); }
.welcome-card { overflow: hidden; }
.welcome-card::before { position: absolute; inset: -50% -20%; z-index: -1; background: radial-gradient(ellipse at var(--spotlight-x, 78%) var(--spotlight-y, 50%), rgb(2 132 199 / 11%), transparent 56%); content: ""; animation: ambient-drift 14s ease-in-out infinite alternate; pointer-events: none; }
.panel-heading h2::after, .section-intro h2::after, .topbar h1::after, .auth-card h1::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 7px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #38bdf8);
  content: "";
  animation: title-line-arrive .65s .18s cubic-bezier(.2,.75,.25,1) forwards;
}
.welcome-card .eyebrow { animation: fade-up .65s .08s both; }
.welcome-card .button { animation: fade-up .65s .24s both; }
.metric strong { animation: count-pop .55s cubic-bezier(.2,.75,.25,1) both; }
.badge { animation: badge-breathe 3.5s ease-in-out infinite; }
.step-number { transition: background-color .28s, box-shadow .28s; }
.step-card:hover .step-number { background-color: var(--accent-soft); box-shadow: 0 4px 12px color-mix(in srgb, var(--blue) 14%, transparent); }
.nav-item, .list-row, .data-table tbody tr, .auth-tabs .tab { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.nav-item:hover, .list-row:hover, .data-table tbody tr:hover { background: var(--surface-hover); }
.data-table tbody tr { animation: fade-up .35s both; }
.data-table tbody tr:nth-child(2) { animation-delay: 45ms; }
.data-table tbody tr:nth-child(3) { animation-delay: 90ms; }
.field input, .field textarea, .field select { transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(2 132 199 / 12%); }
.button { position: relative; overflow: hidden; isolation: isolate; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.button::after { position: absolute; z-index: -1; inset: -50% auto -50% -35%; width: 24%; transform: translateX(-180%) skewX(-18deg); background: rgb(255 255 255 / 25%); content: ""; transition: transform .55s cubic-bezier(.2,.75,.25,1); }
.button:hover:not(:disabled) { box-shadow: 0 10px 22px -14px rgb(2 132 199 / 65%); }
.button:hover::after { transform: translateX(650%) skewX(-18deg); }
.text-button:hover, .data-table .row-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.result-box:not([hidden]), .global-status:not(:empty) { animation: status-arrive .35s cubic-bezier(.2,.75,.25,1) both; }
.motion-ready .motion-reveal { opacity: 0; transition: opacity .65s cubic-bezier(.2,.75,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .motion-reveal.is-visible { opacity: 1; }
.view.active { animation: product-view-enter .35s cubic-bezier(.2,.75,.25,1) both; }
.scroll-progress { transition: transform .08s linear; }
:root[data-theme="dark"] .button.secondary:hover:not(:disabled) { border-color: #64748b; background: var(--surface-hover); }
:root[data-theme="dark"] .principles-note { border-color: #164e63; background: #102b3b; }
:root[data-theme="dark"] .result-box { border-color: #166534; background: #102d20; color: #86efac; }
:root[data-theme="dark"] .result-box.warning { border-color: #854d0e; background: #352711; color: #fcd34d; }
:root[data-theme="dark"] .badge { background: #263449; color: #cbd5e1; }
:root[data-theme="dark"] .badge.attention { background: #3b2c19; color: #fdba74; }
:root[data-theme="dark"] .badge.ready { background: #123322; color: #86efac; }
:root[data-theme="dark"] .share-box { border-color: #155e75; background: #102b3b; color: #bae6fd; }
:root[data-theme="dark"] .share-box a { color: #7dd3fc; }
:root[data-theme="dark"] .customer-privacy { color: #fcd34d; }
:root[data-theme="dark"] .global-status, :root[data-theme="dark"] .status.error, :root[data-theme="dark"] .help-status { color: #fca5a5; }
:root[data-theme="dark"] .getting-started-step.complete .getting-started-check { border-color: #166534; background: #123322; color: #86efac; }
:root[data-theme="dark"] .getting-started-step.complete .getting-started-state { color: #86efac; }
@keyframes nav-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes sidebar-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes ambient-drift { from { transform: translate3d(0, -2%, 0) scale(1); } to { transform: translate3d(-5%, 3%, 0) scale(1.12); } }
@keyframes orbit-drift { to { rotate: 360deg; } }
@keyframes title-line-arrive { to { transform: scaleX(1); } }
@keyframes badge-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgb(2 132 199 / 0%); } 50% { box-shadow: 0 0 0 4px rgb(2 132 199 / 7%); } }
@keyframes count-pop { 50% { text-shadow: 0 0 12px rgb(2 132 199 / 24%); } }
@keyframes status-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes product-view-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .auth-screen::before, .auth-screen::after, .welcome-card::before { animation: none !important; }
  .motion-ready .motion-reveal { opacity: 1; transform: none; translate: none; scale: 1; }
}
