/* ==========================================================================
   Project brief — draft-project/
   A light, paper-like worksheet on a soft gray desk, with a dark chrome.
   ========================================================================== */

:root {
  --ink: #15171c;
  --ink-soft: #3c424d;
  --brief-value: #4b5260;
  --muted: #6f7682;
  --muted-light: #9aa0aa;
  --paper: #ffffff;
  --page: #eceff3;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --gold: #e8c56a;
  --gold-ink: #8a6400;
  --gold-line: rgba(184, 134, 11, 0.32);
  --gold-soft: #fbf6e7;
  --black: #0b0b0c;
  --black-2: #14151a;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #067647;
  --ok-soft: #eaf7f0;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-paper: 0 1px 2px rgba(16, 24, 40, 0.04), 0 28px 70px -24px rgba(16, 24, 40, 0.24);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.42);
  --footer-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(232, 197, 106, 0.45);
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.auth-page :focus-visible,
.doc-footer :focus-visible {
  outline-color: var(--gold);
}

/* ---- Shared bits ------------------------------------------------------- */

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: var(--gold);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 700;
}

.skip:focus {
  left: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow--gold {
  color: var(--gold);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}

.eyebrow-row .eyebrow {
  margin: 0;
}

.info-tip {
  position: relative;
  display: inline-flex;
  flex: none;
}

.info-tip-trigger {
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--gold-ink);
  opacity: 0.75;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.info-tip-trigger .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.info-tip-trigger:hover,
.info-tip-trigger[aria-expanded="true"] {
  opacity: 1;
}

.info-tip-panel {
  position: fixed;
  z-index: 260;
  width: min(460px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid #343741;
  border-radius: 12px;
  background: #1a1b21;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #c7cbd3;
}

.info-tip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #1a1b21;
  border: 1px solid #343741;
  transform: rotate(45deg);
}

.info-tip-panel[data-placement="below"] .info-tip-arrow {
  top: -7px;
  border-right: 0;
  border-bottom: 0;
}

.info-tip-panel[data-placement="above"] .info-tip-arrow {
  bottom: -7px;
  border-top: 0;
  border-left: 0;
}

.info-tip-panel[data-placement="right"] .info-tip-arrow {
  left: -7px;
  border-top: 0;
  border-right: 0;
}

.info-tip-title {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #f4f5f7;
}

.info-tip-body p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d7dbe1;
}

.info-tip-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2c2e36;
}

.info-tip-links-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aab0bb;
}

.info-tip-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 197, 106, 0.35);
  text-underline-offset: 2px;
}

.info-tip-link-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  opacity: 0.85;
}

.info-tip-links a:hover {
  color: #f1d47f;
  text-decoration-color: currentColor;
}

.field {
  display: block;
  margin: 0 0 24px;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #2b303a;
}

.label-note {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted-light);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-input {
  position: relative;
  display: block;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfbfc;
  color: var(--ink);
  padding: 11px 13px;
  font-size: 0.94rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.input::placeholder {
  color: #a3a9b3;
}

.input:hover {
  border-color: var(--line-strong);
}

.input:focus {
  border-color: var(--gold-ink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.22);
}

.textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.65;
}

.hint {
  margin: 7px 0 0;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.55;
  color: #6c7380;
}

.hint--spaced {
  margin-top: 14px;
}

.text-link {
  color: var(--gold-ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.budget-fields.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn.is-busy {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.auth-form.is-submitting .btn {
  opacity: 0.7;
  pointer-events: none;
}

.btn--full {
  width: 100%;
}

.btn--gold {
  background: var(--gold);
  color: #14120b;
  box-shadow: 0 8px 20px rgba(232, 197, 106, 0.18);
}

.btn--gold:hover {
  background: #f0d27e;
}

.btn--dark {
  background: var(--black);
  color: #ffffff;
}

.btn--dark:hover {
  background: #23252b;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #f6f7f9;
  border-color: var(--line-strong);
}

.btn--danger {
  background: var(--danger);
  color: #ffffff;
}

.btn--danger:hover {
  background: #992018;
}

.alert {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 0.82rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.alert--error {
  background: var(--danger-soft);
  border-color: rgba(180, 35, 24, 0.2);
  color: #8f1d14;
}

.alert--success {
  background: var(--ok-soft);
  border-color: rgba(6, 118, 71, 0.18);
  color: #05603a;
}

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #08090b;
  color: #e9ebef;
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 55% at 18% 8%, rgb(224 164 7 / 10%), transparent 64%), linear-gradient(103deg, rgb(0 0 0 / 69%) 0%, rgb(20 19 11 / 41%) 100%), url(../media/bg-4.jpg) center / cover no-repeat;
    filter: blur(1px) saturate(1);
    transform: scale(1.2);
}

.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
}

.auth-top {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--black);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f95a1;
}

.brand--dark .brand-mark {
  background: var(--gold);
  color: var(--black);
}

.brand--dark .brand-copy strong {
  color: #f4f5f7;
}

.brand--dark .brand-copy small {
  color: #aab0bb;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c3c8d1;
  transition: color 0.18s ease;
}

.auth-back .icon {
  width: 15px;
  height: 15px;
}

.auth-back:hover {
  color: #ffffff;
}

.auth-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 28px 0 58px;
}

.auth-shell--center {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  align-content: center;
}

.auth-editorial {
  max-width: 560px;
}

.auth-editorial .info-tip-trigger {
  color: var(--gold);
}

.info-tip--card {
  display: none;
}

@media (max-width: 900px) {
  .info-tip--card {
    display: inline-flex;
  }
}

.auth-editorial-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-wrap: balance;
  font-family: var(--sans);
      font-size: clamp(2.5rem, 3.6vw, 4.15rem);
      font-weight: bold;
      line-height: 60px;
span{
    font-size: 50px;
        font-family: var(--serif);
        font-weight: normal;
        word-spacing: 5px;
}
}

.auth-editorial-lede {
  max-width: 46ch;
  margin: 0;
  color: #c3c8d1;
  font-size: 0.98rem;
  line-height: 1.75;
}

.auth-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
}

.auth-checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 197, 106, 0.14);
  color: var(--gold);
}

.auth-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.auth-checklist strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: #f0f2f5;
}

.auth-checklist small {
  display: block;
  margin-top: 4px;
  font-size: 0.77rem;
  line-height: 1.5;
  color: #eaeaea;
}

.auth-free-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  color: #c3c8d1;
  font-size: 0.9rem;
}

.auth-free-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(232, 197, 106, 0.45);
  border-radius: 999px;
  background: rgba(232, 197, 106, 0.12);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.auth-card {
 width: 100%;
 border-radius: 8px;
 background: rgb(0 0 0 / 21%);
     -webkit-backdrop-filter: blur(18px);
     backdrop-filter: blur(8px);
     color: var(--ink);
     border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 4vw, 42px);
}

.auth-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #111318;
  text-wrap: balance;
}

.auth-sub {
  margin: 0 0 22px;
  color: #5b6370;
  font-size: 14px;
  line-height: 21px;
}

.auth-sub strong {
  color: #242830;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .field {
  margin-bottom: 0;
}

.auth-form .label {
  margin-bottom: 7px;
}

.auth-form .input {
  background: #ffffff;
  border-color: #dfe3e9;
  padding: 12px 13px;
}

.auth-form .input:focus {
  border-color: var(--gold-ink);
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b818c;
}

.password-toggle:hover {
  background: #f1f3f6;
  color: var(--ink);
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-help {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #7b818c;
  text-align: center;
}

.auth-callout {
  display: flex;
  gap: 11px;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid #ece2c8;
  border-radius: 10px;
  background: #f7f2e3;
  font-size: 0.79rem;
  line-height: 1.6;
  color: #5d5747;
}

.auth-callout-icon {
  color: var(--gold-ink);
  flex: none;
  margin-top: 1px;
}

.auth-callout p {
  margin: 0;
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.auth-actions--stack {
  flex-direction: column;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9aa0aa;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e8ec;
}

.auth-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #6f7682;
}

.auth-perks .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--gold-ink);
}

.auth-switch {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
  color: #7b818c;
}

.auth-switch a {
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Dark-surface auth card */
.auth-card {
  color: #e9ebef;
}

.auth-card .eyebrow {
  color: var(--gold);
}

.auth-card .auth-title {
  color: #f4f5f7;
}

.auth-card .auth-sub {
  color: #cbd0d8;
}

.auth-card .auth-sub strong {
  color: #ffffff;
}

.auth-sub.desktop-only {
  display: block;
}

.auth-sub.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .auth-sub.desktop-only {
    display: none;
  }

  .auth-sub.mobile-only {
    display: block;
  }
}

.auth-card .label {
  color: #e4e7ec;
}

.auth-card .label-note {
  color: #b3b9c3;
}

.auth-card .text-link,
.auth-card .auth-switch a {
  color: var(--gold);
}

.auth-card .auth-form .input {
  background: transparent;
  border-color:#9aa0aa;
  color: #f4f5f7;
}

.auth-card .auth-form .input::placeholder {
  color: #9fa6b2;
}

.auth-card .auth-form .input:hover {
  border-color: #4a4e5a;
}

.auth-card .auth-form .input:focus {
  background:rgba(0, 0, 0, 0.18);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.18);
}

.auth-card .auth-form .input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #15161a inset;
  -webkit-text-fill-color: #f4f5f7;
  caret-color: #f4f5f7;
}

.auth-card .password-toggle {
  color: #9aa0aa;
}

.auth-card .password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.auth-card .hint,
.auth-card .auth-help,
.auth-card .auth-divider,
.auth-card .auth-switch {
  color: #b3b9c3;
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  background: rgba(255, 255, 255, 0.14);
}

.auth-card .auth-callout {
  border-color: rgba(232, 197, 106, 0.24);
  background: rgba(232, 197, 106, 0.08);
  color: #d5d9df;
}

.auth-card .auth-callout strong {
  color: #f4f5f7;
}

.auth-card .auth-callout-icon {
  color: var(--gold);
}

.auth-card .auth-perks li {
  color: #c3c8d1;
}

.auth-card .auth-perks .icon {
  color: var(--gold);
}

.auth-card .btn--dark {
  background: var(--gold);
  color: #17181b;
}

.auth-card .btn--dark:hover {
  background: #f1d47f;
}

.auth-card .btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #e9ebef;
}

.auth-card .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-card .alert--error {
  background: rgba(180, 35, 24, 0.16);
  border-color: rgba(240, 146, 138, 0.3);
  color: #f3b4ae;
}

.auth-card .alert--success {
  background: rgba(6, 118, 71, 0.18);
  border-color: rgba(146, 211, 173, 0.3);
  color: #a9e7c5;
}

.auth-card .info-tip-trigger {
  color: var(--gold);
}

.auth-result-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
}

.auth-result-icon .icon {
  width: 26px;
  height: 26px;
}

.auth-result-icon--success {
  background: var(--ok-soft);
  color: var(--ok);
}

.auth-result-icon--warn {
  background: #fdf1e7;
  color: #b54708;
}

.auth-foot {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.7rem;
  color: #f0f2f5;
}

/* ==========================================================================
   App header
   ========================================================================== */

.app-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(255, 255, 255, 0.85), transparent 70%),
    var(--page);
  padding-bottom: calc(var(--footer-h) + 26px);
}

/* Keep the chat launcher clear of the fixed document footer. */
.app-page .cw-fab {
  bottom: calc(var(--footer-h) + 18px);
}

.app-page .cw-panel {
  bottom: calc(var(--footer-h) + 92px);
  max-height: calc(100dvh - var(--footer-h) - 120px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(216, 220, 227, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-header-inner {
  width: min(1180px, 94vw);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand--app .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.15rem;
}

.brand--app .brand-copy strong {
  font-size: 0.8rem;
}

.brand--app .brand-copy small {
  font-size: 0.6rem;
}

.app-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex: none;
}

.welcome {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.welcome-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9096a1;
}

.welcome strong {
  margin-top: 4px;
  max-width: 260px;
  color: #242830;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}

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

.app-header .info-tip-trigger {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #5f6672;
  opacity: 0.9;
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.app-header .info-tip-trigger:hover,
.app-header .info-tip-trigger[aria-expanded="true"] {
  color: #15171c;
  background: rgba(21, 23, 28, 0.06);
}

.app-header .info-tip-trigger .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}


.account {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #6f7682;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-trigger:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}

.account-trigger > .icon {
  width: 18px;
  height: 18px;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 0.86rem;
}

.avatar--icon {
  border-radius: 4px;
  background: #eef0f4;
  color: #5f6672;
}

.avatar--icon .icon {
  width: 17px;
  height: 17px;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 70;
  width: 282px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(16, 24, 40, 0.2);
  animation: menuIn 0.16s var(--ease);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.account-menu-head div {
  min-width: 0;
}

.account-menu-head strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: #242830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-head small {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: #8a909b;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #30353e;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
}

.menu-item .icon {
  width: 16px;
  height: 16px;
  color: #8a909b;
}

.menu-item:hover {
  background: #f5f6f8;
}

.menu-item--danger {
  color: var(--danger);
}

.menu-item--danger .icon {
  color: var(--danger);
}

.menu-item--danger:hover {
  background: var(--danger-soft);
}

.menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

/* ==========================================================================
   Document
   ========================================================================== */

.doc-shell {
  width: min(1180px, 94vw);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 130px);
  padding: 8px 0 18px;
  overflow-y: auto;
  min-width: 0;
}

.doc-nav-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15171c;
}

.doc-nav-title-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: #15171c;
}

.doc-nav-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e3e6eb;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #6f7682;
}

.doc-nav-note strong {
  color: #3c424d;
  font-weight: 700;
}

.doc-nav-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.doc-nav-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #dfe3e9;
}

.doc-nav-list li {
  position: relative;
}

.doc-nav-list a {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px;
  padding: 7px 0;
  color: #5f6672;
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}

.doc-nav-list a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 13px;
  width: 7px;
  height: 7px;
  border: 1px solid #cfd4dc;
  border-radius: 50%;
  background: var(--page);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.doc-nav-list a span {
  padding-top: 1px;
  color: #8a909b;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.18s ease;
}

.doc-nav-list a:hover {
  color: #242830;
}

.doc-nav-list a:hover::before {
  border-color: #a9b0bb;
}

.doc-nav-list a.is-active {
  color: #17181b;
  font-weight: 650;
}

.doc-nav-list a.is-active span {
  color: #3c424d;
}

.doc-nav-list a.is-active::before {
  border-color: #17181b;
  background: #17181b;
  box-shadow: 0 0 0 3px rgba(21, 23, 28, 0.12);
}

.doc-nav-sub {
  list-style: none;
  margin: 1px 0 3px;
  padding: 0 0 0 22px;
  position: relative;
}

.doc-nav-sub::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  bottom: 6px;
  width: 1px;
  background: #e7eaee;
}

.doc-nav-sub li[hidden] {
  display: none !important;
}

.doc-nav-sub a {
  position: relative;
  display: block;
  padding: 4px 0;
  color: #6f7682;
  font-size: 0.68rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}

.doc-nav-sub a::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: 1px solid #cfd4dc;
  border-radius: 50%;
  background: var(--page);
}

.doc-nav-sub a:hover {
  color: #242830;
}

.doc-nav-sub a.is-active {
  color: #17181b;
  font-weight: 650;
}

.doc-nav-parent:has(.doc-nav-sub a.is-active) > a {
  color: #17181b;
  font-weight: 650;
}

.doc-nav-parent:has(.doc-nav-sub a.is-active) > a span {
  color: #3c424d;
}

.doc-nav-features {
  position: relative;
  margin: 0 0 5px;
  padding: 0 0 0 15px;
  list-style: none;
}

.doc-nav-features::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  bottom: 4px;
  width: 1px;
  background: #e7eaee;
}

.doc-nav-features li[hidden] {
  display: none !important;
}

.doc-nav-features a {
  position: relative;
  display: block;
  max-width: 100%;
  padding: 3px 0;
  overflow: hidden;
  color: #6f7682;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.doc-nav-features a::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border: 0;
  border-radius: 50%;
  background: #cfd4dc;
  box-shadow: none;
}

.doc-nav-features a:hover {
  color: #242830;
}

.doc-nav-features a.is-active {
  color: #17181b;
  font-weight: 650;
}

.doc-nav-features a.is-active::before {
  background: #17181b;
  box-shadow: none;
}

.doc-nav-sub > li:has(.doc-nav-features a.is-active) > a {
  color: #17181b;
  font-weight: 650;
}

.doc-nav-sub > li:has(.doc-nav-features a.is-active) > a::before {
  border-color: #17181b;
  background: #17181b;
}

.feature-card,
.read-feature {
  scroll-margin-top: 96px;
}

.doc {
  width: 100%;
  padding: clamp(30px, 5.5vw, 68px);
  border: 1px solid rgba(16, 24, 40, 0.05);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.doc-head {
  padding-bottom: 30px;
}

.doc-date {
  margin: 0 0 16px;
  color: #9aa0aa;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.doc-kicker .icon {
  width: 15px;
  height: 15px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--draft {
  background: #f3f4f6;
  color: #6f7682;
}

.status-pill--sent {
  background: var(--ok-soft);
  color: var(--ok);
}

.doc-title {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #111318;
  text-wrap: balance;
}

.doc-sub {
  max-width: 60ch;
  margin: 0;
  color: #5c6370;
  font-size: 0.98rem;
  line-height: 1.7;
}

.doc-prepared {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.75rem;
  color: #8a909b;
}

.doc-prepared strong {
  color: #3c424d;
  font-weight: 600;
}

.doc-prepared-dot {
  color: #c4c8cf;
}

.section {
  padding: 34px 0;
  border-top: 1px solid #eceef2;
  scroll-margin-top: 92px;
}

.section:last-of-type {
  padding-bottom: 20px;
}

.section-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

.section-num {
  padding-top: 6px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold-ink);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #111318;
}

.section-hint {
  max-width: 62ch;
  margin: 7px 0 0;
  color: #5c6370;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ---- Choices and products --------------------------------------------- */

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

.choice-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfc;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice:hover {
  border-color: var(--line-strong);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-mark {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border: 1.5px solid #c4c9d2;
  border-radius: 50%;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.choice:has(input:checked),
.choice.is-checked {
  border-color: var(--gold-ink);
  background: #fdfaf0;
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.15);
}

.choice:has(input:checked) .choice-mark,
.choice.is-checked .choice-mark {
  border-color: var(--gold-ink);
  box-shadow: inset 0 0 0 4px #ffffff;
  background: var(--gold-ink);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}

.choice-copy strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 650;
  color: #2b303a;
}

.choice-copy small {
  display: block;
  margin-top: 3px;
  font-size: 0.73rem;
  line-height: 1.45;
  color: #7c828d;
}

.money-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfbfc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.money-wrap:focus-within {
  border-color: var(--gold-ink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.22);
}

.money-prefix {
  padding-left: 13px;
  color: #8a909b;
  font-size: 0.9rem;
}

.money-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 8px;
  color: var(--ink);
  font-size: 0.94rem;
}

.money-input::placeholder {
  color: #a3a9b3;
}

.money-suffix {
  padding-right: 13px;
  color: #8a909b;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfc;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
}

.product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-card:has(input:checked),
.product-card.is-checked {
  border-color: var(--gold-ink);
  background: #fdfaf0;
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.15);
}

.product-card:has(input:focus-visible) {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}

.product-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f2f5;
  color: #5c6370;
}

.product-icon .icon {
  width: 19px;
  height: 19px;
}

.product-copy strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 650;
  color: #2b303a;
}

.product-copy small {
  display: block;
  margin-top: 3px;
  font-size: 0.73rem;
  line-height: 1.45;
  color: #7c828d;
}

.product-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1.5px solid #c4c9d2;
  border-radius: 5px;
  background: #ffffff;
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.product-check .icon {
  width: 13px;
  height: 13px;
}

.product-card:has(input:checked) .product-check,
.product-card.is-checked .product-check {
  border-color: var(--gold-ink);
  background: var(--gold-ink);
  color: #ffffff;
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}

.platform-row:not(:has(.subchoices:not([hidden]))) {
  display: none;
}

.platform-row:has(.subchoices[hidden]) .subchoices:not([hidden]) {
  grid-column: 1 / -1;
}

.platform-row .subchoices {
  margin-top: 0;
  min-width: 0;
}

@media (max-width: 760px) {
  .platform-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.subchoices {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 11px 12px 11px 0;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: #17181b;
  overflow-x: auto;
  scrollbar-width: none;
}

.subchoices::-webkit-scrollbar {
  display: none;
}

.subchoices-label {
  flex: 0 0 auto;
  margin-right: 2px;
  color: #17181b;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.subchoices .chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 0;
  background: #f1f3f5;
  color: #17181b;
}

.subchoices .chip:hover {
  background: #e9edf1;
}

.subchoices .chip input {
  accent-color: var(--gold-ink);
}

.subchoices .chip:has(input:checked),
.subchoices .chip.is-checked {
  background: #eceff3;
  color: #17181b;
}

.subchoices .chip:has(input:checked) input,
.subchoices .chip.is-checked input {
  accent-color: var(--gold-ink);
}

@media (max-width: 520px) {
  .subchoices {
    gap: 5px;
    padding: 9px 10px 9px 0;
  }

  .subchoices-label {
    font-size: 0.66rem;
  }

  .subchoices .chip {
    gap: 4px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .subchoices .chip input {
    width: 11px;
    height: 11px;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #4b5260;
  font-size: 0.76rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip:hover {
  border-color: var(--line-strong);
}

.chip input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--gold-ink);
}

.chip:has(input:checked),
.chip.is-checked {
  border-color: #2b303a;
  background: #2b303a;
  color: #ffffff;
}

.chip:has(input:checked) input,
.chip.is-checked input {
  accent-color: var(--gold);
}

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

.note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #ece2c8;
  border-radius: 11px;
  background: #faf7ec;
}

.note-icon {
  color: var(--gold-ink);
  flex: none;
  margin-top: 1px;
}

.note-icon .icon {
  width: 19px;
  height: 19px;
}

.note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  color: #3c3524;
}

.note p {
  margin: 0 0 7px;
  font-size: 0.79rem;
  line-height: 1.65;
  color: #665f4e;
}

.note p:last-child {
  margin-bottom: 0;
}

.note .note-small {
  font-size: 0.72rem;
  color: #8a826d;
}

/* ---- Features ---------------------------------------------------------- */

.feature-suggestions {
  margin: -4px 0 18px;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.suggestion {
  padding: 6px 10px;
  border: 1px solid #e6dfca;
  border-radius: 999px;
  background: #fdfaf0;
  color: #6d5a16;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.suggestion:hover {
  background: #f8efd2;
  border-color: #d9c98f;
}

.feature-card {
  margin-bottom: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfd;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-num {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8a909b;
}

.icon-button .icon {
  width: 15px;
  height: 15px;
}

.icon-button:hover {
  border-color: var(--line);
  background: #ffffff;
  color: var(--danger);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-card .field {
  margin-bottom: 14px;
}

.feature-card .field:last-child {
  margin-bottom: 0;
}

.feature-card .input {
  background: #ffffff;
}

.add-feature {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  border: 1px dashed #d6cba6;
  border-radius: 10px;
  background: transparent;
  color: var(--gold-ink);
  font-size: 0.82rem;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.add-feature:hover {
  background: var(--gold-soft);
  border-color: #c9b878;
}

.add-feature .icon {
  width: 15px;
  height: 15px;
}

.feature-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-group-edit {
  padding-top: 18px;
  border-top: 1px solid #eceef2;
  scroll-margin-top: 92px;
}

.feature-group-edit:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-group-edit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feature-group-edit-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
  color: #20242c;
}

.feature-group-audience {
  flex: none;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa0aa;
}

.feature-group-summary {
  margin-bottom: 16px;
}

.feature-group-summary .textarea {
  min-height: 90px;
}

.feature-group-edit .add-feature {
  margin-top: 8px;
}



.feature-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eceef2;
}

.feature-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: #5f6672;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.feature-more summary::-webkit-details-marker {
  display: none;
}

.feature-more summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.feature-more summary .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #9aa0aa;
  transition: transform 0.18s ease;
}

.feature-more[open] summary .icon {
  transform: rotate(180deg);
}

.feature-more-note {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #9aa0aa;
}

.feature-more-body {
  padding-top: 14px;
}

.feature-more-body .field {
  margin-bottom: 14px;
}

.feature-questions-field .label {
  margin-bottom: 8px;
}

.feature-question {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-question .field-input {
  flex: 1;
}

.feature-question .icon-button {
  flex: none;
}

.add-question {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px dashed #d6dae1;
  border-radius: 8px;
  background: transparent;
  color: #6f7682;
  font-size: 0.72rem;
  font-weight: 600;
}

.add-question:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.add-question .icon {
  width: 13px;
  height: 13px;
}

/* ---- Closing ----------------------------------------------------------- */

.doc-tail {
  padding-top: 30px;
  border-top: 1px solid #eceef2;
}

.next-steps {
  padding: 26px;
  border-radius: 14px;
  background: var(--black);
  color: #f3f4f6;
}

.next-steps .eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
}

.next-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.next-steps li {
  display: flex;
  gap: 10px;
}

.next-steps li > span {
  flex: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
}

.next-steps strong {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
}

.next-steps p {
  margin: 5px 0 0;
  font-size: 0.73rem;
  line-height: 1.55;
  color: #a8adb7;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 20px 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #8a909b;
}

.privacy-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
}

/* ---- View mode --------------------------------------------------------- */

.view-value {
  display: none;
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--brief-value);
  white-space: pre-wrap;
}

.view-value.is-empty {
  color: #9aa0aa;
  font-style: italic;
}

.view-value--title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111318;
}

.view-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.view-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #e3e6eb;
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--brief-value);
  font-size: 0.76rem;
  font-weight: 550;
}

.view-group-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--brief-value);
}

.features-view {
  display: none;
}

.is-view .field-input,
.is-view .editable-only,
.is-view .features-edit,
.is-view .label-note,
.is-view .hint,
.is-view .section-hint {
  display: none !important;
}

.is-view .view-value {
  display: block;
}

.is-view .features-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.is-view .features-view .read-feature {
  display: block;
}

.is-view .field {
  margin-bottom: 28px;
}

.is-view .platform-row {
  display: none;
}

.is-view .label {
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #111318;
}

.is-view .section {
  padding: 30px 0;
}

.is-view .note {
  margin-top: 8px;
}

.is-view .doc-head-row .status-pill {
  opacity: 0.9;
}

/* Feature read view (also used on the public page) ----------------------- */

.read-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.read-feature {
  padding: 16px 18px;
  border: 1px solid #e7e9ee;
  border-radius: 11px;
  background: #fcfcfd;
}

.read-feature-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.read-feature-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-ink);
}

.read-feature h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.26rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: #20242c;
}

.read-feature .read-value {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--brief-value);
  white-space: pre-wrap;
}

.read-feature-meta {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--brief-value);
}

.read-feature-meta > span {
  display: block;
  margin: 0 0 3px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #111318;
}

.read-feature-detail {
  margin-top: 14px;
}

.read-feature-detail > span,
.read-feature-questions-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #111318;
}

.read-feature-detail .read-value {
  margin: 0;
}

.read-feature-questions {
  margin-top: 14px;
}

.read-feature-questions ul {
  margin: 0;
  padding-left: 18px;
  color: var(--brief-value);
  font-size: 0.88rem;
  line-height: 1.7;
}

.read-feature-questions li {
  margin-bottom: 3px;
}

.feature-question-item {
  margin-bottom: 12px;
}

.read-feature-questions .feature-question-item {
  margin-bottom: 14px;
}

.read-feature-questions .feature-question-item:last-child {
  margin-bottom: 0;
}

.feature-question-item:last-child {
  margin-bottom: 0;
}

.feature-question-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-question-text {
  flex: 1;
  min-width: 0;
}

.feature-question-reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0 10px;
  padding: 9px 11px;
  border-left: 2px solid var(--gold);
  border-radius: 0 7px 7px 0;
  background: #fbf7e9;
  color: #3f4653;
  font-size: 0.82rem;
  line-height: 1.65;
}

.feature-question-reply .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--gold-ink);
}

.feature-question-reply-text {
  min-width: 0;
  white-space: pre-wrap;
}

.feature-reply-editor {
  margin-top: 8px;
}

.feature-reply-editor > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 5px 9px;
  border: 1px solid #e6dfca;
  border-radius: 999px;
  background: #fdfaf0;
  color: var(--gold-ink);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.feature-reply-editor > summary::-webkit-details-marker {
  display: none;
}

.feature-reply-editor > summary:hover,
.feature-reply-editor[open] > summary {
  background: #f8efd2;
  border-color: #d9c98f;
}

.feature-reply-trigger .icon {
  width: 13px;
  height: 13px;
}

.feature-reply-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e7dfc9;
  border-radius: 9px;
  background: #fdfaf0;
}

.feature-reply-label {
  display: block;
  margin-bottom: 5px;
  color: #111318;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feature-reply-textarea {
  min-height: 90px;
  background: #ffffff;
}

.feature-reply-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.feature-reply-submit {
  padding: 8px 12px;
  font-size: 0.75rem;
}

.feature-reply-hint {
  color: #8a909b;
  font-size: 0.67rem;
  line-height: 1.4;
}

.reply-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid #cce8d7;
  border-radius: 9px;
  background: #f2fbf5;
  color: #146c43;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reply-saved .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #067647;
}

.read-feature-questions li:last-child {
  margin-bottom: 0;
}

.feature-product-group + .feature-product-group {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid #eceef2;
}

.feature-product-group-head {
  margin-bottom: 12px;
}

.feature-product-group-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #111318;
}

.feature-product-group-head h3:not(:first-child) {
    margin-top: 30px;
}

.feature-product-group-summary {
  margin: 6px 0 0;
  color: var(--brief-value);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.read-links {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 2px 0 0;
  padding: 0;
}

.read-links a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Fixed document footer
   ========================================================================== */

.doc-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(20, 21, 26, 0.98) 0%, #09090b 100%);
  border-top: 1px solid rgba(232, 197, 106, 0.24);
  box-shadow: 0 -16px 46px rgba(0, 0, 0, 0.2);
  color: #e8eaee;
}

.doc-footer-inner {
  width: min(1180px, 94vw);
  min-height: var(--footer-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}

.share-block {
  min-width: 0;
}

.share-field {
  position: relative;
  width: min(320px, 100%);
  min-width: 0;
}

.share-input {
  width: 100%;
  min-width: 0;
  padding: 9px 38px 9px 11px;
  border: 1px solid #2c2e36;
  border-radius: 8px;
  background: #15161a;
  color: #dbe0e7;
  font-size: 0.76rem;
  outline: none;
}

.share-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 197, 106, 0.16);
}

.share-copy {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa0aa;
  transition: background 0.18s ease, color 0.18s ease;
}

.share-copy:hover {
  background: #1a1b21;
  color: var(--gold);
}

.share-copy .icon {
  width: 15px;
  height: 15px;
}

.send-block {
  display: flex;
  justify-content: center;
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #14120b;
  font-size: 0.85rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(232, 197, 106, 0.16);
  transition: background 0.18s ease, transform 0.18s var(--ease);
}

.send-button:hover {
  background: #f1d47f;
  transform: translateY(-1px);
}

.send-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.send-button .icon {
  width: 17px;
  height: 17px;
}

.tools-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.save-state {
  flex: none;
  font-size: 0.66rem;
  line-height: 1.3;
  color: #8f95a1;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.save-state[data-tone="saving"] {
  color: var(--gold);
}

.save-state[data-tone="dirty"] {
  color: #d9b45a;
}

.save-state[data-tone="error"] {
  color: #f0928a;
}

.save-state[data-tone="saved"] {
  color: #92d3ad;
}

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

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c7cbd3;
  font-size: 0.72rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border: 1px solid #3a3d46;
  border-radius: 999px;
  background: #24262d;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8c909c;
  transition: transform 0.18s var(--ease), background 0.18s ease;
}

.switch input:checked + .switch-track {
  border-color: var(--gold);
  background: rgba(232, 197, 106, 0.18);
}

.switch input:checked + .switch-track::after {
  transform: translateX(14px);
  background: var(--gold);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.switch--top {
  color: #5f6672;
  font-size: 0.7rem;
  font-weight: 600;
}

.switch--top .switch-track {
  border-color: #d6dae1;
  background: #eef0f4;
}

.switch--top .switch-track::after {
  background: #9aa0aa;
}

body:not(.is-view) .switch--top .switch-track {
  border-color: #1f8f5f;
  background: rgba(31, 143, 95, 0.18);
}

body:not(.is-view) .switch--top .switch-track::after {
  transform: translateX(14px);
  background: #1f8f5f;
}

body:not(.is-view) .switch--top .switch-text {
  color: #1f8f5f;
}

.switch--top input:focus-visible + .switch-track {
  outline-color: #1f8f5f;
}

.switch--auto input:checked + .switch-track {
  border-color: #3fae7a;
  background: rgba(63, 174, 122, 0.2);
}

.switch--auto input:checked + .switch-track::after {
  background: #7ee2b0;
}

.switch--auto input:checked ~ .switch-text {
  color: #a9e7c5;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
  padding: 7px 10px;
  border: 1px solid #353842;
  border-radius: 8px;
  background: transparent;
  color: #e8eaee;
  font-size: 0.72rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.save-button .icon {
  width: 15px;
  height: 15px;
}

.save-button:hover {
  border-color: #5a5e6a;
  background: #17181d;
}

.save-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.save-button.is-busy .icon {
  animation: spin 0.9s linear infinite;
}

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

/* ==========================================================================
   Modals and toast
   ========================================================================== */

.modal {
  width: min(480px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(6, 8, 12, 0.58);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.2s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a909b;
}

.modal-close:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.modal-icon .icon {
  width: 21px;
  height: 21px;
}

.modal-icon--warn {
  background: #fdf1e7;
  color: #b54708;
}

.modal-icon--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-title {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.05;
  font-weight: 400;
  color: #111318;
}

.modal-text {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5c6370;
}

.modal-summary {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9fb;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5c6370;
}

.modal-summary strong {
  color: #2b303a;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-h) + 18px);
  z-index: 200;
  max-width: min(520px, 90vw);
  padding: 11px 16px;
  border: 1px solid #2c2e36;
  border-radius: 999px;
  background: #111216;
  color: #f1f3f6;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast--error {
  border-color: #6f2822;
  background: #3d1512;
  color: #ffe8e5;
}

/* ==========================================================================
   Public brief page
   ========================================================================== */

.public-page {
  min-height: 100dvh;
  background: var(--page);
}

.public-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 220, 227, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-top-inner {
  width: min(980px, 94vw);
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #242830;
}

.public-brand .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: 1rem;
}

.public-brand small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a909b;
}

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

.public-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #4b5260;
  font-size: 0.74rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.public-action:hover {
  border-color: var(--line-strong);
  background: #f7f8fa;
}

.public-action .icon {
  width: 14px;
  height: 14px;
}

.public-action--dark {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
}

.public-action--dark:hover {
  background: #23252b;
  border-color: #23252b;
}

.public-action.is-copied {
  border-color: var(--ok);
  color: var(--ok);
  background: var(--ok-soft);
}

.public-main {
  width: min(980px, 94vw);
  margin: 30px auto 52px;
}

.doc--read {
  padding: clamp(30px, 5.5vw, 64px);
}

.read-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 18px;
  font-size: 0.75rem;
  color: #8a909b;
}

.read-meta strong {
  color: #3c424d;
  font-weight: 600;
}

.read-section {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid #eceef2;
}

.read-section-head {
  padding-top: 5px;
}

.read-num {
  display: block;
  margin-bottom: 8px;
  padding-top: 5px;
  border-top: 1px solid var(--gold-line);
  width: 36px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-ink);
}

.read-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #111318;
}

.read-field {
  margin-bottom: 20px;
}

.read-field:last-child {
  margin-bottom: 0;
}

.read-label {
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #111318;
}

.read-value {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--brief-value);
  white-space: pre-wrap;
}

.read-value a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.read-value--title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111318;
}

.read-empty {
  color: #9aa0aa;
  font-style: italic;
}

.read-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.read-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.read-tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--brief-value);
  font-size: 0.76rem;
  font-weight: 550;
}

.read-sub {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--brief-value);
}

.read-note {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #ece2c8;
  border-radius: 11px;
  background: #faf7ec;
}

.read-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: #3c3524;
}

.read-note p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #665f4e;
}

.read-note p:last-child {
  margin-bottom: 0;
}

.read-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.read-next {
  margin-top: 30px;
  padding: 24px;
  border-radius: 13px;
  background: var(--black);
  color: #ffffff;
}

.read-next .read-label {
  color: var(--gold);
}

.read-next ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 0;
  padding: 0;
}

.read-next li {
  display: flex;
  gap: 9px;
}

.read-next li > span {
  flex: none;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
}

.read-next strong {
  display: block;
  font-size: 0.78rem;
}

.read-next p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #a8adb7;
}

.public-foot {
  width: min(980px, 94vw);
  margin: 0 auto 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: #7c828d;
}

.public-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-ink);
  font-weight: 650;
}

.public-foot a .icon {
  width: 14px;
  height: 14px;
}

.public-foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.empty-brief {
  max-width: 560px;
  margin: 60px auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-paper);
}

.empty-brief .doc-kicker {
  justify-content: center;
}

.empty-brief h1 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.05;
}

.empty-brief p {
  margin: 0 0 20px;
  color: #6f7682;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ==========================================================================
   Pilot admin — submitted briefs
   ========================================================================== */

.admin-briefs {
  background: var(--page);
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 220, 227, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-top-inner {
  width: min(1100px, 94vw);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.admin-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.admin-brand strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.2;
}

.admin-brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.admin-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.admin-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-links a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.admin-links a.active {
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.admin-logout {
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-logout:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.admin-main {
  width: min(1100px, 94vw);
  margin: 30px auto 64px;
}

.admin-main--doc {
  width: min(980px, 94vw);
}

.admin-heading {
  margin: 0 0 22px;
}

.admin-heading h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #111318;
}

.admin-heading p {
  max-width: 65ch;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.admin-count {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-brief-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.admin-brief-main {
  min-width: 0;
}

.admin-brief-title {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}

.admin-brief-title:hover {
  color: var(--gold-ink);
}

.admin-brief-main > span {
  display: block;
  margin-top: 4px;
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--muted);
}

.admin-brief-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  flex: none;
  font-size: 0.74rem;
  color: var(--muted-light);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-mini-link {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

button.admin-mini-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.admin-mini-link:hover {
  color: #6b4c00;
}

.admin-empty {
  padding: 42px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.admin-empty strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
}

.admin-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-back:hover {
  color: var(--ink);
}

.admin-back .icon {
  width: 14px;
  height: 14px;
}

.admin-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--muted);
}

.admin-detail-actions .admin-mini-link {
  font-size: 0.74rem;
}

.admin-detail-actions .admin-badge {
  font-size: 0.6rem;
}

.admin-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 10px;
  background: var(--danger-soft);
  color: #8f1d14;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .admin-top-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .admin-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 2px;
  }

  .admin-links a {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .admin-logout {
    margin-left: auto;
  }

  .admin-main {
    margin-top: 20px;
  }

  .admin-brief-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-brief-meta {
    justify-content: flex-start;
  }

  .admin-briefs .doc {
    padding: 28px 20px 32px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .doc-shell {
    width: min(980px, 94vw);
    display: block;
  }

  .doc-nav {
    display: none;
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 40px;
  }

  .auth-editorial-title {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
    padding-top: 10px;
  }

  .auth-editorial {
    display: none;
  }

  .auth-card {
    margin: 0 auto;
  }

  .auth-shell--center {
    padding-top: 24px;
  }
}

@media (max-width: 820px) {
  .doc-footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 0;
  }

  :root {
    --footer-h: 152px;
  }

  .send-block,
  .send-button {
    width: 100%;
  }

  .tools-block {
    justify-content: flex-start;
  }

  .tools-row {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .section-head {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .section-num {
    font-size: 0.98rem;
  }

  .choice-grid--3 {
    grid-template-columns: 1fr;
  }

  .next-steps ol,
  .read-next ol {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .next-steps li p,
  .read-next li p {
    max-width: 46ch;
  }

  .read-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .read-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .read-num {
    width: auto;
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }

  .read-section-head h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 760px) {
  .app-header-inner {
    gap: 10px;
  }

  .app-identity {
    gap: 12px;
  }


  .doc-shell {
    margin-top: 18px;
  }

  .doc {
    padding: 30px 24px 34px;
  }

  .doc-title {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .grid-2,
  .product-grid,
  .feature-grid,
  .read-split,
  .read-contact-grid {
    grid-template-columns: 1fr;
  }

  /* Keeping inputs at 16px prevents iOS Safari from zooming on focus. */
  .input,
  .money-input {
    font-size: 16px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 0;
  }

  .product-card {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
  }

  .toast {
    bottom: calc(var(--footer-h) + 12px);
  }

  .public-top-inner {
    min-height: 58px;
  }

  .public-brand small {
    display: none;
  }

  .public-action span {
    display: none;
  }

  .public-action {
    padding: 8px;
  }

  .public-actions .status-pill {
    display: none;
  }

  .read-contact-grid {
    gap: 0;
  }

  .auth-top {
    padding: 18px 0;
  }

  .auth-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-bottom: 22px;
  }
}

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 0.78rem;
  }

  .brand-copy small {
    font-size: 0.58rem;
  }

  .app-identity {
    gap: 8px;
  }

  .welcome strong {
    font-size: 0.8rem;
    max-width: 130px;
  }

  .brand--app .brand-copy {
    display: none;
  }

  .account-trigger {
    padding: 3px 6px 3px 3px;
  }

  .doc-shell {
    width: calc(100% - 24px);
  }

  .doc {
    padding: 26px 18px 30px;
    border-radius: 4px;
  }

  .doc-head-row {
    align-items: flex-start;
  }

  .doc-title {
    font-size: 2.45rem;
  }

  .doc-sub {
    font-size: 0.9rem;
  }

  .section {
    padding: 28px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-hint {
    font-size: 0.8rem;
  }

  .next-steps {
    padding: 20px;
  }

  .share-input {
    font-size: 0.7rem;
  }

  .switch {
    font-size: 0.68rem;
  }

  .save-button {
    padding: 6px 9px;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 2rem;
  }

  .auth-sub {
    font-size: 0.84rem;
  }

  .auth-top {
    width: calc(100% - 32px);
  }

  .auth-back {
    font-size: 0.74rem;
  }

  .auth-back .icon {
    width: 13px;
    height: 13px;
  }

  .auth-shell {
    width: calc(100% - 32px);
    padding-bottom: 36px;
  }

  .auth-foot {
    width: calc(100% - 32px);
  }

  .modal-card {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 1.55rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .public-top {
    position: static;
  }

  .public-top-inner {
    width: calc(100% - 24px);
  }

  .public-main {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .doc--read {
    padding: 26px 18px 30px;
  }

  .public-foot {
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: flex-start;
  }

  .empty-brief {
    margin: 24px auto;
    padding: 28px 20px;
  }

  .empty-brief h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 400px) {
  .welcome strong {
    max-width: 112px;
  }

  .tools-row {
    gap: 8px;
  }

  .switch-track {
    width: 30px;
    height: 17px;
  }

  .switch-track::after {
    width: 11px;
    height: 11px;
  }

  .switch input:checked + .switch-track::after {
    transform: translateX(13px);
  }
}

@media (max-width: 360px) {
  .switch--top {
    gap: 0;
  }

  .switch--top .switch-text {
    display: none;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  :root {
    --page: #ffffff;
  }

  body,
  .app-page,
  .public-page {
    background: #ffffff !important;
    padding: 0 !important;
    color: #111318;
  }

  .app-header,
  .doc-footer,
  .public-top,
  .public-foot,
  .auth-top,
  .auth-foot,
  .admin-top,
  .admin-detail-bar,
  .doc-nav,
  .toast,
  .modal,
  .editable-only,
  .feature-reply-editor,
  .reply-saved,
  .skip {
    display: none !important;
  }

  .doc-shell,
  .public-main,
  .admin-main {
    width: 100% !important;
    margin: 0 !important;
  }

  .doc {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .read-section,
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .next-steps,
  .read-next {
    background: #111318 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #111318 !important;
    text-decoration: none !important;
  }
}

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

/* ---- Pilot: contact inquiries ---- */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr.is-new td {
  background: #fdf8ea;
}

.admin-table td strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.admin-table td span {
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-table a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-table .admin-table-time {
  white-space: nowrap;
}

.admin-badge.is-new {
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.admin-contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-contact-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.admin-contact-head p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 20px 0 0;
}

.admin-contact-grid dt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.admin-contact-grid dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.admin-contact-grid dd a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-contact-message {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-contact-message h2,
.admin-contact-attachments h2 {
  margin: 0 0 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.admin-contact-message p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}

.admin-contact-attachments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-contact-attachments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-contact-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-contact-attachments .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 720px) {
  .admin-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-contact-head {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .admin-contact-grid {
    grid-template-columns: 1fr;
  }
}

.brand-lockup {
  display: block;
  width: auto;
  height: 30px;
}

.brand-lockup--app {
  height: 24px;
}

.admin-lockup {
  display: block;
  width: auto;
  height: 24px;
}

.public-lockup {
  display: block;
  width: auto;
  height: 24px;
}
