/* Currivex — The Broadsheet design system, used by every page. Class names that
   app.js generates (.button, .cv-list-card, .dashboard-*-item, .prefs-*,
   .toast, .demo-banner, .task-row, .onboarding-step) are styled here too. */

:root {
  --paper: #f3eee3; --panel: #fbf8f1; --ink: #17150f; --soft: #5d574b; --rule: #17150f; --hair: #cfc7b5;
  --red: #c42a1e; --on-red: #fff; --red-wash: rgba(196, 42, 30, .08); --ok: #1e5b3a; --dot: rgba(23, 21, 15, .045);
  --sheet-shadow: 0 18px 40px rgba(40, 30, 10, .18);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --read: "Source Serif 4", Georgia, serif;
  --ui: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --track: .1em;
  --bs-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='25.5' fill='none' stroke='%23c42a1e' stroke-width='4.2'/%3E%3Cpath fill='%2317150f' d='M20 18.5h8L32 25.5 36 18.5h8L36.2 32 44 45.5h-8L32 38.5 28 45.5h-8L27.8 32z'/%3E%3C/svg%3E");
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #15130f; --panel: #1f1c16; --ink: #efe8d8; --soft: #b1a892; --rule: #efe8d8; --hair: #3b362c;
  --red: #ff6b5b; --on-red: #15130f; --red-wash: rgba(255, 107, 91, .1); --ok: #9fd8b1; --dot: rgba(239, 232, 216, .035);
  --sheet-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --bs-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='25.5' fill='none' stroke='%23ff6b5b' stroke-width='4.2'/%3E%3Cpath fill='%23efe8d8' d='M20 18.5h8L32 25.5 36 18.5h8L36.2 32 44 45.5h-8L32 38.5 28 45.5h-8L27.8 32z'/%3E%3C/svg%3E");
  color-scheme: dark;
}
html[lang="ar"] {
  --display: "Amiri", "Noto Naskh Arabic", serif;
  --read: "Noto Naskh Arabic", "Amiri", serif;
  --ui: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --hand: "Aref Ruqaa", "Amiri", serif;
  --track: 0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font-family: var(--read); font-size: 16px; line-height: 1.6;
       background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 4px 4px; }
html[lang="ar"] body { line-height: 1.85; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 14px; font-family: var(--ui); font-weight: 700; }
.bs-skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── primitives ─────────────────────────────────── */
.bs-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.bs-label { font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.bs-kicker { display: inline-block; background: var(--red); color: var(--on-red); font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; padding: 2px 10px; }
html[lang="ar"] .bs-kicker, html[lang="ar"] .bs-label { font-size: 13px; }
.bs-deck { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--soft); }
html[lang="ar"] .bs-deck { font-style: normal; font-weight: 400; line-height: 1.8; }
.bs-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; border-top: 3px double var(--rule); padding-top: 10px; margin-bottom: 14px; }
.bs-section-head h2 { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.bs-section-head p { font-size: 14.5px; color: var(--soft); font-style: italic; }
html[lang="ar"] .bs-section-head p { font-style: normal; }
.bs-textlink { font-family: var(--ui); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }

/* Buttons — also the class names app.js creates. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border: 2px solid var(--ink); border-radius: 0;
          background: var(--ink); color: var(--paper); font-family: var(--ui); font-size: 14.5px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .15s, color .15s; }
.button:hover { background: transparent; color: var(--ink); }
.button-quiet, .button-outline, .button-light { background: transparent; color: var(--ink); }
.button-quiet:hover, .button-outline:hover, .button-light:hover { background: var(--ink); color: var(--paper); }
.button-text { background: none; border-color: transparent; color: var(--ink); padding-inline: 6px; text-decoration: underline; text-underline-offset: 3px; }
.button-text:hover { background: none; color: var(--red); }
.button-red { border-color: var(--red); background: transparent; color: var(--red); }
.button-red:hover { background: var(--red); color: var(--on-red); }
.button-small { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.cv-delete-button { color: var(--red); }

.bs-stamp, .application-status { display: inline-block; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; border: 2px solid currentColor; padding: 1px 7px; transform: rotate(-3deg); color: var(--ink); white-space: nowrap; }
.application-status[data-status="interview"] { color: var(--red); }
.application-status[data-status="offer"] { color: var(--ok); }
.application-status[data-status="saved"] { color: var(--soft); border-style: dashed; }
.application-status[data-status="rejected"] { color: var(--soft); text-decoration: line-through; }

/* ── appearance controls (built by app.js) ─────── */
.prefs-dock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); }
.prefs-dock-title { font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.prefs-seg { display: inline-flex; border: 1.5px solid var(--ink); }
.prefs-opt { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 3px 9px; background: none; border: 0; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.prefs-opt + .prefs-opt { border-inline-start: 1.5px solid var(--ink); }
.prefs-opt[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.prefs-icon { flex: none; }

/* ── toast & demo banner ────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 50; max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
         background: var(--ink); color: var(--paper); font-family: var(--ui); font-size: 14px; padding: 10px 16px; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 0; padding: 10px 14px; border: 2px solid var(--red); background: var(--red-wash); font-family: var(--ui); font-size: 14px; }
.demo-banner span { display: flex; flex-wrap: wrap; gap: 8px; }
body > .demo-banner { width: min(1120px, calc(100% - 2 * clamp(16px, 4vw, 40px))); margin-inline: auto; }

/* ── masthead (marketing) ───────────────────────── */
.bs-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0 6px; border-bottom: 1px solid var(--rule);
           font-family: var(--ui); font-size: 11.5px; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.bs-mast { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: clamp(46px, 10.5vw, 118px); line-height: 1; letter-spacing: -.015em; padding: 14px 0 4px; }
.bs-mast::before { content: ""; width: 56px; height: 56px; margin-bottom: 6px; background: var(--bs-mark) center / contain no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html[lang="ar"] .bs-mast { letter-spacing: 0; font-weight: 700; line-height: 1.25; }
.bs-mast small { display: block; margin-top: 10px; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
html[lang="ar"] .bs-mast small { letter-spacing: 0; font-size: 14px; }
.bs-navbar { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 8px; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 22px; padding: 6px 0; font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.site-nav > a:not(.button) { padding: 6px 0; text-decoration: none; }
.site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .button { min-height: 34px; padding: 4px 12px; font-size: 12.5px; letter-spacing: .04em; }
html[lang="ar"] .site-nav { font-size: 14px; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .bs-navbar { justify-content: flex-end; min-height: 48px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; padding: 10px; }
  .nav-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 14px; background: var(--paper); border-bottom: 3px double var(--rule); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .site-nav .button { margin-top: 10px; min-height: 44px; }
  .site-nav .prefs-dock { margin-top: 12px; flex-wrap: wrap; }
}

/* ── front page ─────────────────────────────────── */
.bs-front { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .72fr); margin-top: 22px; }
.bs-front > * { min-width: 0; }
.bs-lead { padding-inline-end: 26px; }
.bs-lead h1 { margin-top: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
html[lang="ar"] .bs-lead h1 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.bs-lead .bs-deck { margin-top: 14px; }
.bs-byline { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--hair); font-family: var(--ui); font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.bs-cols { columns: 2 200px; column-gap: 24px; column-rule: 1px solid var(--hair); margin-top: 14px; font-size: 15.5px; text-align: justify; hyphens: auto; }
.bs-cols p + p { margin-top: 8px; }
html[lang="en"] .bs-cols p:first-child::first-letter { float: left; margin: 6px 8px 0 0; font-family: var(--display); font-weight: 900; font-size: 62px; line-height: .8; }
html[lang="ar"] .bs-cols { text-align: start; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bs-figure { border-inline-start: 1px solid var(--rule); padding: 0 22px; }
.bs-specimen { position: relative; background: #fff; color: #1b1b1b; padding: 22px 22px 18px; box-shadow: var(--sheet-shadow); font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; line-height: 1.55; transform: rotate(-1deg); direction: ltr; text-align: left; }
.bs-specimen h3 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; line-height: 1.1; }
.bs-specimen .role { margin: 2px 0 10px; color: #666; }
.bs-specimen h4 { margin: 10px 0 3px; padding-top: 6px; border-top: 1px solid #e6e2d8; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.bs-specimen .circ { outline: 1.5px solid #c42a1e; outline-offset: 1px; border-radius: 40% 55% 45% 60% / 60% 45% 55% 40%; }
.bs-scrawl { display: block; width: fit-content; margin: 2px 0 6px auto; font-family: "Caveat", cursive; font-size: 20px; line-height: 1.1; color: #c42a1e; transform: rotate(-3deg); }
.bs-caption { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--hair); font-style: italic; font-size: 13.5px; color: var(--soft); }
html[lang="ar"] .bs-caption { font-style: normal; }
.bs-brief { border-inline-start: 1px solid var(--rule); padding-inline-start: 20px; }
.bs-brief h2, .bs-bulletin h2 { padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.bs-brief ul { list-style: none; margin: 0; padding: 0; }
.bs-brief li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.bs-brief b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.25; }
.bs-brief span { font-size: 14px; color: var(--soft); }
.bs-notice { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--ink); font-size: 14px; }
.bs-notice b { display: block; font-family: var(--ui); font-size: 10.5px; letter-spacing: var(--track); text-transform: uppercase; }
@media (max-width: 1020px) {
  .bs-front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .bs-brief { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; border-inline-start: 0; padding: 20px 0 0; }
  .bs-brief h2, .bs-brief .bs-notice { grid-column: 1 / -1; }
  .bs-brief ul { display: contents; }
}
@media (max-width: 760px) {
  .bs-front { grid-template-columns: minmax(0, 1fr); }
  .bs-lead { padding-inline-end: 0; }
  .bs-figure { margin-top: 24px; padding: 24px 6px 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .bs-brief { grid-template-columns: minmax(0, 1fr); }
}

.bs-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.bs-how article { min-width: 0; padding: 0 22px; border-inline-start: 1px solid var(--hair); }
.bs-how article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.bs-num { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 44px; line-height: 1; color: var(--red); }
.bs-how h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.bs-how p { font-size: 15px; color: var(--soft); }
@media (max-width: 760px) { .bs-how { grid-template-columns: minmax(0, 1fr); gap: 18px; } .bs-how article { padding: 16px 0 0; border-inline-start: 0; border-top: 1px solid var(--hair); } }

.bs-letters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 44px; }
.bs-letters > * { min-width: 0; }
.bs-quote { padding-inline-end: 30px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; }
html[lang="ar"] .bs-quote { font-style: normal; line-height: 1.5; }
.bs-quote::before { content: "\201C"; display: block; margin-bottom: 8px; font-size: 90px; line-height: .6; color: var(--red); }
.bs-quote .bs-by { display: block; margin-top: 14px; font-family: var(--ui); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.bs-quote a { display: block; width: fit-content; margin-top: 14px; font-family: var(--ui); font-style: normal; font-size: 14px; }
.bs-code { border-inline-start: 1px solid var(--rule); padding-inline-start: 26px; }
.bs-code ol { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: code; }
.bs-code li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; counter-increment: code; }
.bs-code li::before { content: counter(code); font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 20px; line-height: 1.2; color: var(--red); }
@media (max-width: 760px) { .bs-letters { grid-template-columns: minmax(0, 1fr); } .bs-quote { padding: 0 0 20px; } .bs-code { padding: 8px 0 0; border-inline-start: 0; border-top: 1px solid var(--rule); } }

.bs-editions { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.bs-editions .bs-section-head { grid-column: 1 / -1; margin-bottom: 0; }
.bs-ed { min-width: 0; text-decoration: none; }
.bs-sheet { display: flex; flex-direction: column; gap: 5px; aspect-ratio: 1 / 1.414; padding: 12% 11%; background: #fff; box-shadow: 0 8px 18px rgba(40, 30, 10, .14); transition: transform .16s; }
.bs-ed:hover .bs-sheet, .bs-ed:focus-visible .bs-sheet { transform: translateY(-4px) rotate(-1deg); }
.bs-sheet i { display: block; height: 4px; background: #d9d4c8; }
.bs-sheet i.h { width: 62%; height: 9px; margin-bottom: 4px; background: #2b2b2b; }
.bs-ed[data-t="mark"] .bs-sheet i.h { background: #225d46; }
.bs-ed[data-t="frame"] .bs-sheet { border-top: 10px solid #2b3a55; }
.bs-ed[data-t="field"] .bs-sheet i.h { width: 100%; }
.bs-ed[data-t="form"] .bs-sheet { padding-left: 34%; background: linear-gradient(90deg, #efeae0 26%, #fff 26%); }
.bs-ed[data-t="ats"] .bs-sheet i.h { background: #555; }
.bs-ed[data-t="naskh"] .bs-sheet, .bs-ed[data-t="dual"] .bs-sheet { align-items: flex-end; }
.bs-ed b { display: block; margin-top: 10px; font-family: var(--display); font-size: 17px; }
.bs-ed span { font-family: var(--ui); font-size: 12px; color: var(--soft); }
.bs-editions .bs-more { grid-column: 1 / -1; }
@media (max-width: 1020px) { .bs-editions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bs-editions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bs-subscribe { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 18px 30px; margin-top: 48px; padding: clamp(20px, 4vw, 36px); border: 2px solid var(--ink); background: var(--panel); }
.bs-subscribe h2 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.bs-subscribe p { margin-top: 8px; color: var(--soft); }
.bs-subscribe .bs-actions { margin-top: 0; }
@media (max-width: 760px) { .bs-subscribe { grid-template-columns: minmax(0, 1fr); } }

.bs-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding: 12px 0 40px; border-top: 3px double var(--rule); font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.bs-colophon nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bs-colophon a { text-underline-offset: 3px; }

/* ── workspace masthead ─────────────────────────── */
.bs-appmast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; padding: 14px 0 10px; border-bottom: 3px double var(--rule); }
.bs-appmast .bs-name { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 0.28em; }
.bs-name::before { content: ""; width: 0.78em; height: 0.78em; flex: none; background: var(--bs-mark) center / contain no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html[lang="ar"] .bs-appmast .bs-name { font-weight: 700; line-height: 1.3; }
.bs-appnav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
html[lang="ar"] .bs-appnav { font-size: 14px; }
.app-nav-link { padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.app-nav-link:hover { border-bottom-color: var(--hair); }
.app-nav-link[aria-current="page"] { border-bottom-color: var(--red); }
.bs-who { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: 13px; }
.bs-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 13px; }
.bs-who .sidebar-signout { background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bs-sync { display: inline-flex; align-items: center; gap: 6px; }
.bs-sync::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.bs-sync[data-state="saving"]::before { background: var(--soft); }
.bs-sync[data-state="error"] { color: var(--red); }
.bs-sync[data-state="error"]::before { background: var(--red); }
.bs-appline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: 11.5px; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.bs-appline .sidebar-spacer { display: inline-flex; }
@media (max-width: 960px) {
  .bs-appmast { grid-template-columns: minmax(0, 1fr) auto; }
  .bs-appnav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
}
@media (max-width: 520px) { .bs-who [data-user-name], .bs-who .bs-sync { display: none; } }

/* ── today's issue (dashboard) ──────────────────── */
.bs-issue { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 22px; }
.bs-issue > * { min-width: 0; }
.bs-issue .bs-lead h1 { font-size: clamp(32px, 4.8vw, 58px); }
.bs-issue .bs-lead .bs-greet { margin-top: 14px; font-family: var(--ui); font-size: 14px; color: var(--soft); }
.bs-filed { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--ui); font-size: 13.5px; }
.bs-filed li { display: inline-flex; align-items: center; gap: 7px; }
.bs-filed li::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px dashed var(--red); }
.bs-filed li[data-done="true"]::before { border: 1.5px solid var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.bs-filed small { color: var(--soft); }
.bs-filed li[data-done="false"] small { color: var(--red); }
.bs-bulletin { border-inline-start: 1px solid var(--rule); padding-inline-start: 22px; }
.bs-bulletin .bs-count { display: block; margin: 8px 0 2px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
.dashboard-followup-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.dashboard-followup-item strong { display: block; font-family: var(--display); font-size: 18px; line-height: 1.25; }
.dashboard-followup-item span { font-size: 14px; color: var(--soft); }
.dashboard-followup-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
html[dir="rtl"] .dashboard-followup-item > span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
.dashboard-application-empty { padding: 10px 0; font-style: italic; font-size: 14.5px; color: var(--soft); }
html[lang="ar"] .dashboard-application-empty { font-style: normal; }
.bs-note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--hair); background: var(--panel); }
.bs-note h3 { margin: 4px 0 6px; font-family: var(--display); font-size: 21px; line-height: 1.25; }
.bs-note p { font-size: 14.5px; }
.bs-note .bs-hand { margin-top: 6px; font-family: var(--hand); font-size: 21px; line-height: 1.15; color: var(--red); }
.bs-note a { display: inline-block; margin-top: 8px; font-family: var(--ui); font-weight: 700; font-size: 13.5px; text-underline-offset: 3px; }
@media (max-width: 820px) { .bs-issue { grid-template-columns: minmax(0, 1fr); } .bs-issue .bs-lead { padding-inline-end: 0; } .bs-bulletin { margin-top: 26px; padding-inline-start: 0; border-inline-start: 0; } }

.onboarding-card { margin-top: 26px; padding: 16px 18px; border: 2px solid var(--ink); background: var(--panel); }
.onboarding-card .bs-section-head { border-top: 0; padding-top: 0; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.onboarding-step { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.onboarding-step strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.25; }
.onboarding-step small { font-size: 13.5px; color: var(--soft); }
.onboarding-step .onboard-state { grid-column: 2; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
.onboarding-step.complete .onboard-state { color: var(--ok); }
.onboarding-step.complete strong { text-decoration: line-through; text-decoration-color: var(--red); }
.task-check { width: 16px; height: 16px; margin-top: 4px; border: 1.5px solid var(--ink); }
.task-check.checked, .task-row.complete .task-check { background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
@media (max-width: 760px) { .onboarding-steps { grid-template-columns: minmax(0, 1fr); } }

.bs-toc { margin-top: 40px; }
.cv-list-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.mini-resume { display: flex; flex-direction: column; gap: 2px; aspect-ratio: 1 / 1.414; overflow: hidden; padding: 6px 5px; background: #fff; color: #333; box-shadow: 0 4px 10px rgba(40, 30, 10, .14); font-family: "DM Sans", system-ui, sans-serif; font-size: 3.6px; line-height: 1.3; }
.mini-resume-accent { height: 2px; width: 40%; background: #c42a1e; margin-bottom: 1px; }
.mini-resume-name { font-weight: 700; font-size: 5px; }
.mini-resume-line { overflow: hidden; max-height: 9.5px; }
.mini-resume-line.mini-line-empty { height: 2px; background: #e3ded2; }
.cv-title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cv-title-line h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; }
.cv-state { font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
.cv-list-main p, .cv-meta { font-family: var(--ui); font-size: 13px; color: var(--soft); }
.cv-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.cv-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cv-list-actions .button { min-height: 36px; padding: 5px 12px; font-size: 13px; }
@media (max-width: 680px) { .cv-list-card { grid-template-columns: 46px minmax(0, 1fr); } .cv-list-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.bs-desk { margin-top: 40px; }
.bs-tally { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--ui); font-size: 13px; color: var(--soft); }
.bs-tally b { margin-inline-end: 4px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; color: var(--ink); }
.dashboard-application-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-application-item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; padding: 6px 18px 14px; border-inline-start: 1px solid var(--hair); }
.dashboard-application-item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.dashboard-application-item .application-status { align-self: flex-start; }
.dashboard-application-item strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.dashboard-application-item span:not(.application-status) { font-style: italic; font-size: 14.5px; color: var(--soft); }
html[lang="ar"] .dashboard-application-item span:not(.application-status) { font-style: normal; }
.dashboard-application-list > .dashboard-application-empty { grid-column: 1 / -1; }
@media (max-width: 760px) { .dashboard-application-list { grid-template-columns: minmax(0, 1fr); } .dashboard-application-item { padding: 10px 0; border-inline-start: 0; border-top: 1px solid var(--hair); } }

.bs-lower { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; margin-top: 40px; }
.bs-lower > * { min-width: 0; }
.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--hair); text-align: start; }
.task-row strong { display: block; font-family: var(--display); font-size: 18px; line-height: 1.3; }
.task-row small { font-size: 14px; color: var(--soft); }
.task-row.complete strong { text-decoration: line-through; text-decoration-color: var(--red); }
html[dir="rtl"] .task-row > span[aria-hidden] { transform: scaleX(-1); }
.bs-backup { padding: 16px 18px; border: 1px solid var(--ink); }
.bs-backup h3 { margin: 6px 0; font-family: var(--display); font-size: 22px; line-height: 1.25; }
.bs-backup p { font-size: 14.5px; color: var(--soft); }
.backup-import-label { position: relative; overflow: hidden; cursor: pointer; }
.backup-import-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.backup-import-label:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 820px) { .bs-lower { grid-template-columns: minmax(0, 1fr); } }

/* ── the newsroom (builder) ─────────────────────── */
.bs-editionbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: 13px; }
.bs-edition { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.bs-edition strong { font-family: var(--display); font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.bs-edition small { color: var(--soft); }
.bs-iconbtn { align-self: center; display: inline-grid; place-items: center; width: 32px; height: 32px; background: none; border: 1.5px solid var(--hair); font-size: 14px; }
.bs-iconbtn:hover { border-color: var(--ink); }
.bs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bs-tools .button-small { min-width: 36px; }
.bs-proof-jump { display: none; }

.bs-room { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(360px, 490px); align-items: start; margin-top: 18px; padding-bottom: 60px; }
.bs-room > * { min-width: 0; }
.bs-pages { position: sticky; top: 14px; padding-inline-end: 18px; }
.builder-steps { margin-top: 6px; border-top: 2px solid var(--ink); }
.builder-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; width: 100%; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--hair); text-align: start; }
.builder-step > span { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 18px; line-height: 1.3; color: var(--soft); }
.builder-step strong { display: block; font-family: var(--ui); font-size: 14px; }
.builder-step small { font-family: var(--ui); font-size: 12px; color: var(--soft); }
.builder-step.active > span { color: var(--red); }
.builder-step.active strong { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.builder-step:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.bs-back { display: inline-block; margin-top: 16px; }

.bs-copy { padding: 0 26px; border-inline-start: 1px solid var(--rule); }
.builder-intro h1 { margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
html[lang="ar"] .builder-intro h1 { font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.builder-intro .bs-deck { margin-top: 8px; font-size: 17px; }
#cv-builder-form { margin-top: 26px; }
.builder-form-panel { display: none; }
.builder-form-panel.active { display: block; }
.mini-label { margin: 0; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.form-grid { display: grid; gap: 14px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { display: block; min-width: 0; }
.form-field > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-bottom: 5px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .form-field > span { font-size: 13.5px; letter-spacing: 0; }
.form-field > span small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); font-size: 12px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 11px; background: var(--panel); border: 1px solid var(--hair); border-bottom: 2px solid var(--ink); border-radius: 0; color: var(--ink); font-family: var(--read); font-size: 16px; line-height: 1.5; outline: none; transition: border-color .15s, background-color .15s; }
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-bottom-color: var(--red); background: var(--paper); box-shadow: 0 2px 0 var(--red); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--soft); opacity: .75; }
.textarea-field { margin-top: 16px; }

.ai-suggestion, .rewrite-box { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 12px 14px; background: var(--red-wash); border-inline-start: 3px solid var(--red); }
.ai-suggestion-mark { font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--red); text-align: center; }
.ai-suggestion strong, .rewrite-box strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.3; }
.ai-suggestion p, .rewrite-box p { margin: 2px 0 0; font-size: 14.5px; color: var(--soft); }
.rewrite-result { grid-column: 2 / -1; padding-top: 10px; border-top: 1px dashed var(--red); }
.rewrite-result-label { font-family: var(--ui); font-size: 11px !important; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red) !important; margin: 0 !important; }
.rewrite-result-text { margin-top: 6px !important; font-size: 16px !important; color: var(--ink) !important; font-weight: 600; }
.rewrite-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 560px) { .ai-suggestion, .rewrite-box { grid-template-columns: 26px minmax(0, 1fr); } .ai-suggestion > .button, .rewrite-box > .button { grid-column: 2; justify-self: start; } .rewrite-result { grid-column: 1 / -1; } }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--hair); }
.clean-print-note { flex: 1 1 220px; font-size: 13px; color: var(--soft); }
.bs-print-row .bs-actions { margin-top: 0; }

.experience-list, .project-list, .certification-list, .education-list { display: grid; gap: 18px; }
.project-list, .certification-list, .education-list { margin-top: 16px; }
.project-list:empty, .certification-list:empty, .education-list:empty { margin-top: 0; }
.experience-card { padding: 14px 0 4px; border-top: 2px solid var(--ink); }
.experience-card.is-dragging { opacity: .45; }
.experience-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.experience-card h2 { margin-top: 2px; font-family: var(--display); font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.experience-card-tools, .card-reorder { display: inline-flex; align-items: center; gap: 4px; }
.reorder-button { min-width: 32px; min-height: 32px; background: none; border: 1.5px solid var(--hair); font-size: 13px; line-height: 1; }
.reorder-button:hover:not(:disabled) { border-color: var(--ink); }
.reorder-button:disabled { opacity: .35; cursor: default; }
.drag-handle { padding: 4px 6px; color: var(--soft); cursor: grab; user-select: none; }
.experience-remove { background: none; border: 0; padding: 6px 4px; font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.add-another-role { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 0; background: none; border: 0; font-family: var(--ui); font-size: 14px; font-weight: 700; }
.add-another-role > span:first-child { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--ink); font-size: 16px; line-height: 1; }
.add-another-role:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.builder-subsection { margin-top: 30px; padding-top: 12px; border-top: 3px double var(--rule); }
.builder-section-intro h2, .writing-prompt h2, .finish-card h2 { margin: 6px 0; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
html[lang="ar"] .builder-section-intro h2, html[lang="ar"] .writing-prompt h2, html[lang="ar"] .finish-card h2 { font-weight: 700; }
.builder-section-intro > p:not(.mini-label), .writing-prompt p:not(.mini-label), .finish-card > p:not(.mini-label) { font-size: 15px; color: var(--soft); }
.writing-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair); }
.prompt-number { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 40px; line-height: 1; color: var(--red); }
.skill-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.skill-suggestions p { margin-inline-end: 4px; font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--soft); }
.skill-suggestions button { min-height: 34px; padding: 4px 10px; background: none; border: 1.5px solid var(--ink); font-family: var(--ui); font-size: 13px; }
.skill-suggestions button:hover { background: var(--ink); color: var(--paper); }
.finish-card { margin-top: 26px; padding: 18px 20px; border: 2px solid var(--ink); background: var(--panel); }
.finish-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.page-estimate { margin: 12px 0 14px; padding: 10px 12px; border: 1px solid var(--ink); font-family: var(--ui); font-size: 13.5px; }
.version-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.version-list { display: grid; margin-top: 12px; }
.version-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.version-row strong { display: block; font-family: var(--display); font-size: 16px; }
.version-row small { font-family: var(--ui); font-size: 12px; color: var(--soft); }
.version-row span { display: flex; gap: 6px; }
.version-empty { font-style: italic; font-size: 14px; color: var(--soft); }
.final-checklist { display: grid; gap: 10px; margin-top: 22px; }
.final-checklist label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.final-checklist input { width: 18px; height: 18px; accent-color: var(--ink); }
.focus-flash { animation: bs-flash 1.2s ease; }
@keyframes bs-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--red); } 100% { box-shadow: none; } }
@media (max-width: 560px) { .two-up, .version-controls { grid-template-columns: minmax(0, 1fr); } }

.bs-proof { position: sticky; top: 14px; padding-inline-start: 22px; border-inline-start: 1px solid var(--rule); }
.preview-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bs-proof .editor-resume { width: 100%; max-width: 440px; }
.preview-toolbar { align-items: center; flex-wrap: wrap; }
.bs-pen-notes { max-width: 440px; margin: 16px auto 0; padding: 12px 14px; border-inline-start: 3px solid var(--red); background: repeating-linear-gradient(0deg, transparent 0 27px, var(--red-wash) 27px 28px), var(--panel); }
.bs-pen-notes ol { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.bs-pen-note { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--red-wash); }
.bs-pen-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--red); border-radius: 50%; font-family: var(--ui); font-size: 11px; font-weight: 700; color: var(--red); }
.bs-pen-note strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.3; }
.bs-pen-note p { margin-top: 2px; font-size: 14px; color: var(--soft); }
.bs-pen-note .bs-pen-hint { font-family: var(--hand); font-size: 19px; line-height: 1.2; color: var(--red); }
.bs-pen-note .button { margin-top: 8px; }
.bs-pen-empty { padding: 8px 0; font-style: italic; color: var(--soft); }
.bs-pen-code { margin-top: 8px; font-family: var(--ui); font-size: 12px; color: var(--soft); }
.preview-hint { margin-top: 14px; font-size: 13.5px; font-style: italic; color: var(--soft); text-align: center; }
html[lang="ar"] .preview-hint { font-style: normal; }

@media (max-width: 1180px) {
  .bs-room { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }
  .bs-pages { position: static; grid-column: 1 / -1; padding: 0 0 16px; }
  .builder-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
  .bs-back { display: none; }
  .bs-copy { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 860px) {
  .bs-room { grid-template-columns: minmax(0, 1fr); }
  .bs-copy { padding: 0; }
  .bs-proof { position: static; margin-top: 30px; padding: 14px 0 0; border-inline-start: 0; border-top: 3px double var(--rule); }
  .bs-proof .editor-resume { margin-inline: auto; }
  .bs-proof-jump { display: inline-flex; }
}
@media (max-width: 560px) { .builder-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── shared content primitives (legacy class names kept by the pages) ── */
.eyebrow { margin: 0; font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
html[lang="ar"] .eyebrow { font-size: 13px; }
.eyebrow-dot { display: none; }
.text-link { font-family: var(--ui); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--red); }
button.text-link { background: none; border: 0; padding: 0; }
.button-full { width: 100%; }
.button-primary { background: var(--ink); color: var(--paper); }

/* ── inner public masthead ──────────────────────── */
.bs-pubbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 0 10px; border-bottom: 3px double var(--rule); }
.bs-pubbar .bs-name, .bs-name { display: inline-flex; align-items: center; gap: 0.28em; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.1; text-decoration: none; white-space: nowrap; }
html[lang="ar"] .bs-name { font-weight: 700; }
.bs-pubbar .site-nav { justify-content: flex-end; padding: 0; }
@media (max-width: 760px) {
  .bs-pubbar .site-nav.bs-nav-static { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; width: 100%; padding: 0; border: 0; background: none; }
  .bs-pubbar .site-nav.bs-nav-static > a:not(.button) { padding: 4px 0; border: 0; }
  .bs-pubbar .site-nav.bs-nav-static .button { margin: 0; min-height: 34px; }
}

/* ── legal, about, support, 404 ─────────────────── */
.legal-main, .about-main, .contact-main, .notfound-main { max-width: 1200px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 60px; }
.legal-heading, .about-hero, .contact-hero, .notfound-hero { max-width: 820px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.legal-heading h1, .about-hero h1, .contact-hero h1, .notfound-hero h1 { margin: 12px 0; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
html[lang="ar"] .legal-heading h1, html[lang="ar"] .about-hero h1, html[lang="ar"] .contact-hero h1, html[lang="ar"] .notfound-hero h1 { font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.legal-heading > p:not(.eyebrow), .about-hero > p:not(.eyebrow), .contact-hero > p:not(.eyebrow), .notfound-hero > p:not(.eyebrow) { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--soft); }
html[lang="ar"] .about-hero > p:not(.eyebrow), html[lang="ar"] .contact-hero > p:not(.eyebrow), html[lang="ar"] .notfound-hero > p:not(.eyebrow) { font-style: normal; }
.about-hero .button, .notfound-actions { margin-top: 22px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 40px; align-items: start; margin-top: 28px; }
.legal-aside { position: sticky; top: 16px; display: grid; gap: 2px; border-top: 2px solid var(--ink); }
.legal-aside p { margin: 8px 0 4px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.legal-aside a { padding: 6px 0; border-bottom: 1px solid var(--hair); font-family: var(--ui); font-size: 14px; text-decoration: none; }
.legal-aside a:hover { color: var(--red); }
.legal-copy { columns: 2 300px; column-gap: 32px; column-rule: 1px solid var(--hair); }
.legal-copy section { break-inside: avoid-column; margin-bottom: 22px; scroll-margin-top: 20px; }
.legal-copy h2 { margin-bottom: 6px; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.legal-copy p { font-size: 16px; line-height: 1.7; }
.legal-copy p + p { margin-top: 10px; }
.legal-copy section:first-child p:first-of-type::first-letter { float: left; margin: 6px 8px 0 0; font-family: var(--display); font-weight: 900; font-size: 58px; line-height: .8; }
@media (max-width: 820px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } .legal-aside { position: static; } }
.about-principles, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.about-principles article, .contact-grid article { display: flex; flex-direction: column; min-width: 0; padding: 0 22px; border-inline-start: 1px solid var(--hair); }
.about-principles article:first-child, .contact-grid article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.about-principles span, .contact-grid article > span { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 40px; line-height: 1; color: var(--red); }
.about-principles h2, .contact-grid h2 { margin: 10px 0 6px; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.about-principles p, .contact-grid p { font-size: 15.5px; color: var(--soft); }
.contact-grid .button { align-self: flex-start; margin-top: auto; }
.contact-grid p { margin-bottom: 16px; }
.about-note { margin-top: 36px; padding: clamp(20px, 4vw, 36px); background: var(--ink); color: var(--paper); }
.about-note .eyebrow { color: var(--paper); opacity: .75; }
.about-note h2 { margin: 10px 0; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.about-note p:not(.eyebrow) { max-width: 44em; opacity: .85; }
@media (max-width: 760px) { .about-principles, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .about-principles article, .contact-grid article { padding: 14px 0 0; border-inline-start: 0; border-top: 1px solid var(--hair); } }

/* ── public template gallery ────────────────────── */
.gallery-page main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.gallery-hero { max-width: 820px; padding: 34px 0 20px; }
.gallery-hero h1 { margin: 12px 0; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
.gallery-lede { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--soft); }
html[lang="ar"] .gallery-lede { font-style: normal; }
.gallery-grid, .full-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; padding: 20px 0; border-top: 3px double var(--rule); }
.full-template-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.full-template-card.selected { outline: 2px solid var(--red); outline-offset: 6px; }
.full-template-preview { display: flex; align-items: center; justify-content: center; height: 260px; overflow: hidden; background: var(--panel); border: 1px solid var(--hair); }
.full-template-copy { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 10px; }
.full-template-copy h2 { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.full-template-copy p { font-size: 14.5px; color: var(--soft); }
.template-select { align-self: flex-start; }
.template-selected { align-self: flex-start; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); border: 2px solid currentColor; padding: 1px 7px; transform: rotate(-3deg); }
.gallery-cta { margin: 20px 0 10px; padding: clamp(20px, 4vw, 36px); border: 2px solid var(--ink); background: var(--panel); }
.gallery-cta h2 { margin: 8px 0; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.gallery-cta p:not(.eyebrow) { margin-bottom: 16px; color: var(--soft); }

/* ── shared CV (read-only) ──────────────────────── */
.share-container { max-width: 860px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 50px; }
.share-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; border-bottom: 3px double var(--rule); }
.share-card { margin-top: 24px; }
.share-card h1 { margin: 8px 0 2px; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; }
.share-owner { margin-bottom: 18px; font-family: var(--ui); font-size: 14px; color: var(--soft); }
.share-document { padding: clamp(22px, 5vw, 44px); background: #fff; color: #1b1b1b; box-shadow: var(--sheet-shadow); font-family: "Manrope", "Segoe UI", sans-serif; }
.share-document:empty { display: none; }
.share-document .section-label { margin: 22px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #225d46; }
.share-document .entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 14px 0 4px; }
.share-document .entry-title { margin: 0; font-size: 15px; font-weight: 800; }
.share-document .entry-meta { font-size: 12px; font-weight: 700; color: #5b6660; }
.share-document p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; }
.share-status { margin-top: 20px; font-family: var(--ui); font-size: 14px; color: var(--soft); }
.share-footer { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 13.5px; font-style: italic; color: var(--soft); }

/* ── account recovery & email verification ──────── */
.recovery-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 28px 16px; }
.recovery-shell { display: grid; gap: 14px; justify-items: center; width: 100%; max-width: 520px; }
.recovery-shell > .bs-name { font-size: 40px; padding-bottom: 6px; border-bottom: 3px double var(--rule); }
.recovery-card { width: 100%; padding: clamp(20px, 5vw, 32px); border: 2px solid var(--ink); background: var(--panel); }
.recovery-card h1 { margin: 10px 0; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
html[lang="ar"] .recovery-card h1 { font-weight: 700; line-height: 1.4; }
.recovery-card > p:not(.eyebrow):not(.signin-switch):not(.recovery-status) { color: var(--soft); }
.recovery-card form { display: grid; gap: 14px; margin-top: 20px; }
.recovery-actions { margin-top: 18px; }
.recovery-status, .auth-status, .account-status { margin-top: 14px; padding: 10px 12px; border-inline-start: 3px solid var(--ok); background: var(--panel); font-family: var(--ui); font-size: 14px; }
.recovery-status[data-state="error"], .auth-status[data-state="error"], .account-status[data-state="error"] { border-color: var(--red); background: var(--red-wash); }
.auth-status[data-state="loading"] { border-color: var(--soft); }
.recovery-email-notice { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--ink); font-size: 14px; }
.signin-switch { margin-top: 18px; text-align: center; font-family: var(--ui); font-size: 14px; color: var(--soft); }
.turnstile-field, .turnstile-field > div { min-height: 65px; }
.turnstile-status { font-family: var(--ui); font-size: 13px; color: var(--red); }

/* ── sign in / create account ───────────────────── */
.signin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.signin-form-side { display: flex; flex-direction: column; padding: 22px clamp(16px, 5vw, 60px); }
.signin-form-side > .bs-name { align-self: flex-start; padding-bottom: 6px; border-bottom: 3px double var(--rule); }
.signin-form-wrap { width: 100%; max-width: 460px; margin: 30px auto; }
.signin-form-wrap h1 { margin: 10px 0; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
html[lang="ar"] .signin-form-wrap h1 { font-weight: 700; line-height: 1.4; }
.signin-form-wrap > p:not(.eyebrow) { color: var(--soft); }
.auth-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: 2px solid var(--ink); }
.auth-mode-button { min-height: 44px; padding: 8px; background: none; border: 0; font-family: var(--ui); font-size: 14px; font-weight: 700; }
.auth-mode-button.active { background: var(--ink); color: var(--paper); }
.signin-form { display: grid; gap: 14px; margin-top: 18px; }
.local-privacy-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-inline-start: 3px solid var(--ink); background: var(--panel); font-size: 14px; }
.local-privacy-note > span { font-family: var(--ui); font-weight: 700; color: var(--ok); }
.local-privacy-note p { color: var(--soft); }
.signin-recovery { text-align: end; }
.auth-divider { display: flex; align-items: center; gap: 12px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.google-button svg { width: 18px; height: 18px; flex: none; }
.signin-demo { text-align: center; }
.signin-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.signin-story-side { display: flex; flex-direction: column; gap: 30px; padding: 22px clamp(16px, 4vw, 48px) 32px; background: var(--ink); color: var(--paper); }
.signin-story-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 3px double var(--paper); font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.signin-story-top a { color: inherit; }
.signin-story-side .prefs-seg { border-color: var(--paper); }
.signin-story-side .prefs-opt + .prefs-opt { border-color: var(--paper); }
.signin-story-side .prefs-opt[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.signin-story-copy .eyebrow { color: var(--paper); opacity: .75; }
.signin-story-copy h2 { margin: 10px 0; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
html[lang="ar"] .signin-story-copy h2 { font-weight: 700; line-height: 1.45; }
.signin-story-copy p:not(.eyebrow) { font-family: var(--display); font-style: italic; font-size: 19px; opacity: .85; }
.signin-mini-scene { position: relative; margin-top: auto; max-width: 360px; }
.signin-paper { padding: 22px; background: #fff; color: #1b1b1b; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(-2deg); font-family: "DM Sans", sans-serif; direction: ltr; }
.signin-paper span { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #777; }
.signin-paper h3 { margin: 8px 0; font-family: "Playfair Display", Georgia, serif; font-size: 28px; line-height: 1; }
.signin-paper i { display: block; height: 1px; margin: 10px 0; background: #e2ddd2; }
.signin-paper b { display: block; margin: 10px 0 4px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.signin-paper em { display: block; height: 4px; margin: 5px 0; background: #e2ddd2; }
.signin-note { position: absolute; right: -10px; bottom: 16px; display: flex; gap: 6px; max-width: 170px; padding: 8px 10px; background: #fff; color: #c42a1e; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transform: rotate(3deg); font-family: "Caveat", cursive; font-size: 19px; line-height: 1.1; direction: ltr; }
@media (max-width: 900px) { .signin-layout { grid-template-columns: minmax(0, 1fr); } .signin-mini-scene { display: none; } .signin-story-side { gap: 14px; } }

/* ══ Workspace pages: applications, templates, import, review, kit, pack, account ══ */
.app-content { padding: 22px 0 40px; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.page-title-row > div:first-child { max-width: 780px; }
.page-title-row h1 { margin: 10px 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.015em; }
html[lang="ar"] .page-title-row h1 { font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.page-lede { font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--soft); }
html[lang="ar"] .page-lede { font-style: normal; }
.page-title-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* shared panel vocabulary */
.applications-list-panel, .letter-editor-panel, .saved-letters-panel, .pack-main-panel, .review-main-panel, .job-match-panel,
.import-main-panel, .import-preview, .account-card, .review-model-card, .review-dimensions-card, .ats-card {
  min-width: 0; padding: 14px 0 0; border-top: 2px solid var(--ink); background: none;
}
.application-editor-card, .interview-prep-card, .letters-privacy-card, .pack-readiness-card, .pack-truth-card, .review-readiness,
.import-side-panel, .account-card-sage, .account-card-warm, .letters-signal-bar, .pack-picker, .review-target-panel, .account-overview-card,
.pack-piece-card, .pack-next-step, .import-actions, .letter-generate-row, .letter-local-field, .review-disclaimer, .import-safety-note,
.application-empty-state, .cover-letter-empty, .review-clear-state, .pack-empty-state, .template-selection-bar {
  min-width: 0; padding: 16px 18px; border: 1px solid var(--hair); background: var(--panel);
}
.pack-export-panel, .account-trust-strip { padding: 20px 22px; background: var(--ink); color: var(--paper); }
.pack-export-panel .eyebrow, .account-trust-strip .eyebrow { color: var(--paper); opacity: .75; }
.pack-export-panel p:not(.eyebrow), .account-trust-strip p:not(.eyebrow) { opacity: .85; }
.pack-export-panel .button, .account-trust-strip .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.pack-export-panel .button-quiet, .pack-export-panel .button-outline { background: transparent; color: var(--paper); }
.pack-export-panel .button:hover, .account-trust-strip .button:hover { background: transparent; color: var(--paper); }

.applications-list-head h2, .application-editor-head h2, .letter-editor-head h2, .interview-prep-head h2, .saved-letters-head h2,
.pack-application-heading h2, .pack-empty-state h2, .pack-preview-head h2, .review-summary h2, .job-match-copy h2, .import-panel-head h2,
.import-preview-head h2, .account-card-head h2, .account-overview-card h2, .account-trust-strip h2, .pack-readiness-head h2 {
  margin: 6px 0; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2;
}
html[lang="ar"] :is(.applications-list-head, .application-editor-head, .letter-editor-head, .interview-prep-head, .saved-letters-head, .pack-application-heading, .pack-empty-state, .pack-preview-head, .review-summary, .job-match-copy, .import-panel-head, .import-preview-head, .account-card-head, .account-overview-card, .account-trust-strip, .pack-readiness-head) h2 { font-weight: 700; line-height: 1.45; }
.letters-privacy-card h3, .pack-truth-card h3, .review-readiness h3, .review-model-card h3, .ats-card h3, .import-side-panel h3, .pack-export-panel h3, .job-match-result-copy h3 {
  margin: 6px 0; font-family: var(--display); font-size: 21px; line-height: 1.25;
}
:is(.applications-list-head, .application-editor-head, .letter-editor-head, .interview-prep-head, .saved-letters-head, .import-panel-head, .import-preview-head, .account-card-head, .pack-preview-head, .job-match-copy) p:not(.eyebrow),
.review-summary p:not(.mini-label), .review-model-card > p:not(.mini-label), .ats-card > p:not(.mini-label), .letters-privacy-card p:not(.mini-label), .pack-truth-card p:not(.mini-label), .pack-readiness-card > p { font-size: 15px; color: var(--soft); }
.application-count, .cover-letter-count, .review-count, .import-local-seal, .pack-location, .followup-count, .letter-signal, .pack-readiness-head > span, .session-badge {
  display: inline-block; flex: none; padding: 2px 8px; border: 1.5px solid currentColor; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); white-space: nowrap;
}
.letter-signal[data-state="ready"], .session-badge { color: var(--ok); }
.filter-chip { min-height: 34px; padding: 4px 12px; background: none; border: 1.5px solid var(--ink); font-family: var(--ui); font-size: 13px; font-weight: 700; }
.filter-chip:hover, .filter-chip.active { background: var(--ink); color: var(--paper); }
.target-label { display: block; margin-bottom: 5px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.target-input-wrap { display: flex; align-items: center; gap: 8px; padding: 0 11px; background: var(--panel); border: 1px solid var(--hair); border-bottom: 2px solid var(--ink); }
.target-input-wrap span { color: var(--red); }
.target-input-wrap input { width: 100%; padding: 10px 0; background: none; border: 0; outline: none; font-family: var(--read); font-size: 16px; color: var(--ink); }
.target-input-wrap:focus-within { border-bottom-color: var(--red); }
.pack-picker select, .application-status-select, .applications-tools select { min-height: 40px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--hair); border-bottom: 2px solid var(--ink); border-radius: 0; font-family: var(--ui); font-size: 14px; color: var(--ink); }
.mini-label + h3, .mini-label + h2 { margin-top: 4px; }
.list-check, .list-prompt { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); font-family: var(--ui); font-size: 11px; font-weight: 700; }
.list-check { background: var(--ink); color: var(--paper); }
.list-prompt { border-style: dashed; border-color: var(--red); color: var(--red); }

/* applications */
.application-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-bottom: 1px solid var(--hair); }
.application-stats article { min-width: 0; padding: 4px 18px 16px; border-inline-start: 1px solid var(--hair); }
.application-stats article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.application-stats span { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.application-stats strong { display: block; margin: 6px 0 4px; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 44px; line-height: 1; }
.application-stats p { font-size: 13.5px; color: var(--soft); }
.applications-workspace, .letters-workspace, .apply-pack-layout, .review-layout, .import-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 30px; align-items: start; margin-top: 26px; }
.applications-list-head, .letter-editor-head, .saved-letters-head, .import-panel-head, .import-preview-head, .pack-preview-head, .review-group-head, .pack-readiness-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.application-filter-row, .template-filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.applications-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 14px 0 4px; }
.applications-tools .form-field { flex: 1 1 200px; }
.application-list, .cover-letter-list { display: grid; margin-top: 14px; }
.application-card { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.application-card[data-status="interview"] .application-card-top h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.application-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; }
.application-card-top h3 { margin: 8px 0 2px; font-family: var(--display); font-size: 22px; line-height: 1.25; }
.application-card-top p { font-style: italic; color: var(--soft); }
html[lang="ar"] .application-card-top p { font-style: normal; }
.application-card-top time { font-family: var(--ui); font-size: 12px; color: var(--soft); }
.application-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-family: var(--ui); font-size: 13px; color: var(--soft); }
.application-card-meta a { color: var(--ink); text-underline-offset: 3px; }
.application-card-next, .application-card-followup, .application-card-notes { margin-top: 10px; padding: 8px 12px; border-inline-start: 3px solid var(--ink); background: var(--panel); font-size: 14.5px; }
.application-card-followup { border-color: var(--red); }
.application-card-notes { white-space: pre-line; color: var(--soft); }
.application-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.application-card-actions label { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.application-card-actions label > span { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.application-card-actions .button { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.application-empty-state strong, .cover-letter-empty strong, .review-clear-state strong { display: block; font-family: var(--display); font-size: 19px; }
.application-empty-state p, .cover-letter-empty p, .review-clear-state p { margin: 4px 0 12px; color: var(--soft); }
.application-editor-card { position: sticky; top: 14px; }
.application-editor-card form, .letter-editor-panel form, .account-card form { display: grid; gap: 14px; margin-top: 16px; }
.application-editor-card .textarea-field, .letter-editor-panel .textarea-field { margin-top: 0; }
.application-form-actions, .letter-form-actions, .account-action-stack, .import-preview-actions, .job-match-actions, .job-match-result-actions, .pack-piece-actions, .pack-export-actions, .finish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.application-editor-card .local-privacy-note { margin-top: 16px; }

/* templates (workspace) */
.full-template-quiet, .full-template-form, .full-template-mark, .full-template-frame, .full-template-field, .full-template-ats, .full-template-naskh, .full-template-dual { background: var(--panel); }
.create-template-card { justify-content: center; min-height: 360px; padding: 24px; border: 2px dashed var(--hair); }
.create-template-symbol { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); font-size: 22px; }
.create-template-card h2 { margin: 16px 0 6px; font-family: var(--display); font-size: 24px; }
.create-template-card p { color: var(--soft); }
.create-template-card .text-link { margin-top: 14px; }
.template-selection-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; }
.template-selection-bar p { flex: 1; min-width: 200px; }
.selection-swatch { position: relative; width: 22px; height: 30px; flex: none; background: #fff; border: 1px solid var(--hair); }
.selection-swatch::after { content: ""; position: absolute; top: 5px; left: 4px; width: 12px; height: 6px; background: var(--red); }

/* import */
.import-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; margin-top: 18px; padding: 22px; border: 2px dashed var(--ink); background: var(--panel); text-align: center; cursor: pointer; transition: background-color .15s; }
.import-dropzone:hover, .import-dropzone.is-dragging { background: var(--red-wash); border-color: var(--red); }
.import-dropzone input { display: none; }
.import-drop-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); font-size: 20px; }
.import-dropzone strong { margin-top: 10px; font-family: var(--display); font-size: 19px; }
.import-dropzone small { margin-top: 4px; font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.import-divider, .auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.import-divider::before, .import-divider::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.import-textarea textarea { min-height: 220px; }
.import-actions, .letter-generate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.import-actions > span, .letter-generate-row > span { flex: 1; min-width: 200px; font-size: 14px; color: var(--soft); }
.import-status { margin-top: 12px; padding: 10px 12px; border-inline-start: 3px solid var(--ok); background: var(--panel); font-family: var(--ui); font-size: 14px; }
.import-status[data-state="error"] { border-color: var(--red); background: var(--red-wash); }
.import-steps, .pack-readiness-card ul, .review-readiness ul, .ats-card ul, .letter-guidance ul { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.import-steps li, .pack-readiness-card li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); }
.import-steps li > span { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 20px; line-height: 1.1; color: var(--red); }
.import-steps strong, .pack-readiness-card li strong { display: block; font-family: var(--ui); font-size: 14px; }
.import-steps p, .pack-readiness-card li p { margin-top: 2px; font-size: 14px; color: var(--soft); }
.import-safety-note, .review-disclaimer, .letters-privacy-card, .pack-truth-card { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14.5px; }
.import-safety-note > span, .review-disclaimer > span, .letters-privacy-card > span, .pack-truth-card > span, .account-verification > span { flex: none; font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--red); }
.import-preview { margin-top: 26px; }
.import-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 14px; }
.import-preview-grid article { min-width: 0; padding: 10px 0; border-top: 1px solid var(--hair); }
.import-preview-grid span { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.import-preview-grid p { margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.import-warning-list { display: grid; gap: 6px; margin-top: 14px; }
.import-warning-list p { padding: 8px 12px; border-inline-start: 3px solid var(--red); background: var(--red-wash); font-size: 14px; }
.import-preview-actions { margin-top: 16px; }

/* CV Brain review & job match */
.review-target-panel, .pack-picker { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-top: 22px; }
.review-target-panel > div, .pack-picker > div:first-child { flex: 1 1 280px; max-width: 560px; }
.pack-picker-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pack-picker-status p { font-size: 13.5px; color: var(--soft); }
.job-match-panel { margin-top: 26px; }
.job-match-copy { max-width: 760px; }
.job-match-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.job-match-actions { margin-top: 12px; }
.job-match-actions > span { font-family: var(--ui); font-size: 13px; color: var(--soft); }
.job-match-result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border: 2px solid var(--ink); background: var(--panel); }
.job-match-result[hidden] { display: none !important; }
.job-match-score, .score-orb { display: inline-grid; place-items: center; flex: none; width: 88px; height: 88px; border: 2px solid var(--ink); border-radius: 50%; text-align: center; }
.score-orb { position: relative; background: conic-gradient(var(--ink) 0deg var(--review-score-angle, 0deg), var(--hair) var(--review-score-angle, 0deg) 360deg); }
.score-orb::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.score-orb div { position: relative; }
.job-match-score strong, .score-orb strong { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 22px; line-height: 1; }
.job-match-score span, .score-orb span { display: block; margin-top: 2px; font-family: var(--ui); font-size: 10.5px; color: var(--soft); }
.job-match-keywords { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job-match-keywords p { margin-bottom: 6px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.job-match-keywords ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.job-match-keywords li { padding: 2px 8px; border: 1.5px solid var(--ink); font-family: var(--ui); font-size: 12.5px; font-weight: 700; }
.job-match-keywords > div:last-child li { border-style: dashed; border-color: var(--red); color: var(--red); }
.job-match-suggestions, .letter-guidance ul { grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hair); list-style: none; }
.job-match-suggestions li, .letter-guidance li { position: relative; padding-inline-start: 18px; font-size: 15px; }
.job-match-suggestions li::before, .letter-guidance li::before { content: "✎"; position: absolute; inset-inline-start: 0; color: var(--red); }
.job-match-result-actions { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--hair); }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.review-divider { height: 0; margin: 22px 0 14px; border-top: 3px double var(--rule); }
.review-group-head h2 { font-family: var(--display); font-size: 22px; }
.review-group-head p { font-size: 14px; color: var(--soft); }
.review-item { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair); }
.review-item.is-dismissed { opacity: .55; }
.review-item-icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--red); color: var(--red); font-family: var(--ui); font-size: 11px; font-weight: 700; }
.review-item-copy { flex: 1; min-width: 0; }
.review-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-item-title h3 { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.review-item-title span { font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
.review-item-copy > p { margin-top: 6px; font-size: 15px; color: var(--soft); }
.rewrite-sample { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-inline-start: 3px solid var(--red); background: var(--red-wash); }
.rewrite-sample span { flex: none; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--red); }
.rewrite-sample { flex-wrap: wrap; }
.rewrite-sample p { flex: 1 1 160px; min-width: 0; font-style: italic; font-size: 15px; }
@media (max-width: 560px) { .review-item { flex-wrap: wrap; } .review-item > .button { margin-inline-start: 40px; } }
.review-source-quote { margin: 10px 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--ink); }
.review-source-quote blockquote { margin: 4px 0 0; font-style: italic; color: var(--soft); }
.review-change { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--hair); background: var(--panel); }
.review-change-row { display: flex; gap: 10px; margin: 4px 0; }
.review-change-row p { font-size: 15px; }
.review-change-tag { flex: none; align-self: flex-start; padding: 1px 7px; border: 1.5px solid var(--soft); font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.review-change-tag-after { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.review-change-row [data-review-before] { text-decoration: line-through; text-decoration-color: var(--red); color: var(--soft); }
.review-change-reason, .review-guidance-note { margin-top: 8px; font-size: 13.5px; color: var(--soft); }
.review-change-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-stale { margin-top: 8px; font-size: 13.5px; color: var(--red); }
.review-done { font-family: var(--ui); font-size: 12px; color: var(--soft); white-space: nowrap; }
.review-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.review-feedback > span { width: 100%; font-family: var(--ui); font-size: 12px; color: var(--soft); }
.review-feedback button { min-height: 32px; padding: 3px 10px; background: none; border: 1.5px solid var(--hair); font-family: var(--ui); font-size: 12px; font-weight: 700; }
.review-feedback button:hover:not(:disabled) { border-color: var(--ink); }
.review-feedback button:disabled { opacity: .55; cursor: default; }
.review-side-panel, .letters-side-panel, .pack-side-panel { display: grid; gap: 18px; min-width: 0; }
.review-readiness li, .ats-card li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14.5px; }
.review-model-stats { display: flex; gap: 0; margin-top: 12px; border-top: 1px solid var(--hair); }
.review-model-stats span { flex: 1; padding: 8px 10px 0; border-inline-start: 1px solid var(--hair); font-family: var(--ui); font-size: 12px; color: var(--soft); }
.review-model-stats span:first-child { padding-inline-start: 0; border-inline-start: 0; }
.review-model-stats b { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 20px; color: var(--ink); }
.review-dimension { padding: 10px 0; border-top: 1px solid var(--hair); }
.review-dimension-head { display: flex; justify-content: space-between; font-family: var(--ui); font-size: 13px; font-weight: 700; }
.review-dimension-track { height: 4px; margin-top: 6px; background: var(--hair); overflow: hidden; }
.review-dimension-track i { display: block; height: 100%; background: var(--ink); transition: width .35s ease; }
.review-dimension p { margin-top: 5px; font-size: 13px; color: var(--soft); }
.ats-card h3 span { color: var(--red); }

/* application kit */
.letters-signal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; }
.letters-signal-bar > div:first-child { flex: 1 1 320px; }
.letters-signal-bar > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.letters-signal-bar p { font-size: 14.5px; color: var(--soft); }
.letter-local-field > span { display: block; margin-bottom: 4px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.letter-local-field p { font-size: 14px; color: var(--soft); }
.letter-body-field textarea { min-height: 320px; font-family: var(--read); font-size: 17px; line-height: 1.75; }
.letter-guidance { margin-top: 20px; padding-top: 14px; border-top: 3px double var(--rule); }
.interview-prep-list { display: grid; margin-top: 12px; }
.interview-question { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--hair); }
.interview-question-number { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 20px; line-height: 1.1; color: var(--red); }
.interview-question h3 { margin: 4px 0; font-family: var(--display); font-size: 17px; line-height: 1.35; }
.interview-question > div > p:not(.mini-label) { font-size: 14px; color: var(--soft); }
.saved-letters-panel { margin-top: 30px; }
.cover-letter-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.cover-letter-item.active h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.cover-letter-item h3 { font-family: var(--display); font-size: 18px; line-height: 1.3; }
.cover-letter-item p { font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.cover-letter-item > div:last-child { display: flex; gap: 8px; }

/* ready-to-apply pack */
.pack-empty-state { display: flex; gap: 14px; margin-top: 22px; }
.pack-empty-state > span { flex: none; font-family: var(--hand); font-size: 28px; line-height: 1; color: var(--red); }
.pack-application-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.pack-application-heading > div > p:not(.mini-label) { font-style: italic; color: var(--soft); }
.pack-piece-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pack-piece-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.pack-piece-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); font-family: "Playfair Display", Georgia, serif; font-weight: 900; }
.pack-piece-card h3, .pack-next-step h3 { margin: 4px 0; font-family: var(--display); font-size: 18px; }
.pack-piece-card p:not(.mini-label), .pack-next-step p:not(.eyebrow) { font-size: 14px; color: var(--soft); }
.pack-piece-card .form-field, .pack-piece-card > .button, .pack-piece-actions { grid-column: 1 / -1; }
.pack-piece-card > .button { justify-self: start; }
.pack-next-step { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-top: 14px; }
.pack-next-step > div:last-child { display: flex; flex: 1 1 280px; align-items: flex-end; gap: 8px; }
.pack-next-step .form-field { flex: 1; }
.pack-export-panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 22px; margin-top: 14px; }
.pack-export-actions { justify-content: flex-end; }
.pack-readiness-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: 36px; }
.pack-readiness-card li > span { flex: none; }
.pack-preview-section { margin-top: 34px; padding-top: 12px; border-top: 3px double var(--rule); }
.pack-style-select { flex: 0 0 190px; }
.pack-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 16px; }
.pack-document-wrap { min-width: 0; padding: 16px; border: 1px solid var(--hair); background: var(--panel); }
.pack-document-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--soft); }
.pack-document-label small { letter-spacing: 0; text-transform: none; }

/* account */
.account-overview-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.account-overview-avatar, .avatar { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 17px; }
.account-overview-card > div:nth-child(2) { flex: 1 1 220px; min-width: 0; }
.account-overview-card > div:nth-child(2) > p:not(.eyebrow) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ui); font-size: 14px; color: var(--soft); }
.account-verification { display: flex; flex: 1 1 360px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--ink); }
.account-verification > div { flex: 1; min-width: 0; }
.account-verification strong { display: block; font-family: var(--ui); font-size: 14px; }
.account-verification p { font-size: 13.5px; color: var(--soft); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 30px; align-items: start; margin-top: 26px; }
.account-card-sage, .account-card-warm { border-top: 2px solid var(--ink); }
.account-card-warm { border-color: var(--red); border-top-color: var(--red); }
.account-card .button { justify-self: start; }
.account-note { margin-top: 14px; font-size: 14.5px; color: var(--ok); }
.account-note[hidden], [data-requires-password][hidden] { display: none; }
.account-action-stack { margin-top: 18px; }
.account-delete-button { color: var(--red) !important; }
.account-trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 26px; }
.account-trust-strip > span { font-family: var(--hand); font-size: 26px; }
.account-trust-strip > div { flex: 1 1 320px; }
.sessions-list, .share-list { margin-top: 16px; border-top: 1px solid var(--hair); }
.session-row, .share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.session-meta, .share-meta { min-width: 0; }
.session-meta strong, .share-meta strong { display: block; font-family: var(--ui); font-size: 14px; }
.session-meta small, .share-meta small { font-size: 13px; color: var(--soft); }
.share-link-text { font-family: var(--ui); font-size: 12.5px; word-break: break-all; }
.share-row > span, .session-row > span { display: flex; gap: 6px; }

@media (max-width: 980px) {
  .applications-workspace, .letters-workspace, .apply-pack-layout, .review-layout, .import-workspace, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .application-editor-card { position: static; }
  .pack-preview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .application-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-stats article:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .pack-piece-grid, .import-preview-grid, .job-match-keywords { grid-template-columns: minmax(0, 1fr); }
  .job-match-result { grid-template-columns: minmax(0, 1fr); }
}
