/* 렛츠카트 — LetsCart design tokens & components
   TDS(시맨틱 컬러·타이포 위계) + SEED(4px 스페이싱·토큰 명명) 기반.
   Zero-System-UI: 네이티브 select/alert/confirm/prompt 미사용. */

@font-face { font-family: "Pretendard Fallback"; src: local("Pretendard"); font-display: swap; }

:root {
  --c-canvas: #f2f4f8;
  --c-surface: #ffffff;
  --c-subtle: #f8f9fb;
  --c-hover: #eef1f6;
  --c-border: #e5e8eb;
  --c-border-strong: #d1d6db;
  --c-text: #191f28;
  --c-text-2: #4e5968;
  --c-text-3: #8b95a1;
  --c-blue: #3182f6;
  --c-blue-hover: #1b64da;
  --c-blue-weak: #e8f3ff;
  --c-green: #0ca678;
  --c-green-text: #087f5b;
  --c-green-weak: #e6fcf5;
  --c-amber: #f08c00;
  --c-amber-text: #d9480f;
  --c-amber-weak: #fff4e6;
  --c-red: #f03e3e;
  --c-red-text: #c92a2a;
  --c-red-weak: #fff5f5;
  --c-violet: #7048e8;
  --c-violet-weak: #f3f0ff;

  --s1: 4px; --s1h: 6px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 9999px;
  --sh-card: 0 1px 2px rgba(25, 31, 40, .04), 0 4px 16px rgba(25, 31, 40, .045);
  --sh-float: 0 8px 28px rgba(25, 31, 40, .12), 0 2px 6px rgba(25, 31, 40, .06);
  --sh-modal: 0 24px 64px rgba(25, 31, 40, .22);
  --header-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@supports (font-variation-settings: normal) {
  :root { --font: "Pretendard Variable", Pretendard, var(--font-stack); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--c-canvas);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- layout */
.shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); --pad: 12px; }
@media (min-width: 375px) { .shell { --pad: 16px; } }
@media (min-width: 768px) { .shell { --pad: 24px; } }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.topbar-in { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(145deg, #3d8bff, #1b64da);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(49, 130, 246, .32);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--c-text-3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .brand-sub { display: none; } }
.topbar-spacer { flex: 1 1 auto; }
.topbar-actions { display: flex; align-items: center; gap: var(--s2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; transition: background .14s, border-color .14s, transform .08s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-hover); }
.btn-ghost { background: var(--c-subtle); color: var(--c-text-2); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-hover); }
.btn-quiet { background: transparent; color: var(--c-text-2); }
.btn-quiet:hover { background: var(--c-hover); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn-icon { width: 38px; padding: 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--s6) 0 var(--s2); }
.hero-card {
  display: grid; gap: var(--s5);
  background:
    radial-gradient(120% 140% at 100% 0%, #eaf2ff 0%, rgba(255,255,255,0) 55%),
    var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4);
  box-shadow: var(--sh-card);
}
@media (min-width: 980px) {
  .hero-card { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s8); align-items: center; }
}
.hero-aside { display: none; }
@media (min-width: 980px) { .hero-aside { display: block; } }
.aside-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--c-border);
}
.aside-row:last-child { border-bottom: 0; }
.aside-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.aside-k { font-size: 12px; font-weight: 600; color: var(--c-text-3); }
.aside-v { font-size: 15px; font-weight: 800; letter-spacing: -.02em; margin-top: 1px; }
.aside-v small { font-size: 11.5px; font-weight: 600; color: var(--c-text-3); margin-left: 3px; }
@media (min-width: 768px) { .hero-card { padding: var(--s8); } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--c-blue);
  background: var(--c-blue-weak); border-radius: var(--r-pill);
  padding: 5px 10px; margin-bottom: var(--s3);
}
.hero h1 {
  margin: 0 0 var(--s2); font-size: 22px; line-height: 1.3; letter-spacing: -.03em; font-weight: 800;
}
@media (min-width: 768px) { .hero h1 { font-size: 30px; } }
.hero p { margin: 0; color: var(--c-text-2); font-size: 13.5px; max-width: 62ch; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2);
  margin-top: var(--s4);
}
@media (min-width: 520px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hstat {
  background: var(--c-subtle); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 10px 12px; min-width: 0;
}
.hstat-label { font-size: 11px; font-weight: 600; color: var(--c-text-3); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hstat-value { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.hstat-value span { font-size: 12px; font-weight: 600; color: var(--c-text-3); margin-left: 2px; }

/* ---------------------------------------------------------------- filter bar */
.filterbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--c-canvas);
  padding: var(--s3) 0 var(--s2);
  border-bottom: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.filterbar.stuck { border-color: var(--c-border); box-shadow: 0 6px 16px rgba(25, 31, 40, .05); }
.searchrow { display: flex; gap: var(--s2); align-items: center; }
.search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); height: 44px; padding: 0 12px;
  transition: border-color .14s, box-shadow .14s;
}
.search:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(49, 130, 246, .14); }
.search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--c-text);
}
.search input::placeholder { color: var(--c-text-3); font-size: 14px; }
.search-clear { display: none; color: var(--c-text-3); width: 26px; height: 26px; border-radius: 50%;
  place-items: center; }
.search-clear:hover { background: var(--c-hover); color: var(--c-text-2); }
.search.has-value .search-clear { display: grid; }

.chiprow {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; padding: 2px 0 2px; margin-top: var(--s2);
}
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: 12.5px; font-weight: 600; color: var(--c-text-2); letter-spacing: -.01em;
  transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { background: var(--c-hover); }
.chip[aria-pressed="true"] { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.chip .count { font-size: 11px; font-weight: 700; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: rgba(255, 255, 255, .72); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dc, var(--c-text-3)); }

.toolrow { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); flex-wrap: wrap; }
.result-count { font-size: 12.5px; color: var(--c-text-3); font-weight: 600; flex: 1 1 100%; }
@media (min-width: 560px) { .result-count { flex: 1 1 auto; margin-right: auto; } }
.result-count b { color: var(--c-text); font-weight: 800; font-variant-numeric: tabular-nums; }

/* custom dropdown */
.dd { position: relative; flex: 0 0 auto; margin-left: auto; }
@media (max-width: 559px) { .dd { margin-left: 0; } }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px;
  border-radius: var(--r-md); border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 12.5px; font-weight: 700; color: var(--c-text-2); white-space: nowrap;
}
.dd-btn:hover { background: var(--c-hover); }
.dd-btn[aria-expanded="true"] { border-color: var(--c-text); color: var(--c-text); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 190px; padding: 6px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--sh-float);
  display: none;
}
.dd-menu.open { display: block; animation: pop .13s ease-out; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--c-text-2);
  text-align: left;
}
.dd-item:hover { background: var(--c-hover); }
.dd-item[aria-checked="true"] { color: var(--c-blue); background: var(--c-blue-weak); }
.dd-item .icon { opacity: 0; }
.dd-item[aria-checked="true"] .icon { opacity: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- product grid */
.grid-wrap { padding: var(--s3) 0 var(--s10); }
.grid {
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 430px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden;
  transition: transform .12s, box-shadow .16s, border-color .16s;
}
.card:hover { border-color: var(--c-border-strong); box-shadow: 0 6px 22px rgba(25, 31, 40, .09); }
.card:active { transform: scale(.994); }
.card-hit {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px;
  width: 100%; text-align: left; padding: 10px; align-items: start;
}
@media (min-width: 430px) {
  .card-hit { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
}
.thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--c-subtle); border: 1px solid var(--c-border);
}
@media (min-width: 430px) { .thumb { border: 0; border-radius: 0; border-bottom: 1px solid var(--c-border); } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #c3cad3; background:
  linear-gradient(135deg, #f7f8fa, #eef1f6); }
.card-body { padding: 0; min-width: 0; }
@media (min-width: 430px) { .card-body { padding: 12px 12px 13px; } }
.card-cat { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  color: var(--c-text-3); letter-spacing: .01em; min-width: 0; }
.card-cat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name {
  margin: 3px 0 0; font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.card-rating { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11.5px;
  color: var(--c-text-2); font-weight: 700; }
.card-rating .star { color: #ffb020; }
.card-rating .muted { color: var(--c-text-3); font-weight: 600; }
.card-price { display: flex; align-items: baseline; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.card-price b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.card-price em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c-green-text);
  background: var(--c-green-weak); padding: 2px 6px; border-radius: 6px; }
.card-price small { font-size: 11.5px; color: var(--c-text-3); font-weight: 600; }
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px;
  border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: -.01em;
  background: var(--c-subtle); color: var(--c-text-2); border: 1px solid var(--c-border);
  white-space: nowrap;
}
.badge-blue { background: var(--c-blue-weak); color: #1b64da; border-color: #d3e6ff; }
.badge-green { background: var(--c-green-weak); color: var(--c-green-text); border-color: #c3f0e2; }
.badge-amber { background: var(--c-amber-weak); color: var(--c-amber-text); border-color: #ffe0bf; }
.badge-violet { background: var(--c-violet-weak); color: #5f3dc4; border-color: #e2d9ff; }
.badge-red { background: var(--c-red-weak); color: var(--c-red-text); border-color: #ffd8d8; }

.empty {
  text-align: center; padding: 56px 16px; color: var(--c-text-3);
  background: var(--c-surface); border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg);
}
.empty h3 { margin: 0 0 6px; color: var(--c-text); font-size: 15px; }
.empty p { margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------- sheet / drawer */
.backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(16, 22, 31, .42);
  opacity: 0; pointer-events: none; transition: opacity .18s;
  backdrop-filter: blur(2px);
}
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
  background: var(--c-surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-modal);
  max-height: 92dvh; display: flex; flex-direction: column;
  transform: translateY(102%); transition: transform .24s cubic-bezier(.32, .72, 0, 1);
  padding-bottom: var(--safe-b);
}
.sheet.open { transform: none; }
@media (min-width: 900px) {
  .sheet {
    left: auto; right: 0; top: 0; bottom: 0; width: min(480px, 92vw);
    border-radius: 0; max-height: none; transform: translateX(102%);
  }
  .sheet.open { transform: none; }
}
.sheet-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: var(--c-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 2;
}
@media (min-width: 900px) { .sheet-head { border-radius: 0; } }
.grab { width: 36px; height: 4px; border-radius: 99px; background: var(--c-border-strong); margin: 0 auto 8px; }
@media (min-width: 900px) { .grab { display: none; } }
.sheet-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin: 0; flex: 1 1 auto; min-width: 0; }
.sheet-close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c-text-2); background: var(--c-subtle); flex: 0 0 auto; }
.sheet-close:hover { background: var(--c-hover); }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(20px + var(--safe-b)); }
.sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--c-border);
  background: var(--c-surface); display: flex; gap: 8px; }
.sheet-foot .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- detail */
.detail-hero { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
@media (min-width: 520px) { .detail-hero { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; } }
.detail-hero .thumb { border: 1px solid var(--c-border); border-radius: var(--r-md); }
.detail-name { margin: 0 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.price-hero {
  margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--c-subtle);
  border: 1px solid var(--c-border);
}
.price-hero-main { display: flex; align-items: baseline; gap: 6px; }
.price-hero-main b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.price-hero-main span { font-size: 12.5px; color: var(--c-text-3); font-weight: 600; }
.price-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 10px; }
@media (min-width: 420px) { .price-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cell { min-width: 0; }
.cell-k { font-size: 10.5px; font-weight: 600; color: var(--c-text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cell-v { font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }

.section { margin-top: 20px; }
.section-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.section-head h3 { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }
.section-head .hint { font-size: 11px; color: var(--c-text-3); font-weight: 600; margin-left: auto; }

.spec-table { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); font-size: 12.5px;
  border-bottom: 1px solid var(--c-border); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { background: var(--c-subtle); color: var(--c-text-3); font-weight: 600; padding: 8px 10px; }
.spec-row .v { padding: 8px 10px; color: var(--c-text); font-weight: 500; }
.spec-sec { background: #fff; padding: 8px 10px; font-size: 11px; font-weight: 800; color: var(--c-text-3);
  letter-spacing: .04em; border-bottom: 1px solid var(--c-border); }

.mkt-list { display: flex; flex-direction: column; gap: 6px; }
.mkt-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-surface); text-decoration: none; color: inherit;
}
.mkt-row:hover { background: var(--c-subtle); text-decoration: none; }
.mkt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dc, var(--c-text-3)); flex: 0 0 auto; }
.mkt-name { font-size: 13px; font-weight: 700; }
.mkt-date { font-size: 11px; color: var(--c-text-3); font-weight: 600; }
.mkt-price { margin-left: auto; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }

.chart { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 8px 10px 4px;
  background: var(--c-surface); }
.chart svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: var(--c-text-3);
  font-weight: 600; padding: 2px 2px 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }

.note { font-size: 12px; color: var(--c-text-2); background: var(--c-subtle); border-radius: var(--r-md);
  padding: 10px 12px; border: 1px solid var(--c-border); }
.note b { color: var(--c-text); }

/* ---------------------------------------------------------------- toast */
.toast-wrap { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content;
  max-width: calc(100vw - 24px); pointer-events: none; }
.toast {
  background: #1f2733; color: #fff; border-radius: var(--r-pill); padding: 10px 16px; font-size: 13px;
  font-weight: 600; box-shadow: var(--sh-float); animation: toastin .22s ease-out;
  max-width: 100%; text-align: center;
}
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--c-text-2); margin-bottom: 6px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface);
  padding: 11px 12px; font: inherit; font-size: 16px; color: var(--c-text); outline: 0;
  transition: border-color .14s, box-shadow .14s;
}
.input:focus, .textarea:focus { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(49, 130, 246, .14); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.help { font-size: 11.5px; color: var(--c-text-3); margin-top: 6px; line-height: 1.45; }

/* ---------------------------------------------------------------- misc */
.skel { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fa 37%, #eef1f6 63%);
  background-size: 400% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.fade-in { animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.divider { height: 1px; background: var(--c-border); margin: 16px 0; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--c-text-3); }
.nowrap { white-space: nowrap; }
.footer { padding: 28px 0 36px; color: var(--c-text-3); font-size: 11.5px; line-height: 1.7; }
.footer a { color: var(--c-text-2); font-weight: 600; }
