@font-face {
  font-family: 'Anuphan'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/anuphan-thai.woff2?v=8a03cb45df9d') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Anuphan'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/anuphan-latin.woff2?v=3a98eb4685d9') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/manrope-latin.woff2?v=a30ddcd34970') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #0b1017;
  --card-bg: #14202eee;
  --card-hover: #172231;
  --card-border: #253243;
  --text-main: #edf2f7;
  --text-muted: #b0bfd1;
  --accent: #67dbc1;
  --accent-glow: #67dbc118;
  --success: #67dbc1;
  --danger: #ff919b;
  --warning: #eac386;
  --font-mono: 'Cascadia Code', 'Consolas', 'Anuphan', monospace;
  --font-sans: Manrope, 'Anuphan', system-ui, sans-serif;
  --sidebar-bg: #101b28f5;
  --code-bg: #0d151f;
  --panel: var(--card-bg);
  --card: var(--card-bg);
  --bg-soft: #0f1a27;
  --border: var(--card-border);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --primary: var(--accent);
  --primary-weak: #183d38;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-main); font-family: Manrope, 'Anuphan', system-ui, sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; isolation: isolate; }
body, #authOverlay {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 5% 0%, #27b98d21, transparent 48%), radial-gradient(ellipse at 100% 32%, #477cf523, transparent 48%), radial-gradient(ellipse at 40% 100%, #47b8c30c, transparent 55%);
  background-attachment: fixed;
}
body::before, #authOverlay::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(#99c7ee0b 1px, transparent 1px), linear-gradient(90deg, #99c7ee0b 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(135deg, #000, transparent 75%);
}
body::after, #authOverlay::after {
  content: ''; position: fixed; pointer-events: none; z-index: -1;
  width: min(80vw, 1000px); height: min(80vw, 1000px); right: -28vw; top: -30vw;
  border: 1px solid #81d6ce1c; border-radius: 50%;
  box-shadow: 0 0 0 60px #81d6ce05, 0 0 0 120px #81d6ce04, 0 0 120px #41c7ad10;
  animation: ambient-drift 26s ease-in-out infinite alternate;
}
@keyframes ambient-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4vw, 5vh, 0); } }
button, input, select, textarea { font-family: var(--font-sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Shared presentation for QR login, documentation and API playground. */
.page-docs { --sidebar-width: 310px; }
.page-docs aside { backdrop-filter: blur(16px); }
.page-docs main, .page-playground main { min-width: 0; }
.page-docs nav a { gap: 6px; font-size: 16px; }
.page-docs nav section { padding: 0; margin-bottom: 28px; }
.page-docs nav .method-badge { min-width: 54px; font-size: 14px; }
.page-docs .sidebar-header { padding: 28px 22px; }
.page-docs .sidebar-header .logo { flex-shrink: 0; }
.page-docs .sidebar-header h1 { font-size: 20px; -webkit-text-fill-color: var(--text-main); }
.page-docs .endpoint-header { flex-wrap: wrap; gap: 12px; }
.page-docs .endpoint-path { max-width: 100%; overflow-wrap: anywhere; }
.page-docs .table-container { overflow-x: auto; }
.page-docs pre code { padding-top: 38px; }
.page-docs .tabbar { overflow-x: auto; }
.page-docs .tabbar button { flex-shrink: 0; white-space: nowrap; }
.page-docs .note { background: #67dbc10b; }
.page-docs code { overflow-wrap: anywhere; }
.page-playground .btn, .page-docs-login button { color: #07261f; min-height: 46px; height: auto; }
.page-playground .btn:hover, .page-docs-login button:hover { background: #8ce7d2; }
.page-playground .step-num { width: 32px; height: 32px; flex-shrink: 0; color: #07261f; }
.page-playground .card, .page-playground .field { min-width: 0; }
.page-playground .card-header { gap: 12px; flex-wrap: wrap; }
.page-playground .brand { min-width: 0; }
.page-playground .logo { flex-shrink: 0; }
.page-playground h1 { font-size: 24px; }
.page-playground input, .page-playground select { width: 100%; min-width: 0; font-size: 16px; }
.page-playground pre { padding-top: 56px; }
.page-playground .controls-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.page-playground .result-container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.page-docs-login .login-card { width: min(100%, 480px); padding: 36px; border-radius: 18px; backdrop-filter: blur(12px); }
.page-docs-login h1 { font-size: 30px; }
.page-docs-login p { line-height: 1.85; }
.page-docs-login input { height: 52px; font-size: 16px; }
.page-docs-login button { padding: 12px 16px; font-size: 16px; }
.page-docs-login .logo { border-radius: 12px; background: linear-gradient(135deg, #67dbc1, #5786e2); }
.page-qr .title { font-size: clamp(22px, 3vw, 28px); }
.page-qr .btn { font-size: 16px; min-height: 46px; }
.page-qr .grid > * { min-width: 0; }
.page-qr .log { min-height: 150px; font-family: var(--font-mono); font-size: 15px; line-height: 1.8; }
.language-switch button { font-family: var(--font-sans); font-size: 15px; min-height: 40px; }
.language-switch button[aria-pressed="true"] { color: #07261f; }
.language-switch { z-index: 1200; }
.page-qr .wrap { padding-bottom: 96px; }
body:has(.modal-overlay:not(.hidden)) .modal-overlay { padding-bottom: 86px; }
body:has(.modal-overlay:not(.hidden)) .modal-overlay .modal-card { max-height: calc(100dvh - 100px); }

@media (max-width: 1024px) {
  .page-docs aside { display: none; }
}
@media (max-width: 700px) {
  .page-docs .content-container { padding: 32px 18px; }
  .page-docs h2 { font-size: 28px; }
  .page-docs h3 { font-size: 24px; }
  .page-docs th, .page-docs td { padding: 12px; }
  .page-docs table { min-width: 560px; }
  .page-docs td:first-child code { white-space: nowrap; overflow-wrap: normal; }
  .page-playground .header-content { flex-wrap: wrap; gap: 14px; }
  .page-playground .container { padding: 0 18px; }
  .page-playground h2 { font-size: 23px; align-items: flex-start; }
  .page-playground .brand h1 { font-size: 21px; }
  .page-docs-login .login-card { padding: 26px; }
  .page-qr .wrap { padding: 24px 14px 96px; }
  .page-qr .grid { padding: 14px; }
  .page-qr .card__head { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
