/* ============================================================
   PaCE Notes — Dossier theme
   Warm-black bg · lighter cards · white inputs · gold accent
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* surfaces */
  --bg:        oklch(0.20 0.010 68);
  --bg-2:      oklch(0.24 0.010 68);
  --surface:   oklch(0.30 0.010 68);
  --surface-2: oklch(0.35 0.010 68);
  --surface-3: oklch(0.40 0.010 68);

  /* ink */
  --ink:   oklch(0.97 0.005 80);
  --ink-2: oklch(0.82 0.008 75);
  --ink-3: oklch(0.62 0.008 75);
  --ink-4: oklch(0.46 0.008 75);

  /* lines */
  --line:   oklch(0.38 0.008 70);
  --line-2: oklch(0.32 0.008 70);

  /* gold */
  --gold:      oklch(0.74 0.10 75);
  --gold-2:    oklch(0.70 0.10 70);
  --gold-soft: oklch(0.74 0.10 75 / 0.14);
  --gold-ring: oklch(0.74 0.10 75 / 0.28);
  --gold-line: oklch(0.62 0.10 70);

  /* light input fields */
  --field-bg:          oklch(0.97 0.004 80);
  --field-text:        oklch(0.16 0.02 60);
  --field-muted:       oklch(0.52 0.01 70);
  --field-border:      oklch(0.84 0.006 70);
  --field-border-hover:oklch(0.72 0.01 70);

  /* signal */
  --ok:           oklch(0.74 0.13 155);
  --ok-soft:      oklch(0.74 0.13 155 / 0.14);
  --danger:       oklch(0.70 0.18 25);
  --danger-soft:  oklch(0.70 0.18 25 / 0.12);
  --danger-ring:  oklch(0.70 0.18 25 / 0.28);

  /* status */
  --success-bg:     oklch(0.74 0.13 155 / 0.09);
  --success-border: oklch(0.74 0.13 155 / 0.35);
  --success-text:   oklch(0.82 0.13 155);
  --error-bg:       oklch(0.55 0.2 25 / 0.09);
  --error-border:   oklch(0.65 0.2 25 / 0.32);
  --error-text:     oklch(0.78 0.18 25);
  --warn-bg:        oklch(0.74 0.10 75 / 0.09);
  --warn-border:    oklch(0.70 0.10 70 / 0.35);
  --warn-text:      oklch(0.84 0.10 75);

  /* radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   26px;
  --r-pill: 999px;

  /* shadow */
  --sh-sm:
    0 1px 0 oklch(1 0 0 / 0.05) inset,
    0 4px 12px -4px oklch(0 0 0 / 0.45);
  --sh-card:
    0 1px 0 oklch(1 0 0 / 0.06) inset,
    0 20px 48px -20px oklch(0 0 0 / 0.65),
    0 8px 20px -12px oklch(0 0 0 / 0.40);

  /* fonts */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Base ──────────────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 110% 80% at 15% -10%, oklch(0.55 0.08 78 / 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 90% 70% at 92% 95%, oklch(0.50 0.075 72 / 0.50) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 60% 50%, oklch(0.35 0.05 75 / 0.18) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.004em;
}

a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; color: inherit; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────── */

.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, oklch(0.28 0.005 70), oklch(0.19 0.005 70));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.brand-mark::after {
  content: "";
  width: 11px; height: 11px;
  border: 1.5px solid var(--gold);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg) translateY(2px);
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.subtitle {
  font-size: 0.72rem;
  color: var(--ink-4);
  margin-top: 1px;
  letter-spacing: 0.01em;
}

.header-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.975rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ── Header nav ────────────────────────────────────────── */

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

.nav-remaining {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: oklch(0.74 0.10 75 / 0.10);
  border: 1px solid oklch(0.74 0.10 75 / 0.30);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.nav-remaining.remaining-low {
  color: var(--error-text);
  background: oklch(0.70 0.18 25 / 0.10);
  border-color: oklch(0.70 0.18 25 / 0.30);
}

.nav-link, .btn-lock {
  padding: 7px 16px;
  height: 34px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .btn-lock:hover {
  background: oklch(0.24 0.006 70 / 0.7);
  color: var(--ink);
  border-color: var(--line);
}

/* ── Content ───────────────────────────────────────────── */

.content {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Cards ─────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

/* inset top highlight */
.card::before {
  content: "";
  position: absolute;
  left: 20px; right: 20px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.08), transparent);
  pointer-events: none;
}

.card-header {
  padding: 28px 32px 0;
  margin-bottom: 24px;
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 5px;
  line-height: 1.1;
}

.card-intro {
  color: var(--ink-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ── AI notice ─────────────────────────────────────────── */

.ai-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 32px 20px;
  padding: 12px 16px;
  background: oklch(0.74 0.10 75 / 0.06);
  border: 1px solid oklch(0.74 0.10 75 / 0.20);
  border-radius: var(--r-md);
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.55;
}
.ai-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  opacity: 0.7;
}
.ai-notice strong { color: var(--ink-2); font-weight: 600; }

/* ── Form (inside card) ────────────────────────────────── */

form {
  padding: 0 32px 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

/* White select */
.field select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  color: var(--field-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B6B45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}
.field select option { background: oklch(0.18 0.006 65); color: var(--ink); }
.field select.invalid { border-color: var(--danger); }

/* White textarea */
.field textarea {
  width: 100%;
  padding: 16px 20px 44px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  color: var(--field-text);
  line-height: 1.65;
  resize: vertical;
  min-height: 200px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}
.field textarea::placeholder { color: var(--field-muted); font-size: 0.8rem; }
.field textarea.invalid { border-color: var(--danger); }

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}

.form-actions { margin-top: 4px; }

/* ── Buttons ───────────────────────────────────────────── */

/* Primary: gold pill */
.btn-generate {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, oklch(0.78 0.10 75), oklch(0.68 0.10 70));
  color: oklch(0.17 0.02 60);
  border: 1px solid oklch(0.58 0.10 70);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.22) inset,
    0 8px 24px -8px oklch(0.60 0.10 70 / 0.55);
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s;
  white-space: nowrap;
}
.btn-generate:hover:not(:disabled) {
  background: linear-gradient(180deg, oklch(0.82 0.10 75), oklch(0.72 0.10 70));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.25) inset,
    0 12px 28px -8px oklch(0.60 0.10 70 / 0.65);
}
.btn-generate:active:not(:disabled) { transform: translateY(1px); }
.btn-generate:disabled { opacity: 0.42; cursor: not-allowed; }

/* Secondary: ghost pill */
.btn-secondary {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: oklch(0.24 0.006 70 / 0.7);
  color: var(--ink);
}

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid oklch(0.17 0.02 60 / 0.3);
  border-top-color: oklch(0.17 0.02 60);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ── Field disabled state ──────────────────────────────── */

#rank:disabled,
#narrative:disabled {
  background: oklch(0.22 0.006 68);
  color: var(--ink-4);
  cursor: not-allowed;
  opacity: 1;
  border-color: var(--line-2);
}

/* ── Status area ───────────────────────────────────────── */

#statusArea { padding: 0 32px 28px; }

.status-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid;
}

.status-block.loading {
  background: oklch(0.22 0.006 70 / 0.5);
  border-color: var(--line);
  align-items: center;
}

.status-block.precheck-fail {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.status-block.error {
  background: var(--error-bg);
  border-color: var(--error-border);
}

.status-icon-wrap {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.status-icon-wrap.warn { background: oklch(0.74 0.10 75 / 0.15); color: var(--warn-text); }
.status-icon-wrap.err  { background: oklch(0.70 0.18 25 / 0.15); color: var(--error-text); }

.status-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.precheck-fail .status-title { color: var(--warn-text); }
.error .status-title         { color: var(--error-text); }
.status-sub { font-size: 0.85rem; color: var(--ink-3); }
.precheck-fail .status-sub { color: var(--warn-text); opacity: 0.85; }
.error .status-sub         { color: var(--error-text); opacity: 0.9; }

/* spinner (large) */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid oklch(0.74 0.10 75 / 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text  { display: flex; flex-direction: column; gap: 3px; }
.loading-stage { font-weight: 600; color: var(--gold); font-size: 0.875rem; }
.loading-sub   { font-size: 0.8rem; color: var(--ink-3); }

/* ── Precheck list ─────────────────────────────────────── */

.precheck-content { flex: 1; min-width: 0; }

.precheck-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.precheck-item {
  padding: 10px 14px;
  background: oklch(0.74 0.10 75 / 0.07);
  border: 1px solid oklch(0.74 0.10 75 / 0.22);
  border-radius: var(--r-sm);
}
.precheck-item strong { display: block; font-size: 0.8rem; color: var(--warn-text); margin-bottom: 2px; }
.precheck-item p  { font-size: 0.78rem; color: var(--warn-text); opacity: 0.85; margin-bottom: 2px; }
.precheck-item em { font-size: 0.75rem; color: var(--warn-text); opacity: 0.7; font-style: italic; }

/* ── Result card ───────────────────────────────────────── */

.result-card { padding: 0; }

.result-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  flex-wrap: wrap;
}

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

.result-actions .btn-generate {
  height: 38px;
  padding: 0 18px;
  font-size: 0.72rem;
}

/* ── Note output ───────────────────────────────────────── */

.note-output {
  padding: 30px 32px 36px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.note-output h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px;
  margin-bottom: 24px;
  letter-spacing: 0;
}
.note-output h2 {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.note-output h3 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.note-output p      { margin: 8px 0; }
.note-output ul     { padding-left: 22px; margin: 8px 0; }
.note-output li     { margin-bottom: 5px; }
.note-output hr     { border: none; border-top: 1px solid var(--line-2); margin: 24px 0; }
.note-output strong { font-weight: 600; color: var(--ink); }
.note-output em     { color: var(--ink-2); font-style: italic; font-size: 1em; }
.note-output blockquote {
  border-left: 2px solid oklch(0.62 0.10 70 / 0.5);
  padding: 10px 16px;
  margin: 10px 0 14px;
  color: var(--ink-3);
  font-style: italic;
  background: oklch(0.26 0.018 70 / 0.6);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.note-output blockquote strong {
  color: var(--ink-3);
  font-weight: 600;
}

/* ── Tips card ─────────────────────────────────────────── */

.tips-card {
  padding: 4px 0 8px;
  margin-top: 14px;
}

.tips-heading {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  padding: 0 4px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.tips-list {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.tips-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
}
.tips-row:last-child { border-bottom: 1px solid var(--line); }

.tips-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.tips-row dd {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  text-align: center;
  padding: 16px 24px;
  font-size: 0.72rem;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}

/* ── Auth pages ────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 20% 0%, oklch(0.18 0.012 65) 0%, transparent 60%),
    radial-gradient(60% 50% at 90% 100%, oklch(0.16 0.02 60) 0%, transparent 60%),
    var(--bg);
  padding: 28px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  left: 20px; right: 20px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.08), transparent);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, oklch(0.28 0.005 70), oklch(0.19 0.005 70));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.auth-brand .brand-mark::after {
  content: "";
  width: 10px; height: 10px;
  border: 1.5px solid var(--gold);
  border-bottom: none; border-right: none;
  transform: rotate(45deg) translateY(2px);
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 26px;
  line-height: 1.1;
}

/* Auth inputs — white */
.auth-card .field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  color: var(--field-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card .field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}
.auth-card .field input::placeholder { color: var(--field-muted); }

/* Auth labels */
.auth-card label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-error {
  font-size: 0.82rem;
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  margin-bottom: 16px;
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.auth-footer a { color: var(--gold); font-weight: 500; }
.auth-footer a:hover { color: oklch(0.78 0.10 75); }

/* ── Minimal nav (pricing / settings pages) ────────────── */

.minimal-header {
  background: var(--bg-2);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}

.minimal-header-inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.minimal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.minimal-brand .brand-mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, oklch(0.28 0.005 70), oklch(0.19 0.005 70));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.minimal-brand .brand-mark::after {
  content: "";
  width: 9px; height: 9px;
  border: 1.5px solid var(--gold);
  border-bottom: none; border-right: none;
  transform: rotate(45deg) translateY(1.5px);
}

.minimal-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

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

/* ── Checkout banner ───────────────────────────────────── */

.checkout-banner {
  background: var(--ok-soft);
  border: 1px solid var(--success-border);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success-text);
  text-align: center;
}

/* ── Plan chip ─────────────────────────────────────────── */

.plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-ring);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Cancel chip ───────────────────────────────────────── */

.cancel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warn-text);
}

/* ── Danger button ─────────────────────────────────────── */

.btn-danger {
  padding: 9px 20px;
  background: transparent;
  color: var(--error-text);
  border: 1px solid var(--error-border);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover     { background: var(--error-bg); }
.btn-danger:disabled  { opacity: 0.4; cursor: not-allowed; }

/* ── Skeleton shimmer ──────────────────────────────────── */

.skeleton {
  display: inline-block;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
  vertical-align: middle;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Confirm row ───────────────────────────────────────── */

.confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.confirm-label { font-size: 0.875rem; color: var(--ink-3); }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 560px) {
  .site-header   { padding: 0 16px; }
  .content       { padding: 10px 12px 28px; }
  .card-header   { padding: 16px 16px 0; margin-bottom: 16px; }
  .ai-notice     { margin: 0 16px 16px; }
  form           { padding: 0 16px 16px; }
  #statusArea    { padding: 0 16px 16px; }
  .note-output   { padding: 16px 16px 22px; }
  .result-header { padding: 10px 16px; gap: 6px; }
  .result-actions { gap: 6px; }
  .result-actions .btn-secondary,
  .result-actions .btn-generate { font-size: 0.7rem; padding: 0 12px; }
  .tips-card     { padding: 0 4px 8px; }
  .tips-row      { padding: 10px 0; }
  .field         { margin-bottom: 14px; }
}
