:root {
  --bg: #f5f5ef;
  --surface: #fff;
  --surface-soft: #eceee7;
  --ink: #151513;
  --muted: #6d6e66;
  --accent: #ddff70;
  --accent-deep: #b9df3e;
  --navy: #19314a;
  --line: rgba(21, 21, 19, 0.1);
  --danger: #b83d3d;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  width: max-content;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(21, 21, 19, 0.08);
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--ink); background: var(--accent); }
.button-primary:hover { background: #d2fa52; }
.button-dark { color: white; background: var(--ink); }
.button-soft { color: var(--ink); background: var(--surface-soft); }
.button-block { width: 100%; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(28rem, 1.22fr);
  min-height: 100vh;
  padding: 1rem;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 2rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 2.5rem;
  background: var(--accent);
}

.auth-aside::after {
  position: absolute;
  right: -8rem;
  bottom: -9rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(21, 21, 19, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.14), 0 0 0 8rem rgba(255, 255, 255, 0.09);
  content: "";
}

.auth-aside-copy { position: relative; z-index: 1; max-width: 31rem; }

.auth-aside h1,
.auth-card h1,
.checkout-summary h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.auth-aside-copy > p:last-child {
  max-width: 27rem;
  margin: 1.5rem 0 0;
  color: rgba(21, 21, 19, 0.66);
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  max-width: 29rem;
}

.auth-benefits span {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-benefits i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink);
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 2rem);
  padding: clamp(1rem, 4vw, 4rem);
  place-items: center;
}

.auth-card { width: min(100%, 34rem); }
.auth-card h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }

.auth-intro {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-form { display: grid; gap: 1rem; margin-top: 2rem; }

.field { display: grid; gap: 0.45rem; }

.field > span,
.field-label {
  color: #575952;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.65rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  outline: 0;
  color: var(--ink);
  background: var(--surface-soft);
}

.field input:focus,
.field select:focus { border-color: var(--accent-deep); background: white; }

.field small { color: var(--muted); font-size: 0.64rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.5rem; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: white;
  font-size: 0.62rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.68rem;
}

.checkbox input { width: 1rem; height: 1rem; margin-top: 0.1rem; accent-color: var(--ink); }
.checkbox a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.14em; }
.wizard-rights { max-width: 44rem; margin: 1.2rem auto 0; }

.form-error {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  color: var(--danger);
  background: rgba(184, 61, 61, 0.09);
  font-size: 0.7rem;
  font-weight: 600;
}

.auth-switch {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.auth-switch a { color: var(--ink); font-weight: 700; }

.plan-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.7rem;
  padding: 1rem 1.15rem;
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.72rem;
}

.plan-pill strong { font-size: 0.84rem; }

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.62fr);
  gap: 1rem;
  min-height: 100vh;
  padding: 1rem;
}

.checkout-main,
.checkout-order {
  padding: clamp(1.5rem, 5vw, 5rem);
  border-radius: 2.5rem;
}

.checkout-main { background: var(--surface); }
.checkout-order { color: white; background: var(--navy); }
.checkout-summary { max-width: 42rem; margin: 4rem auto 0; }
.checkout-summary h1 { font-size: clamp(3.2rem, 6vw, 6rem); }

.secure-box {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--bg);
}

.secure-line { display: flex; gap: 0.75rem; align-items: center; }

.secure-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.8rem;
  place-items: center;
}

.secure-line strong { display: block; font-size: 0.78rem; }
.secure-line small { display: block; color: var(--muted); font-size: 0.64rem; }

.checkout-order .brand { color: white; }

.order-card { margin-top: 4rem; }
.order-card h2 { margin: 0; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.06em; }
.order-meta { margin: 0.4rem 0 2rem; color: rgba(255, 255, 255, 0.62); font-size: 0.76rem; }

.order-lines { display: grid; gap: 0.8rem; }
.order-line { display: flex; justify-content: space-between; font-size: 0.74rem; }
.order-line span { color: rgba(255, 255, 255, 0.62); }
.order-total { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.order-total strong { font-size: 2.1rem; font-weight: 500; letter-spacing: -0.05em; }
.order-note { margin: 2rem 0 0; color: rgba(255, 255, 255, 0.54); font-size: 0.64rem; }

.success-shell { display: grid; min-height: 100vh; padding: 1rem; place-items: center; }
.success-card { width: min(100%, 56rem); padding: clamp(2rem, 7vw, 6rem); border-radius: 3rem; background: var(--accent); text-align: center; }
.success-icon { display: grid; width: 4.4rem; height: 4.4rem; margin: 0 auto 2rem; border-radius: 50%; background: var(--ink); color: white; place-items: center; }
.success-card h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.success-card p { max-width: 34rem; margin: 1.5rem auto 2rem; color: rgba(21, 21, 19, 0.64); }

.dashboard-shell { display: grid; grid-template-columns: 16rem 1fr; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.4rem;
  color: white;
  background: var(--ink);
}

.sidebar .brand { margin: 0.4rem 0 3rem; }
.side-nav { display: grid; gap: 0.3rem; }

.side-nav button,
.side-nav a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.side-nav button.is-active,
.side-nav a.is-active,
.side-nav button:hover,
.side-nav a:hover { color: white; background: rgba(255, 255, 255, 0.09); }
.nav-icon { width: 1.25rem; text-align: center; }

.sidebar-account {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-top: auto;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  place-items: center;
}

.sidebar-account strong,
.sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { font-size: 0.67rem; }
.sidebar-account small { color: rgba(255, 255, 255, 0.48); font-size: 0.57rem; }

.dashboard-main { min-width: 0; padding: clamp(1.25rem, 4vw, 3.5rem); }

.dashboard-topbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.dashboard-topbar h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.07em; }
.dashboard-topbar p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.8rem; }
.top-actions { display: flex; gap: 0.65rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); gap: 1rem; margin-top: 2.5rem; }
.panel { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 2rem; background: var(--surface); }
.panel-accent { background: var(--accent); }
.panel-dark { color: white; background: var(--navy); }
.panel-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.panel h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.035em; }
.panel-head span { color: var(--muted); font-size: 0.64rem; }

.quota { display: flex; align-items: end; justify-content: space-between; margin-top: 2rem; }
.quota strong { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 500; line-height: 0.8; letter-spacing: -0.08em; }
.quota span { max-width: 8rem; color: rgba(21, 21, 19, 0.58); font-size: 0.68rem; text-align: right; }
.progress { height: 0.45rem; margin-top: 1.5rem; overflow: hidden; border-radius: 999px; background: rgba(21, 21, 19, 0.12); }
.progress i { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: var(--ink); }

.onboarding-list { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.onboarding-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.85rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.08); }
.onboarding-item i { display: grid; width: 1.7rem; height: 1.7rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; font-size: 0.55rem; font-style: normal; place-items: center; }
.onboarding-item.is-done i { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.onboarding-item strong { display: block; font-size: 0.68rem; }
.onboarding-item small { display: block; color: rgba(255, 255, 255, 0.52); font-size: 0.57rem; }
.onboarding-item button { padding: 0.3rem; border: 0; color: white; background: transparent; font-size: 0.6rem; font-weight: 700; }

.projects-panel { grid-column: 1 / -1; }
.empty-state { display: grid; min-height: 18rem; margin-top: 1.2rem; border: 1px dashed rgba(21, 21, 19, 0.17); border-radius: 1.5rem; place-items: center; text-align: center; }
.empty-state > div { max-width: 28rem; padding: 2rem; }
.empty-state-icon { display: grid; width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--surface-soft); place-items: center; }
.empty-state h3 { margin: 0; font-size: 1rem; }
.empty-state p { margin: 0.65rem 0 1.2rem; color: var(--muted); font-size: 0.72rem; }

.project-list { display: grid; gap: 0.65rem; margin-top: 1.2rem; }
.project-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center; padding: 0.85rem; border-radius: 1.1rem; background: var(--bg); }
.project-thumb { display: grid; width: 3.4rem; height: 3.4rem; border-radius: 0.85rem; color: white; background: var(--navy); text-decoration: none; place-items: center; }
.project-title { color: inherit; text-decoration: none; }
.project-row strong { display: block; font-size: 0.72rem; }
.project-row small { display: block; color: var(--muted); font-size: 0.6rem; }
.status { padding: 0.45rem 0.65rem; border-radius: 999px; color: #52651d; background: #efffc0; font-size: 0.58rem; font-weight: 700; }
.project-open { color: var(--ink); font-size: 0.58rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.project-open span { margin-left: 0.25rem; color: var(--muted); }

.demo-banner { margin-bottom: 1.2rem; padding: 0.75rem 1rem; border-radius: 1rem; color: #5b4b1b; background: #fff4c6; font-size: 0.66rem; }

.create-dialog {
  width: min(44rem, calc(100% - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 2.2rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2rem 7rem rgba(21, 21, 19, 0.24);
}

.create-dialog::backdrop { background: rgba(15, 16, 13, 0.55); backdrop-filter: blur(7px); }
.create-content { padding: clamp(1.5rem, 4vw, 2.7rem); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.065em; }
.dialog-close { display: grid; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--surface-soft); place-items: center; }
.create-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.import-choice { display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; }
.import-choice .button { min-width: 8rem; }
.mode-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option span { display: grid; min-height: 7.8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--bg); font-size: 0.67rem; font-weight: 700; place-items: end start; }
.mode-option input:checked + span { border-color: var(--accent-deep); background: var(--accent); }
.dialog-note { margin: 0; color: var(--muted); font-size: 0.64rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workspace-label {
  display: grid;
  gap: 0.15rem;
  margin: -1.4rem 0 2.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.46);
}

.workspace-label span { font-size: 0.53rem; letter-spacing: 0.08em; text-transform: uppercase; }
.workspace-label strong { overflow: hidden; color: white; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account { grid-template-columns: auto minmax(0, 1fr) auto; }
.sidebar-account > a { color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; text-decoration: none; }

.demo-banner {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.6rem;
  padding: 0.55rem 0.75rem;
  color: #565744;
  background: #eeefe5;
}

.demo-banner strong { color: var(--ink); font-size: 0.6rem; }
.demo-banner span { font-size: 0.58rem; }

.dashboard-topbar { align-items: flex-end; }
.dashboard-topbar h1 { max-width: 48rem; }
.dashboard-topbar > div:first-child { max-width: 52rem; }
.dashboard-topbar .eyebrow { margin-bottom: 0.8rem; }
.dashboard-topbar p:last-child { max-width: 40rem; line-height: 1.7; }
.top-actions { align-items: center; flex: 0 0 auto; }
.top-actions .button span { margin-left: 0.45rem; font-size: 1rem; font-weight: 400; }

.round-action {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 0.8rem;
  text-decoration: none;
  place-items: center;
}

.dashboard-view { margin-top: 2.6rem; }

.setup-notice { display: grid; gap: .35rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(80,110,0,.16); border-radius: 1rem; color: #273400; background: #efffc8; }
.setup-notice strong { font-size: .8rem; }
.setup-notice span { font-size: .7rem; line-height: 1.5; }
.quick-launch { padding: clamp(1.1rem, 2.5vw, 1.6rem); border-radius: 2rem; background: white; }
.quick-launch-head { display: flex; gap: 2rem; align-items: end; justify-content: space-between; }
.quick-launch-head .eyebrow { margin-bottom: 0.55rem; }
.quick-launch-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.06em; }
.quick-launch-head > p { max-width: 16rem; margin: 0 0 0.15rem; color: var(--muted); font-size: 0.62rem; line-height: 1.6; text-align: right; }
.quick-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.3rem; }
.quick-model { position: relative; min-height: 15rem; overflow: hidden; border-radius: 1.35rem; color: white; background: var(--navy); text-decoration: none; isolation: isolate; }
.quick-model::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(10, 14, 15, 0.94) 3%, rgba(10, 14, 15, 0.2) 70%); content: ""; }
.quick-model > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.quick-model:hover > img { transform: scale(1.035); }
.quick-model-badge { position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.42rem 0.65rem; border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); font-size: 0.5rem; font-weight: 700; }
.quick-model > div { position: absolute; right: 0; bottom: 0; left: 0; padding: 1.1rem; }
.quick-model > div > small { color: rgba(255, 255, 255, 0.56); font-size: 0.48rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.quick-model h3 { margin: 0.25rem 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.045em; }
.quick-model p { min-height: 2.5rem; margin: 0.35rem 0 0.75rem; color: rgba(255, 255, 255, 0.62); font-size: 0.56rem; line-height: 1.55; }
.quick-model strong { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.58rem; }
.quick-model strong i { color: var(--accent); font-size: 0.9rem; font-style: normal; font-weight: 400; }
.dashboard-view-overview .dashboard-grid { margin-top: 1rem; }
.overview-actions-panel .panel-head span { color: rgba(255, 255, 255, 0.45); }
.quick-action-list { display: grid; gap: 0.55rem; margin-top: 1.2rem; }
.quick-action-list > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.75rem; border-radius: 1rem; color: white; background: rgba(255, 255, 255, 0.08); text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.quick-action-list > a:hover { background: rgba(255, 255, 255, 0.13); transform: translateX(2px); }
.quick-action-list > a > span { display: grid; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 0.62rem; place-items: center; }
.quick-action-list strong, .quick-action-list small { display: block; }
.quick-action-list strong { font-size: 0.65rem; }
.quick-action-list small { color: rgba(255, 255, 255, 0.48); font-size: 0.53rem; }
.quick-action-list > a > i { color: rgba(255, 255, 255, 0.48); font-size: 1rem; font-style: normal; }

.create-wizard { display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.wizard-progress { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; padding: 1rem; overflow: hidden; border-radius: 1.4rem; background: white; }
.wizard-progress-line { position: absolute; z-index: 0; top: 2.05rem; right: 10%; left: 10%; height: 2px; background: var(--surface-soft); }
.wizard-progress-line i { display: block; width: 0; height: 100%; background: var(--ink); transition: width 300ms ease; }
.wizard-progress-item { position: relative; z-index: 1; display: grid; gap: 0.4rem; justify-items: center; color: var(--muted); font-size: 0.54rem; }
.wizard-progress-item span { display: grid; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 0.52rem; transition: color 180ms ease, background 180ms ease, border 180ms ease; place-items: center; }
.wizard-progress-item strong { font-size: 0.55rem; font-weight: 600; }
.wizard-progress-item.is-active { color: var(--ink); }
.wizard-progress-item.is-active span { border-color: var(--accent-deep); background: var(--accent); }
.wizard-progress-item.is-done span { color: white; border-color: var(--ink); background: var(--ink); }
.wizard-stage-wrap { min-width: 0; overflow: hidden; border-radius: 2rem; background: white; }
.wizard-stage { min-height: 31rem; padding: clamp(1.5rem, 4vw, 3rem); animation: wizard-enter 300ms ease both; }
.wizard-stage[hidden] { display: none; }
.wizard-stage-intro { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.wizard-stage-intro .eyebrow { margin: 0 0 0.55rem; }
.wizard-stage-intro > div { min-width: 0; flex: 1; }
.wizard-stage-intro h2 { max-width: 42rem; margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.07em; }
.wizard-stage-intro > p:last-child { max-width: 19rem; margin: 0 0 0.2rem; color: var(--muted); font-size: 0.66rem; line-height: 1.65; }
.wizard-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.wizard-source-card { position: relative; display: flex; min-height: 16rem; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--bg); cursor: pointer; }
.wizard-source-card.is-recommended { border-color: var(--accent-deep); background: linear-gradient(145deg, #f7ffe1, var(--bg)); }
.wizard-source-card > i { display: grid; width: 2.6rem; height: 2.6rem; margin: 2.3rem 0 1.2rem; border-radius: 50%; color: var(--ink); background: white; font-size: 0.9rem; font-style: normal; place-items: center; }
.wizard-source-card.is-recommended > i { background: var(--accent); }
.source-tag { position: absolute; top: 1rem; right: 1rem; padding: 0.4rem 0.6rem; border-radius: 999px; color: var(--muted); background: white; font-size: 0.5rem; font-weight: 700; }
.wizard-source-card > strong { font-size: 1.15rem; letter-spacing: -0.04em; }
.wizard-source-card > p { max-width: 23rem; margin: 0.35rem 0 1rem; color: var(--muted); font-size: 0.6rem; }
.wizard-source-card .url-field, .wizard-upload { margin-top: auto; }
.wizard-source-card .url-field input { min-height: 3.2rem; border: 0; background: white; }
.wizard-upload { display: grid; gap: 0.1rem; min-height: 3.2rem; align-content: center; padding: 0 1rem; border: 1px dashed rgba(21, 21, 19, 0.2); border-radius: 1rem; background: white; }
.wizard-upload span { font-size: 0.62rem; font-weight: 700; }
.wizard-upload small { color: var(--muted); font-size: 0.5rem; }
.wizard-stage > .form-error { margin-top: 0.8rem; }
.detected-layout { display: grid; grid-template-columns: minmax(19rem, 0.85fr) minmax(22rem, 1.15fr); gap: 1rem; }
.detected-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0.7rem; border-radius: 1.4rem; background: var(--ink); }
.detected-photos figure { position: relative; min-height: 8rem; margin: 0; overflow: hidden; border-radius: 0.9rem; }
.detected-photos img { width: 100%; height: 100%; object-fit: cover; }
.detected-photos figure span { position: absolute; right: 0.45rem; bottom: 0.45rem; display: grid; width: 1.4rem; height: 1.4rem; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 0.52rem; place-items: center; }
.detected-count { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.7rem; color: white; }
.detected-count strong { font-size: 0.62rem; }
.detected-count small { color: rgba(255, 255, 255, 0.48); font-size: 0.52rem; }
.detected-fields { padding: 1rem; border-radius: 1.4rem; background: var(--bg); }
.detected-status, .brand-ready { display: flex; gap: 0.7rem; align-items: center; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.detected-status > i, .brand-ready > i { display: grid; width: 2rem; height: 2rem; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 0.6rem; font-style: normal; place-items: center; }
.detected-status strong, .detected-status small, .brand-ready strong, .brand-ready small { display: block; }
.detected-status strong, .brand-ready strong { font-size: 0.62rem; }
.detected-status small, .brand-ready small { color: var(--muted); font-size: 0.52rem; }
.wizard-listing-fields { margin-top: 0.8rem; }
.wizard-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.wizard-mode-option { position: relative; cursor: pointer; }
.wizard-mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-mode-option > span { display: flex; min-height: 20rem; flex-direction: column; padding: 0.65rem; border: 1px solid var(--line); border-radius: 1.35rem; background: var(--bg); transition: border 180ms ease, background 180ms ease, transform 180ms ease; }
.wizard-mode-option:hover > span { transform: translateY(-2px); }
.wizard-mode-option img { width: 100%; height: 9rem; border-radius: 0.9rem; object-fit: cover; }
.wizard-mode-option i { margin: 0.7rem 0 auto; color: var(--muted); font-size: 0.52rem; font-style: normal; }
.wizard-mode-option strong { font-size: 1rem; letter-spacing: -0.04em; }
.wizard-mode-option small { min-height: 2.5rem; margin-top: 0.3rem; color: var(--muted); font-size: 0.54rem; }
.wizard-mode-option b { width: max-content; margin-top: 0.7rem; padding: 0.35rem 0.5rem; border-radius: 999px; background: white; font-size: 0.47rem; }
.wizard-mode-option input:checked + span { border-color: var(--accent-deep); background: var(--accent); box-shadow: 0 0 0 0.2rem rgba(185, 223, 62, 0.14); }
.wizard-mode-option input:checked + span small { color: rgba(21, 21, 19, 0.62); }
.audio-fieldset { margin: 0; padding: 0; border: 0; }
.audio-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.audio-choice { position: relative; cursor: pointer; }
.audio-choice input { position: absolute; opacity: 0; pointer-events: none; }
.audio-choice > span { position: relative; display: flex; min-height: 18rem; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--bg); transition: border 180ms ease, background 180ms ease, transform 180ms ease, opacity 180ms ease; }
.audio-choice:hover > span { transform: translateY(-2px); }
.audio-choice > span > i { display: grid; width: 3rem; height: 3rem; margin-bottom: auto; border-radius: 50%; background: white; font-size: 1.1rem; font-style: normal; place-items: center; }
.audio-choice small { margin-top: 2rem; color: var(--muted); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.audio-choice strong { margin-top: 0.35rem; font-size: 1.35rem; letter-spacing: -0.05em; }
.audio-choice p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.58rem; line-height: 1.55; }
.audio-choice b { width: max-content; margin-top: 1rem; padding: 0.4rem 0.55rem; border-radius: 999px; background: white; font-size: 0.48rem; }
.audio-choice input:checked + span { border-color: var(--accent-deep); background: var(--accent); box-shadow: 0 0 0 0.2rem rgba(185, 223, 62, 0.14); }
.audio-choice.is-disabled { cursor: not-allowed; }
.audio-choice.is-disabled > span { opacity: 0.38; filter: grayscale(1); transform: none; }
.audio-availability { margin: 1rem 0 0; color: var(--muted); font-size: 0.58rem; text-align: center; }
.listing-audio { margin: 0.6rem 0; color: var(--muted); font-size: 0.58rem; }
.listing-audio strong { color: var(--ink); }
.wizard-brand-layout { display: grid; grid-template-columns: minmax(16rem, 0.7fr) minmax(22rem, 1.3fr); gap: 1rem; }
.wizard-brand-preview { position: relative; display: flex; min-height: 23rem; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1.3rem; overflow: hidden; border-radius: 1.4rem; color: white; background: var(--wizard-brand-dark); text-align: center; }
.wizard-brand-bg { position: absolute; inset: 0; opacity: 0.34; background: linear-gradient(to bottom, transparent, var(--wizard-brand-dark)), url("../landing/assets/end-card-poster.webp") center/cover; filter: blur(2px); transform: scale(1.04); }
.wizard-agency-dot, .wizard-brand-preview > small, .wizard-brand-preview > img, .wizard-brand-preview > h3, .wizard-brand-preview > p, .wizard-brand-preview > strong { position: relative; z-index: 1; }
.wizard-agency-dot { position: absolute; top: 1rem; left: 1rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--wizard-brand); }
.wizard-brand-preview > small { position: absolute; top: 0.85rem; left: 1.8rem; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wizard-brand-preview > img { width: 6.5rem; height: 6.5rem; border: 0.35rem solid rgba(255, 255, 255, 0.25); border-radius: 1.6rem; object-fit: cover; }
.wizard-brand-preview h3 { margin: 0.65rem 0 0; font-size: 1.15rem; }
.wizard-brand-preview p { margin: 0.1rem 0 0.8rem; color: rgba(255, 255, 255, 0.6); font-size: 0.6rem; }
.wizard-brand-preview > strong { width: 100%; padding: 0.7rem; border-radius: 999px; color: var(--wizard-brand-dark); background: var(--wizard-brand); font-size: 0.58rem; }
.wizard-brand-settings { display: grid; gap: 1rem; align-content: center; padding: 1.3rem; border-radius: 1.4rem; background: var(--bg); }
.text-link { color: var(--ink); font-size: 0.58rem; font-weight: 700; text-decoration: underline; }
.wizard-review-intro { margin-bottom: 1.2rem; }
.wizard-review { display: grid; grid-template-columns: minmax(20rem, 1.2fr) minmax(18rem, 0.8fr); gap: 1rem; }
.review-poster { position: relative; min-height: 20rem; overflow: hidden; border-radius: 1.35rem; color: white; background: var(--navy); }
.review-poster::after { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(8, 12, 14, 0.82)); content: ""; }
.review-poster > img { width: 100%; height: 100%; object-fit: cover; }
.review-poster > span { position: absolute; z-index: 2; top: 0.8rem; left: 0.8rem; padding: 0.4rem 0.6rem; border-radius: 999px; color: var(--ink); background: var(--accent); font-size: 0.5rem; font-weight: 700; }
.review-poster > div { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; left: 1rem; }
.review-poster small, .review-poster strong { display: block; }
.review-poster small { color: rgba(255, 255, 255, 0.58); font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; }
.review-poster strong { margin-top: 0.2rem; font-size: 1.8rem; font-weight: 500; letter-spacing: -0.05em; }
.review-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; align-content: start; }
.review-summary > div { min-height: 5.7rem; padding: 0.8rem; border-radius: 1rem; background: var(--bg); }
.review-summary span, .review-summary strong { display: block; }
.review-summary span { color: var(--muted); font-size: 0.5rem; }
.review-summary strong { margin-top: 0.7rem; font-size: 0.66rem; }
.wizard-footer { position: sticky; z-index: 5; bottom: 1rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7rem; align-items: center; padding: 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 1rem 3rem rgba(21, 21, 19, 0.12); backdrop-filter: blur(12px); }
.wizard-footer > span { color: var(--muted); font-size: 0.55rem; text-align: center; }
.wizard-footer .button:first-child { justify-self: start; }
.wizard-footer .button:nth-last-child(-n + 2) { justify-self: end; }
.wizard-footer .button { min-width: 10rem; min-height: 2.9rem; font-size: 0.62rem; }
.wizard-footer .button span { margin-left: 0.5rem; }
.wizard-footer [hidden] { display: none !important; }
.wizard-generating { display: grid; min-height: 36rem; align-content: center; justify-items: center; padding: 2rem; border-radius: 2rem; background: var(--ink); color: white; text-align: center; }
.generation-orbit { position: relative; display: grid; width: 8rem; height: 8rem; margin-bottom: 2rem; border: 1px solid rgba(221, 255, 112, 0.25); border-radius: 50%; place-items: center; }
.generation-orbit::before, .generation-orbit::after { position: absolute; border: 1px solid rgba(221, 255, 112, 0.14); border-radius: 50%; content: ""; }
.generation-orbit::before { width: 5.5rem; height: 5.5rem; }
.generation-orbit::after { width: 10.5rem; height: 10.5rem; }
.generation-orbit span { color: var(--accent); font-size: 0.72rem; font-weight: 800; }
.generation-orbit i { position: absolute; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); animation: orbit-pulse 1.2s ease-in-out infinite; }
.generation-orbit i:nth-child(1) { top: 0.7rem; }
.generation-orbit i:nth-child(2) { right: 1rem; bottom: 1.2rem; animation-delay: 180ms; }
.generation-orbit i:nth-child(3) { bottom: 1.2rem; left: 1rem; animation-delay: 360ms; }
.wizard-generating .eyebrow { color: rgba(255, 255, 255, 0.48); }
.wizard-generating h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.07em; }
.wizard-generating > p:not(.eyebrow) { max-width: 30rem; color: rgba(255, 255, 255, 0.58); font-size: 0.66rem; }
.generation-progress { width: min(100%, 25rem); height: 0.3rem; margin-top: 1.3rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.generation-progress i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; animation: generation-load 1.5s ease both; }
.wizard-generating > small { margin-top: 0.7rem; color: rgba(255, 255, 255, 0.42); font-size: 0.52rem; }

@keyframes wizard-enter { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes orbit-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes generation-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: white;
}

.stat-strip > div { display: grid; gap: 0.35rem; padding: 1.2rem 1.35rem; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span { color: var(--muted); font-size: 0.58rem; }
.stat-strip strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.04em; }
.stat-strip strong small { color: var(--muted); font-size: 0.65rem; font-weight: 500; }
.stat-strip .live-status { display: flex; gap: 0.5rem; align-items: center; font-size: 0.75rem; }
.live-status i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #9fcb27; box-shadow: 0 0 0 0.3rem rgba(159, 203, 39, 0.14); }

.panel-link { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(21, 21, 19, 0.12); font-size: 0.64rem; font-weight: 700; text-decoration: none; }
.panel-link span { font-size: 1rem; }
.panel-head a { color: var(--muted); font-size: 0.62rem; font-weight: 700; text-decoration: none; }
.onboarding-item a { color: white; font-size: 0.6rem; font-weight: 700; text-decoration: none; }

.creation-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }

.creation-workspace { display: grid; gap: 1rem; }
.creation-step { display: grid; grid-template-columns: 3rem minmax(12rem, 0.62fr) minmax(18rem, 1.38fr); gap: 1.5rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 2rem; background: white; }
.step-number { display: grid; align-self: start; width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 0.58rem; place-items: center; }
.step-copy .eyebrow { margin-bottom: 0.7rem; }
.step-copy h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.06em; }
.step-copy > p:last-child { max-width: 18rem; margin: 0.85rem 0 0; color: var(--muted); font-size: 0.68rem; }
.source-card { padding: 1.1rem; border-radius: 1.4rem; background: var(--bg); }
.source-card.is-photo-priority .upload-zone { border-color: var(--accent-deep); background: white; box-shadow: 0 0 0 0.2rem rgba(185, 223, 62, 0.15); }
.url-field { position: relative; }
.url-field input { padding-right: 3rem; background: white; }
.url-field > span { position: absolute; top: 50%; right: 1rem; color: var(--muted); transform: translateY(-50%); }
.choice-divider { display: flex; align-items: center; margin: 0.7rem 0; color: var(--muted); font-size: 0.58rem; }
.choice-divider::before, .choice-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.choice-divider span { padding: 0 0.7rem; }
.upload-zone { display: grid; min-height: 7.5rem; padding: 1rem; border: 1px dashed rgba(21, 21, 19, 0.2); border-radius: 1rem; cursor: pointer; place-items: center; text-align: center; }
.upload-zone:hover { border-color: var(--accent-deep); background: white; }
.upload-zone .upload-icon { display: grid; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); font-size: 0.85rem; place-items: center; }
.upload-zone strong { margin-top: 0.45rem; font-size: 0.68rem; }
.upload-zone small { color: var(--muted); font-size: 0.55rem; }
.mode-fieldset { padding: 0; margin: 0; border: 0; }
.mode-choice-large .mode-option span { display: flex; min-height: 10.5rem; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.mode-option span i { margin-bottom: auto; color: var(--muted); font-size: 0.58rem; font-style: normal; }
.mode-option span strong { display: block; font-size: 0.72rem; }
.mode-option span small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.56rem; font-weight: 500; }
.mode-option input:checked + span small { color: rgba(21, 21, 19, 0.6); }
.creation-submit-card { padding: 1.1rem; border-radius: 1.4rem; background: var(--navy); }
.creation-submit-card .field > span { color: rgba(255, 255, 255, 0.6); }
.creation-submit-card .field input { background: rgba(255, 255, 255, 0.1); color: white; }
.creation-submit-card .field input::placeholder { color: rgba(255, 255, 255, 0.38); }
.output-formats { display: flex; gap: 0.5rem; align-items: center; margin: 0.8rem 0; }
.output-formats span { padding: 0.42rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; color: white; font-size: 0.58rem; font-weight: 700; }
.output-formats small { margin-left: auto; color: rgba(255, 255, 255, 0.48); font-size: 0.58rem; }
.creation-aside { order: -1; display: grid; grid-template-columns: minmax(11rem, 0.7fr) 11rem minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.55rem 1.2rem; align-items: center; padding: 1rem 1.2rem; border-radius: 1.5rem; color: white; background: var(--ink); }
.creation-aside-copy { grid-column: 1; grid-row: 1 / 3; }
.creation-aside-copy .eyebrow { margin-bottom: 0.35rem; color: rgba(255, 255, 255, 0.48); }
.creation-aside h3 { margin: 0; font-size: 1.35rem; font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; }
.format-visual { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 0.35rem; align-items: end; min-height: 5rem; margin: 0; padding: 0.55rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.07); }
.format-visual span { display: grid; flex: 1; min-height: 3.1rem; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 0.55rem; color: rgba(255, 255, 255, 0.62); font-size: 0.45rem; place-items: center; }
.format-visual span:nth-child(1) { flex: 0.65; min-height: 4rem; }
.format-visual span:nth-child(3) { min-height: 2.7rem; }
.creation-aside ul { grid-column: 3; grid-row: 1; display: flex; gap: 0.45rem 1rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.creation-aside li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; color: rgba(255, 255, 255, 0.62); font-size: 0.6rem; }
.creation-aside li i { color: var(--accent); font-style: normal; }
.creation-aside > a { grid-column: 3; grid-row: 2; display: block; padding-top: 0.55rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: white; font-size: 0.6rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

.library-panel { min-height: 32rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 2rem; background: white; }
.list-toolbar { display: grid; grid-template-columns: minmax(14rem, 1fr) auto auto; gap: 0.7rem; align-items: center; }
.search-field { position: relative; }
.search-field > span { position: absolute; top: 50%; left: 1rem; color: var(--muted); transform: translateY(-50%); }
.search-field input, .filter-field select { width: 100%; min-height: 3.2rem; border: 1px solid var(--line); border-radius: 999px; outline: 0; background: var(--bg); font-size: 0.68rem; }
.search-field input { padding: 0 1rem 0 2.7rem; }
.filter-field { display: flex; gap: 0.5rem; align-items: center; padding-left: 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.filter-field span { color: var(--muted); font-size: 0.58rem; }
.filter-field select { min-width: 10rem; padding: 0 2rem 0 0.2rem; border: 0; }
.view-switch { display: flex; padding: 0.25rem; border-radius: 999px; background: var(--bg); }
.view-switch button { display: grid; width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%; background: transparent; place-items: center; }
.view-switch button.is-active { background: white; box-shadow: 0 0.2rem 1rem rgba(21, 21, 19, 0.08); }
.library-meta { display: flex; justify-content: space-between; margin-top: 2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.58rem; }
.library-panel .project-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; padding: 1rem; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.library-panel .project-row:last-child { border-bottom: 0; }
.library-panel .project-thumb { background: linear-gradient(145deg, #687c75, var(--navy)); }
.no-results { margin: 4rem 0; color: var(--muted); font-size: 0.72rem; text-align: center; }

.button-small { min-height: 2.8rem; font-size: 0.62rem; }
.listing-detail { display: grid; gap: 1rem; }
.listing-hero-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); gap: 1rem; padding: 1rem; border-radius: 2rem; background: white; }
.listing-cover { position: relative; min-height: 25rem; overflow: hidden; border-radius: 1.4rem; color: white; background: var(--navy); }
.listing-cover::after { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 15, 18, 0.08), rgba(10, 15, 18, 0.78)); content: ""; }
.listing-cover > img { width: 100%; height: 100%; object-fit: cover; }
.listing-mode { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: 0.45rem 0.65rem; border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(9px); font-size: 0.52rem; font-weight: 700; }
.listing-play { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 4rem; height: 4rem; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); font-size: 0.9rem; transform: translate(-50%, -50%); place-items: center; }
.cover-caption { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; }
.cover-caption small, .cover-caption strong { display: block; }
.cover-caption small { color: rgba(255, 255, 255, 0.58); font-size: 0.52rem; letter-spacing: 0.09em; text-transform: uppercase; }
.cover-caption strong { margin-top: 0.2rem; font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.listing-summary { display: flex; min-width: 0; flex-direction: column; padding: 0.7rem; }
.listing-summary-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.icon-button { display: grid; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 0.7rem; place-items: center; }
.listing-summary > .eyebrow { margin-top: auto; margin-bottom: 0.55rem; }
.listing-summary h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.06em; }
.listing-price { display: block; margin-top: 0.7rem; font-size: 1.4rem; letter-spacing: -0.04em; }
.property-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1.3rem; }
.property-facts span { padding: 0.75rem; border-radius: 0.85rem; color: var(--muted); background: var(--bg); font-size: 0.52rem; }
.property-facts strong { display: block; color: var(--ink); font-size: 0.68rem; }
.listing-summary-actions { display: grid; gap: 0.55rem; margin-top: 1rem; }
.listing-summary-actions .button { min-height: 2.9rem; font-size: 0.6rem; }
.listing-media-panel { overflow: hidden; }
.listing-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 8.3rem); gap: 0.55rem; margin-top: 1.4rem; }
.listing-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 1rem; background: var(--surface-soft); }
.listing-gallery figure.is-featured { grid-column: span 2; grid-row: span 2; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.listing-gallery figure:hover img { transform: scale(1.03); }
.listing-gallery figcaption { position: absolute; right: 0.55rem; bottom: 0.55rem; padding: 0.3rem 0.45rem; border-radius: 999px; color: white; background: rgba(15, 18, 18, 0.64); backdrop-filter: blur(8px); font-size: 0.48rem; }
.media-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.54rem; }
.listing-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1rem; align-items: start; }
.listing-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.5rem; }
.field textarea { width: 100%; padding: 1rem; border: 1px solid transparent; border-radius: 1rem; outline: 0; resize: vertical; color: var(--ink); background: var(--surface-soft); }
.field textarea:focus { border-color: var(--accent-deep); background: white; }
.version-panel { color: white; background: var(--navy); }
.version-panel .eyebrow { color: rgba(255, 255, 255, 0.5); }
.version-panel h2 { margin: 0; font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: -0.055em; }
.version-panel > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.52); font-size: 0.62rem; }
.version-mode-list { display: grid; gap: 0.55rem; margin-top: 1.3rem; }
.version-mode-list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; width: 100%; padding: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 1rem; color: white; background: rgba(255, 255, 255, 0.07); text-align: left; }
.version-mode-list button:hover { background: rgba(255, 255, 255, 0.12); }
.version-mode-list button.is-current { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.version-mode-list button > span { font-size: 0.52rem; }
.version-mode-list strong, .version-mode-list small { display: block; }
.version-mode-list strong { font-size: 0.62rem; }
.version-mode-list small { color: rgba(255, 255, 255, 0.5); font-size: 0.5rem; }
.version-mode-list button.is-current small { color: rgba(21, 21, 19, 0.55); }
.version-mode-list i { font-size: 0.75rem; font-style: normal; }
.exports-panel { scroll-margin-top: 1rem; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.4rem; }
.export-card { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; padding: 0.8rem; border-radius: 1.2rem; background: var(--bg); }
.export-frame { position: relative; display: grid; width: 4.1rem; height: 5.2rem; overflow: hidden; border-radius: 0.65rem; color: white; background: var(--navy); place-items: center; }
.export-frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.48; object-fit: cover; }
.export-frame span { position: relative; z-index: 1; font-size: 0.55rem; font-weight: 800; }
.export-frame-16-9 { height: 3.1rem; }
.export-frame-1-1 { height: 4.1rem; }
.export-card > div:nth-child(2) { min-width: 0; }
.export-card strong, .export-card small { display: block; }
.export-card strong { font-size: 0.72rem; }
.export-card p { min-height: 1.7rem; margin: 0.15rem 0; color: var(--muted); font-size: 0.5rem; line-height: 1.45; }
.export-card small { color: var(--muted); font-size: 0.48rem; }
.export-card > a { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0.8rem; border-radius: 999px; color: white; background: var(--ink); font-size: 0.56rem; font-weight: 700; text-decoration: none; }
.export-card > a span { color: var(--accent); }
.history-panel { margin-bottom: 1rem; }
.version-history { display: grid; gap: 0.55rem; margin-top: 1rem; }
.version-history > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 0.9rem; background: var(--bg); }
.version-index { display: grid; width: 2rem; height: 2rem; border-radius: 50%; background: white; font-size: 0.52rem; font-weight: 800; place-items: center; }
.version-history strong, .version-history small { display: block; }
.version-history strong { font-size: 0.62rem; }
.version-history small { color: var(--muted); font-size: 0.5rem; }
.current-version { padding: 0.35rem 0.55rem; border-radius: 999px; color: #536719; background: #efffc0; font-size: 0.5rem; font-weight: 700; }

.brand-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.62fr); gap: 1rem; align-items: start; }
.section-heading { display: flex; gap: 1rem; align-items: start; justify-content: space-between; }
.section-heading h2 { max-width: 30rem; margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -0.055em; }
.save-state, .section-heading > span { padding: 0.45rem 0.65rem; border-radius: 999px; color: var(--muted); background: var(--bg); font-size: 0.55rem; white-space: nowrap; }
.brand-form { display: grid; gap: 1.6rem; }
.brand-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.field-wide { grid-column: 1 / -1; }
.visual-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.logo-upload { display: flex; gap: 0.8rem; align-items: center; min-height: 5rem; margin-top: 0.45rem; padding: 0.7rem; border: 1px dashed rgba(21, 21, 19, 0.18); border-radius: 1rem; cursor: pointer; }
.logo-upload > span { display: grid; width: 3.4rem; height: 3.4rem; border-radius: 0.85rem; background: var(--ink); color: white; font-size: 1rem; place-items: center; }
.logo-upload strong, .logo-upload small { display: block; }
.logo-upload strong { font-size: 0.64rem; }
.logo-upload small { color: var(--muted); font-size: 0.53rem; }
.color-settings { display: grid; gap: 0.45rem; }
.color-settings > label { display: flex; gap: 0.65rem; align-items: center; }
.color-settings input { width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: transparent; }
.color-settings strong, .color-settings small { display: block; }
.color-settings strong { font-size: 0.6rem; }
.color-settings small { color: var(--muted); font-size: 0.52rem; text-transform: uppercase; }
.brand-form > .button { justify-self: start; }
.brand-preview-wrap { padding: 1rem; border-radius: 2rem; color: white; background: var(--ink); }
.preview-toolbar { display: flex; justify-content: space-between; padding: 0.3rem 0.2rem 0.9rem; color: rgba(255, 255, 255, 0.52); font-size: 0.55rem; }
.brand-preview { position: relative; min-height: 36rem; padding: 1.4rem; overflow: hidden; border-radius: 1.4rem; color: white; background: var(--brand-secondary); }
.preview-blur { position: absolute; inset: 0; opacity: 0.35; background: linear-gradient(to bottom, transparent 25%, var(--brand-secondary) 80%), url("../landing/assets/end-card-poster.webp") center/cover; filter: blur(1px); transform: scale(1.04); }
.preview-logo, .agent-portrait, .preview-copy, .preview-cta { position: relative; z-index: 1; }
.preview-logo { display: flex; gap: 0.5rem; align-items: center; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-logo i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-primary); }
.agent-portrait { width: 8.5rem; height: 8.5rem; margin: 5rem auto 1.4rem; overflow: hidden; border: 0.4rem solid rgba(255, 255, 255, 0.2); border-radius: 2.2rem; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.24); }
.agent-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.preview-copy { text-align: center; }
.preview-copy small, .preview-copy strong, .preview-copy span { display: block; }
.preview-copy small { color: var(--brand-primary); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-copy strong { margin-top: 0.2rem; font-size: 1.15rem; }
.preview-copy p { margin: 1.1rem 0 0.2rem; color: rgba(255, 255, 255, 0.62); font-size: 0.6rem; }
.preview-copy span { font-size: 0.85rem; font-weight: 700; }
.preview-cta { margin-top: 1.5rem; padding: 0.75rem; border-radius: 999px; color: var(--brand-secondary); background: var(--brand-primary); font-size: 0.6rem; font-weight: 800; text-align: center; }
.brand-preview-wrap > p { margin: 0.8rem 0.3rem 0.2rem; color: rgba(255, 255, 255, 0.46); font-size: 0.55rem; }

.billing-hero { display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem; background: var(--accent); }
.billing-hero h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; line-height: 0.85; letter-spacing: -0.07em; }
.billing-hero p:last-child { margin: 1rem 0 0; color: rgba(21, 21, 19, 0.6); font-size: 0.68rem; }
.billing-price { text-align: right; }
.billing-price strong, .billing-price span, .billing-price small { display: block; }
.billing-price strong { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.06em; }
.billing-price span { font-size: 0.68rem; font-weight: 700; }
.billing-price small { margin-top: 0.4rem; color: rgba(21, 21, 19, 0.55); font-size: 0.58rem; }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.usage-ring { position: relative; display: grid; width: 8rem; height: 8rem; margin: 1.5rem auto 0; border-radius: 50%; background: conic-gradient(var(--accent-deep) var(--usage), var(--surface-soft) 0); place-items: center; }
.usage-ring::before { position: absolute; width: 6.1rem; height: 6.1rem; border-radius: 50%; background: white; content: ""; }
.usage-ring span { position: relative; z-index: 1; text-align: center; }
.usage-ring strong, .usage-ring small { display: block; }
.usage-ring strong { font-size: 1.8rem; line-height: 1; }
.usage-ring small { color: var(--muted); font-size: 0.52rem; }
.included-list { display: grid; gap: 0.6rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.included-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; color: var(--muted); font-size: 0.62rem; }
.included-list i { color: #759700; font-style: normal; }
.card-line { display: grid; gap: 0.15rem; margin: 2rem 0 1rem; padding: 1rem; border-radius: 1rem; background: var(--bg); }
.card-line span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.card-line small { color: var(--muted); font-size: 0.55rem; }
.text-button { padding: 0; border: 0; background: transparent; font-size: 0.6rem; font-weight: 700; text-decoration: underline; }
.plan-chooser { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 2rem; background: var(--navy); color: white; }
.plan-chooser .eyebrow, .plan-chooser .section-heading > span { color: rgba(255, 255, 255, 0.5); }
.plan-chooser .section-heading > span { background: rgba(255, 255, 255, 0.08); }
.mini-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 1.5rem; }
.mini-plan { padding: 1.2rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.3rem; background: rgba(255, 255, 255, 0.055); }
.mini-plan.is-current { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.mini-plan > div { display: flex; align-items: center; justify-content: space-between; }
.mini-plan > div > span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.mini-plan > div > small { padding: 0.3rem 0.5rem; border-radius: 999px; background: rgba(21, 21, 19, 0.1); font-size: 0.5rem; }
.mini-plan > strong { display: block; margin-top: 1rem; font-size: 1.7rem; font-weight: 500; }
.mini-plan > strong small { font-size: 0.52rem; font-weight: 600; }
.mini-plan p { min-height: 2rem; margin: 0.4rem 0 1rem; color: rgba(255, 255, 255, 0.52); font-size: 0.55rem; }
.mini-plan.is-current p { color: rgba(21, 21, 19, 0.58); }
.mini-plan button { width: 100%; min-height: 2.6rem; border: 0; border-radius: 999px; background: white; font-size: 0.58rem; font-weight: 700; }
.mini-plan.is-current button { background: var(--ink); color: white; }
.mini-plan button:disabled { cursor: default; opacity: 0.8; }
.invoice-panel { margin-top: 1rem; }
.invoice-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 1rem; align-items: center; margin-top: 1rem; padding: 1rem; border-radius: 1rem; background: var(--bg); }
.invoice-row span, .invoice-row strong { font-size: 0.65rem; }
.invoice-row small { color: var(--muted); font-size: 0.56rem; }
.invoice-row button { border: 0; background: transparent; font-size: 0.58rem; font-weight: 700; }

.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-profile { grid-column: 1 / -1; }
.avatar-large { width: 3.3rem; height: 3.3rem; }
.settings-profile .brand-form-grid { margin-top: 1.5rem; }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.form-actions span { color: #607b09; font-size: 0.58rem; }
.notification-panel h2, .security-panel h2 { margin: 0; font-size: 1.55rem; font-weight: 500; letter-spacing: -0.045em; }
.toggle-list { display: grid; gap: 0.65rem; margin-top: 1.4rem; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 0.63rem; }
.toggle-row small { max-width: 24rem; margin-top: 0.15rem; color: var(--muted); font-size: 0.53rem; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: #d7d8d1; transition: background 180ms ease; }
.toggle-row i::after { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: white; box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15); content: ""; transition: transform 180ms ease; }
.toggle-row input:checked + i { background: var(--accent-deep); }
.toggle-row input:checked + i::after { transform: translateX(1.15rem); }
.member-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; margin: 1.2rem 0; padding: 0.8rem; border-radius: 1rem; background: var(--bg); }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: 0.65rem; }
.member-row small, .member-row > span:last-child { color: var(--muted); font-size: 0.54rem; }
.security-panel p:not(.eyebrow) { color: var(--muted); font-size: 0.63rem; }

.toast { position: fixed; z-index: 100; right: 1.5rem; bottom: 1.5rem; max-width: 22rem; padding: 0.85rem 1rem; border-radius: 999px; color: white; background: var(--ink); box-shadow: 0 1rem 3rem rgba(21, 21, 19, 0.2); font-size: 0.62rem; font-weight: 700; }
.toast[hidden] { display: none; }

.loading-screen { display: grid; min-height: 100vh; gap: 1rem; align-content: center; justify-items: center; color: var(--muted); }

@media (max-width: 900px) {
  .auth-shell,
  .checkout-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 31rem; }
  .auth-main { min-height: auto; padding: 3rem 1rem; }
  .checkout-order { order: -1; }
  .checkout-main,
  .checkout-order { padding: 2rem; }
  .checkout-summary { margin-top: 2.5rem; }
  .order-card { margin-top: 2.5rem; }
  .dashboard-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar,
  .dashboard-main { width: 100%; min-width: 0; }
  .sidebar { position: static; min-height: auto; padding: 1rem; }
  .sidebar .brand { margin: 0; }
  .workspace-label { display: none; }
  .side-nav { width: 100%; min-width: 0; grid-template-columns: repeat(6, 1fr); margin-top: 1rem; overflow-x: auto; }
  .side-nav button,
  .side-nav a { justify-content: center; min-width: 7rem; }
  .sidebar-account { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .projects-panel { grid-column: auto; }
  .creation-layout { grid-template-columns: 1fr; }
  .creation-aside { position: static; grid-template-columns: minmax(10rem, 1fr) 9rem; }
  .creation-aside-copy { grid-column: 1; grid-row: 1; }
  .creation-aside .format-visual { grid-column: 2; grid-row: 1 / 4; }
  .creation-aside ul { grid-column: 1; grid-row: 2; }
  .creation-aside > a { grid-column: 1; grid-row: 3; }
  .brand-workspace { grid-template-columns: 1fr; }
  .brand-preview-wrap { width: min(100%, 28rem); }
  .usage-grid { grid-template-columns: 1fr 1fr; }
  .usage-grid .payment-card { grid-column: 1 / -1; }
  .listing-hero-card { grid-template-columns: 1fr; }
  .listing-cover { min-height: 22rem; }
  .listing-summary > .eyebrow { margin-top: 1.5rem; }
  .listing-editor-grid { grid-template-columns: 1fr; }
  .wizard-stage { min-height: auto; }
}

@media (max-width: 620px) {
  .auth-shell,
  .checkout-shell,
  .success-shell { padding: 0.5rem; }
  .auth-aside,
  .checkout-main,
  .checkout-order,
  .success-card { border-radius: 1.8rem; }
  .auth-aside { min-height: 28rem; padding: 1.5rem; }
  .auth-benefits span:nth-child(n + 3) { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .dashboard-main { padding: 1rem; }
  .dashboard-topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .top-actions .button { flex: 1; }
  .dashboard-view { margin-top: 1.7rem; }
  .demo-banner { width: 100%; }
  .demo-banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .quick-launch { border-radius: 1.5rem; }
  .quick-launch-head { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
  .quick-launch-head > p { margin: 0; text-align: left; }
  .quick-model-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .quick-model { flex: 0 0 82%; scroll-snap-align: start; }
  .wizard-progress { padding: 0.75rem 0.45rem; }
  .wizard-progress-line { top: 1.8rem; }
  .wizard-progress-item strong { display: none; }
  .wizard-progress-item span { width: 2rem; height: 2rem; }
  .wizard-stage { padding: 1.2rem; border-radius: 1.5rem; }
  .wizard-stage-intro { align-items: flex-start; flex-direction: column; gap: 0.7rem; margin-bottom: 1.3rem; }
  .wizard-stage-intro h2 { font-size: 2.7rem; }
  .wizard-stage-intro > p:last-child { margin: 0; }
  .wizard-source-grid,
  .detected-layout,
  .wizard-brand-layout,
  .wizard-review { grid-template-columns: 1fr; }
  .wizard-source-card { min-height: 14rem; }
  .detected-photos figure { min-height: 6.5rem; }
  .wizard-mode-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .wizard-mode-option { flex: 0 0 84%; scroll-snap-align: start; }
  .wizard-mode-option > span { min-height: 19rem; }
  .audio-choice-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .audio-choice { flex: 0 0 84%; scroll-snap-align: start; }
  .wizard-brand-preview { min-height: 20rem; }
  .review-poster { min-height: 17rem; }
  .wizard-footer { grid-template-columns: 1fr 1fr; border-radius: 1.2rem; }
  .wizard-footer > span { grid-column: 1 / -1; grid-row: 1; }
  .wizard-footer .button { width: 100%; min-width: 0; grid-row: 2; }
  .wizard-footer .button:first-child { grid-column: 1; }
  .wizard-footer .button:nth-last-child(-n + 2) { grid-column: 2; }
  .wizard-generating { min-height: 31rem; border-radius: 1.5rem; }
  .panel { border-radius: 1.5rem; }
  .quota { gap: 1rem; }
  .project-row { grid-template-columns: auto 1fr auto; }
  .project-row > small { display: none; }
  .mode-choice { display: flex; overflow-x: auto; }
  .mode-option { flex: 0 0 72%; }
  .import-choice { grid-template-columns: 1fr; }
  .import-choice .button { width: 100%; }
  .creation-step { grid-template-columns: 2.5rem 1fr; gap: 0.9rem; }
  .creation-layout,
  .creation-workspace,
  .creation-step,
  .mode-fieldset,
  .mode-choice { width: 100%; min-width: 0; }
  .creation-aside { grid-template-columns: minmax(0, 1fr); }
  .creation-aside-copy,
  .creation-aside .format-visual,
  .creation-aside ul,
  .creation-aside > a { grid-column: 1; grid-row: auto; }
  .creation-step > :last-child { grid-column: 1 / -1; }
  .mode-choice-large .mode-option { flex-basis: 82%; }
  .list-toolbar { grid-template-columns: 1fr auto; }
  .filter-field { grid-column: 1 / -1; grid-row: 2; }
  .brand-form-grid, .visual-settings { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .brand-preview-wrap { width: 100%; }
  .brand-preview { min-height: 32rem; }
  .billing-hero { gap: 2rem; align-items: flex-start; flex-direction: column; }
  .billing-price { text-align: left; }
  .usage-grid, .mini-plan-grid, .settings-layout { grid-template-columns: 1fr; }
  .usage-grid .payment-card, .settings-profile { grid-column: auto; }
  .invoice-row { grid-template-columns: 1fr auto; }
  .invoice-row small { grid-column: 1 / -1; grid-row: 2; }
  .invoice-row button { grid-column: 2; grid-row: 2; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .library-panel .project-row { grid-template-columns: auto 1fr auto; }
  .library-panel .project-row .status,
  .library-panel .project-row > small { display: none; }
  .project-open { font-size: 0; }
  .project-open span { margin: 0; font-size: 0.8rem; }
  .listing-hero-card { padding: 0.6rem; border-radius: 1.5rem; }
  .listing-cover { min-height: 18rem; }
  .listing-summary { padding: 0.8rem; }
  .listing-gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 7.5rem); }
  .listing-gallery figure.is-featured { grid-column: span 2; grid-row: span 2; }
  .listing-fields { grid-template-columns: 1fr; }
  .listing-fields .field-wide { grid-column: auto; }
  .export-grid { grid-template-columns: 1fr; }
  .export-card { grid-template-columns: auto 1fr auto; }
  .export-card > a { grid-column: 3; grid-row: 1; width: 2.7rem; height: 2.7rem; padding: 0; font-size: 0; border-radius: 50%; justify-content: center; }
  .export-card > a span { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
