/* =============================================================
   ai-branding-wizard-v2 — kit overrides on top of _shared tokens
   Wave UI Kits Round 2 · 1.7 add-on · Direction C wizard refactor
   Persona: P2 Center Owner first-time + P3 Admin rebrand
   Stack: Tailwind CDN + Inter + Lucide + Framer Motion patterns
   Per ai-branding-guidelines.md §4.1/4.2/4.3 + §2.4 + §5
   ============================================================= */

@import url('../_shared/colors_and_type.css');

/* ============== Root + chrome ============== */

.wiz-shell {
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% 0%, hsl(199 89% 48% / 0.06), transparent 60%),
    hsl(var(--background));
  display: flex;
  flex-direction: column;
}

.wiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wiz-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.wiz-brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(var(--kite-sky)), hsl(var(--kite-orange)));
  display: grid; place-items: center;
  color: white; font-size: 0.85rem; font-weight: 800;
}

.wiz-time-est {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============== Stepper ============== */

.wiz-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  overflow-x: auto;
}

.wiz-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
}
.wiz-step-dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border: 2px solid hsl(var(--border));
  transition: all 200ms ease-out;
}
.wiz-step.is-current .wiz-step-dot {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.15);
}
.wiz-step.is-done .wiz-step-dot {
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
  border-color: hsl(var(--success));
}
.wiz-step.is-current,
.wiz-step.is-done {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.wiz-step-bar {
  width: 32px;
  height: 2px;
  background: hsl(var(--border));
  flex-shrink: 0;
}
.wiz-step.is-done + .wiz-step-bar { background: hsl(var(--success)); }

/* ============== Main content area ============== */

.wiz-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem 6rem;
}

.wiz-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.wiz-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}
.wiz-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 560px;
}

/* ============== Card primitives ============== */

.wiz-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.wiz-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--background));
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  transition: border-color 150ms, box-shadow 150ms;
}
.wiz-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}

.wiz-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
  display: block;
}

.wiz-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.375rem;
}

.wiz-help-link {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
}
.wiz-help-link:hover { text-decoration: underline; }

/* ============== Slug check states ============== */

.slug-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  overflow: hidden;
  background: hsl(var(--background));
}
.slug-row:focus-within {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}
.slug-prefix, .slug-suffix {
  padding: 0.625rem 0.875rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  display: grid; place-items: center;
  font-family: var(--font-mono);
}
.slug-input {
  border: none;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: transparent;
  outline: none;
  color: hsl(var(--foreground));
  width: 100%;
}
.slug-status {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.825rem;
  margin-top: 0.5rem;
  font-weight: 500;
}
.slug-status.ok       { color: hsl(var(--success)); }
.slug-status.checking { color: hsl(var(--info)); }
.slug-status.bad      { color: hsl(var(--destructive)); }
.slug-spinner {
  width: 14px; height: 14px;
  border: 2px solid hsl(var(--info) / 0.25);
  border-top-color: hsl(var(--info));
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.slug-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.625rem;
}
.slug-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
.slug-pill:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
}

/* ============== Logo upload ============== */

.logo-drop {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  background: hsl(var(--muted) / 0.4);
  cursor: pointer;
  transition: all 150ms;
}
.logo-drop:hover, .logo-drop.is-active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}
.logo-drop.is-error {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.05);
}
.logo-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: grid; place-items: center;
}
.logo-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .logo-fork { grid-template-columns: 1fr; }
}
.logo-fork-card {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 150ms;
}
.logo-fork-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.logo-fork-card.is-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.04);
}
.logo-preview-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--card));
}
.logo-preview-img {
  width: 96px; height: 96px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, hsl(199 89% 48%), hsl(25 95% 53%));
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
}

/* ============== Audience + Tone cards ============== */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.choice-card {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 150ms ease-out;
}
.choice-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lg);
}
.choice-card.is-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.25);
}
.choice-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.choice-title {
  font-weight: 700;
  font-size: 1rem;
  color: hsl(var(--foreground));
}
.choice-desc {
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
  line-height: var(--leading-snug);
}

/* tone preview */
.tone-preview {
  margin-top: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: hsl(var(--muted));
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.tone-preview-h { font-size: 0.85rem; font-weight: 700; }
.tone-preview-btn {
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.tone-pro    .tone-preview { background: hsl(220 20% 95%); }
.tone-pro    .tone-preview-btn { background: hsl(221 39% 30%); }
.tone-friend .tone-preview { background: hsl(43 90% 95%); }
.tone-friend .tone-preview-btn { background: hsl(38 92% 50%); border-radius: 999px; }
.tone-energy .tone-preview { background: hsl(0 90% 96%); }
.tone-energy .tone-preview-btn { background: hsl(11 100% 55%); transform: skewX(-6deg); }
.tone-luxe   .tone-preview { background: hsl(45 30% 18%); color: hsl(45 90% 75%); }
.tone-luxe   .tone-preview-btn { background: hsl(45 90% 60%); color: hsl(45 30% 18%); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============== Template grid ============== */

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tpl-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease-out;
  display: flex;
  flex-direction: column;
}
.tpl-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-soft-xl);
  border-color: hsl(var(--primary));
}
.tpl-card.is-selected {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25);
}
.tpl-thumb {
  aspect-ratio: 16/10;
  background: hsl(var(--muted));
  position: relative;
  overflow: hidden;
}
.tpl-thumb svg { display: block; width: 100%; height: 100%; }
.tpl-meta {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid hsl(var(--border));
}
.tpl-name { font-weight: 600; font-size: 0.95rem; }
.tpl-tag  { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ============== Step 6 — preview + per-resource approve ============== */

.preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .preview-grid { grid-template-columns: 1fr; }
}
.preview-frame {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: var(--shadow-soft);
}
.preview-frame-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.825rem;
  background: hsl(var(--muted) / 0.5);
}
.preview-frame-dots { display: flex; gap: 0.375rem; }
.preview-frame-dots span {
  width: 10px; height: 10px; border-radius: 999px;
  background: hsl(var(--border));
}
.preview-iframe {
  width: 100%;
  aspect-ratio: 16/10;
  background: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* fake tenant preview content */
.fake-tenant-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 1rem;
  background: hsl(var(--primary));
  color: white;
}
.fake-tenant-hero {
  flex: 1;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: center;
}
.fake-tenant-logo {
  width: 40px; height: 40px; border-radius: 8px;
  background: hsl(var(--primary));
  color: white;
  display: grid; place-items: center;
  font-weight: 800;
}

.approve-stack {
  display: flex; flex-direction: column;
  gap: 0.75rem;
}
.approve-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--card));
}
.approve-row.is-on  { border-color: hsl(var(--success)); background: hsl(var(--success) / 0.04); }
.approve-row.is-off { border-color: hsl(var(--warning) / 0.5); background: hsl(var(--warning) / 0.04); }
.approve-row-label { display: flex; flex-direction: column; gap: 0.125rem; }
.approve-row-title { font-weight: 600; font-size: 0.9rem; }
.approve-row-desc  { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.switch {
  width: 42px; height: 24px;
  background: hsl(var(--border));
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 150ms;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 150ms;
}
.switch.is-on { background: hsl(var(--success)); }
.switch.is-on::after { transform: translateX(18px); }

/* ============== Quality gate widget ============== */

.qgate {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  padding: 1.25rem;
  display: flex; flex-direction: column;
  gap: 0.75rem;
}
.qgate-head { display: flex; align-items: center; justify-content: space-between; }
.qgate-score {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.qgate-score-out { font-size: 1rem; color: hsl(var(--muted-foreground)); font-weight: 500; }
.qgate.pass .qgate-score { color: hsl(var(--success)); }
.qgate.fail .qgate-score { color: hsl(var(--destructive)); }

.qgate-bar {
  height: 8px;
  background: hsl(var(--muted));
  border-radius: 999px;
  overflow: hidden;
}
.qgate-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 400ms ease-out;
}
.qgate.pass .qgate-bar > span { background: linear-gradient(90deg, hsl(var(--success)), hsl(160 84% 50%)); }
.qgate.fail .qgate-bar > span { background: linear-gradient(90deg, hsl(var(--destructive)), hsl(0 80% 70%)); }

.qgate-checks {
  display: flex; flex-direction: column;
  gap: 0.375rem;
  font-size: 0.825rem;
}
.qgate-check { display: flex; align-items: center; gap: 0.5rem; }
.qgate-check.ok   { color: hsl(var(--success)); }
.qgate-check.fail { color: hsl(var(--destructive)); }
.qgate-check.ok::before   { content: "✓"; font-weight: 800; }
.qgate-check.fail::before { content: "✗"; font-weight: 800; }

/* ============== Regenerate counter ============== */

.regen-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--card));
}
.regen-info { display: flex; flex-direction: column; font-size: 0.825rem; }
.regen-tier {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}
.regen-quota { font-weight: 600; color: hsl(var(--foreground)); }
.regen-bar.is-empty .regen-quota { color: hsl(var(--destructive)); }

.regen-dots { display: flex; gap: 0.25rem; align-items: center; }
.regen-dots > span {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: hsl(var(--success));
}
.regen-dots > span.spent { background: hsl(var(--border)); }

/* ============== Lifecycle progress ============== */

.lifecycle {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .lifecycle-stages { grid-template-columns: 1fr 1fr; }
}
.lifecycle-stage {
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: hsl(var(--muted));
  display: flex; flex-direction: column;
  gap: 0.375rem;
  border: 2px solid transparent;
  transition: all 250ms ease-out;
}
.lifecycle-stage .stage-name {
  font-weight: 700;
  font-size: 0.825rem;
}
.lifecycle-stage .stage-meta {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
}
.lifecycle-stage.done {
  background: hsl(var(--success) / 0.08);
  border-color: hsl(var(--success) / 0.3);
}
.lifecycle-stage.active {
  background: hsl(var(--primary) / 0.08);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
}
.lifecycle-stage.failed {
  background: hsl(var(--destructive) / 0.08);
  border-color: hsl(var(--destructive));
}

.lifecycle-progress {
  height: 8px;
  background: hsl(var(--muted));
  border-radius: 999px;
  overflow: hidden;
}
.lifecycle-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--kite-sky)), hsl(var(--kite-orange)));
  border-radius: 999px;
  transition: width 600ms ease-out;
  position: relative;
}
.lifecycle-progress > span::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}

/* ============== Buttons ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 150ms;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.4); }
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-secondary:hover { background: hsl(var(--muted)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--muted)); }
.btn-disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.wiz-foot {
  position: sticky;
  bottom: 0;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid hsl(var(--border));
  padding: 0.875rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}

/* ============== Modals ============== */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  z-index: 50;
  padding: 1rem;
}
.modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft-xl);
}
.modal h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ============== Misc ============== */

.tier-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.tier-free       { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.tier-basic      { background: hsl(170 70% 60% / 0.18); color: hsl(170 70% 35%); }
.tier-pro        { background: hsl(217 91% 60% / 0.15); color: hsl(217 91% 50%); }
.tier-premium    { background: hsl(280 80% 60% / 0.15); color: hsl(280 80% 50%); }
.tier-enterprise { background: linear-gradient(135deg, hsl(45 90% 55%), hsl(25 95% 53%)); color: white; }

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--success));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-lg);
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem;
}

.char-counter {
  font-size: 0.7rem; font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
  text-align: right;
  margin-top: 0.25rem;
}
.char-counter.warn { color: hsl(var(--warning)); }
.char-counter.over { color: hsl(var(--destructive)); }

.advanced-banner {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, hsl(45 90% 55% / 0.1), hsl(25 95% 53% / 0.1));
  border: 1px solid hsl(45 90% 55% / 0.4);
  font-size: 0.825rem;
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
</content>
</invoke>