/* Shared shell for both Mini Apps.
   Surfaces come from Telegram's theme so the app matches the client the user
   is already in; the three semantic accents below are ours and carry meaning:
   jade = money settled, amber = waiting on someone, rose = blocked or gone. */
:root {
  --bg:      var(--tg-theme-bg-color, #12171F);
  --panel:   var(--tg-theme-secondary-bg-color, #1B232E);
  --text:    var(--tg-theme-text-color, #E9EEF5);
  --muted:   var(--tg-theme-hint-color, #8899AB);
  --accent:  var(--tg-theme-button-color, #3A86D6);
  --on-accent: var(--tg-theme-button-text-color, #FFFFFF);
  --jade: #12B886;
  --amber: #F2A93B;
  --rose: #E5484D;
  --line: rgba(128, 150, 175, .22);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.45; padding-bottom: 78px;
  overscroll-behavior-y: contain;
}
/* Every figure — price, id, key, countdown — is monospace with tabular
   figures, so columns line up and amounts can be compared at a glance. */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 640px; margin: 0 auto; padding: 14px; }
h1 { font-size: 21px; margin: 0 0 2px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 22px 0 10px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
/* Stock state as a colour rail down the card edge — blue buyable, red gone. */
.card.live { border-left: 3px solid var(--accent); }
.card.gone { border-left: 3px solid var(--rose); opacity: .72; }

.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }

button, .btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 11px; padding: 12px 16px;
  background: var(--accent); color: var(--on-accent); cursor: pointer; width: 100%;
  transition: transform .12s ease, opacity .12s ease;
}
button:active { transform: scale(.985); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.danger { background: var(--rose); color: #fff; }
.mini { width: auto; padding: 8px 13px; font-size: 13px; border-radius: 9px; }

input, textarea, select {
  font: inherit; width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
textarea { resize: vertical; min-height: 88px; font-family: var(--mono); font-size: 13px; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase;
}
.pill.ok      { background: color-mix(in srgb, var(--jade) 18%, transparent);  color: var(--jade); }
.pill.wait    { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.pill.bad     { background: color-mix(in srgb, var(--rose) 18%, transparent);  color: var(--rose); }
.pill.live    { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pill.neutral { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }

/* Signature element: stock as discrete segments, because digital stock IS
   discrete — one segment per unit up to 20, then it scales. The notch marks
   the low-stock threshold, so "about to run out" is visible without reading. */
.gauge { display: flex; gap: 2px; height: 7px; margin-top: 9px; }
.gauge i {
  flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--muted) 28%, transparent);
}
.gauge i.on   { background: var(--jade); }
.gauge i.warn { background: var(--amber); }
.gauge i.out  { background: var(--rose); }
.gauge i.notch { box-shadow: inset 0 0 0 1px var(--text); opacity: .9; }
.gauge.infinite i { background: linear-gradient(90deg, var(--jade), transparent); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; z-index: 40;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-top: 1px solid var(--line); backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabs button {
  flex: 1; background: none; color: var(--muted); border-radius: 0; padding: 10px 4px 12px;
  font-size: 10.5px; font-weight: 600; display: flex; flex-direction: column;
  align-items: center; gap: 3px; letter-spacing: .02em;
}
.tabs button span { font-size: 18px; line-height: 1; }
.tabs button.sel { color: var(--accent); }

/* Availability rail on product cards — the fastest read in the list. */
.card.in-stock { border-left: 3px solid var(--accent); }
.card.sold-out { border-left: 3px solid var(--rose); opacity: .72; }
.small.in  { color: var(--accent); font-weight: 600; }
.small.out { color: var(--rose);   font-weight: 600; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 6px; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(8px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: 88vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--rose); color: #fff; }

.keys {
  font-family: var(--mono); font-size: 13px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 11px; padding: 11px;
  white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto;
}
.skeleton {
  background: linear-gradient(90deg, var(--panel), color-mix(in srgb, var(--muted) 14%, var(--panel)), var(--panel));
  background-size: 200% 100%; animation: sweep 1.3s infinite; border-radius: var(--radius);
  height: 74px; margin-bottom: 10px;
}
@keyframes sweep { to { background-position: -200% 0; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================================================================
   Storefront
   The shop is a brand surface, not a system surface: it keeps its own
   dark violet palette in every client instead of following the host
   theme, so the hero reads the same for every buyer. Admin stays
   theme-following, because that's a tool, not a shopfront.
   =================================================================== */
body.store {
  --bg:      #0A0B16;
  --panel:   #12142A;
  --raised:  #171A35;
  --text:    #EEF0FA;
  --muted:   #8B90B5;
  --accent:  #6D5CFF;
  --accent-2:#A78BFA;
  --on-accent:#FFFFFF;
  --line:    rgba(140, 150, 210, .18);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(109, 92, 255, .20), transparent 60%),
    radial-gradient(900px 460px at 92% 4%, rgba(167, 139, 250, .13), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  font-family: 'DM Sans', var(--sans);
}
body.store h1, body.store h2, body.store .display {
  font-family: 'Sora', var(--sans);
  letter-spacing: -.03em;
}

.topbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 0 16px;
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(var(--bg) 72%, transparent);
}
.brandmark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(109, 92, 255, .35);
}
.brandname { font-family: 'Sora', var(--sans); font-weight: 700; font-size: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
  white-space: nowrap;
}
.chip.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.switch { display: inline-flex; padding: 3px; border-radius: 999px;
          border: 1px solid var(--line); background: var(--panel); gap: 3px; }
.switch .chip { border: 0; background: none; padding: 5px 11px; }

/* Hero. One gradient panel, one accent line in the headline — the whole
   page leans on this, so everything below it stays plain. */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 20px 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(620px 240px at 8% -20%, rgba(109, 92, 255, .34), transparent 65%),
    linear-gradient(158deg, var(--raised), var(--panel));
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-2); background: rgba(109, 92, 255, .14);
  border: 1px solid rgba(140, 130, 255, .3);
}
.hero h1 {
  font-size: clamp(29px, 8.6vw, 42px); line-height: 1.04; margin: 16px 0 0;
  font-weight: 800;
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(96deg, var(--accent-2), #C4B5FD 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 14px 0 20px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .cta button { width: auto; flex: 1 1 auto; min-width: 140px; }
.trust {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  font-size: 12.5px; color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* Two across, left aligned: four thin columns squeeze a five-digit stock
   count onto two lines on a phone, which is where this is read. */
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.statgrid .card { padding: 14px; margin: 0; text-align: left; }
.statgrid .ico {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 10px; font-size: 16px;
  border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.statgrid .n {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.statgrid .l { font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
               color: var(--muted); margin-top: 3px; }
.sub.tight { margin: -4px 0 12px; font-size: 13.5px; color: var(--muted); }

.sectionhead { display: flex; align-items: baseline; justify-content: space-between;
               margin: 26px 0 10px; }
.sectionhead h2 { margin: 0; font-size: 18px; }
.sectionhead .count { font-size: 12px; color: var(--muted); }

.search {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); margin-bottom: 12px;
}
.search input { border: 0; background: none; padding: 0; font-size: 14px; }
.search input:focus-visible { outline: none; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative; border-radius: 16px; padding: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .14s ease, border-color .14s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(140, 130, 255, .45); }
.tile:active { transform: scale(.99); }
.tile.out { opacity: .55; }
.tile .ico { font-size: 24px; line-height: 1; }
.tile .nm { font-weight: 650; font-size: 14px; line-height: 1.25; }
.tile .pr {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 16px; margin-top: auto;
}
.tile .st { font-size: 11.5px; font-weight: 600; }
.tile .st.in  { color: var(--jade); }
.tile .st.low { color: var(--amber); }
.tile .st.no  { color: var(--rose); }

.trunc2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
          overflow: hidden; }

/* header icon buttons and the primary sign-in chip */
.chip.ico { padding: 6px 9px; font-size: 14px; line-height: 1; }
.chip.solid {
  background: var(--panel); color: var(--text); font-weight: 700;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.chip.solid:hover { border-color: var(--accent); }

/* storefront hero and stat strip */
.hero {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 22px 22px; margin-bottom: 18px;
}
.hero h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 12px; }
.hero h1 .accent { color: var(--accent); }
.pill.trust {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-weight: 600;
}
.trustrow { gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.trustrow span { font-size: 12px; color: var(--muted); }
.statgrid { margin-bottom: 20px; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 10px; }
.grow { flex: 1; }
img.brandmark { object-fit: cover; }
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
}

/* delivered screen */
.ok-card { text-align: center; padding: 26px 20px 20px; border-color: var(--ok); }
.ok-card .tick { font-size: 34px; line-height: 1; }
.keyrow {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.keyrow code {
  flex: 1; font-size: 13px; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.keyrow .mini { flex: none; }


/* --- terms gate --- */
.terms { max-width: 34rem; margin: 1rem auto; }
.terms h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.terms-body {
  max-height: 55vh; overflow-y: auto; margin-bottom: 1rem;
  font-size: .93rem; line-height: 1.55; opacity: .9;
}
.btn.wide { width: 100%; margin-top: .5rem; }

/* ---- deposit wallet (admin) -------------------------------------------
   Cards rather than a table: on a phone-width panel the amount column wrapped
   and left "received" and "order(s)" stranded on their own lines. A card can
   put the two numbers that matter on one row and let the address, which is
   long and unbreakable, have a line to itself. */
.wallet { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.wcard {
  padding: 12px 14px; border-radius: 12px;
  background: var(--card, rgba(255, 255, 255, .04));
  border: 1px solid var(--line, rgba(255, 255, 255, .08));
}
.wtop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wname { font-weight: 600; font-size: 14.5px; }
.widx {
  margin-left: 6px; font-weight: 400; font-size: 11px;
  color: var(--muted); white-space: nowrap;
}
.wamt { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.waddr {
  display: block; margin: 7px 0 6px; font-size: 11.5px; line-height: 1.45;
  color: var(--muted); word-break: break-all;
}
.wmeta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 12px; color: var(--muted);
}
.wmeta a { white-space: nowrap; }
.wtotals {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px;
}
.wtotals div {
  padding: 11px 13px; border-radius: 12px;
  background: var(--card, rgba(255, 255, 255, .04));
}
.wtotals span { display: block; font-size: 11px; color: var(--muted);
                text-transform: uppercase; letter-spacing: .05em; }
.wtotals b { font-size: 18px; letter-spacing: -.02em; }

/* Hide-once-swept control. Deliberately quiet: it sits next to the balance,
   and an eye-catching button there invites tapping on an address that still
   holds money. */
.whide {
  margin-left: 8px; padding: 0 6px; min-width: 0; width: auto;
  font-size: 13px; line-height: 1.6; border-radius: 7px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
}
.whide:hover { color: var(--fg, #fff); }

/* Dashboard windows: two across so the pair a shop compares most — today
   against the week — sit side by side rather than needing a scroll. */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 18px; }
.dash div {
  padding: 12px 13px; border-radius: 12px;
  background: var(--card, rgba(255, 255, 255, .04));
}
.dash span { display: block; font-size: 11px; color: var(--muted);
             text-transform: uppercase; letter-spacing: .05em; }
.dash b { display: block; font-size: 19px; letter-spacing: -.02em; margin-top: 2px; }
.dash .small { text-transform: none; letter-spacing: 0; font-size: 11.5px; }

/* Product description and note: written as multi-line text in Telegram, so
   the line breaks have to survive into the web view. */
.card.pre { white-space: pre-wrap; line-height: 1.5; }
.card.note { border-left: 3px solid var(--amber, #f5a524); }

/* Refresh stock: sky blue, distinct from the accent used by Buy so the two
   never read as the same kind of action. */
.sky {
  background: #38bdf8; color: #05202e; border: none; font-weight: 600;
}
.sky:hover { background: #7dd3fc; }
.sky:active { background: #0ea5e9; }

/* ---- topbar controls -------------------------------------------------
   Support, notifications and sign-in sat on a border so faint it read as no
   border at all against the dark hero, leaving three icons floating. A
   defined edge and a consistent hit area make them look like the controls
   they are. */
.topbar .chip {
  /* buttons are width:100% globally, which made the sign-in chip swallow the
     whole row; in a flex bar these should size to their own content */
  width: auto; flex: none;
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
  background: color-mix(in srgb, var(--panel) 92%, var(--text) 8%);
  color: var(--text);
}
.topbar .chip:hover {
  border-color: color-mix(in srgb, var(--text) 38%, transparent);
}
/* square-ish icon buttons, matched height with the sign-in chip */
.topbar .chip.ico {
  width: 34px; height: 34px; padding: 0;
  justify-content: center; font-size: 15px;
}
.topbar .chip.solid {
  height: 34px; padding: 0 14px;
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--text);
}
.topbar .chip.solid:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 24%, var(--panel));
}
/* the currency switch keeps its own inner styling — don't give its children
   a second border inside the pill they already sit in */
.topbar .switch .chip { border-color: transparent; background: none; }
.topbar .switch .chip.on {
  background: var(--accent); color: var(--on-accent);
}

/* Open-order badge on the Orders tab. Sits on the bottom nav so a waiting
   order is visible from any screen, not only after opening Orders. */
.tabs button { position: relative; }
.tabbadge {
  position: absolute; top: 2px; left: 50%; margin-left: 6px;
  min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--rose, #f43f5e); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
}

/* ---- flair editor ----------------------------------------------------
   116 slots as full cards with two labelled inputs made a page nobody could
   navigate. One row per slot, sections collapsed by default, and a filter
   across all of them. */
.fxsec {
  margin: 8px 0; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
}
.fxsec > summary {
  padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.fxsec > summary::-webkit-details-marker { display: none; }
.fxsec > summary::before { content: "▸ "; color: var(--muted); margin-right: 6px; }
.fxsec[open] > summary::before { content: "▾ "; }
.fxcount { font-size: 11px; color: var(--muted); font-weight: 500; }
.fxrow {
  display: grid; grid-template-columns: 1fr 130px 130px; gap: 8px;
  align-items: center; padding: 7px 14px 7px 30px;
  border-top: 1px solid var(--line);
}
.fxname { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxname code { font-size: 10.5px; color: var(--muted); margin-left: 5px; }
.fxrow input { margin: 0; padding: 7px 9px; font-size: 12px; }
@media (max-width: 560px) {
  .fxrow { grid-template-columns: 1fr; padding-left: 14px; gap: 5px; }
}

/* One collapsed row per message. 58 textareas open at once was a page you
   scrolled past rather than read; the label and its edited mark are enough to
   find the one you want. */
.msgrow { border-top: 1px solid var(--line); padding: 0 14px 8px 14px; }
.msgrow > summary {
  padding: 9px 0; cursor: pointer; font-size: 13px; list-style: none;
  display: flex; align-items: center; gap: 7px;
}
.msgrow > summary::-webkit-details-marker { display: none; }
.msgrow > summary code { font-size: 10.5px; color: var(--muted); }
.msgrow textarea { margin: 0; font-size: 13px; }


/* ---- settings rows ---------------------------------------------------
   A switch on the right, its name on the left, and one short line of help
   underneath. The old layout put a paragraph inside the label, which made
   every toggle look like a page of terms. */
.tog {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.tog:last-of-type { border-bottom: 0; }
.tog > span { flex: 1; min-width: 0; font-size: 14px; }
.tog input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.tog.sub2 { padding: 7px 0 7px 18px; border-bottom: 0; }
.tog.sub2 > span { font-size: 13px; color: var(--muted); }
.hint {
  font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px;
}
label + .hint { margin: -4px 0 6px; }

/* destructive, but a small tool rather than a primary action */
.danger-text { color: var(--rose, #f43f5e); border-color: currentColor; }
