/* smsmove design system · one source of truth for the workspace and authentication. */
:root {
  color-scheme: dark;
  font-family: Anuphan, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  --accent: #00bc7d;
  --accent-hover: #20d99a;
  --accent-text: #44dca7;
  --accent-ink: #03251b;
  --accent-soft: rgb(0 188 125 / 10%);
  --accent-border: rgb(0 188 125 / 26%);
  --bg: #080a0c;
  --sidebar: #0b0e10;
  --panel: #111518;
  --panel2: #191e22;
  --surface-elevated: #20262b;
  --surface-glass: rgb(15 19 22 / 86%);
  --surface-sheen: linear-gradient(145deg, rgb(255 255 255 / 2.5%), transparent 55%);
  --input-bg: #0d1114;
  --popover: #151a1e;
  --text: #eef2f4;
  --muted: #9aa5ad;
  --faint: #7d8992;
  --border: #283037;
  --border-strong: #3c474f;
  --hover: rgb(255 255 255 / 4%);
  --highlight: rgb(255 255 255 / 5%);
  --red: #ff9b9b;
  --red-soft: rgb(255 122 131 / 10%);
  --amber: #eac17d;
  --amber-soft: rgb(234 193 125 / 10%);
  --blue: #a4c7ff;
  --blue-soft: rgb(126 173 247 / 12%);
  --heat-0: #202b2a;
  --heat-1: #184335;
  --heat-2: #1a684d;
  --heat-3: #188e64;
  --heat-4: #00bc7d;
  --scrim: rgb(2 5 8 / 70%);
  --spotlight: rgb(0 188 125 / 12%);
  --ambient-opacity: .65;
  --texture-opacity: .16;
  --shadow-card: inset 0 1px 0 var(--highlight), 0 2px 4px rgb(0 0 0 / 10%), 0 8px 24px rgb(0 0 0 / 10%);
  --shadow-popover: inset 0 1px 0 var(--highlight), 0 12px 32px rgb(0 0 0 / 28%), 0 32px 80px rgb(0 0 0 / 32%);
  --shadow: var(--shadow-popover);
  --shadow-button: inset 0 1px 0 rgb(255 255 255 / 20%), 0 2px 3px rgb(0 0 0 / 15%), 0 4px 16px rgb(0 188 125 / 12%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --duration: 240ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"], body.light {
  color-scheme: light;
  --accent-hover: #0ac98a;
  --accent-text: #00764f;
  --accent-soft: rgb(0 151 100 / 7%);
  --accent-border: rgb(0 132 87 / 25%);
  --bg: #f4f6f8;
  --sidebar: #f9fafb;
  --panel: #ffffff;
  --panel2: #edf1f4;
  --surface-elevated: #ffffff;
  --surface-glass: rgb(249 250 251 / 90%);
  --surface-sheen: linear-gradient(145deg, rgb(255 255 255 / 65%), transparent 55%);
  --input-bg: #fbfcfd;
  --popover: #ffffff;
  --text: #1c262e;
  --muted: #576770;
  --faint: #63737d;
  --border: #dce3e8;
  --border-strong: #bcc9d1;
  --hover: rgb(27 52 69 / 4%);
  --highlight: rgb(255 255 255 / 85%);
  --red: #b52a39;
  --red-soft: rgb(181 42 57 / 7%);
  --amber: #8b5a10;
  --amber-soft: rgb(174 113 17 / 8%);
  --blue: #2b5da7;
  --blue-soft: rgb(43 93 167 / 8%);
  --heat-0: #e5ece8;
  --heat-1: #b9e5cf;
  --heat-2: #72cba3;
  --heat-3: #27a875;
  --heat-4: #008e5f;
  --scrim: rgb(18 30 39 / 38%);
  --spotlight: rgb(0 188 125 / 6%);
  --ambient-opacity: .2;
  --texture-opacity: .08;
  --shadow-card: inset 0 1px 0 var(--highlight), 0 2px 3px rgb(24 42 54 / 3%), 0 8px 24px rgb(24 42 54 / 4%);
  --shadow-popover: inset 0 1px 0 var(--highlight), 0 12px 32px rgb(24 42 54 / 8%), 0 32px 80px rgb(24 42 54 / 10%);
  --shadow-button: inset 0 1px 0 rgb(255 255 255 / 28%), 0 2px 3px rgb(0 60 40 / 8%), 0 4px 16px rgb(0 188 125 / 10%);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}
/* Ambient light and texture stay behind all controls, with no transformed ancestors. */
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: min(1200px, 115vw);
  height: 1000px;
  top: -590px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 60%, rgb(0 188 125 / 22%), transparent 55%), radial-gradient(ellipse at 70% 40%, rgb(70 128 170 / 12%), transparent 58%), radial-gradient(ellipse at 12% 20%, rgb(68 220 167 / 9%), transparent 52%), radial-gradient(ellipse at 55% 80%, rgb(0 188 125 / 5%), transparent 65%);
  filter: blur(70px);
  opacity: var(--ambient-opacity);
  animation: ambient-drift 32s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.22' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 160px 160px, 64px 64px, 64px 64px;
  mask-image: linear-gradient(#000, transparent 75%);
  opacity: var(--texture-opacity);
}
[data-spotlight], .stat, .template-card, .group-card, .balance-card, .package, .help-card {
  background-image: radial-gradient(300px circle at var(--spot-x, 50%) var(--spot-y, 0%), var(--spot-color, transparent), transparent 75%), var(--surface-sheen);
}
.spotlight-active { --spot-color: var(--spotlight); }
::selection { background: var(--accent-border); color: var(--text); }
@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-8px, 8px, 0); }
}
@media (pointer: coarse), (max-width: 767px) {
  body::before { animation: none; filter: blur(45px); right: -100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
