/* Tailor · application styles
 * Built on the KH design system tokens (static/ds/tokens.css). Every value here
 * comes from the Tailor design; where the design used an inline style repeated
 * across screens, it is a class here instead.
 */

html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
button { font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  color: var(--ink);
  font-size: 15px;
}
input::placeholder, textarea::placeholder { color: #9AA1B2; }
input:focus, textarea:focus, select:focus {
  outline: var(--focus-width) solid var(--brand);
  outline-offset: var(--focus-offset);
}

@keyframes tl-spin { to { transform: rotate(360deg) } }
.tl-spin { animation: tl-spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tl-spin { animation: none } }

.tl-scroll::-webkit-scrollbar { width: 10px; height: 10px }
.tl-scroll::-webkit-scrollbar-thumb {
  background: #D7DBE8; border-radius: 9px; border: 2px solid var(--bg);
}
.tl-scroll::-webkit-scrollbar-track { background: transparent }

.shell { min-height: 100vh; background: var(--bg); color: var(--ink); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

/* ── Brand marks ───────────────────────────────────────────────────────── */

.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 10px;
  background: var(--gradient);
  color: var(--on-ink);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 120, 'wght' 900;
  font-size: 16px;
  letter-spacing: -.05em;
  line-height: 1;
  user-select: none;
  box-shadow: var(--shadow-glow);
}
.monogram.lg {
  width: 56px; height: 56px; border-radius: 16px; font-size: 26px;
}

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

.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.header .wrap {
  display: flex; align-items: center; gap: 30px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 18px; letter-spacing: -.028em; line-height: 1; color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; color: var(--muted); line-height: 1;
}

.nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 0 0 auto; white-space: nowrap; }
.nav-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; padding: 0 6px;
  display: inline-flex; align-items: center;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; height: 100%;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.is-active { font-weight: 700; color: var(--ink); border-bottom-color: var(--brand); }
.nav-btn .count {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 7px;
}

.telemetry {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted); flex: 0 1 auto; min-width: 0; overflow: hidden;
}
.telemetry span:last-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dot.ok { background: var(--ok) }
.dot.warn { background: var(--warn) }
.dot.down { background: var(--down) }
.dot.idle { background: var(--idle) }
.spacer { flex: 1 1 auto; }

@media (max-width: 1199px) { .telemetry { display: none } }

/* ── Buttons (design system Button) ────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  background: var(--brand); border-color: var(--brand); color: var(--on-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--motion-hover) var(--ease),
              border-color var(--motion-hover) var(--ease),
              color var(--motion-hover) var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-ink); text-decoration: none; }
.btn.sm { font-size: 13.5px; padding: 8px 14px; }
.btn.ghost { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn.ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* Quiet text button ("Collapse", "All notes", "Archive") */
.btn-text {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px;
}
.btn-text:hover { color: var(--brand); }
.btn-text.sm { font-size: 12.5px; padding: 2px; }

/* Small bordered action ("Open", "Restore") */
.btn-quiet {
  font-size: 12.5px; font-weight: 600;
  background: none; border: 1px solid var(--hairline); border-radius: 8px;
  padding: 6px 10px; color: var(--ink-2); cursor: pointer;
}
.btn-quiet:hover { border-color: var(--brand); color: var(--brand); }

/* Square icon button (stage move, expand) */
.btn-icon {
  width: 32px; height: 32px; flex: 0 0 auto;
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: var(--radius-input); cursor: pointer;
  color: var(--ink); font-size: 14px; line-height: 1;
}
.btn-icon:hover { border-color: var(--brand); color: var(--brand); }
.btn-icon.xs { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; color: var(--ink-2); }

/* ── Pills, chips, segments ────────────────────────────────────────────── */

.pill {
  display: inline-block; font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: .005em;
  border-radius: var(--radius-pill); padding: 5px 11px;
  white-space: nowrap; line-height: 1.25;
  color: var(--idle); background: var(--idle-tint);
}
.pill.ok { color: var(--ok); background: var(--ok-tint) }
.pill.warn { color: var(--warn); background: var(--warn-tint) }
.pill.down { color: var(--down); background: var(--down-tint) }
.pill.idle { color: var(--idle); background: var(--idle-tint) }
.pill.brand { color: var(--brand); background: var(--brand-soft) }
/* A pill that is a direct grid child would otherwise be stretched to the full
   column width, which turns a label into a bar. */
.trow > .pill, .stage-row > .pill, .run-row > .pill, .vr-row > .pill { justify-self: start; }
.pill.lg { font-size: 13.5px; padding: 6px 13px; }
.pill.xs { font-size: 12px; }
.pill.code {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
}
.pill.op { font-size: 11.5px; padding: 4px 9px; }

.chip {
  border: 1px solid var(--hairline); cursor: pointer;
  border-radius: var(--radius-pill); padding: 6px 13px;
  font-size: 13px; font-weight: 600;
  background: var(--surface); color: var(--muted); white-space: nowrap;
}
.chip.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.segbar {
  display: inline-flex; background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: var(--radius-button);
  padding: 4px; gap: 4px;
}
.seg {
  border: none; cursor: pointer; border-radius: 8px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; font-family: var(--font-body);
  background: transparent; color: var(--muted); box-shadow: none;
}
.seg.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.sm { font-size: 13px; padding: 7px 13px; }

.stage-filter {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; padding: 8px 14px;
  border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
}
.stage-filter .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.stage-filter.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-ink); }
.stage-filter.is-active .n { color: var(--on-ink-muted); }

/* ── Surfaces ──────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-pad { padding: 20px 22px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap;
}
.card-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-top: 1px solid var(--hairline); background: var(--surface-2);
}
.row-div { border-bottom: 1px solid var(--hairline); }
.rule { height: 1px; background: var(--hairline); }

.field-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.mono-meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted);
}
.mono-sm {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }

textarea.plain, input.plain {
  width: 100%; border: none; background: none;
  padding: 20px 22px; font-size: 15px; line-height: 1.6;
  resize: vertical; display: block;
}
.input {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-input); padding: 10px 14px;
  font-size: 14px; box-shadow: var(--shadow-sm);
}
.select {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--radius-input); padding: 9px 11px;
  font-size: 14px; cursor: pointer;
}

/* ── Page + section headings ───────────────────────────────────────────── */

main { display: block; }
.page { max-width: 1440px; margin: 0 auto; padding: 32px 28px 90px; }
.page.narrow { max-width: 1180px; }
.page.generate {
  padding: 36px 28px 100px;
  display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 36px; align-items: start;
}
@media (max-width: 1100px) {
  .page.generate { grid-template-columns: minmax(0, 1fr); }
  .page.generate aside { position: static !important; }
}

.h1 {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112, 'wght' 850;
  font-size: 38px; letter-spacing: -.035em; line-height: 1; margin: 0;
}
.h1.hero { font-size: 46px; line-height: .98; }
.h2-sub {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 500;
  font-size: 26px; letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 0;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 12px;
}
.lede {
  margin: 12px 0 0; font-size: 14.5px; color: var(--muted);
  line-height: 1.6; max-width: 66ch; text-wrap: pretty;
}

.step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.step.first { margin-top: 34px; }
.step-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand); letter-spacing: .04em;
}
.step-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 22px; letter-spacing: -.028em; margin: 0; color: var(--ink);
}
.step.is-waiting { opacity: .4; }

/* ── Generate: intake ──────────────────────────────────────────────────── */

.dropzone {
  background: var(--surface); border: 1.5px dashed var(--hairline);
  border-radius: var(--radius); padding: 42px 24px; text-align: center;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); }
.dropzone .plus {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 34px; line-height: 1; color: var(--brand); margin-bottom: 14px;
}
.filetag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 6px; padding: 6px 8px; flex: 0 0 auto;
}

.jd-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.jd-grid .cell { background: var(--surface); padding: 15px 17px; }
.jd-grid .cell .k { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.jd-grid .cell .v { font-size: 15px; font-weight: 600; }
.jd-grid .cell .v.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.jd-grid .cell input {
  width: 100%; border: none; background: none; padding: 0;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
@media (max-width: 760px) { .jd-grid { grid-template-columns: minmax(0, 1fr); } }

.req-chip {
  font-size: 13px; font-weight: 500; border-radius: var(--radius-pill);
  padding: 6px 13px; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--ink-2);
}
.req-chip.missing { background: var(--surface-2); color: var(--muted); }

.notice {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-soft); border-radius: var(--radius-input);
  padding: 13px 16px; flex-wrap: wrap;
}
.notice .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--brand);
}

.excerpt {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--muted);
  background: var(--surface-2); border-radius: var(--radius-input);
  padding: 16px; max-height: 124px; overflow: hidden;
}
.log {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.8; color: var(--muted);
  background: var(--surface-2); border-radius: var(--radius-input);
  padding: 16px; white-space: pre-wrap; max-height: 260px; overflow: auto;
}

/* ── Generate: result ──────────────────────────────────────────────────── */

.result-grid { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1240px) {
  .result-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.score {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 800;
  font-size: 52px; letter-spacing: -.03em; line-height: 1;
}
.score.ok { color: var(--ok) } .score.warn { color: var(--warn) }
.score.down { color: var(--down) } .score.idle { color: var(--idle) }

.vr-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--hairline);
}
.vr-row .rdot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 7px; }
.vr-row .rdot.ok { background: var(--ok) }
.vr-row .rdot.warn { background: var(--warn) }
.vr-row .rdot.down { background: var(--down) }

.banner-warn { padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.banner-warn.down { background: var(--down-tint) }
.banner-warn.warn { background: var(--warn-tint) }

.run-row {
  display: grid; grid-template-columns: 150px 78px minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--hairline);
}
@media (max-width: 700px) { .run-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ── Sidebar (Generate) ────────────────────────────────────────────────── */

.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-sec { padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.side-sec:last-child { border-bottom: none; }
.side-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 21px; letter-spacing: -.028em; line-height: 1.15; margin-bottom: 6px;
}
.event {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 11px; padding-bottom: 13px;
}
.event .edot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hairline);
  margin-top: 6px; border: 1px solid #CDD2E0;
}
.note {
  background: var(--surface-2); border-radius: var(--radius-input);
  padding: 12px 13px; margin-bottom: 9px;
}

/* ── Pipeline ──────────────────────────────────────────────────────────── */

.kpis {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; margin-bottom: 22px;
}
.kpi { flex: 1 1 140px; min-width: 120px; padding: 16px 18px; border-left: 1px solid var(--hairline); }
.kpi:first-child { border-left: none; }
.kpi .k {
  font-family: var(--font-mono); font-size: var(--fs-mono-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--muted);
}
.kpi .v {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: var(--fs-kpi); letter-spacing: -.02em; color: var(--ink);
  margin-top: 6px; line-height: 1;
}
.kpi .s {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--muted); margin-top: 6px;
}

.columns {
  display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 16px;
  align-items: start; overflow-x: auto; padding-bottom: 10px;
}
.col-head { display: flex; align-items: center; gap: 9px; padding: 0 4px 12px; }
.col-head .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.col-head .n {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  background: var(--surface-2); border-radius: var(--radius-pill); padding: 3px 9px;
}
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.sdot.toapply { background: transparent; border: 1.5px solid var(--idle) }
.sdot.progress { background: transparent; border: 1.5px solid var(--ok) }
.sdot.applied { background: var(--ok); border: 1.5px solid var(--ok) }
.sdot.stuck { background: var(--warn); border: 1.5px solid var(--warn) }
.sdot.rejected { background: var(--down); border: 1.5px solid var(--down) }

.col-cards { display: flex; flex-direction: column; gap: 12px; }
.jcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.jcard .body { padding: 14px 15px 13px; }
.jcard .title {
  background: none; border: none; padding: 0; text-align: left;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink);
  cursor: pointer; line-height: 1.3; min-width: 0;
}
.jcard .title:hover { color: var(--brand); }
.jcard .role { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-bottom: 10px; }
.jcard .bar {
  display: flex; align-items: center; gap: 5px; padding: 9px 10px;
  border-top: 1px solid var(--hairline); background: var(--surface-2);
}
.jcard .ddot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 6px; }
.jcard .ddot.none { background: transparent; border: 1px solid #CDD2E0; }
.notecount {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 4px 8px;
}
.col-empty {
  border: 1.5px dashed var(--hairline); border-radius: var(--radius);
  padding: 24px 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted);
}

.stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.1fr) 44px 116px 20px;
  gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--hairline);
}
.stage-row:hover { background: var(--surface-2); }
@media (max-width: 900px) { .stage-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ── History tables ────────────────────────────────────────────────────── */

.table { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.thead, .trow { display: grid; gap: 12px; align-items: center; }
.thead {
  padding: 12px 18px; border-bottom: 1px solid var(--hairline);
  background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.trow { padding: 12px 18px; border-bottom: 1px solid var(--hairline); }
.trow:hover { background: var(--surface-2); }
.cols-runs { grid-template-columns: 148px 80px minmax(0, 1fr) 150px 112px 74px 64px 80px; }
.cols-activity { grid-template-columns: 160px minmax(0, 1fr) 230px 96px; }
.cols-archive { grid-template-columns: 184px minmax(0, 1fr) 136px 160px 130px 92px; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1000px) {
  .cols-runs, .cols-activity, .cols-archive { grid-template-columns: minmax(0, 1fr) auto; }
  .thead { display: none; }
}

.notes-grid { display: grid; grid-template-columns: 344px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Master CV ─────────────────────────────────────────────────────────── */

.cv-grid { display: grid; grid-template-columns: 196px minmax(0, 1fr) 272px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .cv-grid { grid-template-columns: minmax(0, 1fr); } }
.cv-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 84px; }
.cv-nav button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  border: none; border-radius: var(--radius-input); padding: 10px 12px;
  font-size: 14px; font-weight: 500; background: transparent; color: var(--muted);
}
.cv-nav button .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: auto; }
.cv-nav button.is-active { font-weight: 700; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.cv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.cv-role { padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.cv-role .title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 18px; letter-spacing: -.026em;
}
.bullet { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 7px; margin-bottom: 8px; }
.bullet .b { color: var(--muted); }
.bullet textarea, .cv-edit {
  width: 100%; border: 1px solid transparent; background: transparent;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
  padding: 4px 6px; border-radius: 8px; resize: vertical; font-family: inherit;
}
.bullet textarea:hover, .cv-edit:hover { border-color: var(--hairline); background: var(--surface-2); }

/* ── Toast ─────────────────────────────────────────────────────────────── */

.toasts {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-input); box-shadow: var(--shadow-md);
  padding: 13px 15px; font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.toast .t { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.toast.down { border-left: 3px solid var(--down); }
.toast.warn { border-left: 3px solid var(--warn); }
.toast.ok { border-left: 3px solid var(--ok); }

/* ── Empty / loading ───────────────────────────────────────────────────── */

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--hairline); border-top-color: var(--brand); flex: 0 0 auto;
}
.loading {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.empty-note { padding: 18px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ── Sign-in ───────────────────────────────────────────────────────────── */

.signin {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
}
.signin .box {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 40px 34px; text-align: center;
}
.signin .btn { width: 100%; margin-top: 26px; }
.signin input {
  width: 100%; margin-top: 22px; background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: var(--radius-input);
  padding: 11px 13px; font-size: 15px; text-align: center;
}
.signin .err { margin-top: 18px; font-size: 13.5px; color: var(--down); }
