/* styles/account.css */
/* ─────────────────────────────────────────────────────────────────────────────
   nctype — Account + Admin. Dark interface.

   Ported from care/src/styles.css (Tah interface-design token system): a near-black
   NEUTRAL ground, opaque surfaces that step up in luminance for elevation, hairline
   dividers, one measured indigo accent used sparingly, crisp (never pure-white) text,
   Phosphor icons, no emoji. Adds the role-tab bar and the Phase-2 stub block.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  /* Neutral near-black ground + surfaces. Elevation = +luminance, ~5–6% per step. */
  --bg-0:    #08080a;
  --glass:   #0e0e11;
  --glass-2: #16161a;
  --glass-3: #1d1d22;
  --surface-4: #26262c;

  /* Hairlines — present when sought, invisible otherwise. */
  --hairline:   rgba(255, 255, 255, 0.07);
  --hairline-2: rgba(255, 255, 255, 0.12);

  --blur: 14px; /* overlays only */

  /* Text — high legibility, no harsh pure white. */
  --ink:       #ececee;
  --ink-dim:   #9a9aa3;
  --ink-faint: #62626b;

  /* One accent — a calm indigo-periwinkle. Used sparingly: focus, primary action. */
  --accent:     #7c84f4;
  --accent-2:   #9ba2f7;
  --accent-ink: #0a0a12;
  --accent-soft: rgba(124, 132, 244, 0.14);
  --accent-line: rgba(124, 132, 244, 0.40);
  --accent-glow: rgba(124, 132, 244, 0.16);

  /* Semantic */
  --danger: #ef736f;
  --warn:   #e3b06b;
  --ok:     #5fcaa0;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 11px;
  --r-xl: 14px;

  --shadow-2:   0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 16px 44px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font: 13.5px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.003em;
}

::selection { background: var(--accent-soft); }

* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.10) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); background-clip: padding-box; }

.muted { color: var(--ink-dim); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ── controls ────────────────────────────────────────────────────────────────── */
.in {
  background: var(--glass-3);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 7px 10px; font: inherit; outline: none;
  transition: border-color .13s ease, box-shadow .13s ease;
}
.in::placeholder { color: var(--ink-faint); }
.in:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-glow); }

button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  border-radius: var(--r-md); padding: 7px 13px; font: inherit; font-weight: 600;
  cursor: pointer; transition: background .13s ease, transform .05s ease, border-color .13s ease, color .13s ease;
}
button:hover { background: var(--accent-2); }
button:active { transform: translateY(0.5px); }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }

button.ghost { background: var(--glass-3); color: var(--ink-dim); border: 1px solid var(--hairline); }
button.ghost:hover { color: var(--ink); border-color: var(--hairline-2); background: var(--surface-4); }
button.sm { padding: 5px 9px; font-size: 12px; border-radius: var(--r-sm); }

/* ── app shell ───────────────────────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; min-height: 100%; }

.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; height: 56px; flex: none;
  background: var(--glass);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 30;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo .mark {
  width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.logo-sub { color: var(--ink-faint); font-weight: 500; font-size: 12px; padding-left: 6px; border-left: 1px solid var(--hairline-2); }
.bar .spacer { flex: 1; }

.who {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--glass-3); border: 1px solid var(--hairline); color: var(--ink-dim);
}
.who .swatch { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ── role tab bar (inline in the header) ─────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; flex: none; margin-left: 8px;
}
.tabs button {
  background: transparent; color: var(--ink-dim); border: 1px solid transparent;
  border-radius: var(--r-md); padding: 7px 13px; font-weight: 600; font-size: 13px;
}
.tabs button:hover { color: var(--ink); background: var(--glass-2); }
.tabs button.on { color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent-line); }

/* ── view header + body ──────────────────────────────────────────────────────── */
.view { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.view-head { padding: 28px 0 18px; }
.view-head h1 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.view-head .sub { color: var(--ink-faint); font-size: 13px; }
.view-body { padding-bottom: 40px; }

.empty {
  display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center;
  color: var(--ink-faint); padding: 48px 24px; font-size: 13px;
}

/* ── Phase-2 stub ────────────────────────────────────────────────────────────── */
.stub {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  color: var(--ink-faint); padding: 56px 24px;
  background: var(--glass-2); border: 1px dashed var(--hairline-2); border-radius: var(--r-lg);
}
.stub > svg { color: var(--accent-2); }
.stub-title { color: var(--ink); font-size: 15px; font-weight: 650; }
.stub-sub { font-size: 13px; }

/* ── order cards ─────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.order-card {
  display: flex; flex-direction: column; gap: 13px;
  background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 16px 18px; transition: border-color .13s, background .13s;
}
.order-card:hover { border-color: var(--hairline-2); }
.order-head { display: flex; align-items: center; gap: 10px; }
.order-id { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 14px; }
.order-id > svg { color: var(--ink-faint); }

.badge { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge.pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }

.order-fonts { display: flex; flex-wrap: wrap; gap: 6px; }
.font-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  background: var(--glass-3); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 4px 9px;
}
.font-chip > svg { color: var(--accent-2); }

.order-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--ink-dim); }
.meta { display: inline-flex; align-items: baseline; gap: 6px; }
.meta-k { color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; }

.order-actions { display: flex; gap: 8px; margin-top: 2px; }
.order-actions button { flex: 1; }
.revoked-note { font-size: 12.5px; color: var(--ink-dim); background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 10px 12px; }

/* ── modal (upgrade) ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 22px;
  animation: fade .13s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 460px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: var(--glass-2);
  border: 1px solid var(--hairline-2); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  animation: pop .15s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.modal-head strong { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.modal-x { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; background: transparent; border: 0; color: var(--ink-faint); cursor: pointer; border-radius: var(--r-sm); }
.modal-x:hover { color: var(--ink); background: var(--glass-3); }
.modal-body { padding: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 12px; color: var(--ink-dim); margin-bottom: 9px; font-weight: 600; }

.quant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 7px; }
.quant-opt {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--glass-3); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 9px 6px; font-weight: 650; font-size: 13px; cursor: pointer;
}
.quant-opt:hover { border-color: var(--hairline-2); background: var(--surface-4); }
.quant-opt.sel { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-2); }
.quant-sub { font-size: 10px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.quant-opt.sel .quant-sub { color: var(--accent-2); }

.quote {
  background: var(--glass-3); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px;
}
.quote-row { display: flex; justify-content: space-between; color: var(--ink-dim); }
.quote-row.total { color: var(--ink); font-weight: 700; padding-top: 8px; border-top: 1px solid var(--hairline); }

/* ── login ───────────────────────────────────────────────────────────────────── */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-0); }
.login-card {
  width: 360px; display: flex; flex-direction: column; gap: 11px;
  background: var(--glass); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-2);
}
.login-logo { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 2px; }
.login-logo .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.login-sub { text-align: center; color: var(--ink-dim); font-size: 13px; margin-bottom: 6px; }
.login-card .in { width: 100%; }
.login-card form { display: flex; flex-direction: column; gap: 11px; }
.login-go { width: 100%; padding: 10px; margin-top: 2px; text-decoration: none; }
.login-error { color: var(--danger); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.login-hint { color: var(--ink-faint); font-size: 12px; text-align: center; }
.login-sent { font-size: 14px; line-height: 1.6; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.login-sent .ico { color: var(--ok); }

.dev-hint { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 12px; border: 1px dashed var(--hairline-2); border-radius: var(--r-md); }
.dev-hint-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; }
.dev-hint .in { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN CMS — Fonts / Pages / Settings two-pane editor.
   Ported from web/src/styles/admin.css. A few selectors are namespaced (cms-panes,
   cms-field, cms-empty) to avoid colliding with the account-side .field/.empty above;
   everything else is unique to the CMS surfaces.
   ════════════════════════════════════════════════════════════════════════════════ */

/* CMS reuses .in but adds a full-width default + a mono variant for raw HTML/JSON. */
.cms-panes .in,
.editor .in,
textarea.in,
select.in { width: 100%; }
textarea.in { resize: vertical; min-height: 88px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; }

button.danger { background: rgba(239, 115, 111, 0.13); color: var(--danger); border: 1px solid transparent; }
button.danger:hover { background: var(--danger); color: #1a0c0c; }

/* ── two-pane body ───────────────────────────────────────────────────────────────
   The shell's .content is the scroll container; the CMS fills it with a list │ editor
   split that scrolls each pane independently. */
.cms-panes { display: grid; grid-template-columns: 320px 1fr; flex: 1; min-height: 0; }
.pane-list { border-right: 1px solid var(--hairline); background: var(--glass); overflow-y: auto; display: flex; flex-direction: column; }
.pane-edit { overflow-y: auto; background: var(--bg-0); }

.list-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; position: sticky; top: 0; background: var(--glass); border-bottom: 1px solid var(--hairline); z-index: 2; }
.list-head h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0; font-weight: 700; }
.list-head .spacer { flex: 1; }

.list-group { padding: 8px 0; }
.list-group .glabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); padding: 8px 16px 4px; font-weight: 700; }

.row { display: flex; align-items: center; gap: 9px; padding: 9px 16px; cursor: pointer; border-left: 2px solid transparent; }
.row:hover { background: var(--glass-2); }
.row.on { background: var(--glass-3); border-left-color: var(--accent); }
.row .rmain { min-width: 0; flex: 1; }
.row .rtitle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rsub { color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rprice { color: var(--ink-dim); font-size: 12px; font-variant-numeric: tabular-nums; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.pub { background: var(--ok); }
.dot.draft { background: var(--ink-faint); }

/* ── editor ──────────────────────────────────────────────────────────────────────*/
.editor { max-width: 820px; margin: 0 auto; padding: 26px 30px 60px; }
.editor .ehead { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.editor .ehead h1 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.editor .ehead .spacer { flex: 1; }

.cms-field { margin-bottom: 16px; }
.cms-field > label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; margin-bottom: 6px; }
.cms-field .help { color: var(--ink-faint); font-size: 11.5px; margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { width: 38px; height: 22px; border-radius: 999px; background: var(--glass-3); border: 1px solid var(--hairline); position: relative; transition: background .14s ease; }
.toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-dim); transition: transform .14s ease, background .14s ease; }
.toggle input:checked + .track { background: var(--accent-soft); border-color: var(--accent-line); }
.toggle input:checked + .track::after { transform: translateX(16px); background: var(--accent); }

/* repeatable styles editor */
.styles-list { display: flex; flex-direction: column; gap: 8px; }
.styles-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; }

.cms-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--ink-faint); text-align: center; padding: 40px; }
.cms-empty .big { font-size: 15px; color: var(--ink-dim); margin-bottom: 6px; }

/* feedback banners */
.banner { padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 16px; font-size: 13px; }
.banner.err { background: rgba(239,115,111,.13); border: 1px solid rgba(239,115,111,.3); color: var(--danger); }
.banner.ok { background: rgba(95,202,160,.14); border: 1px solid rgba(95,202,160,.3); color: var(--ok); }

.viewlink { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent-2); text-decoration: none; }
.viewlink:hover { text-decoration: underline; }
.savebar { display: flex; align-items: center; gap: 10px; }

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN ORDERS — fulfilment table (ported from the live dashboard, minus the socket).
   ════════════════════════════════════════════════════════════════════════════════ */
.ordr-head { display: flex; align-items: flex-end; gap: 12px; }
.ordr-head .spacer { flex: 1; }

.ordr-tablewrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--glass-2); }
.ordr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ordr-table th { text-align: left; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.ordr-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.ordr-table tr:last-child td { border-bottom: none; }
.ordr-table tr.is-paid { background: rgba(95,202,160,.05); }
.ordr-table tbody tr:hover { background: var(--glass-3); }
.ordr-cust { font-weight: 600; }
.ordr-sub { color: var(--ink-faint); font-size: 11.5px; margin-top: 2px; }
.ordr-empty { text-align: center; color: var(--ink-faint); padding: 32px; }
.ordr-badge { display: inline-flex; font-size: 10.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--glass-3); color: var(--ink-dim); border: 1px solid var(--hairline); }
.ordr-badge--paid { color: var(--ok); background: rgba(95,202,160,.14); border-color: rgba(95,202,160,.3); }
.ordr-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════════════════
   VERSIONS — admin CMS panel (font editor) + customer history (My Fonts).
   ════════════════════════════════════════════════════════════════════════════════ */
/* badge variants used by versions UIs (override the default margin-left:auto so they
   sit inline within their flex rows). */
.badge.update { color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-left: 0; }
.badge.sm { font-size: 10px; padding: 2px 7px; margin-left: 0; }
.badge.muted-badge { color: var(--ink-dim); background: var(--glass-3); border: 1px solid var(--hairline); margin-left: 0; }

/* --- admin CMS Versions panel --- */
.versions { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline-2); }
.versions-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.versions-title > svg { color: var(--accent-2); }
.versions-empty { font-size: 13px; margin-bottom: 16px; }
.versions-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.version-row { background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 14px; }
.version-main { display: flex; flex-direction: column; gap: 8px; }
.version-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.version-head .spacer { flex: 1; }
.version-num { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; }
.version-num > svg { color: var(--accent-2); }
.version-head .badge.ok { margin-left: 0; }
.version-date { font-size: 11.5px; }
.version-log { font-size: 12.5px; color: var(--ink-dim); white-space: pre-wrap; }

.vuploader { border-top: 1px dashed var(--hairline); padding-top: 9px; margin-top: 2px; }
.vuploader-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.vuploader-folder { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.vuploader-folder .in { min-width: 160px; }
.vuploader-pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--glass-3); color: var(--ink-dim); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 6px 11px; font-size: 12px; font-weight: 600; }
.vuploader-pick:hover { color: var(--ink); border-color: var(--hairline-2); background: var(--surface-4); }
.vuploader-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vfile { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.vfile.ok > svg { color: var(--ok); }
.vfile.err > svg { color: var(--danger); }
.vfile-name { font-weight: 600; }
.vfile-key { font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vfile-err { color: var(--danger); font-size: 11.5px; }

.version-new { display: flex; flex-direction: column; gap: 8px; background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 13px 14px; }
.vnew-row { display: flex; gap: 8px; }
.vnew-row .in { flex: 1; }

/* --- customer version history (My Fonts) --- */
.versions-block { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.versions-block.muted { color: var(--ink-dim); font-size: 12.5px; display: flex; flex-direction: row; align-items: center; gap: 7px; }
.versions-block-head { display: flex; align-items: center; gap: 9px; }
.versions-block-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; }
.versions-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vhist-row { background: var(--glass-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 8px 11px; }
.vhist-line { display: flex; align-items: center; gap: 9px; }
.vhist-line .spacer { flex: 1; }
.vhist-num { font-weight: 650; font-size: 13px; }
.vhist-date { font-size: 11.5px; }
.vhist-log { font-size: 12px; color: var(--ink-dim); margin-top: 5px; white-space: pre-wrap; }
