/* ---------- Tokens: graphite dark ramp, one accent (brand blue) ---------- */
:root {
  --sidebar: #070708;
  --bg: #0a0a0b;
  --widget: #111113;
  --widget-2: #18181b;
  --widget-3: #202024;
  --hairline: rgba(255, 255, 255, 0.06);

  --text: #ececee;
  --text-2: #9d9da4;
  --muted: #74747b;

  --accent: #2f7bff;
  --positive: #4cc38a;
  --warn: #d9a441;
  --negative: #e5484d;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 248px;

  /* The side gutter grows with the screen; on big monitors the content stops at --content-max */
  --gutter: clamp(16px, 3vw, 56px);
  --content-max: 1400px;
  --pad-x: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/20px var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* One icon size everywhere */
svg { width: 18px; height: 18px; flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code { font: 400 12px/16px var(--mono); color: var(--text-2); }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100%; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--hairline);
  transition: transform 300ms var(--ease);
}

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.brand { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; margin-bottom: 16px; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 600; }
.brand-sub { font-size: 13px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text-2);
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.nav-item svg { color: var(--muted); transition: color 150ms var(--ease); }
.nav-item:hover { background: var(--widget); color: var(--text); }
.nav-item.active { background: var(--widget-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.nav-item.active svg { color: var(--text); }

.nav-count { margin-left: auto; font: 400 12px/16px var(--mono); color: var(--muted); }

.sidebar-footer {
  margin: auto -12px -16px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 12px 0 20px;
  border-top: 1px solid var(--hairline);
}

.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.who strong { font-weight: 500; font-size: 13px; line-height: 16px; }
.who small { color: var(--muted); font-size: 12px; line-height: 16px; }

.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--widget-2); font-weight: 500; font-size: 13px; line-height: 1; }

.icon-link { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.icon-link:hover { background: var(--widget); color: var(--text); }

.backdrop { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.6); }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--pad-x); background: var(--bg); }

.icon-btn { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--widget); color: var(--text-2); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.icon-btn:hover { background: var(--widget-2); color: var(--text); }
.icon-btn-show { display: grid; }

.shop { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop-logo { display: block; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: var(--widget-2); }
.shop-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-name { font-weight: 500; line-height: 16px; }
.shop-sub { font: 400 12px/16px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.live { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 10px; background: var(--widget); font: 400 12px/16px var(--mono); color: var(--text-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.live.is-off .live-dot { background: var(--negative); }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-radius: 20px; background: var(--widget); }
.login-mark { width: 40px; height: 40px; object-fit: contain; margin-bottom: 8px; }
.login-card h1 { font-size: 22px; line-height: 28px; font-weight: 500; margin-bottom: 8px; }
.login-card input { height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--widget-2); color: var(--text); outline: none; transition: box-shadow 150ms var(--ease); }
.login-card input:focus { background: var(--widget-3); }
.login-card .btn { height: 44px; }
.login-error { min-height: 16px; font-size: 13px; line-height: 16px; color: var(--negative); }

/* ---------- Content ---------- */
.content { width: 100%; padding: 8px var(--pad-x) 48px; display: flex; flex-direction: column; gap: 16px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 8px; }
.page-head h1 { font-size: 28px; line-height: 32px; font-weight: 500; }

.meta { font: 400 12px/16px var(--mono); color: var(--muted); }
.link { font-size: 13px; color: var(--accent); }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--widget-2); color: var(--text); font-weight: 500; white-space: nowrap; transition: background-color 150ms var(--ease), transform 150ms var(--ease), opacity 150ms var(--ease); }
.btn:hover { background: var(--widget-3); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }

/* ---------- Widgets ---------- */
.widget { background: var(--widget); border-radius: 16px; padding: 24px; min-width: 0; }
.widget-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.widget-head h2 { font-size: 15px; font-weight: 500; }

.row-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* KPI: the label on the outer card, the figure on an inner one */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; padding: 4px; border-radius: 20px; background: var(--widget); min-width: 0; }
.kpi-head { padding: 12px 16px 10px; font-size: 13px; color: var(--text-2); }
.kpi-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 112px; padding: 20px; border-radius: 16px; background: var(--widget-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.kpi-value { font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi-value small { margin-left: 2px; font-size: 18px; color: var(--text-2); }
.kpi-foot { margin-top: auto; font-size: 12px; line-height: 16px; color: var(--text-2); }
.kpi-foot.warn { color: var(--warn); }

/* Hero: the shop itself, with the logo printed in dots */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 36px; min-height: 200px; padding: 24px; border-radius: 20px; background: #0d0d0f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; top: 50%; right: -24px; z-index: -1; width: 360px; height: 300px; transform: translateY(-50%); -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 95%); mask-image: linear-gradient(to left, #000 55%, transparent 95%); }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-logo { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--widget-2); }
.hero-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-name { font-size: 20px; line-height: 24px; font-weight: 500; }
.hero-sub { margin-top: 4px; font: 400 12px/16px var(--mono); color: var(--muted); }
.hero-figure { display: flex; flex-direction: column; gap: 8px; }
.hero-eyebrow { font-size: 12px; line-height: 16px; color: var(--muted); }
.hero-figure .kpi-value { font-size: 40px; line-height: 44px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }


/* Methods */
.share-bar { display: flex; gap: 2px; height: 10px; margin-bottom: 20px; border-radius: 5px; overflow: hidden; background: var(--widget-2); }
.share-bar i { height: 100%; }
.share-list { list-style: none; display: grid; gap: 12px; }
.share-list li { display: grid; grid-template-columns: 8px 1fr auto 44px; align-items: center; gap: 12px; }
.share-list li > i { width: 8px; height: 8px; border-radius: 2px; }
.share-list .sum { font: 400 13px/16px var(--mono); }
.share-list .pct { text-align: right; font: 400 12px/16px var(--mono); color: var(--muted); }

/* Needs attention */
.todo { list-style: none; display: grid; gap: 4px; margin: 0 -12px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.todo li:hover { background: var(--widget-2); }
.todo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.todo .dot.warn { background: var(--warn); }
.todo .dot.bad { background: var(--negative); }
.todo .dot.ok { background: var(--positive); }
.todo .text { flex: 1; min-width: 0; }
.todo small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }

/* ---------- Toolbar, segmented, fields ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; }

.segmented { display: inline-flex; max-width: 100%; padding: 4px; gap: 4px; border-radius: 10px; background: var(--widget-2); overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.seg { flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 13px; white-space: nowrap; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.seg:hover { color: var(--text); }
.seg.active { background: var(--widget-3); color: var(--text); }
.seg small { margin-left: 4px; font: 400 12px/16px var(--mono); color: var(--muted); }
.seg.active small { color: var(--text-2); }




/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
th { text-align: left; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--muted); padding: 0 12px 8px; white-space: nowrap; }
td { height: 56px; padding: 0 12px; white-space: nowrap; }
tbody tr td { transition: background-color 150ms var(--ease); }
tbody tr:hover td { background: var(--widget-2); }
tbody tr td:first-child { border-radius: 10px 0 0 10px; }
tbody tr td:last-child { border-radius: 0 10px 10px 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-family: var(--mono); font-size: 13px; }
.empty-row td { height: 112px; text-align: center; color: var(--muted); }
.cell-main { display: flex; flex-direction: column; gap: 2px; }
.cell-main small { color: var(--muted); font-size: 12px; line-height: 16px; }

.status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.success i { background: var(--positive); }
.status.warn i { background: var(--warn); }
.status.expired i { background: var(--negative); }



.loading { padding: 64px 0; text-align: center; color: var(--muted); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 360px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 13px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); animation: rise 220ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-even { grid-template-columns: 1fr; }
}

/* Below this the menu hides behind a button and the content gets the whole width */
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .sidebar.open + .backdrop { display: block; }
  .main { margin-left: 0; }
  .icon-btn { display: grid; }
  .live { display: none; }
  .hero-art { opacity: 0.6; }
}

@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .head-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .head-actions .segmented { display: flex; }
  .head-actions .seg { flex: 1; }
  .head-actions .btn { width: 100%; }
  .page-head h1 { font-size: 24px; line-height: 28px; }
  .widget { padding: 20px 16px; }
  .stats, .stats-3 { grid-template-columns: 1fr; gap: 12px; }
  .kpi-value { font-size: 26px; line-height: 30px; }
    .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .shop-sub { display: none; }

  /* Tables become one card per row */
  .table-wrap { margin: 0; overflow: visible; }
  table, thead, tbody, tr, td { display: block; min-width: 0; }
  table { min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tbody tr { padding: 12px 14px; border-radius: 12px; background: var(--widget-2); }
  tbody tr:hover td { background: none; }
  td { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: auto; min-height: 32px; padding: 0; white-space: normal; text-align: right; }
  td::before { content: attr(data-label); flex: none; font-size: 12px; color: var(--muted); }
  td:first-child, td:last-child { border-radius: 0; }
  .empty-row td { display: block; text-align: center; }
  .empty-row td::before { content: none; }
}

/* Orders toolbar controls */
.input, .select { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--widget-2); color: var(--text); outline: none; transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.input:hover, .select:hover { background: var(--widget-3); }
.input:focus, .select:focus { background: var(--widget-3); }
.input::placeholder { color: var(--muted); }
.select { cursor: pointer; }

td strong { font-weight: 500; }

/* Bar tooltips near the edges open inward, so they never push the page sideways */
.content { overflow-x: clip; }

/* Hero figures as small labelled pills, so the commission reads at once */
.hero-meta .pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--text-2); }
.hero-meta .pill b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* On a phone the dots sit behind the text, so they stay faint */
@media (max-width: 640px) {
  .hero-art { opacity: 0.22; }
  .hero-meta .pill { background: rgba(255, 255, 255, 0.08); }
}

/* Page head: the title on the left, the controls on the right */
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Dialog and form fields */
.dialog { margin: auto; width: min(420px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 16px; background: var(--widget); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog h2 { font-size: 17px; font-weight: 500; }
.dialog-form { display: flex; flex-direction: column; gap: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--text-2); font-size: 13px; }
.field .input { width: 100%; }
.field-hint { color: var(--muted) !important; font-size: 12px !important; line-height: 16px; }
.field-hint b { font-weight: 500; color: var(--text-2); }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.input[type="number"]::-webkit-outer-spin-button, .input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* Overview: chart on the left, methods on the right */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.widget-head > div > .meta { display: block; margin-top: 4px; }
.share-list li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Line chart */
.line { position: relative; height: 220px; background: repeating-linear-gradient(to top, transparent 0, transparent 54px, var(--hairline) 54px, var(--hairline) 55px); touch-action: pan-y; cursor: crosshair; }
.line svg { position: absolute; inset: 0; width: 100%; height: 100%; width: 100%; overflow: visible; }
.line-guide, .line-dot, .line-tip { position: absolute; opacity: 0; pointer-events: none; transition: opacity 120ms var(--ease); }
.line-guide { top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.18); }
.line-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.25); }
.line-tip { z-index: 2; padding: 4px 8px; border-radius: 6px; background: var(--widget-3); font: 400 12px/16px var(--mono); white-space: nowrap; }
.line.on .line-guide, .line.on .line-dot, .line.on .line-tip { opacity: 1; }
.line-labels { position: relative; height: 16px; margin-top: 10px; font: 400 11px/16px var(--mono); color: var(--muted); }
.line-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.line-labels span.first { transform: none; }
.line-labels span.last { transform: translateX(-100%); }

/* No blue ring inside the dialog and on the fields */
.dialog :focus-visible, .input:focus-visible, .select:focus-visible, .login-card input:focus-visible { outline: none; }

/* Select: our own arrow, centered and the same distance from the edge as the text on the left */
.select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d9da4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

/* ---------- Motion ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* A new page: its blocks rise one after another */
#page[data-motion="enter"] > * { animation: rise-in 420ms var(--ease) both; }
#page[data-motion="enter"] > *:nth-child(2) { animation-delay: 60ms; }
#page[data-motion="enter"] > *:nth-child(3) { animation-delay: 120ms; }
#page[data-motion="enter"] > *:nth-child(4) { animation-delay: 180ms; }
#page[data-motion="enter"] > *:nth-child(5) { animation-delay: 240ms; }
#page[data-motion="enter"] > *:nth-child(n+6) { animation-delay: 300ms; }

/* A new period: the figures run, the line is drawn, the bars grow, the rows come in */
.line svg { animation: reveal 900ms var(--ease) both; }
.line-area { animation: fade-in 700ms 250ms var(--ease) both; }
.share-bar i { transform-origin: left; animation: grow 700ms var(--ease) both; }
.share-list li { animation: rise-in 380ms var(--ease) both; }
.share-list li:nth-child(2) { animation-delay: 70ms; }
.share-list li:nth-child(3) { animation-delay: 140ms; }
.share-list li:nth-child(n+4) { animation-delay: 210ms; }
.kpi-body { transition: background-color 200ms var(--ease); }
.seg { transition: background-color 200ms var(--ease), color 200ms var(--ease); }

/* A refresh every 15 seconds changes nothing on screen unless a number really changed */
#page[data-motion="still"] *, #page[data-motion="still"] *::before { animation: none !important; }

@media (prefers-reduced-motion: reduce) { .line svg, .line-area, .share-bar i, .share-list li { animation: none; } }

#withdrawError:empty { display: none; }

/* Products */
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-quiet { background: none; color: var(--negative); padding: 0 8px; }
.btn-quiet:hover { background: rgba(229, 72, 77, 0.12); }
.dialog-actions .spacer { flex: 1; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-grid label { display: grid; gap: 6px; }
.price-grid small { color: var(--muted); font-size: 12px; line-height: 16px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
td.end, th.end { text-align: right; }
@media (max-width: 640px) {
  td.end { justify-content: flex-end; }
  td.end::before { content: none; }
}
