/* =========================================================================
   AHLIKU — Panel Penjual Multi-Toko
   Visual language: soft claymorphism + glassmorphism, ambient light,
   layered 3D cards. Light theme. Shopee orange primary, TikTok blue second.
   ========================================================================= */

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
:focus-visible {
  outline: 2.5px solid oklch(0.62 0.19 35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --------------------------------------------------------------- tokens */
:root {
  /* surfaces & ink — derived in OKLch, no raw hex below this line */
  --bg: oklch(0.968 0.011 272);
  --bg-2: oklch(0.945 0.02 285);
  --surface: oklch(0.998 0.002 270);
  --surface-2: oklch(0.982 0.007 275);
  --surface-glass: oklch(0.998 0.003 275 / 0.72);
  --fg: oklch(0.33 0.036 268);
  --fg-strong: oklch(0.235 0.045 268);
  --muted: oklch(0.565 0.024 268);
  --muted-2: oklch(0.68 0.02 268);
  --border: oklch(0.905 0.013 272);
  --border-soft: oklch(0.945 0.009 272);
  --border-strong: oklch(0.855 0.018 272);

  /* brand */
  --accent: oklch(0.635 0.202 35);          /* Shopee orange */
  --accent-strong: oklch(0.565 0.198 33);
  --accent-deep: oklch(0.49 0.18 31);
  --accent-soft: oklch(0.955 0.035 45);
  --accent-ink: oklch(0.48 0.19 33);
  --shopee: oklch(0.635 0.202 35);
  --tiktok: oklch(0.585 0.172 256);

  /* state */
  --ok: oklch(0.66 0.145 158);
  --ok-soft: oklch(0.955 0.045 158);
  --ok-ink: oklch(0.46 0.12 158);
  --warn: oklch(0.78 0.152 78);
  --warn-soft: oklch(0.962 0.052 82);
  --warn-ink: oklch(0.53 0.13 66);
  --danger: oklch(0.625 0.212 24);
  --danger-soft: oklch(0.958 0.04 24);
  --danger-ink: oklch(0.5 0.2 24);

  /* radii */
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* elevation — layered clay + ambient */
  --sh-clay:
    0 1px 0 oklch(1 0 0 / 0.92) inset,
    0 -2px 5px oklch(0.72 0.03 272 / 0.14) inset,
    0 20px 40px -26px oklch(0.42 0.07 272 / 0.5),
    0 6px 16px -10px oklch(0.42 0.07 272 / 0.24);
  --sh-soft:
    0 1px 0 oklch(1 0 0 / 0.85) inset,
    0 12px 26px -20px oklch(0.42 0.07 272 / 0.45),
    0 3px 10px -8px oklch(0.42 0.07 272 / 0.22);
  --sh-float:
    0 30px 60px -30px oklch(0.4 0.08 272 / 0.55),
    0 12px 26px -16px oklch(0.4 0.08 272 / 0.3);
  --sh-tile:
    0 1px 0 oklch(1 0 0 / 0.9) inset,
    0 -3px 6px oklch(0.55 0.08 40 / 0.16) inset,
    0 8px 14px -8px oklch(0.5 0.1 40 / 0.42);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --sidebar-w: 274px;
  --rail-w: 88px;
  --gutter: 22px;
}

body.is-collapsed { --sidebar-w: var(--rail-w); }

/* ----------------------------------------------------------- background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(0.965 0.032 55 / 0.85), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, oklch(0.955 0.035 265 / 0.8), transparent 60%),
    linear-gradient(165deg, oklch(0.985 0.008 275) 0%, oklch(0.955 0.02 285) 52%, oklch(0.972 0.018 30) 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob--orange { width: 520px; height: 520px; top: -180px; right: -80px; background: radial-gradient(circle, oklch(0.82 0.14 52 / 0.9), transparent 68%); }
.blob--blue { width: 460px; height: 460px; bottom: -190px; left: -120px; background: radial-gradient(circle, oklch(0.8 0.11 258 / 0.85), transparent 68%); }
.blob--violet { width: 380px; height: 380px; top: 34%; right: 22%; background: radial-gradient(circle, oklch(0.84 0.1 300 / 0.7), transparent 70%); }
.blob--mint { width: 300px; height: 300px; bottom: 12%; right: -60px; background: radial-gradient(circle, oklch(0.86 0.09 175 / 0.6), transparent 70%); }
.grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(oklch(0.5 0.02 272 / 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* --------------------------------------------------------------- shell */
.sidebar {
  position: fixed;
  z-index: 40;
  top: var(--gutter);
  left: var(--gutter);
  bottom: var(--gutter);
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.85);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: width 0.5s var(--spring), transform 0.5s var(--spring);
}
.sidebar::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.55), transparent 34%);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 10;
  margin-left: calc(var(--sidebar-w) + var(--gutter) * 2);
  padding: 0 var(--gutter) 40px 0;
  transition: margin-left 0.5s var(--spring);
}

/* -------------------------------------------------------------- brand */
.sidebar__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 16px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.brand__mark { flex: 0 0 auto; width: 44px; height: 44px; }
.brand__mark svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 14px oklch(0.55 0.16 40 / 0.35)); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--fg-strong);
  line-height: 1.05;
}
.brand__sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 2px;
}

.rail-toggle {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.4s var(--spring);
}
.rail-toggle:hover { background: oklch(0.96 0.02 275); color: var(--fg-strong); border-color: var(--border-soft); }
.rail-toggle .icon { transition: transform 0.5s var(--spring); }
body.is-collapsed .rail-toggle .icon { transform: rotate(180deg); }

/* --------------------------------------------------------------- nav */
.nav { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px; }
.nav::-webkit-scrollbar { width: 0; }
.nav__list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.nav__pill {
  position: absolute;
  left: 4px; right: 4px; top: 0;
  height: 50px;
  border-radius: var(--r-md);
  background: linear-gradient(122deg, oklch(0.975 0.045 46), oklch(0.925 0.085 36));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.95) inset,
    0 0 0 1px oklch(0.86 0.075 40 / 0.75),
    0 12px 22px -12px oklch(0.6 0.18 36 / 0.75);
  z-index: 0;
  transition: transform 0.5s var(--spring), height 0.5s var(--spring), opacity 0.3s var(--ease);
}
.nav__pill::after {
  content: "";
  position: absolute; left: 14%; right: 14%; bottom: -7px; height: 14px;
  background: radial-gradient(ellipse at center, oklch(0.68 0.19 36 / 0.5), transparent 70%);
  filter: blur(3px);
}

.nav-item { position: relative; }
.nav-item__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}
.nav-item__link:hover { color: var(--fg-strong); }
.nav-item__label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item__badge {
  flex: 0 0 auto;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, oklch(0.68 0.2 28), oklch(0.57 0.21 24));
  color: oklch(0.99 0.01 30);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 6px 12px -6px oklch(0.55 0.2 25 / 0.8), 0 1px 0 oklch(1 0 0 / 0.4) inset;
}
.nav-item.is-active .nav-item__link { color: var(--accent-ink); }
.nav-item.is-active .nav-item__label { font-weight: 700; }

/* icon tiles (3D clay chip + colored glyph) */
.icon-tile {
  --h: 268;
  --sat: 0.055;
  --glyph: 0.55 0.18 var(--h);
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(152deg, oklch(0.975 0.028 var(--h)), oklch(0.918 0.055 var(--h)));
  color: oklch(var(--glyph));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.95) inset,
    0 -3px 6px oklch(0.62 0.06 var(--h) / 0.22) inset,
    0 7px 12px -7px oklch(0.55 0.09 var(--h) / 0.5);
  overflow: hidden;
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease);
}
.icon-tile::after {
  content: "";
  position: absolute; inset: 1px 1px 55% 1px;
  border-radius: 10px 10px 60% 60%;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.65), transparent);
  pointer-events: none;
}
.icon-tile .icon { position: relative; z-index: 1; width: 20px; height: 20px; }
.icon-tile[data-size="sm"] { width: 32px; height: 32px; border-radius: 10px; }
.icon-tile[data-size="sm"] .icon { width: 17px; height: 17px; }
.icon-tile[data-size="lg"] { width: 46px; height: 46px; border-radius: 14px; }
.icon-tile[data-size="lg"] .icon { width: 24px; height: 24px; }
.icon-tile[data-size="xl"] { width: 54px; height: 54px; border-radius: 16px; }
.icon-tile[data-size="xl"] .icon { width: 28px; height: 28px; }

.icon-tile--solid {
  background: linear-gradient(150deg, oklch(0.72 0.16 var(--h)), oklch(0.55 0.2 var(--h)));
  color: oklch(0.99 0.01 var(--h));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.5) inset,
    0 -3px 7px oklch(0.35 0.12 var(--h) / 0.4) inset,
    0 10px 18px -8px oklch(0.5 0.16 var(--h) / 0.7);
}
.icon-tile--solid::after { background: linear-gradient(180deg, oklch(1 0 0 / 0.5), transparent 70%); }

/* compact gradient chip for actions, status & inline media */
.chip-ico {
  --h: 268;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 7px;
  color: oklch(0.99 0.01 var(--h));
  background: linear-gradient(150deg, oklch(0.74 0.15 var(--h)), oklch(0.55 0.2 var(--h)));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.45) inset, 0 4px 8px -5px oklch(0.5 0.16 var(--h) / 0.85);
}
.chip-ico .icon { width: 12px; height: 12px; }
.pill .chip-ico { width: 18px; height: 18px; border-radius: 6px; }
.pill .chip-ico .icon { width: 11px; height: 11px; }
.btn .chip-ico { width: 22px; height: 22px; border-radius: 8px; }
.btn .chip-ico .icon { width: 13px; height: 13px; }

[data-tone="orange"]  { --h: 38; }
[data-tone="amber"]   { --h: 74; }
[data-tone="green"]   { --h: 155; }
[data-tone="teal"]    { --h: 188; }
[data-tone="blue"]    { --h: 256; }
[data-tone="violet"]  { --h: 292; }
[data-tone="pink"]    { --h: 352; }
[data-tone="red"]     { --h: 25; }
[data-tone="indigo"]  { --h: 274; }
[data-tone="slate"]   { --h: 268; --sat: 0.02; }

/* ----------------------------------------------------------- account */
.account {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, oklch(1 0 0 / 0.9), oklch(0.965 0.014 278 / 0.75));
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-soft);
}
.account__avatar {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, oklch(0.74 0.13 268), oklch(0.55 0.17 282));
  color: oklch(0.99 0.01 280);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset, 0 8px 14px -8px oklch(0.5 0.15 280 / 0.8);
}
.account__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.account__name { font-weight: 700; font-size: 0.86rem; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__role { font-size: 0.74rem; color: var(--muted); }
.account__pro {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: oklch(0.42 0.16 40);
  background: linear-gradient(150deg, oklch(0.96 0.06 50), oklch(0.9 0.1 40));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset, 0 0 0 1px oklch(0.85 0.09 45 / 0.7);
}

/* ============================================================== topbar */
.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  margin-bottom: 4px;
}
.topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.page-title {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  line-height: 1.1;
}
.topbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------- shop switcher */
.shop-switch { position: relative; }
.shop-switch__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.shop-switch__btn:hover { transform: translateY(-1px); box-shadow: var(--sh-clay); }
.shop-switch__btn[aria-expanded="true"] { box-shadow: var(--sh-clay); }
.shop-switch__platform {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: oklch(0.99 0.01 40);
  background: linear-gradient(150deg, oklch(0.72 0.16 40), oklch(0.58 0.2 35));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.45) inset, 0 6px 10px -6px oklch(0.55 0.18 36 / 0.8);
}
.shop-switch__platform[data-platform="tiktok"] { background: linear-gradient(150deg, oklch(0.68 0.15 258), oklch(0.53 0.18 256)); }
.shop-switch__platform[data-platform="all"] { background: linear-gradient(150deg, oklch(0.72 0.12 282), oklch(0.55 0.16 276)); }
.shop-switch__platform .icon { width: 17px; height: 17px; }
.shop-switch__text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.shop-switch__name { font-weight: 700; font-size: 0.85rem; color: var(--fg-strong); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-switch__hint { font-size: 0.72rem; color: var(--muted); }
.shop-switch__caret { width: 16px; height: 16px; color: var(--muted); transition: transform 0.35s var(--spring); }
.shop-switch__btn[aria-expanded="true"] .shop-switch__caret { transform: rotate(180deg); }

.shop-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: min(86vw, 320px);
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: 60;
}
.shop-menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-md);
  text-align: left;
  transition: background 0.2s var(--ease);
}
.shop-menu__item:hover { background: oklch(0.96 0.018 275); }
.shop-menu__item.is-selected { background: linear-gradient(120deg, oklch(0.975 0.04 46), oklch(0.94 0.07 38)); }
.shop-menu__item .icon-tile { width: 32px; height: 32px; border-radius: 10px; }
.shop-menu__item .icon-tile .icon { width: 17px; height: 17px; }
.shop-menu__body { flex: 1; min-width: 0; }
.shop-menu__name { display: block; font-weight: 700; font-size: 0.84rem; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-menu__sub { display: block; font-size: 0.72rem; color: var(--muted); }

/* ---------------------------------------------------------- buttons */
.icon-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  color: var(--fg);
  box-shadow: var(--sh-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), color 0.25s var(--ease);
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-clay); color: var(--accent-ink); }
.icon-btn:active { transform: translateY(0) scale(0.97); }
.icon-btn .icon { width: 21px; height: 21px; }
.icon-btn--menu { display: none; }
.icon-btn__badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, oklch(0.68 0.21 28), oklch(0.56 0.22 22));
  color: oklch(0.99 0.01 30);
  font-size: 0.68rem; font-weight: 800;
  border: 2px solid oklch(0.985 0.01 275);
  box-shadow: 0 8px 14px -6px oklch(0.55 0.2 24 / 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.68; cursor: progress; }
.btn:disabled:hover { transform: none; }
.btn__tile {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: oklch(1 0 0 / 0.22);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset;
}
.btn__tile .icon { width: 15px; height: 15px; }
.btn > .icon { width: 17px; height: 17px; }
.btn--sm > .icon { width: 15px; height: 15px; }
.btn__label { line-height: 1; }

.btn--primary {
  color: oklch(0.99 0.012 40);
  background: linear-gradient(150deg, oklch(0.7 0.17 42), oklch(0.56 0.2 33));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.45) inset,
    0 -3px 7px oklch(0.4 0.16 30 / 0.35) inset,
    0 14px 24px -12px oklch(0.55 0.19 34 / 0.85),
    0 4px 10px -6px oklch(0.55 0.19 34 / 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset, 0 -3px 7px oklch(0.4 0.16 30 / 0.35) inset, 0 20px 32px -14px oklch(0.55 0.19 34 / 0.9), 0 6px 14px -6px oklch(0.55 0.19 34 / 0.6); }
.btn--primary.is-busy .btn__tile .icon { animation: spin 0.9s linear infinite; }

.btn--ghost {
  color: var(--fg);
  background: oklch(1 0 0 / 0.7);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-soft);
}
.btn--ghost:hover { color: var(--accent-ink); box-shadow: var(--sh-clay); transform: translateY(-1px); }

.btn--quiet {
  height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid oklch(0.88 0.07 42 / 0.8);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset;
}
.btn--quiet:hover { background: oklch(0.94 0.055 42); transform: translateY(-1px); }

.btn--sm { height: 36px; padding: 0 12px; font-size: 0.79rem; border-radius: var(--r-sm); }
.btn--sm .btn__tile { width: 22px; height: 22px; border-radius: 7px; }
.btn--sm .btn__tile .icon { width: 13px; height: 13px; }

/* --------------------------------------------------------- toolbar */
.page { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.segmented-wrap { display: flex; align-items: center; gap: 8px; }
.segmented-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.segmented {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: oklch(0.955 0.012 275 / 0.9);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset, 0 8px 16px -14px oklch(0.42 0.07 272 / 0.6);
}
.segmented__thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 82px;
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.57 0.2 34));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.45) inset, 0 8px 14px -8px oklch(0.55 0.19 34 / 0.9);
  transition: transform 0.45s var(--spring), width 0.45s var(--spring);
  z-index: 0;
}
.segmented__btn {
  position: relative;
  z-index: 1;
  min-width: 82px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.segmented__btn.is-active { color: oklch(0.99 0.012 40); }
.segmented__btn:not(.is-active):hover { color: var(--fg-strong); }

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--warn-ink);
  background: var(--warn-soft);
  border: 1px solid oklch(0.87 0.08 80 / 0.8);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset;
}
.demo-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px oklch(0.85 0.12 80 / 0.35); }

/* ============================================================== cards */
.panel {
  position: relative;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.88);
  box-shadow: var(--sh-clay);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.5), transparent 22%);
  pointer-events: none;
}
.panel > * { position: relative; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.panel__title-sub { font-weight: 600; font-size: 0.86rem; color: var(--muted); }
.panel__meta { font-size: 0.78rem; color: var(--muted); }

/* ------------------------------------------------------- stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card {
  position: relative;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-clay);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.55), transparent 30%);
  pointer-events: none;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.85 0.11 var(--h, 38) / 0.55), transparent 68%);
  pointer-events: none;
}
.stat-card[data-tone="orange"] { --h: 40; }
.stat-card[data-tone="blue"] { --h: 256; }
.stat-card[data-tone="amber"] { --h: 62; }
.stat-card > * { position: relative; z-index: 1; }
.stat-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stat-card__label { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.stat-card__sub { margin-top: 9px; font-size: 0.82rem; color: var(--muted); }
.stat-card__sub strong { color: var(--fg-strong); font-weight: 700; }
.stat-card__foot { margin-top: 16px; }
.stat-card--alert .stat-card__value { color: var(--danger-ink); }

.shop-roster { display: flex; align-items: center; gap: 6px; }
.roster-dot {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 0.68rem; font-weight: 800;
  color: oklch(0.99 0.01 40);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset, 0 5px 9px -6px oklch(0.5 0.14 40 / 0.8);
}
.roster-dot[data-platform="shopee"] { background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.58 0.2 34)); }
.roster-dot[data-platform="tiktok"] { background: linear-gradient(150deg, oklch(0.66 0.15 258), oklch(0.53 0.18 254)); }
.roster-more { font-size: 0.75rem; font-weight: 700; color: var(--muted); }

.split-bar { display: flex; height: 8px; border-radius: var(--r-pill); overflow: hidden; background: oklch(0.93 0.012 272); box-shadow: 0 1px 0 oklch(0.85 0.02 272 / 0.4) inset; }
.split-bar__seg { height: 100%; }
.split-bar__seg--shopee { background: linear-gradient(90deg, oklch(0.7 0.17 42), oklch(0.6 0.2 34)); }
.split-bar__seg--tiktok { background: linear-gradient(90deg, oklch(0.66 0.15 258), oklch(0.55 0.18 254)); }
.split-legend { display: flex; gap: 14px; margin-top: 9px; font-size: 0.75rem; color: var(--muted); }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 8px; height: 8px; border-radius: 3px; }
.split-legend .lg-shopee { background: var(--shopee); }
.split-legend .lg-tiktok { background: var(--tiktok); }

.ratio { display: flex; align-items: center; gap: 10px; }
.ratio__ring { width: 40px; height: 40px; flex: 0 0 auto; }
.ratio__text { font-size: 0.78rem; color: var(--muted); }
.ratio__text strong { color: var(--danger-ink); font-weight: 700; }

/* ------------------------------------------------------ sales cards */
.sales-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sales-card {
  position: relative;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, oklch(1 0 0 / 0.94), oklch(0.972 0.012 278 / 0.8));
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-soft);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.sales-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.6), transparent 26%);
  pointer-events: none;
}
.sales-card > * { position: relative; z-index: 1; }
.sales-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sales-card__label { font-weight: 700; font-size: 0.9rem; color: var(--fg-strong); }
.sales-card__date { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }
.sales-card__revenue {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.sales-card__metrics { display: flex; flex-direction: column; gap: 9px; }
.metric-row { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--muted); }
.metric-row .metric-ico {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: oklch(0.965 0.02 var(--h, 268));
  color: oklch(0.55 0.16 var(--h, 268));
}
.metric-row .metric-ico .icon { width: 13px; height: 13px; }
.metric-row__label { flex: 1; }
.metric-row__val { font-weight: 700; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

.sales-card--hero {
  background: linear-gradient(158deg, oklch(0.71 0.17 42), oklch(0.56 0.2 33));
  border-color: oklch(0.72 0.16 40 / 0.9);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.45) inset, 0 -4px 10px oklch(0.4 0.16 30 / 0.3) inset, 0 20px 36px -18px oklch(0.55 0.19 34 / 0.9);
}
.sales-card--hero::before { background: linear-gradient(180deg, oklch(1 0 0 / 0.3), transparent 40%); }
.sales-card--hero .sales-card__label,
.sales-card--hero .sales-card__revenue { color: oklch(0.99 0.012 40); }
.sales-card--hero .sales-card__date { color: oklch(0.96 0.03 40 / 0.85); }
.sales-card--hero .metric-row { color: oklch(0.96 0.03 40 / 0.9); }
.sales-card--hero .metric-row__val { color: oklch(0.99 0.01 40); }
.sales-card--hero .metric-ico { background: oklch(1 0 0 / 0.2); color: oklch(0.99 0.01 40); box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset; }

/* ============================================================== tables */
.table-host { overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: thin; }
.table-host::-webkit-scrollbar { height: 8px; }
.table-host::-webkit-scrollbar-thumb { background: oklch(0.88 0.02 272); border-radius: 999px; }
.table-wrap { width: 100%; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; }
table.dt thead th {
  padding: 0 14px 10px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
table.dt tbody tr {
  background: oklch(1 0 0 / 0.66);
  box-shadow: 0 1px 0 oklch(0.93 0.01 272 / 0.9);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
table.dt tbody tr:hover { background: oklch(1 0 0 / 0.96); box-shadow: 0 1px 0 oklch(0.9 0.015 272 / 0.9), 0 12px 22px -18px oklch(0.42 0.07 272 / 0.7); }
table.dt tbody td { padding: 13px 14px; vertical-align: middle; font-size: 0.86rem; color: var(--fg); }
table.dt tbody tr:first-child td:first-child { border-top-left-radius: var(--r-md); }
table.dt tbody tr:first-child td:last-child { border-top-right-radius: var(--r-md); }
table.dt tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-md); }
table.dt tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r-md); }
table.dt tbody tr:last-child { box-shadow: none; }
.col-num { text-align: right; font-variant-numeric: tabular-nums; }
.col-action { text-align: right; white-space: nowrap; }

.cell-shop { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-shop__body { min-width: 0; flex: 1; }
.cell-shop__name { display: block; font-weight: 700; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-shop__sub { display: block; font-size: 0.74rem; color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: -0.01em; }
.region { color: var(--muted); }

.buyer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.buyer__avatar {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-weight: 700; font-size: 0.75rem;
  color: oklch(0.42 0.1 var(--h, 268));
  background: linear-gradient(152deg, oklch(0.97 0.03 var(--h, 268)), oklch(0.9 0.06 var(--h, 268)));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.9) inset, 0 6px 10px -8px oklch(0.55 0.1 var(--h, 268) / 0.7);
}
.buyer__body { min-width: 0; flex: 1; }
.buyer__name { display: block; font-weight: 700; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buyer__msg { display: block; font-size: 0.76rem; color: var(--muted); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 5px;
  border-radius: var(--r-pill);
  font-size: 0.73rem;
  font-weight: 600;
  color: oklch(0.5 0.1 268);
  background: oklch(0.955 0.02 272);
  border: 1px solid oklch(0.9 0.02 272);
}
.msg-chip .icon { width: 13px; height: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 800;
  color: oklch(0.99 0.01 30);
  background: linear-gradient(150deg, oklch(0.68 0.21 28), oklch(0.56 0.22 22));
  box-shadow: 0 5px 10px -6px oklch(0.55 0.2 24 / 0.9);
}
.badge--soft { background: oklch(0.955 0.03 30); color: oklch(0.5 0.2 24); box-shadow: none; }
.dash { color: var(--muted-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill .icon { width: 14px; height: 14px; }
.pill--danger { color: var(--danger-ink); background: var(--danger-soft); box-shadow: 0 0 0 1px oklch(0.88 0.06 24 / 0.8) inset; }
.pill--ok { color: var(--ok-ink); background: var(--ok-soft); box-shadow: 0 0 0 1px oklch(0.87 0.06 158 / 0.8) inset; }
.pill--warn { color: var(--warn-ink); background: var(--warn-soft); box-shadow: 0 0 0 1px oklch(0.86 0.08 80 / 0.8) inset; }

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}
.platform-chip__ico {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: oklch(0.99 0.01 40);
}
.platform-chip__ico[data-platform="shopee"] { background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.58 0.2 34)); box-shadow: 0 5px 9px -6px oklch(0.55 0.18 36 / 0.9); }
.platform-chip__ico[data-platform="tiktok"] { background: linear-gradient(150deg, oklch(0.66 0.15 258), oklch(0.53 0.18 254)); box-shadow: 0 5px 9px -6px oklch(0.5 0.16 256 / 0.9); }
.platform-chip__ico .icon { width: 14px; height: 14px; }
.platform-chip--sm { font-size: 0.76rem; }
.platform-chip--sm .platform-chip__ico { width: 20px; height: 20px; border-radius: 7px; }
.platform-chip--sm .platform-chip__ico .icon { width: 12px; height: 12px; }

/* ------------------------------------------------------- empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 60px;
}
.empty__art { position: relative; margin-bottom: 20px; }
.empty__art .icon-tile { width: 72px; height: 72px; border-radius: 22px; }
.empty__art .icon-tile .icon { width: 34px; height: 34px; }
.empty__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--fg-strong); }
.empty__desc { margin-top: 8px; max-width: 420px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.empty__cta { margin-top: 20px; }

/* ============================================================== toast */
.toast-stack {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(92vw, 380px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.toast__ico {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: oklch(0.99 0.01 40);
}
.toast__ico .icon { width: 17px; height: 17px; }
.toast--ok .toast__ico { background: linear-gradient(150deg, oklch(0.72 0.14 158), oklch(0.56 0.15 158)); }
.toast--warn .toast__ico { background: linear-gradient(150deg, oklch(0.82 0.14 82), oklch(0.68 0.15 72)); }
.toast--info .toast__ico { background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.58 0.2 34)); }
.toast__body { min-width: 0; }
.toast__title { font-weight: 700; font-size: 0.84rem; color: var(--fg-strong); }
.toast__msg { margin-top: 2px; font-size: 0.79rem; color: var(--muted); line-height: 1.45; }

/* ========================================================== skeleton */
.sk { position: relative; overflow: hidden; background: oklch(0.945 0.012 272); border-radius: 8px; }
.sk::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.7), transparent);
  animation: shimmer 1.4s infinite;
}
.sk-card { height: 168px; border-radius: var(--r-xl); }
.sk-sales { height: 232px; border-radius: var(--r-lg); }
.sk-row { height: 54px; border-radius: var(--r-md); margin-bottom: 8px; }
.sk-line { height: 12px; }
.sk-line.w-40 { width: 40%; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-80 { width: 80%; }

/* ========================================================== motion */
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }

.enter { animation: rise 0.55s var(--ease) both; }
.enter-pop { animation: pop 0.5s var(--spring) both; }
.float-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.tilt { transition: transform 0.5s var(--spring), box-shadow 0.4s var(--ease); will-change: transform; }
.tilt.is-tilting { transition: transform 0.12s ease-out, box-shadow 0.4s var(--ease); }

/* ============================================================ responsive */
@media (max-width: 1360px) {
  .sales-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  body { --sidebar-w: var(--rail-w); }
  .brand__text, .nav-item__label, .account__meta, .account__pro { display: none; }
  .nav-item__badge { position: absolute; top: 6px; right: 8px; }
  .sidebar { align-items: stretch; }
  .sidebar__head { justify-content: center; }
  .rail-toggle { display: none; }
  .account { justify-content: center; }
  .nav-item__link { justify-content: center; padding: 0; }
}

/* desktop icon-rail: collapse hides labels, toggle becomes an edge handle */
@media (min-width: 1121px) {
  body.is-collapsed .brand__text,
  body.is-collapsed .nav-item__label,
  body.is-collapsed .account__meta,
  body.is-collapsed .account__pro { display: none; }
  body.is-collapsed .sidebar__head { justify-content: center; }
  body.is-collapsed .nav-item__link { justify-content: center; padding: 0; }
  body.is-collapsed .nav-item__badge { position: absolute; top: 6px; right: 8px; }
  body.is-collapsed .account { justify-content: center; }
  body.is-collapsed .rail-toggle {
    position: absolute;
    top: 50%; right: -17px;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: 1px solid oklch(1 0 0 / 0.9);
    background: var(--surface-glass);
    box-shadow: var(--sh-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 5;
  }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .icon-btn--menu { display: grid; }
  .sidebar {
    width: 280px;
    transform: translateX(calc(-100% - var(--gutter) - 10px));
    box-shadow: var(--sh-float);
  }
  .brand__text, .nav-item__label, .account__meta, .account__pro { display: revert; }
  .nav-item__badge { position: static; }
  .nav-item__link { justify-content: flex-start; padding: 0 12px; }
  .sidebar__head { justify-content: space-between; }
  .rail-toggle { display: grid; }
  .account { justify-content: flex-start; }
  body.is-drawer-open .sidebar { transform: translateX(0); }
  .content { margin-left: 0; padding: 0 var(--gutter) 40px; }
  .scrim {
    position: fixed; inset: 0; z-index: 35;
    background: oklch(0.3 0.04 272 / 0.34);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    border: 0; padding: 0;
  }
  body.is-drawer-open .scrim { opacity: 1; visibility: visible; }
  .stats-grid { grid-template-columns: 1fr; }
  .shop-switch__name { max-width: 130px; }
}
@media (min-width: 901px) { .scrim { display: none; } }
@media (max-width: 720px) {
  .page-title { font-size: 1.42rem; }
  .sales-grid { grid-template-columns: 1fr; }
  .topbar__right { width: 100%; }
  .shop-switch { flex: 1; }
  .shop-switch__btn { width: 100%; }
  .btn--primary .btn__label { display: none; }
  .btn--primary { padding: 0 12px; }
  .panel { padding: 16px; border-radius: var(--r-lg); }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; max-width: none; }

  /* tables → stacked cards, no horizontal scroll */
  .table-host { overflow: visible; }
  table.dt thead { display: none; }
  table.dt, table.dt tbody, table.dt tr, table.dt td { display: block; width: 100%; }
  table.dt tbody tr {
    margin-bottom: 12px;
    padding: 6px 4px;
    border-radius: var(--r-md);
    background: oklch(1 0 0 / 0.8);
    box-shadow: var(--sh-soft);
  }
  table.dt tbody tr:last-child { margin-bottom: 0; }
  table.dt tbody td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; text-align: right; }
  table.dt tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: left;
  }
  .col-num, .col-action { text-align: right; }
  .buyer__msg { max-width: 46vw; }
}

/* =================================================== shared components */
.icon-btn--sm { width: 36px; height: 36px; border-radius: var(--r-sm); }
.icon-btn--sm .icon { width: 17px; height: 17px; }
.icon-btn--xs { width: 30px; height: 30px; border-radius: var(--r-xs); }
.icon-btn--xs .icon { width: 15px; height: 15px; }

.btn--danger {
  color: oklch(0.99 0.01 25);
  background: linear-gradient(150deg, oklch(0.68 0.2 28), oklch(0.55 0.21 22));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset, 0 12px 22px -12px oklch(0.55 0.2 24 / 0.85);
}
.btn--danger:hover { transform: translateY(-1px); }
.btn--block { width: 100%; }

.pill--info { color: oklch(0.44 0.14 256); background: oklch(0.955 0.03 256); box-shadow: 0 0 0 1px oklch(0.87 0.05 256 / 0.8) inset; }

/* search field */
.search-field { position: relative; display: flex; align-items: center; }
.search-field__ico { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted-2); pointer-events: none; }
.search-field__input {
  width: 100%; height: 42px; padding: 0 38px 0 36px;
  border-radius: var(--r-md);
  border: 1px solid oklch(1 0 0 / 0.9);
  background: oklch(0.975 0.01 275 / 0.9);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset;
  font-size: 0.86rem; color: var(--fg-strong);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.search-field__input::placeholder { color: var(--muted-2); }
.search-field__input:focus { outline: none; background: oklch(1 0 0 / 0.98); box-shadow: 0 0 0 2.5px oklch(0.7 0.15 40 / 0.35); }
.search-field__clear { position: absolute; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.search-field__clear:hover { background: oklch(0.94 0.015 275); color: var(--fg-strong); }
.search-field__clear .icon { width: 14px; height: 14px; }
.search-field--sm .search-field__input { height: 36px; font-size: 0.8rem; }

/* filter chips */
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  background: oklch(1 0 0 / 0.7);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.25s var(--spring);
}
.filter-chip:hover { color: var(--fg-strong); transform: translateY(-1px); }
.filter-chip.is-active { color: oklch(0.99 0.01 40); background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.57 0.2 34)); box-shadow: 0 8px 14px -8px oklch(0.55 0.19 34 / 0.9); }
.filter-chip__count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: var(--r-pill); font-size: 0.68rem; font-weight: 800; background: oklch(0.94 0.05 30); color: oklch(0.5 0.2 24); }
.filter-chip.is-active .filter-chip__count { background: oklch(1 0 0 / 0.28); color: oklch(0.99 0.01 40); }

/* modal */
.modal-root { position: fixed; inset: 0; z-index: 120; }
.modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; border: 0; padding: 0; background: oklch(0.32 0.04 272 / 0.4); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  overflow: hidden;
}
.modal--sm .modal__panel { max-width: 420px; }
.modal--full { padding: 0; align-items: stretch; justify-items: stretch; }
.modal--full .modal__panel { max-width: 100%; max-height: 100dvh; height: 100dvh; width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
.modal--full .modal__body { overflow-y: auto; flex: 1; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.modal__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--fg-strong); }
.modal__sub { font-size: 0.76rem; color: var(--muted); }
.modal__body { padding: 0 16px 8px; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px 16px; }
.modal__text { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* picker rows */
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px; border-radius: var(--r-md); text-align: left;
  background: oklch(1 0 0 / 0.7); border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-soft);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.pick-row:hover { transform: translateY(-2px); box-shadow: var(--sh-clay); }
.pick-row__thumb { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: oklch(0.55 0.16 var(--h, 268)); background: linear-gradient(152deg, oklch(0.97 0.03 var(--h, 268)), oklch(0.9 0.06 var(--h, 268))); box-shadow: 0 1px 0 oklch(1 0 0 / 0.9) inset; }
.pick-row__thumb .icon { width: 19px; height: 19px; }
.pick-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-row__name { font-weight: 700; font-size: 0.86rem; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row__meta { font-size: 0.76rem; color: var(--muted); }
.pick-row__cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 700; color: var(--accent-ink); }
.pick-row__cta .icon { width: 14px; height: 14px; }

/* switch */
.switch { position: relative; width: 46px; height: 27px; border-radius: var(--r-pill); background: oklch(0.9 0.015 272); box-shadow: 0 1px 0 oklch(0.82 0.02 272 / 0.5) inset; transition: background 0.3s var(--ease); flex: 0 0 auto; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: oklch(1 0 0); box-shadow: 0 2px 6px -1px oklch(0.4 0.05 272 / 0.4); transition: transform 0.35s var(--spring); }
.switch.is-on { background: linear-gradient(120deg, oklch(0.72 0.15 155), oklch(0.6 0.15 158)); }
.switch.is-on .switch__thumb { transform: translateX(19px); }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field__label { font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.field__select, .field__input, .field__area {
  width: 100%; border-radius: var(--r-sm);
  border: 1px solid oklch(1 0 0 / 0.9);
  background: oklch(0.98 0.008 275 / 0.95);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset;
  font-size: 0.84rem; color: var(--fg-strong);
  padding: 10px 12px;
}
.field__area { resize: vertical; min-height: 76px; font-family: inherit; line-height: 1.5; }
.field__select:focus, .field__input:focus, .field__area:focus { outline: none; box-shadow: 0 0 0 2.5px oklch(0.7 0.15 40 / 0.35); }

/* checkbox */
.checkbox { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; }
.checkbox input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.checkbox__box {
  width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center;
  background: oklch(1 0 0 / 0.92);
  box-shadow: 0 0 0 1.5px oklch(0.86 0.02 272) inset, 0 1px 0 oklch(1 0 0 / 0.8);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.checkbox input:checked + .checkbox__box,
.checkbox input:indeterminate + .checkbox__box {
  background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.57 0.2 34));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset;
}
.checkbox input:checked + .checkbox__box::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid oklch(0.99 0.01 40); border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.checkbox input:indeterminate + .checkbox__box::after { content: ""; width: 10px; height: 2.4px; border-radius: 2px; background: oklch(0.99 0.01 40); }
.checkbox input:focus-visible + .checkbox__box { outline: 2.5px solid oklch(0.62 0.19 35); outline-offset: 2px; }
.checkbox input:disabled + .checkbox__box { opacity: 0.5; cursor: not-allowed; }

/* column visibility menu */
.col-wrap { position: relative; }
.col-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: 214px; padding: 8px;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.col-menu__title { display: block; padding: 4px 8px 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.col-menu__item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border-radius: var(--r-sm); text-align: left; font-size: 0.84rem; font-weight: 600; color: var(--fg); transition: background 0.2s var(--ease); }
.col-menu__item:hover { background: oklch(0.96 0.018 275); }
.col-menu__item .checkbox { flex: 0 0 auto; }

.pill--muted { color: var(--muted); background: oklch(0.95 0.008 272); box-shadow: 0 0 0 1px oklch(0.9 0.01 272 / 0.9) inset; }

.kv-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.82rem; }
.kv-grid dt { color: var(--muted); }
.kv-grid dd { margin: 0; text-align: right; color: var(--fg-strong); font-weight: 600; }

.code-block {
  margin: 10px 0 0; padding: 12px 14px;
  border-radius: var(--r-md);
  background: oklch(0.965 0.012 272);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.7) inset, 0 0 0 1px oklch(0.92 0.012 272) inset;
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.55; color: var(--fg-strong);
  white-space: pre-wrap; word-break: break-word;
}

/* skeleton variants */
.sk-conv { height: 74px; border-radius: var(--r-md); margin-bottom: 8px; }
.sk-block { height: 120px; border-radius: var(--r-lg); margin-bottom: 12px; }
.sk-bubble { height: 46px; width: 60%; border-radius: 16px; margin: 10px 0; }
.sk-bubble--in { margin-right: auto; }
.sk-bubble--out { margin-left: auto; }


/* =================================================== shared: KPI / tabs / charts / drawer */
/* ===================================================== KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi-grid .stat-card { padding: 16px; }
.kpi-grid .stat-card__value { font-size: 1.55rem; }
.kpi-grid .stat-card__label { font-size: 0.78rem; }
.kpi-grid .stat-card__top { margin-bottom: 10px; }
.kpi-grid .icon-tile[data-size="lg"] { width: 40px; height: 40px; border-radius: 12px; }
.kpi-grid .icon-tile[data-size="lg"] .icon { width: 20px; height: 20px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; }
.kpi-delta .icon { width: 13px; height: 13px; }
.kpi-delta.is-up { color: var(--ok-ink); }
.kpi-delta.is-down { color: var(--danger-ink); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--border-soft); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--spring);
}
.tab .icon { width: 16px; height: 16px; }
.tab:hover { color: var(--fg-strong); background: oklch(1 0 0 / 0.72); }
.tab.is-active { color: oklch(0.99 0.01 40); background: linear-gradient(150deg, oklch(0.72 0.16 42), oklch(0.57 0.2 34)); box-shadow: 0 10px 18px -12px oklch(0.55 0.19 34 / 0.9); }
.tab-content { display: flex; flex-direction: column; gap: 16px; }
.tab-content__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===================================================== charts */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart-card { padding: 16px; border-radius: var(--r-lg); background: oklch(1 0 0 / 0.72); border: 1px solid oklch(1 0 0 / 0.9); box-shadow: var(--sh-soft); }
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chart-card__title { font-size: 0.85rem; font-weight: 700; color: var(--fg-strong); }
.chart-card__meta { font-size: 0.75rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__label { font-size: 10px; fill: var(--muted-2); font-family: var(--font-body); }
.chart__value { font-size: 10px; fill: var(--fg-strong); font-weight: 700; font-family: var(--font-body); }
.chart__grid { stroke: oklch(0.9 0.01 272); stroke-width: 1; stroke-dasharray: 3 4; }

/* ===================================================== overview */
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: oklch(1 0 0 / 0.72); border: 1px solid oklch(1 0 0 / 0.9); box-shadow: var(--sh-soft); }
.summary-row__label { font-size: 0.82rem; color: var(--muted); }
.summary-row__value { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

.breakdown { display: flex; flex-direction: column; gap: 12px; }
.breakdown__row { display: flex; align-items: center; gap: 12px; }
.breakdown__label { flex: 0 0 168px; min-width: 0; font-size: 0.82rem; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breakdown__bar { flex: 1; height: 10px; border-radius: var(--r-pill); background: oklch(0.94 0.012 272); overflow: hidden; }
.breakdown__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, oklch(0.74 0.15 45), oklch(0.6 0.2 34)); }
.breakdown__fill[data-platform="tiktok"] { background: linear-gradient(90deg, oklch(0.68 0.15 258), oklch(0.54 0.18 254)); }
.breakdown__value { flex: 0 0 auto; min-width: 96px; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { flex: 0 0 auto; height: 32px; padding: 0 13px; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 700; color: var(--muted); background: oklch(1 0 0 / 0.7); border: 1px solid oklch(1 0 0 / 0.9); box-shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset; transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s var(--spring); }
.subtab:hover { color: var(--fg-strong); transform: translateY(-1px); }
.subtab.is-active { color: oklch(0.99 0.01 40); background: linear-gradient(150deg, oklch(0.68 0.15 258), oklch(0.54 0.18 254)); box-shadow: 0 8px 14px -8px oklch(0.5 0.16 256 / 0.9); }

.section-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; color: var(--fg-strong); }
.section-title .icon { width: 17px; height: 17px; color: var(--muted); }
.section-block { display: flex; flex-direction: column; gap: 12px; }

/* ===================================================== drawer */
.drawer-root { position: fixed; inset: 0; z-index: 110; }
.drawer-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: oklch(0.32 0.04 272 / 0.32); backdrop-filter: blur(2px); }
.order-drawer {
  position: absolute; top: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  width: 480px; max-width: calc(100vw - var(--gutter) * 2);
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid oklch(1 0 0 / 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  overflow: hidden;
}
.drawer-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid oklch(0.94 0.01 272); }
.drawer-head__body { flex: 1; min-width: 0; }
.drawer-head__sn { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; color: var(--fg-strong); }
.drawer-head__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 16px; }

.dsec { display: flex; flex-direction: column; gap: 10px; }
.dsec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dsec__title { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--fg-strong); }
.dsec__title .icon { width: 16px; height: 16px; color: var(--muted); }
.dsec__card { padding: 12px; border-radius: var(--r-md); background: oklch(1 0 0 / 0.74); border: 1px solid oklch(1 0 0 / 0.9); box-shadow: var(--sh-soft); display: flex; flex-direction: column; gap: 9px; }
.dsec__grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 0.81rem; }
.dsec__grid dt { color: var(--muted); }
.dsec__grid dd { margin: 0; text-align: right; color: var(--fg-strong); font-weight: 600; }
.dsec__addr { font-size: 0.81rem; color: var(--fg); line-height: 1.5; }
.dsec__hint { font-size: 0.73rem; color: var(--muted); line-height: 1.45; }
.dsec__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


@media (max-width: 1400px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .chart-grid { grid-template-columns: 1fr; } .summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakdown__label { flex-basis: 108px; }
  .drawer, .order-drawer { width: auto; left: var(--gutter); }
}
@media (max-width: 640px) { .kpi-grid { grid-template-columns: 1fr; } }


/* =================================================== notices */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); }
.notice__ico { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: oklch(0.99 0.01 40); }
.notice__ico .icon { width: 19px; height: 19px; }
.notice__body { flex: 1; min-width: 0; }
.notice__title { display: block; font-weight: 800; font-size: 0.88rem; }
.notice__text { display: block; margin-top: 2px; font-size: 0.79rem; line-height: 1.5; opacity: 0.9; }
.notice--ok { background: var(--ok-soft); box-shadow: 0 0 0 1px oklch(0.87 0.06 158 / 0.7) inset; color: var(--ok-ink); }
.notice--ok .notice__ico { background: linear-gradient(150deg, oklch(0.72 0.14 158), oklch(0.56 0.15 158)); }
.notice--warn { background: var(--warn-soft); box-shadow: 0 0 0 1px oklch(0.86 0.08 80 / 0.7) inset; color: var(--warn-ink); }
.notice--warn .notice__ico { background: linear-gradient(150deg, oklch(0.82 0.14 82), oklch(0.68 0.15 72)); }
.notice--beta { background: linear-gradient(150deg, oklch(0.97 0.04 292), oklch(0.955 0.05 276)); box-shadow: 0 0 0 1px oklch(0.9 0.06 292 / 0.6) inset; color: oklch(0.44 0.14 292); }
.notice--beta .notice__ico { background: linear-gradient(150deg, oklch(0.72 0.14 292), oklch(0.55 0.17 282)); }
.notice__cta { flex: 0 0 auto; align-self: center; }
@media (max-width: 720px) { .notice { flex-direction: column; } }

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .blob { display: none; }
  .tilt { transform: none !important; }
}

[hidden] { display: none !important; }

/* real product images */
.prod-cell__thumb--img, .order-prod__thumb--img { object-fit: cover; display: block; }
.pcard__thumb--img, .side-product__thumb--img { background-size: cover; background-position: center; }
.pd-gallery__main--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.pd-thumb--img { padding: 0; overflow: hidden; }
