/* css/app.css */
/* ============================================================
   星晚 Club · 接待与陪玩中心
   Pastel holographic reception desk, after the club poster.
   ============================================================ */

:root {
  --bg: #f8f4fc;
  --bg-soft: #f2ebfa;
  --surface: #fffdfd;
  --surface-glass: rgba(255, 253, 255, 0.82);
  --surface-soft: #fbf8ff;
  --ink: #2b2433;
  --ink-2: #5d5368;
  --ink-3: #8c8298;
  --muted: #a59caf;
  --line: #ebe3f2;
  --line-strong: #ddd2e9;
  --pink: #ffacd2;
  --pink-deep: #e477a6;
  --pink-soft: #ffe7f2;
  --lavender: #b7a0e8;
  --lavender-deep: #8f72c7;
  --lavender-soft: #eee7fd;
  --sky: #a9d9f8;
  --sky-deep: #5fa7ce;
  --sky-soft: #e4f5ff;
  --mint: #9fe5cf;
  --mint-deep: #3e9c7e;
  --mint-soft: #e1faf1;
  --peach: #ffd0b6;
  --peach-deep: #ce8458;
  --peach-soft: #fff0e6;
  --gold: #efd08e;
  --gold-soft: #fff7e4;
  --danger: #d85e7e;
  --danger-soft: #ffedf2;
  --primary: #2a2332;
  --primary-soft: #3a3146;
  --white: #ffffff;
  --shadow-card: 0 16px 44px rgba(78, 53, 104, 0.075);
  --shadow-lift: 0 26px 60px rgba(78, 53, 104, 0.13);
  --shadow-button: 0 12px 24px rgba(42, 35, 50, 0.18);
  --font-body: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-display: "Arial Rounded MT Bold", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-en: "Trebuchet MS", "Century Gothic", "Arial", sans-serif;
  --font-boost: 3px;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --holo: linear-gradient(112deg, #ffd9e8 0%, #e8dcff 27%, #f8e4ff 49%, #d9efff 72%, #d8fff0 100%);
  --holo-deep: linear-gradient(112deg, #b77a9e 0%, #8d72c4 31%, #b174b4 55%, #5d9ab8 78%, #438b76 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(14.8px + var(--font-boost));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--pink-soft);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

:focus-visible {
  outline: 3px solid rgba(183, 160, 232, 0.55);
  outline-offset: 3px;
}

/* Ambient background ------------------------------------------------ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
}

.blob-a {
  width: 480px;
  height: 480px;
  left: 16%;
  top: -250px;
  background: radial-gradient(circle, rgba(255, 194, 220, 0.78), transparent 68%);
  animation: ambientDrift 20s var(--ease) infinite alternate;
}

.blob-b {
  width: 560px;
  height: 560px;
  right: -220px;
  top: 7%;
  background: radial-gradient(circle, rgba(191, 175, 241, 0.65), transparent 68%);
  animation: ambientDrift 24s var(--ease) -5s infinite alternate-reverse;
}

.blob-c {
  width: 520px;
  height: 420px;
  left: 38%;
  bottom: -230px;
  background: radial-gradient(circle, rgba(174, 232, 220, 0.55), transparent 68%);
  animation: ambientDrift 22s var(--ease) -10s infinite alternate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(98, 74, 129, 0.16) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 56%, rgba(0, 0, 0, 0.25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 56%, rgba(0, 0, 0, 0.25));
}

.ambient-spark {
  position: absolute;
  color: rgba(143, 114, 199, 0.3);
  font-size: calc(24.4px + var(--font-boost));
  animation: twinkle 5s ease-in-out infinite alternate;
}

.spark-a {
  top: 13%;
  left: 36%;
}

.spark-b {
  top: 42%;
  right: 4%;
  color: rgba(228, 119, 166, 0.24);
  font-size: calc(17px + var(--font-boost));
  animation-delay: -2s;
}

.spark-c {
  bottom: 16%;
  left: 59%;
  color: rgba(95, 167, 206, 0.22);
  font-size: calc(20.1px + var(--font-boost));
  animation-delay: -3.4s;
}

@keyframes ambientDrift {
  from { transform: translate3d(-24px, 8px, 0) scale(0.96); }
  to { transform: translate3d(30px, -22px, 0) scale(1.08); }
}

@keyframes twinkle {
  from { opacity: 0.26; transform: scale(0.82) rotate(-5deg); }
  to { opacity: 0.78; transform: scale(1.08) rotate(5deg); }
}

/* Brand wordmark -------------------------------------------------- */
.wordmark {
  position: relative;
  display: inline-grid;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.085em;
  white-space: nowrap;
  isolation: isolate;
}

.wordmark > span {
  grid-area: 1 / 1;
  display: block;
}

.wordmark .wordmark-outline {
  display: none;
  z-index: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.112em var(--ink);
}

.wordmark .wordmark-fill {
  position: relative;
  z-index: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(112deg, #ffa9cd 0%, #edc1ff 24%, #cbb7ff 45%, #aee2ff 71%, #b6ffe7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.045em var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(0.018em 0.03em 0 rgba(255, 255, 255, 0.9));
}

.wordmark em {
  display: inline-block;
  margin-left: 0.025em;
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.085em;
  transform: translateY(-0.025em);
}

.wordmark--xl { font-size: calc(clamp(54px, 6.7vw, 100px) + var(--font-boost)); }
.wordmark--lg { font-size: calc(clamp(38px, 4vw, 58px) + var(--font-boost)); }
.wordmark--md { font-size: calc(38.2px + var(--font-boost)); }
.wordmark--sm { font-size: calc(25.4px + var(--font-boost)); }

/* Sidebar ---------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 262px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 253, 255, 0.96), rgba(251, 247, 255, 0.91)),
    radial-gradient(circle at 20% 14%, rgba(255, 218, 234, 0.55), transparent 42%);
  border-right: 1px solid rgba(220, 208, 236, 0.67);
  box-shadow: 12px 0 40px rgba(75, 51, 99, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pixel-strip {
  flex: 0 0 auto;
  height: 13px;
  background-color: #f8f2ff;
  background-image:
    linear-gradient(90deg, rgba(175, 154, 208, 0.28) 50%, transparent 50%),
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.9) 50%);
  background-size: 13px 13px, 13px 13px;
  background-position: 0 0, 0 0;
  border-bottom: 1px solid rgba(219, 207, 234, 0.6);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 26px 18px 17px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 154, 204, 0.32) transparent;
}

.sidebar-inner::-webkit-scrollbar {
  width: 5px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(174, 154, 204, 0.32);
  border-radius: 99px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
  border-radius: 16px;
}

.brand-tile {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: var(--ink);
  background: var(--holo);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(43, 36, 51, 0.13);
  transform: rotate(-3deg);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-tile {
  transform: rotate(4deg) translateY(-1px);
}

.brand-tile svg {
  width: 39px;
  height: 39px;
  stroke-width: 2.4;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: calc(25.4px + var(--font-boost));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-word em {
  display: inline-block;
  margin-left: 2px;
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 900;
  font-size: calc(26.5px + var(--font-boost));
  letter-spacing: -0.075em;
  background: var(--holo-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-1px);
}

.brand-sub {
  margin-top: 5px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.21em;
  color: var(--ink-3);
}

.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 12px 10px;
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.micro-lines {
  letter-spacing: -0.1em;
  color: rgba(143, 114, 199, 0.5);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-item + .nav-item {
  margin-top: 2px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(228, 218, 239, 0.75);
  transform: translateX(2px);
}

.nav-item.is-active {
  background:
    linear-gradient(105deg, rgba(255, 228, 242, 0.82), rgba(238, 231, 253, 0.96) 58%, rgba(228, 246, 255, 0.88));
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(132, 104, 166, 0.08), inset 0 0 0 1px rgba(221, 206, 236, 0.45);
  color: var(--ink);
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 4px;
  height: 17px;
  border-radius: 99px;
  background: var(--ink);
  opacity: 0.82;
  transform: translateY(-50%);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(228, 219, 238, 0.78);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-item.is-active .nav-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff7ff;
  transform: rotate(-3deg);
}

.nav-text {
  display: flex;
  flex-direction: column;
  font-size: calc(14.3px + var(--font-boost));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.nav-text small {
  margin-top: 2px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-index {
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(157, 143, 173, 0.85);
  padding-right: 8px;
}

.nav-item.is-active .nav-index {
  opacity: 0;
}

.sidebar-spacer {
  flex: 1 1 28px;
  min-height: 24px;
}

.side-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(43, 36, 51, 0.11);
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 0%, #fff5fa 48%, #f4edff 100%);
  box-shadow: 0 9px 22px rgba(78, 53, 104, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.side-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(78, 53, 104, 0.12);
}

.side-cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}

.side-cta-icon svg {
  width: 16px;
  height: 16px;
}

.side-cta > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.side-cta strong {
  font-size: calc(12.2px + var(--font-boost));
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.side-cta small {
  margin-top: 2px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  letter-spacing: 0.13em;
  color: var(--muted);
}

.side-cta-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--ink-2);
}

.db-card {
  margin-top: 15px;
  padding: 13px 13px 12px;
  border-radius: 17px;
  border: 1px solid rgba(218, 206, 233, 0.85);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 205, 229, 0.36), transparent 55%),
    rgba(255, 255, 255, 0.58);
}

.db-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: calc(8px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.db-dot,
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(62, 156, 126, 0.12);
}

.db-live {
  margin-left: auto;
  color: var(--mint-deep);
  font-size: calc(7.4px + var(--font-boost));
  letter-spacing: 0.10em;
}

.db-card-main {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.db-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--lavender-deep);
  background: var(--lavender-soft);
}

.db-icon svg {
  width: 15px;
  height: 15px;
}

.db-card-main div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.db-card-main strong {
  font-family: var(--font-en);
  font-size: calc(15.9px + var(--font-boost));
  letter-spacing: -0.02em;
}

.db-card-main span {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.db-meter {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(169, 148, 196, 0.15);
}

.db-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
}

.operator-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 4px 2px;
  border-top: 1px dashed rgba(209, 195, 224, 0.8);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 800;
  font-size: calc(13.8px + var(--font-boost));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(95, 68, 119, 0.12);
  background: linear-gradient(145deg, var(--peach), var(--pink-soft) 55%, var(--lavender-soft));
}

.avatar-operator {
  background: linear-gradient(145deg, #ffd3c2, #ffe6f0 45%, #dcd4ff);
}

.operator-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.operator-copy strong {
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
}

.operator-copy small {
  margin-top: 2px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.icon-button.subtle {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.icon-button.subtle svg {
  width: 16px;
  height: 16px;
}

.brand-fineprint {
  padding: 13px 5px 0;
  font-family: var(--font-en);
  font-size: calc(6.9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.075em;
  color: rgba(150, 135, 164, 0.65);
  white-space: nowrap;
}

.brand-fineprint span {
  margin: 0 2px;
  color: var(--pink-deep);
}

/* App shell / topbar ------------------------------------------------ */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 262px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 77px;
  padding: 0 34px;
  background: rgba(249, 246, 253, 0.74);
  border-bottom: 1px solid rgba(228, 218, 240, 0.64);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--lavender-deep);
}

.breadcrumb-slash {
  color: rgba(164, 147, 181, 0.62);
}

.breadcrumb strong {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.topbar-right {
  gap: 13px;
}

.data-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(222, 211, 236, 0.85);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  font-size: calc(10.6px + var(--font-boost));
  color: var(--ink-3);
  white-space: nowrap;
}

.live-dot {
  animation: livePulse 2.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62, 156, 126, 0.12); }
  50% { box-shadow: 0 0 0 5px rgba(62, 156, 126, 0.03); }
}

.top-bell {
  position: relative;
  border: 0;
  background: transparent;
}

.top-bell svg {
  width: 18px;
  height: 18px;
}

.notice-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border: 1.5px solid #fff;
  border-radius: 99px;
  background: var(--pink-deep);
}

.top-new-order {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(43, 36, 51, 0.9);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 7px 17px rgba(42, 35, 50, 0.14);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.top-new-order svg {
  width: 14px;
  height: 14px;
}

.top-new-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 35, 50, 0.2);
}

.top-avatar {
  position: relative;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd6c6, #ffeaf3 50%, #d9d0ff);
  box-shadow: 0 3px 12px rgba(97, 69, 122, 0.17);
  color: var(--ink);
  font-size: calc(13.8px + var(--font-boost));
  font-weight: 800;
}

.top-avatar i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #faf7fd;
  border-radius: 50%;
  background: var(--mint-deep);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mobile-brand-tile {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--holo);
  font-size: calc(14.8px + var(--font-boost));
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.12);
}

/* Main content ----------------------------------------------------- */
.main-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 34px 28px;
  flex: 1;
}

.main-content:focus {
  outline: none;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px 24px;
  font-size: calc(9.5px + var(--font-boost));
  letter-spacing: 0.02em;
  color: var(--muted);
}

.site-foot .foot-dot {
  color: var(--pink-deep);
  font-size: calc(10.6px + var(--font-boost));
}

.foot-version {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  letter-spacing: 0.1em;
}

.boot-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.boot-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--ink);
  border-radius: 23px;
  background: var(--holo);
  box-shadow: 5px 5px 0 rgba(43, 36, 51, 0.1);
  animation: floaty 3s var(--ease) infinite alternate;
}

.boot-star {
  font-size: calc(31.8px + var(--font-boost));
}

.boot-loader p {
  margin: 20px 0 4px;
  font-size: calc(13.8px + var(--font-boost));
  font-weight: 700;
}

.boot-loader > span {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  letter-spacing: 0.2em;
  color: var(--muted);
}

@keyframes floaty {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-8px) rotate(3deg); }
}

button, a, [role="button"] {
  touch-action: manipulation;
}

/* Generic page header ---------------------------------------------- */
.page {
  animation: pageEnter 0.55s var(--ease) both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--pink-deep);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(clamp(28px, 3vw, 38px) + var(--font-boost));
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.page-title .soft {
  color: var(--lavender-deep);
}

.page-sub {
  margin: 8px 0 0;
  font-size: calc(12.7px + var(--font-boost));
  line-height: 1.7;
  color: var(--ink-3);
}

.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* Buttons ---------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: calc(12.7px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-button);
}

.btn-dark::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  height: 1px;
  border-radius: 99px;
  background: var(--holo);
  opacity: 0.6;
}

.btn-dark:hover {
  box-shadow: 0 16px 30px rgba(42, 35, 50, 0.25);
}

.btn-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(221, 210, 233, 0.95);
  box-shadow: 0 5px 14px rgba(84, 59, 109, 0.045);
}

.btn-light:hover {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 9px 20px rgba(84, 59, 109, 0.08);
}

.btn-soft {
  color: var(--lavender-deep);
  background: var(--lavender-soft);
  border-color: transparent;
}

.btn-soft:hover {
  background: #e6dcfb;
}

.btn-pink {
  color: var(--ink);
  background: var(--pink-soft);
  border-color: transparent;
}

.btn-ghost {
  color: var(--ink-2);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.58);
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: calc(11.7px + var(--font-boost));
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.64;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-light.is-loading::after,
.btn-soft.is-loading::after {
  border-color: rgba(43, 36, 51, 0.15);
  border-top-color: var(--ink);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-3);
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow svg {
  width: 13px;
  height: 13px;
}

.link-arrow:hover {
  gap: 8px;
  color: var(--ink);
}

/* Cards ------------------------------------------------------------ */
.card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(225, 213, 238, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(20.1px + var(--font-boost));
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.card-title .title-star {
  font-size: calc(13.8px + var(--font-boost));
  color: var(--pink-deep);
}

.card-sub {
  margin: 5px 0 0;
  font-size: calc(10.6px + var(--font-boost));
  color: var(--ink-3);
}

.seg-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(249, 246, 253, 0.9);
}

.seg-toggle button {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seg-toggle button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(84, 59, 109, 0.1);
}

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  min-height: 345px;
  padding: 36px 36px 30px 39px;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(112deg, rgba(255, 254, 255, 0.96) 0%, rgba(255, 249, 253, 0.92) 46%, rgba(243, 237, 255, 0.93) 76%, rgba(235, 246, 255, 0.96) 100%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(224, 213, 236, 0.33);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(142, 117, 172, 0.12) 0.7px, transparent 0.8px),
    linear-gradient(115deg, transparent 0 57%, rgba(255, 255, 255, 0.8) 57.2%, transparent 57.5%);
  background-size: 16px 16px, 100% 100%;
  opacity: 0.52;
  pointer-events: none;
}

.hero::after {
  content: "✦";
  position: absolute;
  right: 44%;
  top: 20px;
  font-size: calc(31.8px + var(--font-boost));
  color: rgba(143, 114, 199, 0.3);
  transform: rotate(10deg);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: calc(9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.hero-kicker .kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border: 1px solid rgba(43, 36, 51, 0.88);
  border-radius: 7px;
  background: var(--holo);
  color: var(--ink);
  font-size: calc(8.5px + var(--font-boost));
  letter-spacing: 0.11em;
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.1);
}

.hero-kicker .kicker-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink-deep);
}

.hero-kicker .kicker-line {
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1 {
  margin: 0;
  max-width: 570px;
  font-family: var(--font-display);
  font-size: calc(clamp(37px, 4.35vw, 58px) + var(--font-boost));
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.065em;
  color: var(--ink);
}

.hero h1 .holo-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(115deg, #c07a9c 2%, #8a6bbe 30%, #b5689e 55%, #5799b2 77%, #438d79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.6));
}

.hero h1 .holo-text::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 3px;
  height: 8px;
  border-radius: 40% 60% 45% 55%;
  background: var(--holo);
  opacity: 0.7;
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 470px;
  margin: 15px 0 0;
  font-size: calc(13.3px + var(--font-boost));
  line-height: 1.8;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-actions .btn {
  min-height: 44px;
  padding: 0 18px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-meta-item strong {
  font-family: var(--font-en);
  font-size: calc(18px + var(--font-boost));
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-meta-item span {
  margin-top: 4px;
  font-size: calc(9px + var(--font-boost));
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.hero-meta-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-left: 12px;
}

.hero-poster-wrap {
  position: relative;
  width: min(280px, 88%);
  aspect-ratio: 1 / 1.02;
  padding: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 9px 11px 0 rgba(183, 160, 232, 0.16), 0 20px 36px rgba(86, 61, 114, 0.13);
  transform: rotate(2.6deg);
  transition: transform 0.4s var(--ease);
}

.hero-poster-wrap:hover {
  transform: rotate(-0.7deg) translateY(-4px);
}

.hero-poster-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* The current dashboard visual uses the illustrated muse as a sticker card. */
.hero-muse-wrap {
  position: relative;
  width: min(260px, 89%);
  aspect-ratio: 0.8 / 1;
  padding: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 9px 11px 0 rgba(183, 160, 232, 0.16), 0 20px 38px rgba(86, 61, 114, 0.14);
  transform: rotate(2.2deg);
  transition: transform 0.4s var(--ease);
}

.hero-muse-wrap:hover {
  transform: rotate(-0.8deg) translateY(-4px);
}

.hero-muse-wrap > img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  object-position: 48% 22%;
}

.hero-muse-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(43, 36, 51, 0.82);
  border-radius: 10px;
  background: rgba(255, 253, 255, 0.93);
  box-shadow: 3px 3px 0 rgba(43, 36, 51, 0.09);
  backdrop-filter: blur(9px);
}

.hero-muse-caption .wordmark {
  font-size: calc(28.6px + var(--font-boost));
}

.hero-muse-caption > span {
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}

.poster-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 20px;
  border: 1px solid rgba(43, 36, 51, 0.12);
  background: rgba(255, 236, 245, 0.82);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 3px 6px rgba(87, 60, 110, 0.06);
  backdrop-filter: blur(2px);
}

.poster-sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(43, 36, 51, 0.1);
}

.poster-sticker.top {
  right: -22px;
  top: 33px;
  transform: rotate(5deg);
}

.poster-sticker.bottom {
  left: -23px;
  bottom: 25px;
  background: var(--pink-soft);
  transform: rotate(-4deg);
}

.poster-sticker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.hero-ornament {
  position: absolute;
  right: 24px;
  bottom: 17px;
  width: 75px;
  height: 75px;
  color: rgba(143, 114, 199, 0.19);
  transform: rotate(10deg);
}

.hero-ornament svg {
  width: 100%;
  height: 100%;
}

/* Stats ------------------------------------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  position: relative;
  min-height: 151px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 253, 255, 0.83);
  box-shadow: 0 12px 30px rgba(78, 53, 104, 0.055), inset 0 0 0 1px rgba(227, 216, 238, 0.3);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(78, 53, 104, 0.10);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -21px;
  top: -29px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--card-glow, var(--pink-soft));
  opacity: 0.72;
}

.tone-pink { --card-glow: #ffe3ef; }
.tone-lavender { --card-glow: #eadfff; }
.tone-mint { --card-glow: #dff9f0; }
.tone-sky { --card-glow: #e0f4ff; }

.stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
}

.stat-icon svg {
  width: 15px;
  height: 15px;
}

.stat-label {
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  color: var(--mint-deep);
}

.stat-delta svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.2;
}

.stat-delta.is-down {
  color: var(--danger);
}

.stat-delta.is-flat {
  color: var(--muted);
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: calc(clamp(28px, 2.8vw, 37px) + var(--font-boost));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat-value .currency {
  margin-right: 2px;
  font-size: calc(15.9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
}

.stat-value .unit {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.stat-foot {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.stat-foot strong {
  font-weight: 700;
  color: var(--ink-2);
}

/* Dashboard layout -------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.chart-card {
  padding: 24px 24px 17px;
  min-height: 370px;
}

.chart-wrap {
  position: relative;
  margin-top: 18px;
  min-height: 250px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(187, 169, 206, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.chart-axis-label {
  fill: var(--muted);
  stroke: none;
  font-family: var(--font-body);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chart-y-label {
  fill: #ab9eb8;
  stroke: none;
  font-family: var(--font-en);
  font-size: calc(9px + var(--font-boost));
  font-weight: 600;
}

.chart-area {
  opacity: 0.72;
}

.chart-line {
  stroke: var(--lavender-deep);
  stroke-width: 2.6;
  filter: drop-shadow(0 5px 7px rgba(143, 114, 199, 0.2));
}

.chart-line-dot {
  fill: #fff;
  stroke: var(--lavender-deep);
  stroke-width: 2.4;
}

.chart-bar {
  fill: url(#barGradient);
  opacity: 0.9;
}

.chart-bar:hover {
  opacity: 1;
}

.chart-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 100px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(70, 46, 94, 0.13);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -110%);
  transition: opacity 0.14s ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.chart-tooltip strong {
  display: block;
  font-family: var(--font-en);
  font-size: calc(13.8px + var(--font-boost));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chart-tooltip span {
  display: block;
  margin-top: 2px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lavender);
}

.chart-summary {
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-2);
}

/* Category card ----------------------------------------------------- */
.category-card {
  padding: 24px 22px 20px;
  min-height: 370px;
}

.category-total {
  margin-top: 19px;
  font-family: var(--font-en);
  font-size: calc(31.8px + var(--font-boost));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.category-total small {
  margin-left: 7px;
  font-family: var(--font-body);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.category-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.category-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot);
}

.category-name {
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
}

.category-count {
  margin-left: auto;
  padding-right: 1px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.category-amount {
  font-family: var(--font-en);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-2);
}

.category-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 99px;
  background: rgba(177, 158, 196, 0.12);
  overflow: hidden;
}

.category-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--dot);
  box-shadow: 0 0 9px color-mix(in srgb, var(--dot), transparent 60%);
  transition: width 0.85s var(--ease);
}

.cat-0 { --dot: #cf8ea8; }
.cat-1 { --dot: #9c84d1; }
.cat-2 { --dot: #6cbfa8; }
.cat-3 { --dot: #77b6d9; }
.cat-4 { --dot: #d4a45d; }
.cat-5 { --dot: #d19bb4; }
.cat-6 { --dot: #a7a0b0; }

/* Recent orders & leaderboard --------------------------------------- */
.recent-card {
  padding: 24px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
}

.feed-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 5px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.2s ease, padding 0.2s ease;
}

.feed-row:last-child {
  border-bottom: 0;
}

.feed-row:hover {
  padding-left: 9px;
  padding-right: 9px;
  border-radius: 11px;
  background: rgba(249, 244, 255, 0.72);
}

.feed-avatar {
  width: 34px;
  height: 34px;
  font-size: calc(12.7px + var(--font-boost));
}

.feed-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.feed-main strong {
  overflow: hidden;
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-main small {
  overflow: hidden;
  margin-top: 3px;
  font-size: calc(9px + var(--font-boost));
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-time {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
  white-space: nowrap;
}

.feed-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-amount {
  min-width: 40px;
  font-family: var(--font-en);
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
  text-align: right;
  color: var(--ink-2);
}

.leader-card {
  padding: 24px;
}

.leader-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.leader-row {
  display: grid;
  grid-template-columns: 20px 33px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.leader-rank {
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
  color: var(--muted);
}

.leader-row:nth-child(1) .leader-rank {
  color: var(--pink-deep);
}

.leader-row:nth-child(2) .leader-rank {
  color: var(--lavender-deep);
}

.leader-row:nth-child(3) .leader-rank {
  color: var(--sky-deep);
}

.leader-avatar {
  width: 32px;
  height: 32px;
  font-size: calc(10.6px + var(--font-boost));
}

.leader-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.leader-main strong {
  overflow: hidden;
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-main small {
  margin-top: 2px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.leader-amount {
  font-family: var(--font-en);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-2);
}

.leader-meter {
  grid-column: 2 / -1;
  height: 3px;
  margin-top: -3px;
  border-radius: 99px;
  background: rgba(177, 158, 196, 0.11);
  overflow: hidden;
}

.leader-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.brand-note {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 250, 0.52), rgba(241, 235, 255, 0.6));
}

.brand-note img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(43, 36, 51, 0.16);
  object-fit: cover;
}

.brand-note-mark {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--holo);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(43, 36, 51, 0.1);
  transform: rotate(-4deg);
}

.brand-note-mark svg {
  width: 24px;
  height: 24px;
}

.brand-note div {
  flex: 1;
  min-width: 0;
}

.brand-note strong {
  display: block;
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
}

.brand-note p {
  margin: 3px 0 0;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.brand-note .stamp {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(43, 36, 51, 0.75);
  border-radius: 7px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
  white-space: nowrap;
}

/* Status & tags ----------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending {
  color: #a55e40;
  background: #fff0e5;
  border-color: #ffe0cc;
}

.status-completed {
  color: #427c9e;
  background: #e8f5fc;
  border-color: #d4ecf8;
}

.status-paid {
  color: #3d8a72;
  background: #e7f8f1;
  border-color: #d2f0e4;
}

.status-unknown {
  color: var(--ink-2);
  background: var(--surface-soft);
  border-color: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-3);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.tag-lavender {
  color: var(--lavender-deep);
  background: var(--lavender-soft);
  border-color: transparent;
}

.tag-pink {
  color: var(--pink-deep);
  background: var(--pink-soft);
  border-color: transparent;
}

.tag-mint {
  color: var(--mint-deep);
  background: var(--mint-soft);
  border-color: transparent;
}

.avatar-pink { background: linear-gradient(145deg, #ffd6e6, #fff1f6 52%, #e8ddff); }
.avatar-lav { background: linear-gradient(145deg, #d8ccff, #f1ecff 55%, #ffdded); }
.avatar-mint { background: linear-gradient(145deg, #c4f2e3, #eafbf5 58%, #d8e9ff); }
.avatar-sky { background: linear-gradient(145deg, #c6eaff, #edf8ff 55%, #e9dcff); }
.avatar-peach { background: linear-gradient(145deg, #ffd8c4, #fff1e8 55%, #ffdcea); }

/* ==================================================================
   Platform select
   ================================================================== */
.platform-native-select {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.platform-select {
  position: relative;
  width: 100%;
}

.platform-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  position: relative;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}

.platform-select-trigger:focus-visible {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.13);
}

.platform-select-trigger:disabled,
.platform-select.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.platform-select-value {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.platform-select.is-open .platform-select-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.filter-select .platform-select {
  width: auto;
}

.platform-select-trigger--filter {
  height: 38px;
  padding: 0 31px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf9ff;
  color: var(--ink-2);
  font-size: calc(11.1px + var(--font-boost));
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.platform-select-trigger--filter:hover,
.platform-select-trigger--filter:focus {
  border-color: var(--line-strong);
  background: #fff;
}

.platform-select-trigger--filter.is-active {
  border-color: rgba(183, 160, 232, 0.6);
  background: var(--lavender-soft);
  color: var(--lavender-deep);
}

.filter-select .platform-select-chevron {
  right: 10px;
  width: 13px;
  height: 13px;
}

.admin-filter .platform-select {
  width: 100%;
}

.platform-select-trigger--admin-filter {
  height: 37px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcf9ff;
  color: var(--ink-2);
  font-size: calc(10.1px + var(--font-boost));
}

.admin-filter .platform-select-chevron {
  right: 9px;
  width: 12px;
  height: 12px;
}

.page-size-wrap .platform-select {
  width: auto;
}

.platform-select-trigger--small {
  width: auto;
  height: 30px;
  padding: 0 25px 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcf9ff;
  color: var(--ink-3);
  font-size: calc(9px + var(--font-boost));
  white-space: nowrap;
}

.platform-select-trigger--small .platform-select-chevron {
  right: 7px;
  width: 12px;
  height: 12px;
}

.platform-select-menu {
  position: fixed;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: #fffdfd;
  box-shadow: 0 20px 55px rgba(48, 31, 66, 0.2), 0 2px 7px rgba(48, 31, 66, 0.06);
  font-family: var(--font-body);
  animation: selectIn 0.16s var(--ease) both;
}

.platform-select-menu[hidden] {
  display: none !important;
}

@keyframes selectIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.platform-select-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin: 1px 1px 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.platform-select-search[hidden] {
  display: none !important;
}

.platform-select-search svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.platform-select-search input {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(10.6px + var(--font-boost));
  outline: none;
}

.platform-select-search input::placeholder {
  color: var(--muted);
}

.platform-select-options {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 154, 204, 0.35) transparent;
}

.platform-select-options::-webkit-scrollbar {
  width: 5px;
}

.platform-select-options::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(174, 154, 204, 0.35);
}

.platform-select-group {
  padding: 8px 9px 4px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.platform-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: calc(10.6px + var(--font-boost));
  text-align: left;
}

.platform-select-option > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-select-option small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: calc(7.4px + var(--font-boost));
}

.platform-select-option:hover,
.platform-select-option.is-keyboard {
  background: #fbf7ff;
}

.platform-select-option.is-selected {
  background: linear-gradient(105deg, #fff6fb, #f4efff);
  border-color: rgba(219, 205, 236, 0.7);
  color: var(--ink);
  font-weight: 600;
}

.platform-select-option.is-disabled {
  opacity: 0.42;
  cursor: default;
}

.platform-select-check {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--lavender-deep);
}

.platform-select-empty {
  padding: 26px 10px;
  color: var(--muted);
  font-size: calc(9.5px + var(--font-boost));
  text-align: center;
}

.platform-select-empty[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .platform-select-menu {
    border-radius: 13px;
    padding: 5px;
  }
  .platform-select-option {
    min-height: 40px;
    font-size: calc(11.1px + var(--font-boost));
  }
  .platform-select-search input {
    height: 38px;
  }
  .platform-select-trigger--filter {
    height: 40px;
    font-size: calc(11.1px + var(--font-boost));
  }
  .platform-select-trigger--small {
    height: 32px;
  }
}
.report-empty-boss {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 199, 120, 0.4);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(255, 247, 227, 0.95), rgba(255, 242, 248, 0.88));
}

.report-empty-boss-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #a8793b;
}

.report-empty-boss-icon svg {
  width: 16px;
  height: 16px;
}

.report-empty-boss > div {
  flex: 1;
  min-width: 0;
}

.report-empty-boss strong {
  display: block;
  font-size: calc(10.6px + var(--font-boost));
  color: var(--ink);
}

.report-empty-boss p {
  margin: 3px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  line-height: 1.55;
  color: var(--ink-3);
}

.report-empty-boss .btn {
  flex: 0 0 auto;
}

.report-missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .report-empty-boss {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 11px;
  }
  .report-missing-actions {
    width: 100%;
  }
  .report-empty-boss .btn {
    width: 100%;
    justify-content: center;
  }
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  align-items: start;
  gap: 20px;
}

.report-card {
  overflow: hidden;
  background: rgba(255, 253, 255, 0.91);
}

.report-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 23px;
  border-bottom: 1px solid rgba(235, 227, 242, 0.82);
  background:
    radial-gradient(circle at 94% 6%, rgba(255, 201, 225, 0.52), transparent 41%),
    linear-gradient(116deg, rgba(255, 246, 251, 0.76), rgba(247, 242, 255, 0.82) 59%, rgba(233, 247, 255, 0.78));
  overflow: hidden;
}

.report-head::after {
  content: "✦";
  position: absolute;
  right: 18%;
  bottom: -9px;
  font-size: calc(47.7px + var(--font-boost));
  color: rgba(143, 114, 199, 0.13);
  transform: rotate(12deg);
}

.report-head-copy {
  position: relative;
  z-index: 1;
}

.report-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.report-kicker .step {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--holo);
  color: var(--ink);
  font-size: calc(8.5px + var(--font-boost));
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.08);
}

.report-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(27.6px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.04em;
}

.report-head p {
  max-width: 480px;
  margin: 6px 0 0;
  font-size: calc(11.7px + var(--font-boost));
  line-height: 1.7;
  color: var(--ink-3);
}

.report-head-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-top: 2px;
  white-space: nowrap;
}

.report-head-mark span:first-child {
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.report-head-mark span:last-child {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-2);
}

.report-form {
  padding: 4px 28px 0;
}

.form-section {
  padding: 22px 0 22px;
  border-bottom: 1px dashed rgba(222, 210, 235, 0.88);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 800;
  color: var(--ink-2);
}

.section-title {
  margin: 0;
  font-size: calc(13.3px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-note {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px 16px;
}

.field {
  position: relative;
  min-width: 0;
}

.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.field-label {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
  font-size: calc(12.2px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-2);
}

.field-label .required {
  color: var(--pink-deep);
  font-size: calc(12.7px + var(--font-boost));
  line-height: 1;
  transform: translateY(1px);
}

.field-help {
  margin: 7px 1px 0;
  font-size: calc(10.1px + var(--font-boost));
  line-height: 1.55;
  color: var(--ink-3);
}

.field-control,
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid #e7dff0;
  border-radius: 13px;
  background: #fdfbff;
  color: var(--ink);
  font-size: calc(13.3px + var(--font-boost));
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #b9afc4;
}

.modal select.field-select {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f7e9f' stroke-width='1.8' 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 14px center;
  background-size: 14px;
  cursor: pointer;
}

.field-input:hover,
.field-select:hover,
.field-textarea:hover {
  border-color: #d7c9e6;
  background: #fff;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--lavender);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.13);
}

.field-textarea {
  height: auto;
  min-height: 86px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.field-select-wrap {
  position: relative;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 39px;
  cursor: pointer;
}

.field-select:invalid,
.field-select.is-placeholder {
  color: #b9afc4;
}

.field-select option {
  color: var(--ink);
  background: #fff;
}

.field-select optgroup {
  font-weight: 700;
  color: var(--ink-3);
  background: #faf7ff;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  pointer-events: none;
  transform: translateY(-50%);
}

.field.has-error .field-input,
.field.has-error .field-select,
.field.has-error .picker-toggle,
.field.has-error .upload-box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(216, 94, 126, 0.08);
}

.field-error {
  display: none;
  margin: 6px 1px 0;
  font-size: calc(9px + var(--font-boost));
  color: var(--danger);
}

.field.has-error .field-error {
  display: block;
}

.input-with-prefix,
.input-with-suffix {
  position: relative;
}

.input-with-prefix .field-input {
  padding-left: 34px;
}

.input-with-prefix .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ink-3);
  transform: translateY(-50%);
}

.input-with-suffix .field-input {
  padding-right: 53px;
}

.input-suffix {
  position: absolute;
  right: 13px;
  top: 50%;
  padding-left: 9px;
  border-left: 1px solid var(--line);
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
  transform: translateY(-50%);
}

.order-number-control {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.order-number-control .field-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: calc(10.6px + var(--font-boost));
  letter-spacing: 0.01em;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.inline-action svg {
  width: 14px;
  height: 14px;
}

.inline-action:hover {
  border-color: var(--lavender);
  background: var(--lavender-soft);
  color: var(--lavender-deep);
}

.field-hint-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--muted);
}

.field-hint-inline svg {
  width: 11px;
  height: 11px;
}

/* Segmented order type */
.type-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  height: 47px;
  padding: 4px;
  border: 1px solid #e7dff0;
  border-radius: 13px;
  background: #f8f4fc;
}

.type-segment button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.type-segment button.is-active {
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 11px rgba(80, 57, 103, 0.09);
}

.type-segment button.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink-deep);
}

/* Searchable picker */
.picker {
  position: relative;
}

.picker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 47px;
  padding: 0 13px 0 14px;
  border: 1px solid #e7dff0;
  border-radius: 13px;
  background: #fdfbff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.picker-toggle:hover,
.picker.is-open .picker-toggle {
  border-color: var(--lavender);
  background: #fff;
}

.picker.is-open .picker-toggle {
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.13);
}

.picker-toggle .picker-display {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.picker-toggle .picker-display > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.picker-value {
  overflow: hidden;
  font-size: calc(13.3px + var(--font-boost));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.picker-placeholder .picker-value {
  font-weight: 400;
  color: #b9afc4;
}

.picker-sub {
  display: none;
  margin-top: 1px;
  font-size: calc(8px + var(--font-boost));
  color: var(--ink-3);
}

.picker-toggle.has-value .picker-sub {
  display: block;
}

.picker-avatar {
  display: none;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe2ee, #f5ecff);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 800;
  color: var(--ink-2);
}

.picker-toggle.has-value .picker-avatar {
  display: grid;
}

.picker-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}

.picker.is-open .picker-chevron {
  transform: rotate(180deg);
}

.picker-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(75, 51, 99, 0.16);
  backdrop-filter: blur(20px);
  animation: popIn 0.18s var(--ease);
}

.picker-pop[hidden] {
  display: none;
}

.picker.drop-up .picker-pop {
  top: auto;
  bottom: calc(100% + 8px);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.picker-search {
  position: relative;
  margin-bottom: 5px;
}

.picker-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.picker-search input {
  width: 100%;
  height: 36px;
  padding: 0 11px 0 33px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: calc(10.6px + var(--font-boost));
  outline: none;
}

.picker-search input:focus {
  border-color: var(--lavender);
  background: #fff;
}

.picker-list {
  max-height: 235px;
  overflow-y: auto;
  padding: 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 154, 204, 0.3) transparent;
}

.picker-list::-webkit-scrollbar {
  width: 5px;
}

.picker-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(174, 154, 204, 0.3);
}

.picker-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 41px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  transition: background 0.15s ease;
}

.picker-option:hover,
.picker-option.is-highlighted {
  background: #faf6ff;
}

.picker-option.is-selected {
  background: var(--lavender-soft);
}

.picker-option .po-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--ink-2);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
  background: linear-gradient(145deg, #ffe3ee, #f4edff 60%, #dff4ff);
}

.picker-option .po-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.picker-option .po-main strong {
  overflow: hidden;
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-option .po-main small {
  margin-top: 1px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.picker-option .po-check {
  width: 14px;
  height: 14px;
  color: var(--lavender-deep);
  opacity: 0;
}

.picker-option.is-selected .po-check {
  opacity: 1;
}

.picker-empty {
  padding: 23px 10px;
  text-align: center;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--muted);
}

.picker-empty[hidden] {
  display: none;
}

/* Payment segmented cards */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 0 12px;
  border: 1px solid #e7dff0;
  border-radius: 12px;
  background: #fdfbff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.payment-option:hover {
  border-color: #d5c5e5;
  background: #fff;
}

.payment-option.is-active {
  border-color: rgba(143, 114, 199, 0.55);
  background: linear-gradient(135deg, #fff 0%, #f8f1ff 100%);
  box-shadow: 0 0 0 3px rgba(183, 160, 232, 0.11);
}

.payment-icon {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: var(--ink-2);
  background: var(--surface-soft);
}

.payment-icon svg {
  width: 17px;
  height: 17px;
}

.payment-option[data-payment="微信"] .payment-icon {
  color: #3e9c72;
  background: #e8f9ee;
}

.payment-option[data-payment="支付宝"] .payment-icon {
  color: #3f84b9;
  background: #e8f4fd;
}

.payment-option[data-payment="会员卡"] .payment-icon {
  color: var(--lavender-deep);
  background: var(--lavender-soft);
}

.payment-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.payment-copy strong {
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
}

.payment-copy small {
  margin-top: 1px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.payment-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
}

.payment-check svg {
  width: 9px;
  height: 9px;
  stroke-width: 2.5;
}

.payment-option.is-active .payment-check {
  border-color: var(--lavender-deep);
  background: var(--lavender-deep);
  color: #fff;
}

/* Quantity stepper */
.qty-control {
  position: relative;
  display: flex;
  align-items: center;
  height: 47px;
  border: 1px solid #e7dff0;
  border-radius: 13px;
  background: #fdfbff;
  overflow: hidden;
}

.qty-control input {
  width: 100%;
  height: 100%;
  padding: 0 50px 0 14px;
  border: 0;
  background: transparent;
  font-family: var(--font-en);
  font-size: calc(12.7px + var(--font-boost));
  font-weight: 700;
  outline: none;
}

.qty-control .unit-text {
  position: absolute;
  right: 67px;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
  pointer-events: none;
}

.qty-buttons {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.qty-buttons button {
  display: grid;
  place-items: center;
  width: 30px;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-3);
}

.qty-buttons button:hover {
  color: var(--ink);
  background: var(--lavender-soft);
}

.qty-buttons svg {
  width: 11px;
  height: 11px;
}

.qty-buttons button:first-child {
  border-bottom: 1px solid var(--line);
}

/* Upload */
.upload-box {
  position: relative;
  border: 1.5px dashed #d9cbe8;
  border-radius: 17px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 228, 242, 0.68), transparent 31%),
    radial-gradient(circle at 88% 12%, rgba(229, 220, 255, 0.58), transparent 34%),
    #fcf9ff;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.upload-box.is-dragover {
  border-color: var(--lavender-deep);
  background: #f8f1ff;
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.12);
}

.upload-box.has-file {
  border-style: solid;
  border-color: var(--line-strong);
  background: #fff;
}

.upload-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
}

.upload-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 49px;
  margin-bottom: 13px;
}

.upload-illustration::before,
.upload-illustration::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: var(--holo);
  opacity: 0.9;
}

.upload-illustration::before {
  width: 46px;
  height: 37px;
  left: 2px;
  bottom: 1px;
  transform: rotate(-6deg);
  border: 1px solid rgba(43, 36, 51, 0.2);
}

.upload-illustration::after {
  width: 35px;
  height: 30px;
  right: 0;
  top: 0;
  transform: rotate(8deg);
  background: #fff;
  border: 1px solid var(--line);
}

.upload-illustration svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: var(--lavender-deep);
  stroke-width: 1.6;
}

.upload-main strong {
  font-size: calc(12.7px + var(--font-boost));
  font-weight: 700;
}

.upload-main p {
  margin: 5px 0 0;
  font-size: calc(10.1px + var(--font-boost));
  color: var(--ink-3);
}

.upload-main .upload-limit {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(235, 227, 242, 0.8);
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  letter-spacing: 0.02em;
  color: var(--muted);
}

.upload-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(231, 223, 242, 0.9);
  background: rgba(255, 255, 255, 0.5);
}

.upload-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.upload-action + .upload-action {
  border-left: 1px solid rgba(231, 223, 242, 0.9);
}

.upload-action svg {
  width: 14px;
  height: 14px;
}

.upload-action:hover {
  color: var(--lavender-deep);
  background: rgba(255, 255, 255, 0.75);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
}

.upload-preview-thumb {
  position: relative;
  flex: 0 0 94px;
  width: 94px;
  height: 105px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f1fb;
  overflow: hidden;
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-thumb .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 20%;
  background: linear-gradient(90deg, transparent, rgba(143, 114, 199, 0.8), transparent);
  box-shadow: 0 0 9px rgba(143, 114, 199, 0.5);
  animation: scan 1.12s ease-in-out infinite alternate;
}

@keyframes scan {
  from { top: 12%; opacity: 0.5; }
  to { top: 86%; opacity: 1; }
}

.upload-preview-copy {
  flex: 1;
  min-width: 0;
}

.upload-preview-copy .success-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  color: var(--mint-deep);
}

.upload-preview-copy .success-line svg {
  width: 14px;
  height: 14px;
}

.upload-preview-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-copy small {
  display: block;
  margin-top: 3px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.upload-preview-copy .recognition {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  font-size: calc(8px + var(--font-boost));
  font-weight: 700;
}

.upload-preview-copy .recognition svg {
  width: 10px;
  height: 10px;
}

.upload-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.upload-file-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  background: linear-gradient(0deg, rgba(32, 25, 39, 0.55), transparent);
  color: #fff;
  font-family: var(--font-en);
  font-size: calc(6.9px + var(--font-boost));
}

.remove-upload {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-3);
}

.remove-upload svg {
  width: 12px;
  height: 12px;
}

.remove-upload:hover {
  color: var(--danger);
  border-color: rgba(216, 94, 126, 0.35);
  background: var(--danger-soft);
}

.upload-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  font-size: calc(8.5px + var(--font-boost));
  line-height: 1.55;
  color: var(--muted);
}

.upload-note svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 1px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Form footer */
.form-submit-zone {
  margin-top: 4px;
  padding: 20px 0 24px;
  border-top: 1px dashed var(--line);
}

.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 53px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: calc(13.8px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.045em;
  box-shadow: 0 12px 25px rgba(42, 35, 50, 0.2);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--holo);
  opacity: 0.75;
}

.submit-button::after {
  content: "✦";
  position: absolute;
  right: 19px;
  top: 50%;
  color: var(--pink);
  font-size: calc(14.8px + var(--font-boost));
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 33px rgba(42, 35, 50, 0.28);
}

.submit-button:hover::after {
  transform: translateY(-50%) rotate(20deg) scale(1.18);
}

.submit-button svg {
  width: 17px;
  height: 17px;
}

.submit-button[disabled] {
  opacity: 0.7;
  pointer-events: none;
}

.submit-button.is-loading {
  pointer-events: none;
}

.submit-button.is-loading svg {
  display: none;
}

.submit-button.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.submit-caption svg {
  width: 10px;
  height: 10px;
}

/* Report aside */
.report-side {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.slip-card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 200, 223, 0.35), transparent 43%),
    rgba(255, 253, 255, 0.88);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(226, 214, 239, 0.34);
  overflow: hidden;
}

.slip-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 62px;
  border-top: 1px dashed rgba(219, 206, 233, 0.88);
}

.slip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.slip-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(18px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.025em;
}

.slip-head p {
  margin: 3px 0 0;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.slip-star {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--holo);
  font-size: calc(15.9px + var(--font-boost));
  transform: rotate(4deg);
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.1);
}

.slip-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.57);
}

.slip-brand-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.slip-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--holo);
  font-size: calc(12.7px + var(--font-boost));
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.08);
}

.slip-brand-row span {
  display: flex;
  flex-direction: column;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
  line-height: 1.3;
}

.slip-brand-row strong {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink);
}

.slip-brand-row .slip-code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: calc(7.4px + var(--font-boost));
  color: var(--muted);
}

.slip-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.slip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 17px;
  font-size: calc(10.6px + var(--font-boost));
}

.slip-row .k {
  flex: 0 0 auto;
  color: var(--ink-3);
}

.slip-row .v {
  overflow: hidden;
  max-width: 73%;
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slip-row .v.is-empty {
  font-weight: 400;
  color: var(--muted);
}

.slip-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 0 12px;
}

.slip-total span {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.slip-total strong {
  font-family: var(--font-en);
  font-size: calc(29.7px + var(--font-boost));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.slip-total strong small {
  margin-right: 2px;
  font-size: calc(13.8px + var(--font-boost));
  color: var(--ink-2);
}

.slip-split {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 11px;
  font-size: calc(8.5px + var(--font-boost));
}

.split-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  font-weight: 700;
}

.split-pill.mint {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.slip-progress {
  margin-top: 16px;
  padding-top: 14px;
}

.slip-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.slip-progress-head strong {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-2);
}

.slip-progress-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(177, 158, 196, 0.13);
  overflow: hidden;
}

.slip-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
  transition: width 0.35s var(--ease);
}

.slip-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.slip-check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: calc(8px + var(--font-boost));
}

.slip-check svg {
  width: 9px;
  height: 9px;
  opacity: 0.35;
}

.slip-check.is-done {
  color: var(--mint-deep);
  border-color: rgba(62, 156, 126, 0.18);
  background: var(--mint-soft);
}

.slip-check.is-done svg {
  opacity: 1;
}

.tip-card {
  padding: 18px 19px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 253, 255, 0.75);
  box-shadow: 0 12px 28px rgba(78, 53, 104, 0.05), inset 0 0 0 1px rgba(227, 216, 238, 0.28);
}

.tip-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.tip-card-head span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #a78139;
  font-size: calc(11.7px + var(--font-boost));
}

.tip-card h4 {
  margin: 0;
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 800;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tip-list li {
  position: relative;
  padding-left: 14px;
  font-size: calc(9px + var(--font-boost));
  line-height: 1.55;
  color: var(--ink-3);
}

.tip-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink-deep);
  font-size: calc(7.4px + var(--font-boost));
}

.report-side-note {
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(150, 135, 164, 0.7);
  text-align: center;
}

/* ==================================================================
   Orders page
   ================================================================== */
.orders-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}

.overview-mini {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 255, 0.78);
  box-shadow: 0 8px 22px rgba(78, 53, 104, 0.045);
}

.overview-mini .mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--mini-bg, var(--pink-soft));
  color: var(--mini-ink, var(--pink-deep));
}

.overview-mini .mini-icon svg {
  width: 18px;
  height: 18px;
}

.overview-mini .mini-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.overview-mini .mini-copy span {
  font-size: calc(9px + var(--font-boost));
  color: var(--ink-3);
}

.overview-mini .mini-copy strong {
  margin-top: 3px;
  font-family: var(--font-en);
  font-size: calc(21.2px + var(--font-boost));
  font-weight: 800;
  letter-spacing: -0.045em;
}

.overview-mini .mini-copy strong small {
  margin-left: 2px;
  font-family: var(--font-body);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.orders-card {
  overflow: visible;
  background: rgba(255, 253, 255, 0.84);
}

.orders-toolbar {
  padding: 20px 21px 0;
}

.tab-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-row::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 33px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  background: rgba(248, 243, 255, 0.8);
  color: var(--ink-2);
}

.tab-btn.is-active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(84, 59, 109, 0.055);
}

.tab-btn .tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.tab-btn[data-status="待完成"] .tab-dot { background: var(--peach-deep); }
.tab-btn[data-status="已完成"] .tab-dot { background: var(--sky-deep); }
.tab-btn[data-status="已发放"] .tab-dot { background: var(--mint-deep); }

.toolbar-divider {
  height: 1px;
  margin: 0 -21px;
  background: var(--line);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 0;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 180px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 35px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf9ff;
  font-size: calc(11.7px + var(--font-boost));
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: #b8aec1;
}

.search-box input:focus {
  outline: none;
  border-color: var(--lavender);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(183, 160, 232, 0.11);
}

.search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  display: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-clear.visible {
  display: grid;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.search-clear svg {
  position: static;
  width: 13px;
  height: 13px;
  transform: none;
}

.filter-select {
  position: relative;
  flex: 0 0 auto;
}

.filter-select select {
  height: 38px;
  padding: 0 31px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf9ff;
  color: var(--ink-2);
  font-size: calc(11.1px + var(--font-boost));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-select select:hover,
.filter-select select:focus {
  border-color: var(--line-strong);
  background: #fff;
}

.filter-select select.is-active {
  border-color: rgba(183, 160, 232, 0.6);
  background: var(--lavender-soft);
  color: var(--lavender-deep);
}

.filter-select .chev {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.filter-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf9ff;
  color: var(--ink-3);
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 600;
  white-space: nowrap;
}

.filter-more svg,
.filter-reset svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.filter-more:hover,
.filter-more.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}

.advanced-filters {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 0 15px;
}

.advanced-filters.is-open {
  display: grid;
}

.filter-date {
  position: relative;
}

.filter-date input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcf9ff;
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-2);
  outline: none;
}

.filter-date input:focus {
  border-color: var(--lavender);
  background: #fff;
}

.filter-date label {
  display: block;
  margin-bottom: 4px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  align-self: end;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: calc(9.5px + var(--font-boost));
}

.filter-reset:hover {
  color: var(--danger);
  border-color: rgba(216, 94, 126, 0.24);
  background: var(--danger-soft);
}

.table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 21px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 249, 255, 0.55);
  font-size: calc(10.6px + var(--font-boost));
  color: var(--ink-3);
}

.table-summary strong {
  color: var(--ink-2);
  font-weight: 700;
}

.summary-breakdown {
  display: flex;
  align-items: center;
  gap: 13px;
}

.summary-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.summary-breakdown i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.summary-breakdown .pending-dot {
  background: var(--peach-deep);
}

.table-wrap {
  position: relative;
  min-height: 300px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.orders-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  table-layout: fixed;
}

.orders-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 40px;
  padding: 0 11px;
  background: rgba(252, 249, 255, 0.94);
  border-bottom: 1px solid var(--line);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.orders-table th:first-child,
.orders-table td:first-child {
  padding-left: 21px;
}

.orders-table th:last-child,
.orders-table td:last-child {
  padding-right: 21px;
}

.orders-table th:nth-child(1) { width: 185px; }
.orders-table th:nth-child(2) { width: 105px; }
.orders-table th:nth-child(3) { width: 135px; }
.orders-table th:nth-child(4) { width: 130px; }
.orders-table th:nth-child(5) { width: 140px; }
.orders-table th:nth-child(6) { width: 95px; }
.orders-table th:nth-child(7) { width: 90px; }
.orders-table th:nth-child(8) { width: 82px; }
.orders-table th:nth-child(9) { width: 72px; }

.orders-table td {
  height: 66px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(237, 230, 244, 0.8);
  vertical-align: middle;
  font-size: calc(11.1px + var(--font-boost));
  color: var(--ink-2);
}

.orders-table tbody tr {
  transition: background 0.16s ease;
  cursor: pointer;
}

.orders-table tbody tr:hover {
  background: rgba(252, 247, 255, 0.8);
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-no-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.order-no {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: calc(10.1px + var(--font-boost));
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-source {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.time-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.time-cell strong {
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
}

.time-cell small {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.service-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.service-cell strong {
  overflow: hidden;
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-cell small {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.person-cell .mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 800;
  color: var(--ink-2);
  background: linear-gradient(145deg, #ffe3ed, #f1eaff 60%, #e0f5ff);
}

.person-cell span:last-child {
  overflow: hidden;
  font-size: calc(10.6px + var(--font-boost));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.boss-cell strong {
  overflow: hidden;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-cell small {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.amount-cell {
  font-family: var(--font-en);
  font-size: calc(11.7px + var(--font-boost));
  font-weight: 700;
  color: var(--ink);
}

.amount-cell small {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.staff-cell {
  font-size: calc(10.1px + var(--font-boost));
  color: var(--ink-3);
}

.action-cell {
  text-align: right;
}

.row-action {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.row-action svg {
  width: 14px;
  height: 14px;
}

.orders-table tr:hover .row-action {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: rgba(255, 253, 255, 0.68);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.loading-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  animation: bounceDot 0.9s ease-in-out infinite;
}

.loading-dots i:nth-child(2) { animation-delay: 0.12s; background: var(--pink); }
.loading-dots i:nth-child(3) { animation-delay: 0.24s; background: var(--sky); }

@keyframes bounceDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 40px 20px;
  text-align: center;
}

.empty-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 84px;
  margin-bottom: 17px;
}

.empty-illustration::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 67px;
  border: 1.5px solid var(--ink);
  border-radius: 21px;
  background: var(--holo);
  transform: rotate(-5deg);
  box-shadow: 4px 5px 0 rgba(43, 36, 51, 0.09);
}

.empty-illustration svg {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  color: var(--ink);
  stroke-width: 1.5;
}

.empty-state h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(15.9px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.02em;
}

.empty-state p {
  margin: 5px 0 15px;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 21px;
  border-top: 1px solid var(--line);
}

.pagination-info {
  font-size: calc(9.5px + var(--font-boost));
  color: var(--muted);
}

.pagination-info strong {
  color: var(--ink-2);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-btn svg {
  width: 13px;
  height: 13px;
}

.page-btn:hover:not(:disabled) {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.page-btn.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-size {
  height: 30px;
  padding: 0 25px 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcf9ff;
  color: var(--ink-3);
  font-size: calc(9px + var(--font-boost));
  appearance: none;
  -webkit-appearance: none;
}

.page-size-wrap {
  position: relative;
}

.page-size-wrap svg {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 12px;
  height: 12px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.mobile-orders {
  display: none;
}

/* Order drawer ----------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(38, 30, 46, 0.26);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn 0.22s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(570px, 100%);
  background: #fdfbff;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -30px 0 80px rgba(53, 38, 70, 0.2);
  border-radius: 26px 0 0 26px;
  overflow: hidden;
  animation: drawerIn 0.44s var(--ease) both;
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-strip {
  height: 9px;
  flex: 0 0 auto;
  background-color: #f8f2ff;
  background-image: linear-gradient(90deg, rgba(178, 156, 210, 0.28) 50%, transparent 50%), linear-gradient(90deg, transparent 50%, #fff 50%);
  background-size: 9px 9px;
  border-bottom: 1px solid rgba(225, 213, 238, 0.7);
}

.drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 23px 17px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 90% 0, rgba(255, 203, 228, 0.35), transparent 50%);
}

.drawer-head .eyebrow {
  margin-bottom: 4px;
  font-size: calc(8.5px + var(--font-boost));
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(25.4px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.035em;
}

.drawer-order-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.drawer-order-meta code {
  font-family: var(--font-mono);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-2);
}

.drawer-close {
  flex: 0 0 auto;
}

.drawer-body {
  flex: 1;
  padding: 20px 23px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 154, 204, 0.3) transparent;
}

.drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(174, 154, 204, 0.3);
}

.detail-amount-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 17px;
  background: linear-gradient(112deg, rgba(255, 240, 247, 0.95), rgba(246, 240, 255, 0.96) 57%, rgba(233, 247, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(225, 213, 238, 0.42);
  overflow: hidden;
}

.detail-amount-card::after {
  content: "✦";
  position: absolute;
  right: 20px;
  top: 5px;
  color: rgba(143, 114, 199, 0.18);
  font-size: calc(30.7px + var(--font-boost));
}

.detail-amount-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.detail-amount {
  font-family: var(--font-en);
  font-size: calc(32.9px + var(--font-boost));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-amount small {
  margin-right: 2px;
  font-size: calc(14.8px + var(--font-boost));
  color: var(--ink-2);
}

.detail-status {
  position: relative;
  z-index: 1;
}

.detail-section {
  margin-top: 22px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-section-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(13.8px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.02em;
}

.detail-section-head h3 span {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
  letter-spacing: 0.06em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.detail-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 55px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(235, 227, 242, 0.82);
}

.detail-cell:nth-child(odd) {
  border-right: 1px solid rgba(235, 227, 242, 0.82);
}

.detail-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-cell .k {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.detail-cell .v {
  overflow: hidden;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-screenshot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.detail-screenshot img {
  width: 84px;
  height: 92px;
  flex: 0 0 84px;
  border-radius: 9px;
  object-fit: cover;
  background: #f6f1fb;
  cursor: zoom-in;
}

.detail-screenshot-copy {
  flex: 1;
  min-width: 0;
}

.detail-screenshot-copy span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  color: var(--mint-deep);
}

.detail-screenshot-copy span svg {
  width: 11px;
  height: 11px;
}

.detail-screenshot-copy strong {
  display: block;
  margin-top: 5px;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 600;
}

.detail-screenshot-copy small {
  display: block;
  margin-top: 3px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.detail-screenshot .btn {
  flex: 0 0 auto;
}

.no-screenshot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-3);
  font-size: calc(9.5px + var(--font-boost));
  background: var(--surface-soft);
}

.no-screenshot svg {
  width: 17px;
  height: 17px;
}

.income-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.income-cell {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.59);
}

.income-cell .k {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.income-cell strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: calc(14.8px + var(--font-boost));
  letter-spacing: -0.03em;
}

.income-cell:nth-child(1) strong { color: var(--lavender-deep); }
.income-cell:nth-child(2) strong { color: var(--sky-deep); }
.income-cell:nth-child(3) strong { color: var(--mint-deep); }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 17px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  bottom: 5px;
  border-left: 1px dashed var(--line-strong);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 0 1px var(--lavender);
}

.timeline-item:first-child::before {
  background: var(--pink-deep);
  box-shadow: 0 0 0 1px var(--pink-deep);
}

.timeline-item strong {
  display: block;
  font-size: calc(10.1px + var(--font-boost));
  font-weight: 700;
}

.timeline-item p {
  margin: 3px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.timeline-item time {
  display: block;
  margin-top: 3px;
  font-family: var(--font-en);
  font-size: calc(8px + var(--font-boost));
  color: var(--muted);
}

.drawer-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 23px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 255, 0.95);
  backdrop-filter: blur(14px);
}

.drawer-foot-note {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.drawer-actions {
  display: flex;
  gap: 7px;
}

/* Resources page --------------------------------------------------- */
.resource-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.resource-stat {
  position: relative;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 17px;
  background: rgba(255, 253, 255, 0.79);
  box-shadow: 0 8px 22px rgba(78, 53, 104, 0.04);
  overflow: hidden;
}

.resource-stat::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: -26px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--stat-glow, var(--pink-soft));
  opacity: 0.65;
}

.resource-stat span {
  font-size: calc(9px + var(--font-boost));
  color: var(--ink-3);
}

.resource-stat strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-en);
  font-size: calc(26.5px + var(--font-boost));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.resource-card {
  padding: 20px 21px 0;
}

.resource-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.resource-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.resource-tab {
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: calc(10.1px + var(--font-boost));
  font-weight: 700;
}

.resource-tab:hover {
  background: #faf6ff;
  color: var(--ink-2);
}

.resource-tab.is-active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 3px 9px rgba(84, 59, 109, 0.05);
}

.resource-search {
  flex: 1 1 190px;
  min-width: 160px;
  margin-left: auto;
}

.resource-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}

.resource-toolbar-actions .resource-search {
  margin-left: 0;
  max-width: 310px;
}

.resource-toolbar-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.resource-boss-mobile-list {
  display: none;
}

.resource-boss-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.75);
}

.resource-boss-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.resource-boss-card-head > div {
  flex: 1;
  min-width: 0;
}

.resource-boss-card-head strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: calc(11.1px + var(--font-boost));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-boss-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: calc(8px + var(--font-boost));
}

.resource-boss-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.resource-boss-card-meta span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resource-boss-card-meta small {
  color: var(--muted);
  font-size: calc(7.4px + var(--font-boost));
}

.resource-boss-card-meta strong {
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
}

.resource-boss-card-meta strong.is-negative {
  color: var(--danger);
}

.resource-recharge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 38px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--lavender-deep);
  font-size: calc(9px + var(--font-boost));
  font-weight: 600;
}

.resource-recharge-btn svg {
  width: 13px;
  height: 13px;
}

.resource-table-wrap {
  overflow-x: auto;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.resource-table th {
  padding: 13px 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

.resource-table td {
  padding: 11px 9px;
  border-bottom: 1px solid rgba(237, 230, 244, 0.8);
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-2);
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.resource-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.resource-person .mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
  background: linear-gradient(145deg, #ffe3ed, #f1eaff 60%, #e0f5ff);
}

.resource-person strong {
  display: block;
  font-size: calc(10.1px + var(--font-boost));
  font-weight: 700;
}

.resource-person small {
  display: block;
  margin-top: 2px;
  font-size: calc(8px + var(--font-boost));
  color: var(--muted);
}

.resource-number {
  font-family: var(--font-en);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
}

.resource-more {
  display: flex;
  justify-content: center;
  padding: 17px;
  border-top: 1px solid var(--line);
}

.resource-empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: calc(10.6px + var(--font-boost));
}

/* Modals & lightbox ------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(37, 29, 45, 0.3);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fadeIn 0.2s ease both;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86vh, 760px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: #fffdfd;
  box-shadow: 0 32px 90px rgba(48, 32, 64, 0.28);
  overflow: hidden;
  animation: modalIn 0.35s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(13px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-strip {
  height: 8px;
  background-color: #f8f2ff;
  background-image: linear-gradient(90deg, rgba(178, 156, 210, 0.28) 50%, transparent 50%), linear-gradient(90deg, transparent 50%, #fff 50%);
  background-size: 8px 8px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 22px 0;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(21.2px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.03em;
}

.modal-head p {
  margin: 5px 0 0;
  font-size: calc(9.5px + var(--font-boost));
  line-height: 1.6;
  color: var(--ink-3);
}

.modal-body {
  padding: 17px 22px 22px;
  overflow-y: auto;
  max-height: calc(86vh - 120px);
}

.modal-close {
  flex: 0 0 auto;
}

.success-modal {
  width: min(430px, 100%);
  text-align: center;
}

.success-burst {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 7px auto 17px;
}

.success-burst::before,
.success-burst::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.success-burst::before {
  inset: 0;
  background: radial-gradient(circle, rgba(255, 215, 232, 0.6), rgba(238, 230, 255, 0.3) 48%, transparent 72%);
}

.success-burst::after {
  inset: 17px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--holo);
  box-shadow: 5px 5px 0 rgba(43, 36, 51, 0.1);
  transform: rotate(-5deg);
}

.success-check {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
}

.success-check svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.success-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(24.4px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.035em;
}

.success-modal > .modal-body > p {
  margin: 6px 0 0;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--ink-3);
}

.success-order-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0;
  padding: 11px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: left;
}

.success-order-no span {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 25px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-3);
  font-size: calc(8px + var(--font-boost));
}

.copy-btn svg {
  width: 11px;
  height: 11px;
}

.copy-btn:hover {
  color: var(--ink);
}

.success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  text-align: left;
}

.success-meta div {
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.success-meta span {
  display: block;
  font-size: calc(8px + var(--font-boost));
  color: var(--muted);
}

.success-meta strong {
  display: block;
  margin-top: 2px;
  font-size: calc(10.1px + var(--font-boost));
  font-weight: 600;
  color: var(--ink-2);
}

.success-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.success-actions .btn {
  flex: 1;
}

.cloud-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  text-align: center;
}

.cloud-drop svg {
  width: 27px;
  height: 27px;
  color: var(--lavender-deep);
  margin-bottom: 7px;
}

.cloud-drop strong {
  font-size: calc(10.6px + var(--font-boost));
}

.cloud-drop p {
  margin: 4px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.url-input-row {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.url-input-row input {
  flex: 1;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: calc(9.5px + var(--font-boost));
  outline: none;
}

.url-input-row input:focus {
  border-color: var(--lavender);
  background: #fff;
}

.cloud-note {
  margin: 10px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(27, 22, 32, 0.78);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  animation: fadeIn 0.2s ease both;
}

.lightbox img {
  max-width: min(820px, 92vw);
  max-height: 80vh;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(820px, 92vw);
  margin-bottom: 11px;
  color: #fff;
}

.lightbox-head span {
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 600;
}

.lightbox-head .icon-button {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-head .icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Toast ------------------------------------------------------------ */
.toast-stack {
  position: fixed;
  right: 22px;
  top: 91px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(330px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  background: rgba(255, 253, 255, 0.96);
  box-shadow: 0 15px 35px rgba(65, 44, 86, 0.16);
  backdrop-filter: blur(17px);
  pointer-events: auto;
  animation: toastIn 0.32s var(--ease) both;
}

.toast.is-leaving {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(14px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(13px) scale(0.98); }
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--mint-deep);
  background: var(--mint-soft);
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

.toast.error .toast-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.toast.info .toast-icon {
  color: var(--lavender-deep);
  background: var(--lavender-soft);
}

.toast-copy {
  flex: 1;
  min-width: 0;
}

.toast-copy strong {
  display: block;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
}

.toast-copy p {
  margin: 2px 0 0;
  font-size: calc(9px + var(--font-boost));
  line-height: 1.5;
  color: var(--ink-3);
}

.toast-close {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.toast-close svg {
  width: 11px;
  height: 11px;
}

.toast-close:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

/* Account modal --------------------------------------------------- */
.account-modal {
  width: min(455px, 100%);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-avatar {
  width: 49px;
  height: 49px;
  font-size: calc(17px + var(--font-boost));
}

.account-head h2 {
  overflow: hidden;
  max-width: 290px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-section-label {
  margin: 0 0 7px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.account-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 61px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.account-action:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.account-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
}

.account-action-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.account-action-icon svg {
  width: 16px;
  height: 16px;
}

.account-action > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.account-action strong {
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 700;
}

.account-action small {
  margin-top: 2px;
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-3);
}

.account-action > svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.account-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 15px 0 0;
  font-size: calc(8.5px + var(--font-boost));
  line-height: 1.5;
  color: var(--muted);
}

.account-note svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--mint-deep);
}

.account-form-error {
  margin: 11px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(216, 94, 126, 0.2);
  border-radius: 8px;
  background: var(--danger-soft);
  font-size: calc(9px + var(--font-boost));
  color: var(--danger);
}

.account-form-error[hidden] {
  display: none !important;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 17px;
}

/* Skeleton --------------------------------------------------------- */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #f2ebf8;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* Mobile bottom nav ------------------------------------------------ */
.mobile-tabs {
  display: none;
}

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1280px) {
  .sidebar { width: 242px; }
  .app-shell { margin-left: 242px; }
  .topbar { padding: 0 26px; }
  .main-content { padding: 26px 26px 25px; }
  .site-foot { padding-left: 28px; padding-right: 28px; }
  .hero { padding: 32px 30px 27px 32px; grid-template-columns: minmax(0, 1.2fr) minmax(245px, 0.8fr); }
  .hero-poster-wrap { width: min(250px, 90%); }
  .hero-muse-wrap { width: min(238px, 91%); }
  .stat-grid { gap: 11px; }
  .stat-card { padding-left: 15px; padding-right: 15px; }
  .dashboard-grid,
  .dashboard-bottom { grid-template-columns: minmax(0, 1.48fr) minmax(290px, 0.92fr); }
  .report-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .report-form { padding-left: 24px; padding-right: 24px; }
  .report-head { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1080px) {
  .data-date { display: none; }
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); min-height: 320px; }
  .hero h1 { font-size: calc(clamp(34px, 4.2vw, 47px) + var(--font-boost)); }
  .hero-poster-wrap { width: min(220px, 94%); }
  .hero-muse-wrap { width: min(208px, 94%); }
  .poster-sticker.top { right: -13px; }
  .poster-sticker.bottom { left: -15px; }
  .dashboard-grid,
  .dashboard-bottom { grid-template-columns: minmax(0, 1.42fr) minmax(270px, 0.9fr); }
  .report-layout { grid-template-columns: minmax(0, 1fr) 288px; }
  .slip-card { padding-left: 17px; padding-right: 17px; }
  .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sidebar { display: none; }
  .app-shell { margin-left: 0; padding-bottom: 68px; }
  .topbar { height: 68px; padding: 0 22px; background: rgba(249, 246, 253, 0.88); }
  .mobile-brand { display: flex; }
  .breadcrumb { display: none; }
  .topbar-right { gap: 9px; }
  .top-new-order { height: 35px; padding: 0 12px; font-size: calc(10.6px + var(--font-boost)); }
  .top-bell { display: none; }
  .main-content { padding: 24px 22px; }
  .site-foot { padding: 0 24px 20px; }
  .mobile-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(63px + env(safe-area-inset-bottom));
    padding: 0 10px env(safe-area-inset-bottom);
    background: rgba(255, 253, 255, 0.92);
    border-top: 1px solid rgba(226, 215, 238, 0.85);
    box-shadow: 0 -12px 30px rgba(66, 45, 84, 0.055);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 53px;
    height: 51px;
    border-radius: 12px;
    color: var(--muted);
    font-size: calc(8.5px + var(--font-boost));
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .mobile-tabs a svg { width: 18px; height: 18px; }
  .mobile-tabs a.is-active { color: var(--ink); background: linear-gradient(140deg, var(--pink-soft), var(--lavender-soft)); }
  .mobile-tabs .mobile-new {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    min-width: 47px;
    margin-top: -25px;
    border: 1.5px solid var(--ink);
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 19px rgba(43, 36, 51, 0.25), 0 0 0 5px rgba(255, 253, 255, 0.85);
  }
  .mobile-tabs .mobile-new svg { width: 21px; height: 21px; }
  .report-side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .report-side-note { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1.36fr) minmax(215px, 0.64fr); }
  .dashboard-grid,
  .dashboard-bottom { grid-template-columns: minmax(0, 1fr) 300px; }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .report-side { grid-template-columns: 1fr 1fr; }
  .report-card { max-width: none; }
  .resource-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-stack { top: 80px; }
}

@media (max-width: 780px) {
  .topbar { padding: 0 17px; }
  .main-content { padding: 19px 16px 22px; }
  .site-foot { padding: 0 18px 18px; font-size: calc(8.5px + var(--font-boost)); }
  .site-foot .foot-version { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-title { font-size: calc(31.8px + var(--font-boost)); }
  .page-sub { margin-top: 6px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 27px 24px 23px;
    min-height: 0;
  }
  .hero::after { right: 28px; top: 25px; font-size: calc(23.3px + var(--font-boost)); }
  .hero h1 { font-size: calc(clamp(33px, 8vw, 45px) + var(--font-boost)); max-width: 430px; }
  .hero-copy { max-width: 400px; font-size: calc(12.2px + var(--font-boost)); }
  .hero-meta { margin-top: 20px; gap: 17px; }
  .hero-art { position: absolute; right: -19px; bottom: -15px; width: 191px; opacity: 0.33; pointer-events: none; padding: 0; }
  .hero-poster-wrap { width: 178px; transform: rotate(7deg); box-shadow: none; }
  .hero-muse-wrap { width: 172px; transform: rotate(7deg); box-shadow: none; }
  .hero-muse-caption { display: none; }
  .poster-sticker { display: none; }
  .hero-actions { position: relative; z-index: 2; }
  .hero-meta { position: relative; z-index: 2; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 139px; padding: 13px 14px; }
  .stat-value { font-size: calc(31.8px + var(--font-boost)); }
  .stat-label { font-size: calc(9.5px + var(--font-boost)); }
  .stat-foot { font-size: calc(8.5px + var(--font-boost)); }
  .dashboard-grid,
  .dashboard-bottom { grid-template-columns: minmax(0, 1fr); }
  .chart-card { min-height: 340px; padding: 19px 16px 13px; }
  .category-card { min-height: auto; padding: 19px 18px 18px; }
  .recent-card,
  .leader-card { padding: 19px 17px; }
  .feed-row { grid-template-columns: 33px minmax(0, 1fr) auto; gap: 9px; }
  .feed-time { display: none; }
  .feed-right { gap: 7px; }
  .orders-overview { gap: 8px; }
  .overview-mini { padding: 12px; min-height: 70px; gap: 9px; }
  .overview-mini .mini-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .overview-mini .mini-copy strong { font-size: calc(18px + var(--font-boost)); }
  .overview-mini .mini-copy span { font-size: calc(8.5px + var(--font-boost)); }
  .orders-toolbar { padding: 16px 14px 0; }
  .toolbar-divider { margin: 0 -14px; }
  .filter-row { padding: 12px 0; gap: 7px; }
  .search-box { flex-basis: 100%; }
  .filter-select { flex: 1 1 auto; }
  .filter-select select { width: 100%; }
  .advanced-filters { grid-template-columns: 1fr 1fr; padding-bottom: 12px; }
  .table-summary { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .table-wrap { display: none; }
  .mobile-orders { display: flex; flex-direction: column; gap: 8px; padding: 11px; }
  .order-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.69);
    text-align: left;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .order-card:hover { border-color: var(--line-strong); box-shadow: 0 7px 18px rgba(80, 57, 103, 0.06); }
  .order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .order-card-top .order-no { font-size: calc(8.5px + var(--font-boost)); }
  .order-card-service { margin-top: 3px; font-size: calc(11.7px + var(--font-boost)); font-weight: 700; }
  .order-card-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .order-card-people { display: flex; flex-direction: column; gap: 3px; font-size: calc(9.5px + var(--font-boost)); color: var(--ink-3); }
  .order-card-people strong { color: var(--ink-2); font-weight: 600; }
  .order-card-side { text-align: right; }
  .order-card-side .amount { font-family: var(--font-en); font-size: calc(17px + var(--font-boost)); font-weight: 800; letter-spacing: -0.03em; }
  .order-card-side .time { margin-top: 3px; font-family: var(--font-en); font-size: calc(8.5px + var(--font-boost)); color: var(--muted); }
  .order-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--line); }
  .order-card-bottom small { font-size: calc(8.5px + var(--font-boost)); color: var(--muted); }
  .order-card-arrow { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); font-size: calc(8.5px + var(--font-boost)); }
  .order-card-arrow svg { width: 12px; height: 12px; }
  .pagination { padding: 13px 14px; flex-wrap: wrap; gap: 9px; }
  .pagination-info { width: 100%; }
  .pagination-controls { flex: 1; justify-content: flex-end; }
  .page-size-wrap { margin-left: 3px; }
  .resource-card { padding: 16px 14px 0; }
  .resource-toolbar { gap: 8px; }
  .resource-search { margin-left: 0; flex-basis: 100%; }
  .resource-toolbar-actions { flex: 1 1 100%; flex-wrap: wrap; }
  .resource-toolbar-actions .resource-search { max-width: none; flex: 1 1 100%; }
  .resource-toolbar-actions .btn { width: 100%; justify-content: center; }
  .resource-boss-table-wrap { display: none; }
  .resource-boss-mobile-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 14px; }
  .resource-hero { gap: 8px; }
  .resource-stat { padding: 13px; }
  .resource-stat strong { font-size: calc(22.3px + var(--font-boost)); }
  .resource-table { min-width: 600px; }
  .report-head { padding: 20px 18px; }
  .report-head h2 { font-size: calc(24.4px + var(--font-boost)); }
  .report-head-mark { display: none; }
  .report-form { padding: 0 18px; }
  .form-section { padding: 18px 0; }
  .field-grid { gap: 14px 10px; }
  .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .field-grid .split-mobile { grid-column: span 6; }
  .section-note { display: none; }
  .report-side { grid-template-columns: 1fr; gap: 11px; }
  .report-side-note { grid-column: auto; }
  .payment-grid { gap: 5px; }
  .payment-option { padding: 0 8px; gap: 5px; }
  .payment-icon { flex-basis: 25px; width: 25px; height: 25px; }
  .payment-copy strong { font-size: calc(9.5px + var(--font-boost)); }
  .payment-copy small { display: none; }
  .payment-check { width: 13px; height: 13px; }
  .upload-main { min-height: 165px; padding: 19px 15px; }
  .upload-box { border-radius: 14px; }
  .upload-actions { grid-template-columns: 1fr 1fr; }
  .upload-preview { gap: 10px; padding: 10px; }
  .upload-preview-thumb { flex-basis: 80px; width: 80px; height: 91px; }
  .form-submit-zone { padding: 17px 0 20px; }
  .submit-button { height: 50px; }
  .drawer { border-radius: 22px 0 0 22px; }
  .drawer-head { padding: 18px 18px 15px; }
  .drawer-body { padding: 17px 18px 24px; }
  .drawer-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .drawer-foot-note { display: none; }
  .drawer-actions { flex: 1; }
  .drawer-actions .btn { flex: 1; }
  .detail-screenshot .btn span { display: none; }
  .detail-screenshot .btn { width: 34px; min-height: 34px; padding: 0; }
  .modal-overlay { padding: 13px; }
  .modal { border-radius: 20px; }
  .modal-head { padding: 18px 18px 0; }
  .modal-body { padding: 15px 18px 19px; }
  .toast-stack { top: 76px; right: 12px; width: calc(100vw - 24px); }
  .brand-note { display: none; }
}

@media (max-width: 520px) {
  .mobile-brand { font-size: calc(12.7px + var(--font-boost)); }
  .top-new-order span { display: none; }
  .top-new-order { display: none; }
  .top-avatar { width: 34px; height: 34px; font-size: calc(11.7px + var(--font-boost)); }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .page-heading { margin-bottom: 14px; }
  .page-title { font-size: calc(28.6px + var(--font-boost)); }
  .page-sub { font-size: calc(11.1px + var(--font-boost)); }
  .eyebrow { font-size: calc(8.5px + var(--font-boost)); }
  .hero { padding: 22px 18px 19px; border-radius: 23px; }
  .hero h1 { font-size: calc(35px + var(--font-boost)); line-height: 1.14; }
  .hero-kicker { margin-bottom: 11px; font-size: calc(7.4px + var(--font-boost)); gap: 7px; }
  .hero-kicker .kicker-line { width: 15px; }
  .hero-copy { margin-top: 11px; font-size: calc(11.1px + var(--font-boost)); line-height: 1.7; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .btn { min-height: 40px; font-size: calc(10.6px + var(--font-boost)); padding: 0 13px; }
  .hero-meta { gap: 13px; margin-top: 18px; }
  .hero-meta-item strong { font-size: calc(15.9px + var(--font-boost)); }
  .hero-meta-item span { font-size: calc(7.4px + var(--font-boost)); }
  .hero-meta-divider { height: 23px; }
  .hero-art { width: 150px; right: -31px; bottom: -24px; opacity: 0.24; }
  .hero-poster-wrap { width: 145px; }
  .hero-muse-wrap { width: 145px; }
  .stat-card { min-height: 133px; border-radius: 16px; }
  .stat-top { gap: 5px; }
  .stat-icon { width: 24px; height: 24px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-delta { font-size: calc(8.5px + var(--font-boost)); }
  .stat-value { font-size: calc(28.6px + var(--font-boost)); margin-top: 10px; }
  .stat-foot { font-size: calc(8px + var(--font-boost)); line-height: 1.5; }
  .card-title { font-size: calc(18px + var(--font-boost)); }
  .dashboard-grid { margin-top: 12px; gap: 12px; }
  .dashboard-bottom { gap: 12px; margin-top: 12px; }
  .chart-card { padding: 17px 13px 11px; }
  .chart-wrap { margin-top: 10px; }
  .seg-toggle button { padding: 0 8px; font-size: calc(9.5px + var(--font-boost)); }
  .chart-footer { font-size: calc(8.5px + var(--font-boost)); }
  .category-card { padding: 17px 15px; }
  .category-total { margin-top: 14px; font-size: calc(27.6px + var(--font-boost)); }
  .category-list { margin-top: 17px; gap: 12px; }
  .recent-card, .leader-card { padding: 17px 14px; }
  .feed-row { padding: 10px 2px; gap: 8px; }
  .feed-avatar { width: 31px; height: 31px; font-size: calc(10.6px + var(--font-boost)); }
  .feed-main strong { font-size: calc(10.6px + var(--font-boost)); }
  .feed-main small { font-size: calc(8.5px + var(--font-boost)); }
  .feed-right { gap: 6px; }
  .orders-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .overview-mini { min-height: 66px; padding: 10px 9px; border-radius: 14px; gap: 0; }
  .overview-mini .mini-icon { display: none; }
  .overview-mini .mini-copy span { font-size: calc(8px + var(--font-boost)); line-height: 1.35; letter-spacing: -0.01em; white-space: nowrap; }
  .overview-mini .mini-copy strong { font-size: calc(17px + var(--font-boost)); margin-top: 5px; white-space: nowrap; }
  .overview-mini .mini-copy strong small { font-size: calc(7.4px + var(--font-boost)); }
  .orders-card { border-radius: 18px; }
  .orders-toolbar { padding: 13px 11px 0; }
  .toolbar-divider { margin: 0 -11px; }
  .filter-select { flex-basis: calc(50% - 4px); }
  .advanced-filters { grid-template-columns: 1fr; }
  .table-summary { padding: 10px 12px; }
  .mobile-orders { padding: 8px; }
  .pagination { padding: 11px; }
  .page-btn { min-width: 27px; height: 27px; }
  .page-size { height: 27px; font-size: calc(8.5px + var(--font-boost)); }
  .report-head { padding: 17px 14px; }
  .report-head h2 { font-size: calc(22.3px + var(--font-boost)); }
  .report-head p { font-size: calc(9.5px + var(--font-boost)); }
  .report-form { padding: 0 13px; }
  .form-section { padding: 15px 0; }
  .section-head { margin-bottom: 13px; }
  .field-grid { gap: 12px 8px; }
  .field-label { font-size: calc(11.7px + var(--font-boost)); margin-bottom: 6px; }
  .field-input, .field-select { height: 44px; font-size: calc(12.7px + var(--font-boost)); border-radius: 11px; }
  .order-number-control { gap: 5px; }
  .inline-action { height: 44px; padding: 0 9px; border-radius: 11px; font-size: calc(9.5px + var(--font-boost)); }
  .type-segment { height: 44px; border-radius: 11px; }
  .type-segment button { font-size: calc(11.7px + var(--font-boost)); }
  .picker-toggle { height: 44px; border-radius: 11px; }
  .picker-value { font-size: calc(12.7px + var(--font-boost)); }
  .qty-control { height: 44px; border-radius: 11px; }
  .qty-control input { font-size: calc(12.7px + var(--font-boost)); }
  .upload-main { min-height: 150px; }
  .upload-illustration { width: 48px; height: 42px; margin-bottom: 10px; }
  .upload-illustration::before { width: 40px; height: 32px; }
  .upload-illustration::after { width: 30px; height: 26px; }
  .upload-illustration svg { width: 24px; height: 24px; }
  .upload-main strong { font-size: calc(12.2px + var(--font-boost)); }
  .upload-main p { font-size: calc(9.5px + var(--font-boost)); }
  .upload-action { font-size: calc(11.1px + var(--font-boost)); min-height: 42px; }
  .upload-preview-thumb { flex-basis: 73px; width: 73px; height: 83px; }
  .upload-preview-copy strong { font-size: calc(9.5px + var(--font-boost)); }
  .slip-card { padding: 17px 15px 15px; border-radius: 18px; }
  .tip-card { padding: 15px; border-radius: 17px; }
  .slip-total strong { font-size: calc(26.5px + var(--font-boost)); }
  .resource-hero { grid-template-columns: 1fr 1fr; }
  .resource-card { padding: 13px 10px 0; border-radius: 18px; }
  .resource-tab { height: 29px; padding: 0 9px; font-size: calc(9.5px + var(--font-boost)); }
  .drawer { border-radius: 18px 0 0 18px; }
  .drawer-head { padding: 15px 14px 13px; }
  .drawer-head h2 { font-size: calc(22.3px + var(--font-boost)); }
  .drawer-body { padding: 14px 14px 22px; }
  .drawer-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .detail-amount { font-size: calc(28.6px + var(--font-boost)); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .income-box { grid-template-columns: 1fr 1fr; }
  .income-cell:nth-child(3) { grid-column: span 2; }
  .modal-head h2 { font-size: calc(19.1px + var(--font-boost)); }
  .success-modal h2 { font-size: calc(22.3px + var(--font-boost)); }
  .toast-stack { top: 72px; }
  .site-foot span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print-friendly report preview (nice extra for receptionists) */
@media print {
  .sidebar, .topbar, .mobile-tabs, .site-foot, .report-side, .ambient, .submit-button, .upload-actions { display: none !important; }
  body { background: #fff; }
  .app-shell { margin: 0; }
  .main-content { padding: 0; }
  .report-layout { display: block; }
  .report-card { border: 0; box-shadow: none; }
}

/* Mobile stability: avoid GPU-heavy background motion and page entrance shifts. */
@media (max-width: 760px) {
  .ambient-blob,
  .ambient-spark,
  .hero-muse,
  .report-empty-boss-icon,
  .floaty {
    animation: none !important;
  }
  .page {
    animation: none !important;
  }
  .blob-a,
  .blob-b,
  .blob-c {
    filter: blur(48px);
  }
}

/* Mobile repaint stability: translucent blur on large surfaces is costly and
   can flash while the address bar or scroll position changes. */
@media (max-width: 760px) {
  .card,
  .topbar,
  .mobile-tabs,
  .platform-select-menu,
  .admin-modal,
  .modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topbar { background: rgba(249, 246, 253, 0.97); }
  .mobile-tabs { background: rgba(255, 253, 255, 0.98); }
  .card { background: rgba(255, 252, 255, 0.95); }
}

/* Mobile navigation with role-specific 5–6 destinations. */
@media (max-width: 760px) {
  .mobile-tabs {
    padding: 0 4px env(safe-area-inset-bottom);
    gap: 0;
  }
  .mobile-tabs a {
    flex: 1 1 0;
    min-width: 0;
    font-size: calc(8px + var(--font-boost));
  }
  .mobile-tabs .mobile-new {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-top: -23px;
  }
  .mobile-tabs .mobile-new svg { width: 20px; height: 20px; }
}

/* Brand logo */
.brand-tile,
.mobile-brand-tile { overflow: hidden; }
.brand-tile img,
.mobile-brand-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Payment-code protection */
[data-qr-protected] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
[data-qr-protected] img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.qr-protect-pill {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(45, 35, 54, 0.68);
  color: #fff;
  font-size: calc(6.1px + var(--font-boost));
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Last report quick reuse */
.last-order-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(183, 160, 232, 0.42);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(244, 239, 255, 0.9), rgba(255, 247, 251, 0.9));
}

.last-order-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  color: var(--lavender-deep);
}

.last-order-icon svg { width: 14px; height: 14px; }

.last-order-banner > div {
  flex: 1;
  min-width: 0;
}

.last-order-banner strong {
  display: block;
  color: var(--ink);
  font-size: calc(9px + var(--font-boost));
}

.last-order-banner p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(8px + var(--font-boost));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-order-banner .btn {
  flex: 0 0 auto;
  min-height: 30px;
  font-size: calc(8.5px + var(--font-boost));
}

@media (max-width: 760px) {
  .last-order-banner { align-items: flex-start; flex-wrap: wrap; }
  .last-order-banner > div { flex: 1 1 calc(100% - 38px); }
  .last-order-banner .btn { width: 100%; justify-content: center; }
}

/* Message center navigation badges */
.nav-unread {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--pink-deep);
  color: #fff;
  font-family: var(--font-en);
  font-size: calc(6.4px + var(--font-boost));
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.nav-unread[hidden] { display: none; }
.nav-icon { position: relative; }

@media (max-width: 760px) {
  .mobile-tabs a { font-size: calc(6.8px + var(--font-boost)); gap: 1.5px; }
  .mobile-tabs a svg { width: 16px; height: 16px; }
  .mobile-tabs .nav-unread {
    top: 2px;
    right: calc(50% - 22px);
    min-width: 13px;
    height: 13px;
    font-size: calc(5.8px + var(--font-boost));
  }
  .me-message-entry { display: none; }
}

/* Local spreadsheet import ------------------------------------------------ */
.import-modal { max-width: 620px; }
.import-drop { display: flex; align-items: stretch; gap: 9px; margin-bottom: 10px; }
.import-pick { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 13px; border: 1px dashed rgba(156,130,210,.45); border-radius: 12px; background: rgba(248,244,255,.7); color: var(--ink-2); text-align: left; cursor: pointer; }
.import-pick:hover { border-color: var(--lavender-deep); background: rgba(246,240,255,.95); }
.import-pick-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: var(--lavender-soft); color: var(--lavender-deep); }
.import-pick-icon svg { width: 16px; height: 16px; }
.import-pick strong { display: block; font-size: calc(9px + var(--font-boost)); }
.import-pick small { display: block; margin-top: 2px; color: var(--muted); font-size: calc(7px + var(--font-boost)); }
.import-template { align-self: center; flex: 0 0 auto; }
.import-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; padding: 8px 10px; border-radius: 9px; background: var(--lavender-soft); color: var(--ink-2); font-size: calc(7.5px + var(--font-boost)); }
.import-file span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file span svg { width: 12px; height: 12px; flex: 0 0 auto; }
.import-file small { flex: 0 0 auto; color: var(--muted); }
.import-preview { margin-top: 9px; border: 1px solid rgba(220,210,235,.8); border-radius: 10px; overflow: hidden; }
.import-preview-head { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; background: #fbf8ff; color: var(--muted); font-size: calc(7px + var(--font-boost)); }
.import-preview-head span { display: inline-flex; align-items: center; gap: 4px; }
.import-preview-head svg { width: 11px; height: 11px; }
.import-table-wrap { max-height: 180px; overflow: auto; }
.import-table { width: 100%; border-collapse: collapse; font-size: calc(7px + var(--font-boost)); }
.import-table th, .import-table td { padding: 6px 8px; border-top: 1px solid rgba(220,210,235,.55); text-align: left; white-space: nowrap; }
.import-table th { background: #fffdfd; color: var(--muted); font-weight: 700; }
.import-table td { color: var(--ink-3); }
.import-result { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--mint-soft); color: var(--ink-2); font-size: calc(7.5px + var(--font-boost)); line-height: 1.7; }
.import-result strong { display: flex; align-items: center; gap: 5px; color: var(--mint-deep); font-size: calc(8.5px + var(--font-boost)); }
.import-result strong svg { width: 13px; height: 13px; }
.import-result span { display: block; margin-top: 2px; }
.import-result b { color: var(--ink); }
.import-result ul { max-height: 110px; overflow: auto; margin: 5px 0 0; padding-left: 15px; color: #9b5263; }
.import-result li { margin: 2px 0; }
@media (max-width: 760px) {
  .import-modal { width: calc(100vw - 24px); max-width: 560px; }
  .import-drop { flex-direction: column; }
  .import-template { align-self: stretch; justify-content: center; }
  .import-pick { min-height: 54px; }
}

.import-modal .import-close { font-size: calc(19px + var(--font-boost)); line-height: 1; font-weight: 400; color: var(--ink-3); }
.import-shots { margin: 9px 0; padding: 9px; border: 1px solid rgba(220,210,235,.8); border-radius: 10px; background: rgba(251,248,255,.72); }
.import-shots-pick { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 1px dashed rgba(156,130,210,.4); border-radius: 8px; background: #fffdfd; color: var(--ink-2); text-align: left; cursor: pointer; }
.import-shots-pick:hover { border-color: var(--lavender-deep); background: #fbf8ff; }
.import-shots-pick > svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--lavender-deep); }
.import-shots-pick strong { display: block; font-size: calc(8px + var(--font-boost)); }
.import-shots-pick small { display: block; margin-top: 2px; color: var(--muted); font-size: calc(6.8px + var(--font-boost)); font-weight: 400; }
.import-shots-state { margin-top: 6px; color: var(--muted); font-size: calc(6.8px + var(--font-boost)); line-height: 1.55; }
.import-shots-state b { color: var(--ink-2); }
.picker-option:disabled, .picker-option.is-disabled { opacity: .58; cursor: not-allowed; background: #f8f6fa; }
.picker-option:disabled:hover, .picker-option.is-disabled:hover { background: #f8f6fa; }
.picker-option:disabled .po-check, .picker-option.is-disabled .po-check { display: none; }

/* Large-type responsive fixes */
@media (max-width: 760px) {
  .stat-top { flex-wrap: wrap; row-gap: 4px; }
  .stat-label { white-space: nowrap; }
  .stat-delta { margin-left: auto; }
  .order-number-control { flex-wrap: wrap; }
  .order-number-control .field-input { flex: 1 1 100%; width: 100%; }
  .order-number-control .inline-action { flex: 1 1 100%; width: 100%; height: 38px; }
}
@media (max-width: 760px) {
  .tab-row { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  .tab-btn { height: auto; min-height: 31px; padding: 5px 9px; }
}

/* Compact desktop sidebar */
@media (min-width: 961px) {
  .sidebar { width: 236px; }
  .app-shell { margin-left: 236px; }
  .sidebar-inner { padding: 21px 13px 14px; }
  .brand { gap: 9px; padding: 0 4px; }
  .brand-tile { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .brand-tile svg { width: 34px; height: 34px; }
  .brand-word { font-size: calc(22.2px + var(--font-boost)); }
  .brand-word em { font-size: calc(23.2px + var(--font-boost)); }
  .brand-sub { margin-top: 4px; font-size: calc(7.4px + var(--font-boost)); letter-spacing: .16em; }
  .sidebar-label { padding: 24px 9px 7px; font-size: calc(8.4px + var(--font-boost)); }
  .side-nav { gap: 2px; }
  .nav-item { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; min-height: 49px; padding: 6px 9px; border-radius: 12px; }
  .nav-icon { width: 28px; height: 28px; border-radius: 8px; }
  .nav-icon svg { width: 15px; height: 15px; }
  .nav-text { font-size: calc(12.3px + var(--font-boost)); line-height: 1.25; }
  .nav-text small { margin-top: 1px; font-size: calc(6.9px + var(--font-boost)); letter-spacing: .07em; }
  .nav-index { font-size: calc(8px + var(--font-boost)); padding-right: 2px; }
  .db-card { margin-top: 11px; padding: 10px 10px 9px; border-radius: 14px; }
  .db-card-head { font-size: calc(7.2px + var(--font-boost)); }
  .db-card-main { gap: 7px; margin-top: 8px; }
  .db-icon { width: 26px; height: 26px; }
  .db-card-main strong { font-size: calc(13.5px + var(--font-boost)); }
  .db-card-main span { font-size: calc(8.2px + var(--font-boost)); }
  .db-meter { margin-top: 8px; }
}
.desk-direct-note { display: flex; align-items: center; gap: 4px; }
.desk-direct-note svg { flex: 0 0 12px; width: 12px; height: 12px; color: var(--lavender-deep); }
@media (max-width: 760px) {
  .app-shell { padding-bottom: 84px; }
  .drawer-overlay { align-items: flex-end; }
  .drawer { max-height: 94svh; }
}


/* css/login.css */
/* ============================================================
   星晚 Club · 共用登录中心
   ============================================================ */

body.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 520px at 12% 0%, rgba(255, 203, 226, 0.55), transparent 64%),
    radial-gradient(620px 520px at 92% 8%, rgba(185, 215, 255, 0.48), transparent 68%),
    radial-gradient(720px 600px at 58% 108%, rgba(210, 196, 255, 0.48), transparent 66%),
    #fbf8ff;
  overflow-x: hidden;
}

.auth-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.6;
}

.auth-orb-a {
  width: 470px;
  height: 470px;
  left: -170px;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 178, 208, 0.79), transparent 68%);
}

.auth-orb-b {
  width: 520px;
  height: 520px;
  right: -220px;
  top: -90px;
  background: radial-gradient(circle, rgba(173, 202, 255, 0.68), transparent 68%);
}

.auth-orb-c {
  width: 430px;
  height: 430px;
  left: 44%;
  bottom: -240px;
  background: radial-gradient(circle, rgba(175, 235, 220, 0.52), transparent 68%);
}

.auth-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(92, 72, 121, 0.16) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

.auth-doodle {
  position: absolute;
  font-weight: 800;
  color: rgba(126, 94, 162, 0.35);
  animation: authFloat 5s ease-in-out infinite alternate;
}

.doodle-star {
  left: 48%;
  top: 12%;
  font-size: calc(24.4px + var(--font-boost));
  animation-delay: -1s;
}

.doodle-heart {
  right: 4%;
  top: 48%;
  font-size: calc(36px + var(--font-boost));
  color: rgba(233, 121, 170, 0.25);
  transform: rotate(14deg);
  animation-delay: -2s;
}

.doodle-snow {
  left: 3%;
  bottom: 13%;
  font-size: calc(25.4px + var(--font-boost));
  color: rgba(104, 155, 207, 0.27);
  animation-delay: -3.2s;
}

.doodle-dot {
  right: 37%;
  bottom: 8%;
  font-size: calc(18px + var(--font-boost));
  animation-delay: -0.5s;
}

@keyframes authFloat {
  from { transform: translateY(0) rotate(-4deg) scale(0.9); opacity: 0.4; }
  to { transform: translateY(-10px) rotate(4deg) scale(1.05); opacity: 0.8; }
}

.auth-pixel-band {
  position: relative;
  z-index: 3;
  height: 15px;
  flex: 0 0 auto;
  background-color: #f7f0ff;
  background-image:
    linear-gradient(90deg, rgba(172, 151, 205, 0.31) 50%, transparent 50%),
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%);
  background-size: 15px 15px;
  border-bottom: 1px solid rgba(218, 205, 234, 0.7);
}

.auth-pixel-bottom {
  border-top: 1px solid rgba(218, 205, 234, 0.7);
  border-bottom: 0;
  margin-top: auto;
}

.auth-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 25px 42px 13px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.auth-brand-tile {
  display: grid;
  place-items: center;
  flex: 0 0 53px;
  width: 53px;
  height: 53px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  color: var(--ink);
  background: var(--holo);
  box-shadow: 3px 4px 0 rgba(43, 36, 51, 0.13);
  transform: rotate(-3deg);
}

.auth-brand-tile svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.4;
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: calc(26.5px + var(--font-boost));
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.auth-brand-name em {
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: var(--holo-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand-sub {
  margin-top: 5px;
  font-family: var(--font-en);
  font-size: calc(8px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.auth-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-top-label {
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(95, 80, 109, 0.52);
}

.auth-slug {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(43, 36, 51, 0.75);
  border-radius: 7px;
  background: var(--pink-soft);
  font-family: var(--font-mono);
  font-size: calc(8.5px + var(--font-boost));
  color: var(--ink-2);
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.08);
  transform: rotate(1.5deg);
  white-space: nowrap;
}

.auth-main {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(395px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 65px);
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px 48px 28px;
  flex: 1;
}

/* Left showcase --------------------------------------------------- */
.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 680px;
  padding: 12px 0 24px;
}

.auth-showcase-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: calc(9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-3);
}

.auth-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(62, 156, 126, 0.12);
  animation: livePulse 2.8s ease-in-out infinite;
}

.auth-wordmark {
  position: relative;
  z-index: 2;
  margin: 0 0 19px -3px;
  filter: drop-shadow(5px 7px 0 rgba(43, 36, 51, 0.08));
}

.auth-showcase h1 {
  margin: 0;
  max-width: 540px;
  font-family: var(--font-display);
  font-size: calc(clamp(32px, 3.2vw, 45px) + var(--font-boost));
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.auth-showcase h1 span {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg, #b56d97 0%, #8c6bbe 38%, #577faf 74%, #3c9688 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-showcase h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 7px;
  z-index: -1;
  border-radius: 50%;
  background: var(--holo);
  opacity: 0.82;
}

.auth-lead {
  margin: 17px 0 0;
  max-width: 500px;
  font-size: calc(12.7px + var(--font-boost));
  line-height: 1.9;
  color: var(--ink-2);
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(43, 36, 51, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.63);
  color: var(--ink-2);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(74, 50, 94, 0.045);
}

.auth-badge i {
  font-family: var(--font-en);
  font-style: normal;
  font-size: calc(8px + var(--font-boost));
  color: var(--pink-deep);
}

.auth-badge-holo {
  border-color: rgba(43, 36, 51, 0.7);
  background: var(--holo);
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.08);
}

.auth-showcase-art {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 510px;
  min-height: 250px;
  margin: 26px 0 0 44px;
  display: flex;
  align-items: flex-end;
}

.auth-muse-frame {
  position: relative;
  z-index: 2;
  width: min(232px, 52%);
  margin: 0;
  padding: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 8px 9px 0 rgba(183, 160, 232, 0.16), 0 20px 38px rgba(86, 61, 114, 0.13);
  transform: rotate(-3.2deg);
  transition: transform 0.4s var(--ease);
}

.auth-muse-frame:hover {
  transform: rotate(0deg) translateY(-3px);
}

.auth-muse-frame img {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  object-fit: cover;
  object-position: 50% 25%;
}

.auth-muse-frame figcaption {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  padding: 8px 9px;
  border: 1px solid rgba(43, 36, 51, 0.8);
  border-radius: 8px;
  background: rgba(255, 253, 255, 0.92);
  backdrop-filter: blur(9px);
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.08);
}

.auth-muse-frame figcaption span {
  display: block;
  font-family: var(--font-en);
  font-size: calc(6.9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.auth-muse-frame figcaption strong {
  display: block;
  margin-top: 2px;
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.auth-tape {
  position: absolute;
  z-index: 4;
  left: 80px;
  top: -2px;
  width: 56px;
  height: 20px;
  border: 1px solid rgba(43, 36, 51, 0.1);
  background: rgba(255, 235, 245, 0.84);
  transform: rotate(-7deg);
  box-shadow: 0 3px 5px rgba(70, 47, 89, 0.05);
}

.auth-quote {
  position: absolute;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(153.7px + var(--font-boost));
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(43, 36, 51, 0.75);
  filter: drop-shadow(4px 4px 0 rgba(255, 255, 255, 0.78));
  user-select: none;
}

.quote-left {
  left: -29px;
  top: -30px;
  transform: rotate(-20deg);
}

.quote-right {
  left: 178px;
  top: -23px;
  transform: rotate(16deg);
}

.auth-sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--font-en);
  font-size: calc(8px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(43, 36, 51, 0.1);
}

.sticker-id {
  left: 223px;
  bottom: 23px;
  height: 29px;
  padding: 0 11px;
  background: var(--pink-soft);
  transform: rotate(2deg);
  white-space: nowrap;
}

.sticker-ok {
  left: 273px;
  bottom: 101px;
  width: 55px;
  height: 55px;
  padding: 4px;
  border-radius: 50%;
  background: var(--holo);
  font-size: calc(6.9px + var(--font-boost));
  letter-spacing: 0.06em;
  text-align: center;
  transform: rotate(9deg);
}

.sticker-ok::before {
  content: "✓";
  margin-right: 3px;
  font-size: calc(11.7px + var(--font-boost));
}

.auth-art-spark {
  position: absolute;
  right: 3px;
  top: 42px;
  color: rgba(143, 114, 199, 0.35);
  font-size: calc(32.9px + var(--font-boost));
  transform: rotate(9deg);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

.auth-art-heart {
  position: absolute;
  left: 205px;
  top: 50px;
  color: rgba(228, 119, 166, 0.42);
  font-size: calc(18px + var(--font-boost));
  transform: rotate(-9deg);
}

.auth-showcase-foot {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 510px;
  margin: 25px 0 0 7px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(132, 116, 148, 0.64);
}

.auth-foot-pixels {
  letter-spacing: 2px;
  color: rgba(143, 114, 199, 0.56);
}

/* Right login panel ------------------------------------------------ */
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
}

.auth-card {
  position: relative;
  width: min(438px, 100%);
  padding: 0 29px 22px;
  border: 1px solid rgba(43, 36, 51, 0.82);
  border-radius: 27px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 255, 0.94) 55%, rgba(242, 250, 255, 0.95));
  box-shadow: 9px 10px 0 rgba(43, 36, 51, 0.085), 0 30px 65px rgba(84, 56, 112, 0.14);
  overflow: hidden;
}

.auth-card::after {
  content: "✦";
  position: absolute;
  right: 22px;
  top: 47px;
  color: rgba(143, 114, 199, 0.21);
  font-size: calc(25.4px + var(--font-boost));
  transform: rotate(9deg);
  pointer-events: none;
}

.auth-card-strip {
  height: 9px;
  margin: 0 -29px 20px;
  background-color: #f9f3ff;
  background-image:
    linear-gradient(90deg, rgba(177, 156, 210, 0.3) 50%, transparent 50%),
    linear-gradient(90deg, transparent 50%, #fff 50%);
  background-size: 9px 9px;
  border-bottom: 1px solid rgba(226, 215, 237, 0.8);
}

.auth-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-mini-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--holo);
  font-size: calc(11.7px + var(--font-boost));
  box-shadow: 2px 2px 0 rgba(43, 36, 51, 0.09);
}

.auth-card-eyebrow {
  font-family: var(--font-en);
  font-size: calc(8px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--ink-3);
}

.auth-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-family: var(--font-en);
  font-size: calc(6.9px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.07em;
}

.auth-online i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: livePulse 2.8s ease-in-out infinite;
}

.auth-form-head {
  padding: 20px 1px 11px;
}

.auth-form-kicker {
  margin: 0 0 4px;
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--pink-deep);
}

.auth-form-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(28.6px + var(--font-boost));
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.auth-form-head p {
  margin: 6px 0 0;
  font-size: calc(10.1px + var(--font-boost));
  line-height: 1.6;
  color: var(--ink-3);
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(216, 94, 126, 0.22);
  border-radius: 9px;
  background: var(--danger-soft);
  color: #a63658;
  font-size: calc(9.5px + var(--font-boost));
  line-height: 1.55;
}

.auth-error[hidden] {
  display: none !important;
}

.auth-error-icon {
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(216, 94, 126, 0.13);
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
}

.auth-field {
  display: block;
  margin-top: 13px;
}

.auth-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 7px;
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 700;
  color: var(--ink-2);
}

.auth-label small {
  font-size: calc(8px + var(--font-boost));
  font-weight: 500;
  color: var(--muted);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 43px 0 39px;
  border: 1px solid #e7def0;
  border-radius: 12px;
  background: #fdfbff;
  color: var(--ink);
  font-size: calc(12.7px + var(--font-boost));
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap input::placeholder {
  color: #b9afc4;
}

.auth-input-wrap input:hover {
  border-color: #d8cbe6;
  background: #fff;
}

.auth-input-wrap input:focus {
  border-color: var(--lavender);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.13);
}

.auth-input-wrap input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(216, 94, 126, 0.08);
}

.auth-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.auth-eye:hover {
  color: var(--ink-2);
  background: var(--surface-soft);
}

.auth-eye svg {
  width: 16px;
  height: 16px;
}

.auth-eye .eye-closed {
  display: none;
}

.auth-eye.is-visible .eye-open {
  display: none;
}

.auth-eye.is-visible .eye-closed {
  display: block;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 1px 15px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: calc(9px + var(--font-boost));
  color: var(--ink-3);
  cursor: pointer;
}

.auth-remember input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--lavender-deep);
}

.auth-help {
  font-size: calc(8.5px + var(--font-boost));
  color: var(--muted);
}

.auth-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: calc(12.7px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 11px 23px rgba(42, 35, 50, 0.2);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.auth-submit::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 4px;
  height: 1px;
  background: var(--holo);
  opacity: 0.7;
}

.auth-submit::after {
  content: "✦";
  position: absolute;
  right: 17px;
  top: 50%;
  color: var(--pink);
  font-size: calc(13.8px + var(--font-boost));
  transform: translateY(-50%);
}

.auth-submit svg {
  width: 16px;
  height: 16px;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 29px rgba(42, 35, 50, 0.26);
}

.auth-submit:disabled {
  opacity: 0.68;
  pointer-events: none;
}

.auth-submit.is-loading {
  pointer-events: none;
}

.auth-submit.is-loading svg {
  display: none;
}

.auth-submit.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  transform: none;
  top: auto;
  right: auto;
  position: static;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
  font-size: calc(9px + var(--font-boost));
  color: var(--muted);
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lavender-deep);
  font-size: calc(9px + var(--font-boost));
  font-weight: 700;
}

.auth-switch button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: calc(8px + var(--font-boost));
  color: var(--muted);
}

.auth-secure svg {
  width: 11px;
  height: 11px;
  color: var(--mint-deep);
}

.auth-version {
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.auth-panel-foot {
  margin: 17px 0 0;
  font-size: calc(8px + var(--font-boost));
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.auth-panel-foot span {
  color: rgba(171, 151, 188, 0.7);
}

/* Account picker -------------------------------------------------- */
.auth-access-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(255, 236, 246, 0.8), rgba(242, 235, 255, 0.8));
  color: var(--ink-3);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-access-line > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-access-line > span:first-child i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.auth-access-dots {
  font-family: var(--font-en);
  font-size: calc(7.4px + var(--font-boost));
  letter-spacing: 2px;
  color: rgba(143, 114, 199, 0.65);
}

.auth-account-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 55px;
  padding: 7px 10px;
  border: 1px solid #e7def0;
  border-radius: 12px;
  background: #fdfbff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-account-trigger:hover,
.auth-account-trigger[aria-expanded="true"] {
  border-color: var(--lavender);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(183, 160, 232, 0.11);
}

.auth-account-trigger.has-selection {
  border-color: rgba(183, 160, 232, 0.62);
  background: linear-gradient(105deg, #fff, #fbf5ff);
}

.auth-account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(43, 36, 51, 0.12);
  border-radius: 50%;
  background: var(--holo);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: calc(12.7px + var(--font-boost));
  font-weight: 900;
}

.auth-account-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin-left: 9px;
  line-height: 1.35;
}

.auth-account-copy strong {
  overflow: hidden;
  font-size: calc(12.2px + var(--font-boost));
  font-weight: 700;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-copy small {
  overflow: hidden;
  margin-top: 3px;
  font-size: calc(9px + var(--font-boost));
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-copy small .auth-role-badge {
  margin-right: 3px;
}

.auth-account-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  color: var(--ink-3);
}

.auth-account-trigger[aria-expanded="true"] .auth-account-chevron {
  transform: rotate(180deg);
}

.auth-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: calc(7.4px + var(--font-boost));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.auth-role-badge.superadmin,
.auth-account-option-roles .superadmin {
  background: #2b2433;
  color: #ffe9b3;
}

.auth-role-badge.admin,
.auth-account-option-roles .admin {
  background: #fff0dd;
  color: #a66b2d;
}

.auth-role-badge.reviewer,
.auth-account-option-roles .reviewer {
  background: #eee7ff;
  color: #6b50a8;
}

.auth-role-badge.reception,
.auth-account-option-roles .reception {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.auth-role-badge.companion,
.auth-account-option-roles .companion {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.auth-role-badge.is-compact {
  height: 17px;
  padding: 0 5px;
  font-size: calc(6.9px + var(--font-boost));
}

.auth-account-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(36, 28, 44, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease both;
}

.auth-account-modal[hidden] {
  display: none !important;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-account-sheet {
  display: flex;
  flex-direction: column;
  width: min(545px, 100%);
  max-height: min(82vh, 760px);
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 23px;
  background: #fffdfd;
  box-shadow: 0 35px 90px rgba(45, 30, 61, 0.25);
  overflow: hidden;
  animation: modalIn 0.32s var(--ease) both;
}

.auth-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-account-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(24.4px + var(--font-boost));
  font-weight: 900;
  letter-spacing: -0.035em;
}

.auth-account-head p:not(.auth-card-eyebrow) {
  margin: 5px 0 0;
  font-size: calc(9px + var(--font-boost));
  line-height: 1.6;
  color: var(--ink-3);
}

.auth-account-close {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
}

.auth-account-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.auth-account-close svg {
  width: 15px;
  height: 15px;
}

.auth-account-search {
  position: relative;
  margin-top: 16px;
}

.auth-account-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}

.auth-account-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: calc(11.1px + var(--font-boost));
  outline: none;
}

.auth-account-search input:focus {
  border-color: var(--lavender);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(183, 160, 232, 0.1);
}

.auth-account-list {
  flex: 1;
  min-height: 120px;
  margin-top: 10px;
  padding: 3px 4px 3px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 154, 204, 0.35) transparent;
}

.auth-account-list::-webkit-scrollbar {
  width: 5px;
}

.auth-account-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(174, 154, 204, 0.35);
}

.auth-account-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 8px 6px;
  font-family: var(--font-en);
  font-size: calc(8.5px + var(--font-boost));
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}

.auth-account-group:first-child {
  padding-top: 4px;
}

.auth-account-group small {
  font-size: calc(6.9px + var(--font-boost));
  letter-spacing: 0.06em;
  color: var(--muted);
}

.auth-account-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 53px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-account-option:hover {
  background: #fbf7ff;
  border-color: rgba(228, 217, 240, 0.8);
}

.auth-account-option.is-selected {
  background: linear-gradient(105deg, #fff5fa, #f5efff 58%, #eefbff);
  border-color: rgba(213, 200, 229, 0.85);
}

.auth-account-option-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(43, 36, 51, 0.1);
  background: linear-gradient(145deg, #ffe3ee, #f1eaff 60%, #e0f5ff);
  font-size: calc(10.6px + var(--font-boost));
  font-weight: 800;
}

.auth-account-option-avatar.is-admin {
  background: linear-gradient(145deg, #ffe3b7, #ffe9d2);
}

.auth-account-option-avatar.is-superadmin {
  background: linear-gradient(145deg, #2b2433, #58476e);
  color: #ffe9b3;
  border-color: rgba(255, 225, 160, 0.32);
}

.auth-account-option-avatar.is-reviewer {
  background: linear-gradient(145deg, #e6dcff, #f5edff);
}

.auth-account-option-avatar.is-reception {
  background: linear-gradient(145deg, #ffd7e8, #eee1ff);
}

.auth-account-option-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.auth-account-option-copy strong {
  overflow: hidden;
  font-size: calc(11.1px + var(--font-boost));
  font-weight: 700;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-option-copy small {
  overflow: hidden;
  margin-top: 2px;
  font-size: calc(8px + var(--font-boost));
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-option-roles {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
}

.auth-account-option-roles .auth-role-badge {
  height: 17px;
  font-size: calc(6.9px + var(--font-boost));
  padding: 0 5px;
}

.auth-account-check {
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-left: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-family: var(--font-en);
  font-size: calc(9.5px + var(--font-boost));
  font-weight: 800;
}

.auth-account-option.is-selected .auth-account-check {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.auth-account-loading {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.auth-account-empty {
  padding: 35px 10px;
  text-align: center;
  font-size: calc(9.5px + var(--font-boost));
  color: var(--muted);
}

.auth-account-empty[hidden] {
  display: none !important;
}

.auth-account-footnote {
  margin: 9px 2px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: calc(7.4px + var(--font-boost));
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.auth-switch {
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 1180px) {
  .auth-main {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
    gap: 30px;
    padding-left: 34px;
    padding-right: 34px;
  }
  .auth-topbar { padding-left: 32px; padding-right: 32px; }
  .auth-showcase { min-height: 620px; }
  .auth-muse-frame img { height: 215px; }
  .sticker-id { left: 196px; }
  .sticker-ok { left: 245px; }
  .quote-right { left: 150px; }
  .auth-showcase-art { margin-left: 25px; }
}

@media (max-width: 960px) {
  .auth-topbar { padding: 20px 24px 11px; }
  .auth-top-label { display: none; }
  .auth-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 24px 28px;
  }
  .auth-showcase {
    min-height: 0;
    padding: 16px 0 0;
    align-items: center;
    text-align: center;
  }
  .auth-showcase-copy { max-width: 680px; }
  .auth-kicker { justify-content: center; margin-bottom: 15px; }
  .auth-wordmark { margin-left: 0; }
  .auth-showcase h1 { margin-left: auto; margin-right: auto; font-size: calc(38.2px + var(--font-boost)); }
  .auth-lead { margin-left: auto; margin-right: auto; max-width: 560px; font-size: calc(11.7px + var(--font-boost)); }
  .auth-badges { justify-content: center; }
  .auth-showcase-art,
  .auth-showcase-foot { display: none; }
  .auth-panel { padding: 0 0 8px; }
  .auth-card { width: min(440px, 100%); }
  .auth-showcase::after {
    content: "✦";
    position: absolute;
    right: 8%;
    top: 7%;
    color: rgba(143, 114, 199, 0.18);
    font-size: calc(30.7px + var(--font-boost));
  }
}

@media (max-width: 560px) {
  .auth-pixel-band { height: 12px; background-size: 12px 12px; }
  .auth-topbar { padding: 16px 15px 8px; }
  .auth-brand-tile { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .auth-brand-tile svg { width: 34px; height: 34px; }
  .auth-brand-name { font-size: calc(22.3px + var(--font-boost)); }
  .auth-brand-sub { font-size: calc(6.4px + var(--font-boost)); letter-spacing: 0.08em; }
  .auth-slug { height: 23px; font-size: calc(6.9px + var(--font-boost)); padding: 0 6px; }
  .auth-main { padding: 6px 12px 22px; gap: 8px; }
  .auth-showcase { padding-top: 6px; }
  .auth-kicker { font-size: calc(7.4px + var(--font-boost)); letter-spacing: 0.1em; margin-bottom: 8px; }
  .auth-wordmark { font-size: calc(50.9px + var(--font-boost)); margin-bottom: 8px; filter: drop-shadow(4px 5px 0 rgba(43, 36, 51, 0.08)); }
  .auth-showcase h1 { font-size: calc(23.3px + var(--font-boost)); line-height: 1.25; }
  .auth-lead { display: none; }
  .auth-badges { display: none; }
  .auth-card { padding: 0 17px 18px; border-radius: 22px; box-shadow: 6px 7px 0 rgba(43, 36, 51, 0.075), 0 20px 44px rgba(84, 56, 112, 0.12); }
  .auth-card-strip { margin: 0 -17px 15px; }
  .auth-account-modal { padding: 0; align-items: flex-end; }
  .auth-account-sheet { width: 100%; max-height: 88vh; padding: 18px 13px calc(13px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .auth-account-head h2 { font-size: calc(22.3px + var(--font-boost)); }
  .auth-account-list { max-height: 54vh; }
  .auth-account-option { min-height: 49px; }
  .auth-account-option-roles { max-width: 70px; overflow: hidden; }
  .auth-account-search input { height: 38px; }
  .auth-form-head { padding-top: 13px; padding-bottom: 9px; }
  .auth-form-head h2 { font-size: calc(24.4px + var(--font-boost)); }
  .auth-field { margin-top: 10px; }
  .auth-input-wrap input { height: 44px; font-size: calc(11.7px + var(--font-boost)); }
  .auth-form-row { margin: 8px 1px 12px; }
  .auth-submit { height: 47px; font-size: calc(11.7px + var(--font-boost)); }
  .auth-switch { margin-top: 11px; }
  .auth-card-foot { margin-top: 13px; padding-top: 11px; }
  .auth-panel-foot { font-size: calc(7.4px + var(--font-boost)); margin-top: 10px; }
  .auth-top-meta { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-doodle, .auth-art-spark, .auth-live-dot, .auth-online i { animation: none !important; }
}

@media (max-width: 760px) {
  .auth-doodle, .auth-art-spark, .auth-live-dot, .auth-online i, .auth-card, .auth-showcase {
    animation: none !important;
  }
  button, a, input, [role="button"] { touch-action: manipulation; }
}

@media (max-width: 760px) {
  .auth-card,
  .auth-account-sheet,
  .auth-showcase {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .auth-card { background: rgba(255, 252, 255, 0.97); }
}


.auth-onboard-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px dashed rgba(197, 179, 220, 0.68);
  border-radius: 9px;
  background: rgba(250, 246, 255, 0.74);
  font-size: calc(8.5px + var(--font-boost));
}

.auth-onboard-entry span { color: var(--muted); }

.auth-onboard-entry a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lavender-deep);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.auth-onboard-entry a:hover { color: var(--pink-deep); }

.auth-remember small {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  font-family: var(--font-en);
  font-size: calc(6.9px + var(--font-boost));
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .auth-remember { font-size: calc(8.5px + var(--font-boost)); }
  .auth-form-row .auth-help { font-size: calc(7.4px + var(--font-boost)); }
}

.auth-brand-tile { overflow: hidden; }
.auth-brand-tile img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.auth-account-option-avatar.is-examiner { background: linear-gradient(145deg, #d9f4ea, #e7e1ff); }
.auth-role-badge.examiner { color: var(--mint-deep, #2f8f74); border-color: rgba(120, 200, 175, .45); background: rgba(225, 248, 240, .8); }
.auth-account-option-avatar.is-boss { background: linear-gradient(145deg, #ffe9c9, #f3e6ff); color: #7d5a2d; }
.auth-role-badge.boss { color: #8a6426; border-color: rgba(220, 180, 100, .45); background: rgba(255, 247, 225, .86); }

/* Separate boss entrance */
.auth-boss-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(224, 187, 128, .35);
  border-radius: 11px;
  background: linear-gradient(108deg, rgba(255, 247, 228, .78), rgba(255, 238, 246, .55));
  transition: border-color .2s ease, transform .2s ease;
}
.auth-boss-entry:hover { border-color: rgba(196, 141, 64, .58); transform: translateY(-1px); }
.auth-boss-entry > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.auth-boss-entry i { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 7px; background: rgba(255, 255, 255, .72); color: #a87931; font-style: normal; font-size: calc(10px + var(--font-boost)); }
.auth-boss-entry strong { display: block; color: #6d5230; font-size: calc(8px + var(--font-boost)); }
.auth-boss-entry small { display: block; margin-top: 1px; color: #a18a6e; font-size: calc(6.2px + var(--font-boost)); }
.auth-boss-entry em { flex: 0 0 auto; color: #97723b; font-size: calc(6.8px + var(--font-boost)); font-style: normal; font-weight: 700; white-space: nowrap; }

