/* The online store console (24 Sep 2026).
 *
 * Laid out the way a shop admin is laid out on the web: a labelled rail of
 * pages down the left, a page head with its one or two actions, and cards.
 * Not a spreadsheet. The rail is light — the app already has a dark
 * sidebar, and two dark rails read as two sidebars — and it is a fixed
 * 196px wide with its labels always showing: this is a website a shop
 * reads, and a website names its pages. */

.st-wrap { position: relative; flex: 1; display: flex; min-height: 0; }

/* ── The rail ─────────────────────────────────────────────────────── */
.st-rail {
  flex: 0 0 196px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 8px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.st-rail-head { padding: 4px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.st-rail-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rail-state { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.st-rail-state.open { background: #e9f7f0; color: #15803d; }
.st-rail-state.shut { background: #fdeceb; color: var(--danger); }
.st-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: var(--font);
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.st-tab .ico { flex: 0 0 16px; opacity: .8; }
.st-tab:hover { color: var(--ink); background: var(--bg); }
.st-tab.on { color: var(--accent-dk); background: #eaf5f3; font-weight: 600; }
.st-tab.on .ico { opacity: 1; }
.st-dot {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.st-rail-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.st-rail-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.st-rail-link:hover { color: var(--ink); background: var(--bg); }

.st-pane { flex: 1; min-width: 0; padding: 0 24px 32px; overflow-y: auto; }

/* ── Page head and building blocks ────────────────────────────────── */
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.st-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.st-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.st-head-say { min-width: 0; }
.st-head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-panel-aside { font-size: 12px; color: var(--muted); }
.st-head-acts .ghost, .st-head-acts .primary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
.st-pane .ghost .ico, .st-pane .primary .ico, .st-pane .link .ico { width: 14px; height: 14px; }
.st-pane .ghost, .st-pane .primary { display: inline-flex; align-items: center; gap: 6px; }
.st-pane .ghost.danger { color: var(--danger); border-color: #f1c4c0; }
.st-pane .link.danger { color: var(--danger); }
.st-pane .primary.sm, .st-pane .ghost.sm { padding: 4px 10px; font-size: 12px; border-radius: 5px; }
.st-pane .link { font: inherit; font-size: 12.5px; padding: 0; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.st-pane .link[disabled] { opacity: .35; cursor: default; }

.st-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; min-width: 0; }
.st-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.st-panel-head h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.st-panel-body { padding: 14px 16px; }
.st-panel.todo { border-color: #f5c98a; }
.st-panel.ok { border-color: #bfe3d6; }
.st-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.st-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.st-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 14px; }

.st-field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; min-width: 0; }
.st-lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.st-field input, .st-field select, .st-field textarea {
  width: 100%;
  padding: 7px 10px;
  font: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-sizing: border-box;
}
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.st-field textarea { resize: vertical; }
.st-hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.st-hint.ok, .ok { color: #15803d; }
.st-note { margin: 10px 0 0; padding: 8px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--bg); border-radius: 6px; }
.st-note.warn { color: #9a3412; background: #fff7ed; }
.st-empty { padding: 14px 0; font-size: 13px; color: var(--muted); text-align: center; }
.st-empty.ok { color: #15803d; }
.st-kv { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; }
.st-kv > div { display: flex; gap: 12px; font-size: 12.5px; line-height: 1.45; }
.st-kv > div > span { flex: 0 0 110px; color: var(--muted); }
.st-kv > div > b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.st-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.st-inline input { flex: 1 1 160px; padding: 6px 10px; font: var(--font); font-size: 12.5px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.st-slugrow { display: flex; align-items: center; gap: 4px; }
.st-slugrow input { flex: 1; }
.st-sub-h { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-sub-h small { font-weight: 500; letter-spacing: 0; text-transform: none; }

/* A switch: the control a website uses for on/off. */
.st-switch { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-switch i { flex: 0 0 34px; width: 34px; height: 20px; margin-top: 1px; border-radius: 10px; background: #cfd6de; position: relative; transition: background .15s; }
.st-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.st-switch input:checked + i { background: var(--accent); }
.st-switch input:checked + i::after { left: 16px; }
.st-switch input:disabled + i { opacity: .4; }
.st-switch span { display: flex; flex-direction: column; font-size: 13px; color: var(--ink); }
.st-switch span b { font-weight: 600; }
.st-switch span small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.st-switch.tiny { padding: 0; }

.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.st-chip { padding: 5px 11px; font: var(--font); font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.st-chip i { font-style: normal; color: var(--muted); opacity: .8; }
.st-chip:hover { color: var(--ink); }
.st-chip.on { color: var(--accent-dk); background: #eaf5f3; border-color: #bfe3d6; font-weight: 600; }
.st-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); min-width: 260px; }
.st-search input { flex: 1; padding: 7px 0; font: var(--font); font-size: 13px; border: 0; background: none; color: var(--ink); }
.st-search input:focus { outline: none; }
.st-select { padding: 7px 10px; font: var(--font); font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }

/* Tables inside cards. */
.st-table { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.st-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-grid th { padding: 9px 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-grid td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-grid tr:last-child td { border-bottom: 0; }
.st-grid th.num, .st-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-grid .muted { color: var(--muted); }
.st-grid .small { font-size: 11.5px; }
.st-grid.mini th, .st-grid.mini td { padding: 6px 8px; font-size: 12px; }
.st-grid tfoot td { border-bottom: 0; padding: 4px 8px; }
.st-grid tr.st-total td { font-weight: 700; border-top: 1px solid var(--line); font-size: 13px; }
.st-grid tr.st-dim td { opacity: .55; }
.st-orow { cursor: pointer; }
.st-orow:hover td { background: var(--row-alt); }
.st-grid select { padding: 4px 6px; font: var(--font); font-size: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }

.st-state { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.st-state.placed { background: #fff2e0; color: #b45309; }
.st-state.accepted { background: #e8f1fd; color: #1d4ed8; }
.st-state.packed { background: #eef2ff; color: #4338ca; }
.st-state.shipped { background: #ecfeff; color: #0e7490; }
.st-state.out_for_delivery { background: #f0ecfd; color: #6d28d9; }
.st-state.delivered { background: #e9f7f0; color: #15803d; }
.st-state.cancelled { background: #fdeceb; color: var(--danger); }
.st-state.returned { background: #fef3c7; color: #92400e; }
.st-pay { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.st-pay.paid { background: #e9f7f0; color: #15803d; }
.st-pay.cod { background: #f4f4f5; color: #3f3f46; }
.st-pay.pending { background: #fff7ed; color: #b45309; }
.st-pay.failed, .st-pay.refunded { background: #fdeceb; color: var(--danger); }
.st-pay.ship { background: #ecfeff; color: #0e7490; }
.st-pane .tag { display: inline-block; margin: 3px 6px 0 0; padding: 1px 7px; font-size: 10.5px; font-weight: 600; border-radius: 999px; background: #eef3ff; color: #1a3c8f; }

/* ── Dashboard ────────────────────────────────────────────────────── */
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.st-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-align: left; font: var(--font); }
.st-card .k { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-card .l { font-size: 12px; color: var(--muted); }
button.st-card { cursor: pointer; }
button.st-card:hover { border-color: var(--accent); }
.st-card.hot { background: #fff7ed; border-color: #f5c98a; }
.st-card.hot .k { color: #b45309; }
.st-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 4px 2px 0; }
.st-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.st-bar i { display: block; width: 100%; min-height: 2px; background: var(--accent); opacity: .75; border-radius: 3px 3px 0 0; }
.st-bar span { font-size: 10.5px; color: var(--muted); }
.st-list { display: flex; flex-direction: column; }
.st-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.st-list-row:first-child { border-top: 0; }
.st-list-row > span { display: flex; flex-direction: column; min-width: 0; }
.st-list-row small { font-size: 11.5px; color: var(--muted); }
.st-linkrow { display: flex; gap: 8px; align-items: center; }
.st-linkrow input { flex: 1 1 auto; padding: 7px 10px; font: var(--font); font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.st-qr { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.st-qr svg { flex: 0 0 auto; width: 96px; height: 96px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.st-qr-say { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-qr-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ── First run ────────────────────────────────────────────────────── */
.st-first { max-width: 560px; margin: 26px auto; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.st-first h3 { margin: 0 0 8px; font-size: 17px; }
.st-first .sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.st-first .s-field { margin-top: 14px; }
.st-first button { margin-top: 16px; width: 100%; }
.st-slug { display: flex; align-items: center; gap: 2px; }
.st-slug .muted { font-size: 13px; white-space: nowrap; }
.st-slug input { flex: 1 1 auto; }

/* ── One order ────────────────────────────────────────────────────── */
.st-order-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-order-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-order-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.st-order-main, .st-order-side { min-width: 0; }
@media (max-width: 1100px) { .st-order { grid-template-columns: 1fr; } }
.st-who { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.st-who a { color: var(--accent); }
.st-addr { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.st-timeline { display: flex; flex-direction: column; gap: 6px; }
.st-tl-row { display: flex; gap: 12px; font-size: 12.5px; line-height: 1.45; }
.st-tl-when { flex: 0 0 112px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-tl-what { display: flex; flex-direction: column; min-width: 0; }
.st-tl-what small { font-size: 11px; color: var(--muted); }
.st-timeline.small .st-tl-row { font-size: 12px; }

/* ── Medicines ────────────────────────────────────────────────────── */
.st-med { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-med-pic { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--muted); }
.st-med-pic img { width: 100%; height: 100%; object-fit: contain; }
.st-med-pic.big { flex-basis: 96px; width: 96px; height: 96px; }
.st-pic { display: flex; align-items: center; gap: 12px; }
.st-edit { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
.st-edit-side { padding: 12px; background: var(--bg); border-radius: 6px; font-size: 12.5px; }
.st-edit-side h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.st-edit-side h4 + .st-kv { margin-bottom: 12px; }
.st-edit-form { min-width: 0; }
.modal:has(.st-edit) { width: 860px; }

/* ── Categories ───────────────────────────────────────────────────── */
.st-cats { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-cat-list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.st-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.st-cat-row:hover { background: var(--bg); }
.st-cat-row.on { background: #eaf5f3; }
.st-cat-row > .st-cat-name { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.st-cat-row small { font-size: 11px; color: var(--muted); }
.st-cat-move { display: flex; gap: 2px; }
.st-cat-move .link { text-decoration: none; font-size: 10px; padding: 2px 4px; color: var(--muted); }
.st-cat-list .st-hint { padding: 8px 10px 4px; }
.st-cat-edit { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.st-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-sub-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.st-sub-chip .link { text-decoration: none; color: var(--muted); font-size: 11px; }
.st-sub-add { display: inline-flex; gap: 6px; }
.st-sub-add input { padding: 5px 9px; font: var(--font); font-size: 12.5px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.st-sug { position: relative; flex-basis: 100%; }
.st-sug-row { display: flex; flex-direction: column; width: 100%; padding: 6px 10px; text-align: left; font: var(--font); font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-top: 0; cursor: pointer; }
.st-sug-row:first-child { border-top: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.st-sug-row:last-child { border-radius: 0 0 6px 6px; }
.st-sug-row:hover { background: var(--bg); }
.st-sug-row small { color: var(--muted); }
.st-cat-edit .modal-actions .spacer { flex: 1; }

/* ── Design studio ────────────────────────────────────────────────── */
.st-studio { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-studio-knobs { min-width: 0; }
@media (max-width: 1180px) { .st-studio { grid-template-columns: 1fr; } }
.st-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.st-theme { display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left; font: var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.st-theme:hover { border-color: var(--accent); }
.st-theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px #cfe6df; }
.st-theme b { font-size: 12.5px; }
.st-theme small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.st-theme-sw { display: flex; height: 26px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.st-theme-sw i { flex: 1; }
.st-theme-sw i.h { background: var(--sw-h); }
.st-theme-sw i.a { background: var(--sw-a); }
.st-theme-sw i.s { background: var(--sw-s); }
.st-color { display: flex; gap: 8px; align-items: center; }
.st-color input[type=color] { flex: 0 0 44px; width: 44px; height: 34px; padding: 2px; }
.st-color .st-hex { flex: 1; text-transform: uppercase; }
.st-studio-preview { position: sticky; top: 8px; }
.st-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.st-devices { display: flex; gap: 6px; align-items: center; }
.st-preview { background: #dfe3e8; border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 12px; display: flex; justify-content: center; }
.st-preview iframe { width: 100%; height: 70vh; min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.st-preview.desktop iframe { max-width: 100%; }
.st-preview.phone iframe { width: 390px; height: 720px; border-radius: 22px; border-width: 8px; border-color: #1f2937; }

/* ── Marketing ────────────────────────────────────────────────────── */
.st-coupon-new { display: grid; grid-template-columns: 1.2fr .8fr .7fr .8fr .9fr .9fr 1fr auto; gap: 6px; margin-bottom: 10px; }
.st-coupon-new input, .st-coupon-new select { padding: 6px 8px; font: var(--font); font-size: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); min-width: 0; }
@media (max-width: 1000px) { .st-coupon-new { grid-template-columns: repeat(4, 1fr); } }

/* ── Plan ─────────────────────────────────────────────────────────── */
.st-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.st-tier { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.st-tier.on { border-color: var(--accent); background: #f2faf7; }
.st-tier .p { font-size: 19px; font-weight: 700; color: var(--ink); }
.st-tier .per { font-size: 12px; font-weight: 400; color: var(--muted); }
.st-tier .w { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.st-pane .sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.st-pane .warn { color: var(--warn); font-weight: 600; }
.st-std { font: inherit; font-size: 12px; padding: 0; margin-top: 2px; align-self: flex-start; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* ── Paper: the poster, the pack list, the label, the bill ────────── */
.st-poster { text-align: center; padding: 18mm 10mm; color: #000; font-family: "Segoe UI", system-ui, sans-serif; }
.st-poster-name { font-size: 28pt; font-weight: 800; line-height: 1.15; }
.st-poster-sub { margin-top: 4mm; font-size: 14pt; }
.st-poster-qr { margin: 12mm auto 8mm; }
.st-poster-qr svg { width: 110mm; height: 110mm; shape-rendering: crispEdges; }
.st-poster-link { font-size: 16pt; font-weight: 700; overflow-wrap: anywhere; }
.st-poster-wa { margin-top: 4mm; font-size: 13pt; }
.st-poster-dl { margin-top: 8mm; font-size: 10pt; }
.st-poster-foot { margin-top: 6mm; font-size: 11pt; color: #000; }

.st-pack { color: #000; font-size: 11px; font-family: "Segoe UI", system-ui, sans-serif; }
.st-pack-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #000; }
.st-pack-who { margin: 6px 0; line-height: 1.4; }
.st-pack-grid { width: 100%; border-collapse: collapse; }
.st-pack-grid th, .st-pack-grid td { padding: 4px; text-align: left; border-bottom: 1px dotted #000; vertical-align: top; }
.st-pack-grid th.num, .st-pack-grid td.num { text-align: right; }
.st-pack-box { width: 18px; font-size: 14px; }
.st-pack-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-weight: 700; }

.st-label { color: #000; font-family: "Segoe UI", system-ui, sans-serif; font-size: 11pt; max-width: 100mm; margin: 0 auto; border: 1px solid #000; padding: 4mm; }
.st-label-top { display: flex; justify-content: space-between; font-size: 9pt; border-bottom: 1px solid #000; padding-bottom: 2mm; }
.st-label-courier { font-weight: 800; letter-spacing: .08em; }
.st-label-wb { margin: 3mm 0 1mm; font-size: 20pt; font-weight: 800; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.st-label-qr { text-align: center; }
.st-label-qr svg { width: 34mm; height: 34mm; shape-rendering: crispEdges; }
.st-label-to, .st-label-from { margin-top: 3mm; line-height: 1.4; }
.st-label-to small, .st-label-from small { display: block; font-size: 8pt; font-weight: 700; letter-spacing: .08em; color: #000; }
.st-label-to { font-size: 12pt; }
.st-label-from { font-size: 9pt; }
.st-label-cod { margin-top: 3mm; padding: 2mm; border: 2px solid #000; text-align: center; font-weight: 800; font-size: 12pt; }

.st-bill { color: #000; font-family: "Segoe UI", system-ui, sans-serif; font-size: 10.5pt; }
.st-bill-head { display: flex; justify-content: space-between; gap: 10mm; padding-bottom: 3mm; border-bottom: 1px solid #000; line-height: 1.45; }
.st-bill-shop { font-size: 14pt; }
.st-bill-to { margin: 3mm 0; line-height: 1.45; }
.st-bill-to small { font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; }
.st-bill-grid { width: 100%; border-collapse: collapse; }
.st-bill-grid th, .st-bill-grid td { padding: 2mm 1.5mm; border-bottom: 1px solid #ccc; text-align: left; vertical-align: top; }
.st-bill-grid th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #000; }
.st-bill-grid th.num, .st-bill-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-bill-grid small { color: #333; }
.st-bill-tot { display: flex; justify-content: flex-end; gap: 8mm; margin-top: 3mm; padding-top: 2mm; border-top: 1px solid #000; }
.st-bill-foot { margin-top: 6mm; font-size: 9pt; color: #333; line-height: 1.5; }

/* ── The studio: the layout, the logo, the banners, the home rows ─── */
.st-homes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-home { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-align: left; font: var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.st-home:hover { border-color: var(--accent); }
.st-home.on { border-color: var(--accent); box-shadow: 0 0 0 2px #cfe6df; }
.st-home b { font-size: 12.5px; }
.st-home small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.st-home-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 58px; padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.st-home-art i { display: block; border-radius: 2px; background: #cbd5e1; }
.st-home-art i.a { grid-column: 1 / -1; height: 7px; background: #94a3b8; }
.st-home-art i.b { grid-column: 1 / -1; height: 12px; background: #fde68a; }
.st-home-art.express i.b { background: #fde68a; }
.st-home-art.site i.b { background: #bfdbfe; }
.st-home-art i.c { width: 14px; height: 14px; border-radius: 50%; justify-self: center; align-self: center; }
.st-home-art i.d { height: 100%; }
.st-link-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.st-banners { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.st-banner-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.st-banner-row img { display: block; width: 150px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 4px; background: var(--bg); }
.st-banner-say { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-widgets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.st-widget-row { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.st-widget-row input { max-width: 260px; }
.st-wp-list { max-height: 50vh; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; }
.st-wp-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.st-wp-row:last-child { border-bottom: 0; }
.st-wp-row span { display: flex; flex-direction: column; }
.st-wp-row small { color: var(--muted); font-size: 11px; }
.st-cat-pic { flex: 0 0 30px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.st-cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.st-cat-pic i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.st-logo-box { flex: 0 0 220px; width: 220px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--muted); }
.st-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-logo-box.wide { width: 300px; flex-basis: 300px; height: 112px; }
.st-logo-box.wide img { width: 100%; height: 100%; object-fit: cover; }

/* ── Medicines: tick many, act once ──────────────────────────────── */
.st-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-tools select { max-width: 220px; }
.st-bulk { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; background: #eaf5f3; border: 1px solid #bfe0d6; border-radius: 8px; }
.st-bulk b { margin-right: 6px; font-size: 13px; }
.st-pickcol { width: 28px; padding-right: 0 !important; }
.st-pickcol input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
tr.st-picked td { background: #f3faf7; }
.st-catsel { max-width: 230px; padding: 4px 6px; font-size: 12px; }
.st-logo-box.square { width: 112px; flex-basis: 112px; height: 112px; }

/* ── Prescriptions (Schedule H, H1, X) ── */
.st-pay.rx { background: #fff7ed; color: #9a3412; }
.st-pay.rx.approved { background: #e9f7f0; color: #15803d; }
.st-pay.rx.rejected { background: #fdeceb; color: var(--danger); }
.st-rx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-rx-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.st-rx-pic { display: block; padding: 0; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: zoom-in; }
.st-rx-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-rx-big { max-height: 75vh; overflow: auto; }
.st-rx-big img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.st-hold { padding: 6px 10px; font-size: 12.5px; font-weight: 600; color: #9a3412; background: #fff7ed; border-radius: 6px; }

/* ── Plan: what is used, and the four plans ── */
.st-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.st-meter { display: flex; flex-direction: column; gap: 4px; }
.st-meter .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.st-meter b { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-meter b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.st-meter i { display: block; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.st-meter i s { display: block; height: 100%; background: var(--accent); border-radius: 3px; text-decoration: none; }
.st-meter.full i s { background: var(--danger); }
.st-meter.full b { color: var(--danger); }
.st-tiers { margin-top: 14px; }
.st-tier .n { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.st-tier .n em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--accent); color: #fff; }
.st-tier .gst { font-size: 11.5px; color: var(--muted); }
.st-tier ul.f { margin: 4px 0 6px; padding: 0 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.st-tier button { align-self: flex-start; margin-top: auto; }
.st-say { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.st-say.ok { color: #15803d; }
.st-say.warn { margin: 10px 0 0; color: #9a3412; }
.st-tiers { margin: 14px 0; }

/* Buying a plan: the payment link as a QR beside its button (one payment a year). */
.st-buy { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 10px; }
.st-buy-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.st-buy-qr svg { display: block; width: 196px; height: 196px; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line, #e5e7eb); }
.st-buy-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.st-buy-side p { margin: 0; white-space: normal; }
.st-buy-link { font-size: 11px; word-break: break-all; color: var(--muted); }
.st-buy-state { font-weight: 600; }

/* Riders (28 Sep 2026) */
.st-grid tr.st-rider.off td { opacity: .55; }
.st-nowrap { white-space: nowrap; }
.st-pane .st-nowrap .ghost .ico { width: 13px; height: 13px; }
.st-rd-acts { align-items: center; }
.st-rd-acts .ghost, .st-rd-acts .primary { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.st-rd-acts .ico { width: 14px; height: 14px; }
.st-rd-login b { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13.5px; letter-spacing: .02em; }
.s-field .st-linkrow .ghost { flex: 0 0 auto; padding: 6px 12px; }
.s-field .st-linkrow input { padding: 6px 9px; font-size: 13px; background: #fff; border: 1px solid #c3ccdb; border-radius: 3px; }
.s-field .st-linkrow input:focus { outline: 0; color: #3a2c00; background: #fff6d8; border-color: #d8a800; }
.st-nowrap a.ghost { text-decoration: none; }
