@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/ibm-plex-sans-thai-400-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/ibm-plex-sans-thai-400-latin.woff2') 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: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/ibm-plex-sans-thai-500-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/ibm-plex-sans-thai-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/ibm-plex-sans-thai-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/ibm-plex-sans-thai-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/ibm-plex-sans-thai-700-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/ibm-plex-sans-thai-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/kanit-500-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/kanit-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/kanit-600-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/kanit-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }

/* =========================================================================
   02._.math — design tokens (ใช้ร่วมกันทั้ง 02._.library และ 02._.librarian)
   ไฟล์นี้เป็น "แหล่งความจริงเดียว" ของสี ระยะ เงา และจังหวะ motion
   หน้าบ้านใช้ชุดสว่าง (paper) · หลังบ้านใช้ชุดกลางคืน (night) บนโทนเดียวกัน
   ========================================================================= */

:root {
  /* ---- typography ---- */
  --font: 'IBM Plex Sans Thai', 'Sukhumvit Set', 'Thonburi', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Kanit', 'IBM Plex Sans Thai', sans-serif;
  --fs-2xs: 11.5px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-base: 15px;
  --fs-md: 16.5px;
  --fs-lg: 20px;
  --fs-xl: clamp(24px, 2.6vw, 32px);
  --fs-2xl: clamp(28px, 4vw, 46px);
  --fs-3xl: clamp(38px, 6.4vw, 84px);
  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --tracking-tight: -.022em;
  --tracking-wide: .16em;

  /* ---- palette : day (paper) ---- */
  --paper: #f1ece2;
  --paper-2: #e8e2d5;
  --surface: #fffdf8;
  --surface-2: #f8f4eb;
  --ink: #0b0b0c;
  --ink-2: #2b2723;
  --muted: #6c665c;
  --muted-2: #948b7d;
  --line: rgba(11, 11, 12, .10);
  --line-2: rgba(11, 11, 12, .17);

  /* ---- palette : brand ---- */
  --navy: #0e1728;
  --navy-2: #17253c;
  --navy-3: #22334f;
  --gold: #c9a227;
  --gold-2: #e2c15a;
  --gold-3: #a8841a;
  --gold-soft: #f7efd3;
  --gold-ink: #1a1405;

  /* ---- status ---- */
  --ok: #2f6b4f;
  --ok-soft: #e7f0ea;
  --warn: #8a5a10;
  --warn-soft: #f7efdb;
  --danger: #8f2f28;
  --danger-soft: #f7e7e4;

  /* ---- elevation ---- */
  --shadow-1: 0 1px 2px rgba(14, 23, 40, .05);
  --shadow-2: 0 6px 18px rgba(14, 23, 40, .07);
  --shadow-3: 0 18px 44px rgba(14, 23, 40, .11);
  --shadow-4: 0 40px 90px rgba(14, 23, 40, .18);
  --ring: 0 0 0 3px rgba(201, 162, 39, .34);

  /* ---- geometry ---- */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --max: 1280px;
  --gutter: 20px;
  --section: clamp(56px, 8vw, 108px);

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .18s;
  --dur: .42s;
  --dur-slow: .9s;

  /* ---- texture ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---- palette : night (หลังบ้าน + โหมดมืดของหน้าบ้าน) ---- */
[data-theme='night'] {
  --paper: #080b12;
  --paper-2: #0c1119;
  --surface: #101724;
  --surface-2: #151e2d;
  --ink: #f2eee4;
  --ink-2: #cfd6e2;
  --muted: #8b97a9;
  --muted-2: #667086;
  --line: rgba(242, 238, 228, .10);
  --line-2: rgba(242, 238, 228, .18);
  --navy: #f2eee4;
  --navy-2: #ffffff;
  --gold-soft: #2a2413;
  --ok-soft: #10281f;
  --warn-soft: #2b2313;
  --danger-soft: #2c1513;
  --ok: #4ad19a;
  --warn: #e0b356;
  --danger: #ef6a5f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 8px 22px rgba(0, 0, 0, .38);
  --shadow-3: 0 20px 50px rgba(0, 0, 0, .45);
  --shadow-4: 0 44px 100px rgba(0, 0, 0, .55);
}

/* ---- base reset ที่ทั้งสองเว็บใช้ร่วม ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---- ตัวช่วยที่ใช้ทั้งสองฝั่ง ---- */
.grain::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain);
  opacity: .035; mix-blend-mode: multiply;
}
[data-theme='night'] .grain::after { opacity: .05; mix-blend-mode: screen; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* =========================================================================
   shared components (ใช้ร่วมทั้งหน้าบ้านและหลังบ้าน)
   ========================================================================= */
/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .55) 0; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.strong { font-weight: 600; }
.center { text-align: center; }
.full { width: 100%; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-2); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-1); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-size: 16.5px; font-weight: 600; }
.brand-text span { font-family: var(--font); font-size: var(--fs-2xs); color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav a { position: relative; padding: 9px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; transition: color var(--dur-fast), background var(--dur-fast); }
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a.is-active::after { transform: scaleX(1); }
.nav-auth { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.mobile-toggle { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fbf7ee;
  --btn-bd: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 500; font-size: var(--fs-sm); line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 45%, transparent 70%);
  transform: translateX(-120%); transition: opacity var(--dur-fast), transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn:hover::before { opacity: 1; transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface); }
.btn--soft { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--gold-ink); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--muted); min-height: 38px; padding: 8px 12px; }
.btn--quiet:hover { --btn-fg: var(--ink); --btn-bg: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: none; }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: var(--fs-xs); }
.btn--lg { min-height: 54px; padding: 15px 28px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { min-height: 44px; width: 44px; padding: 0; border-radius: var(--r-pill); }
.btn__spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 7px; }
.field > label, .field-label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: var(--fs-2xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input-affix { position: relative; }
.input-affix .input { padding-right: 48px; }
.input-affix button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.input-affix button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-xs); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--navy); }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-xs); font-weight: 500;
  color: var(--ink-2); transition: all var(--dur-fast) var(--ease-out); cursor: pointer;
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fbf7ee; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px;
  font-size: var(--fs-2xs); font-weight: 600; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge--gold { background: var(--gold-soft); color: var(--gold-3); border-color: transparent; }
.badge--navy { background: color-mix(in srgb, var(--navy) 8%, transparent); color: var(--navy); border-color: transparent; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 30px; }
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -.01em; }
.card-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }

/* ---------------------------------------------------------------- headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--gold-3);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .55; }
.display { font-family: var(--display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.section-title { font-family: var(--display); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.12; letter-spacing: var(--tracking-tight); }
.section-text { color: var(--muted); font-size: var(--fs-base); max-width: 62ch; margin-top: 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 56px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-title { font-family: var(--display); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 10px; }
.footer-links { display: grid; gap: 9px; font-size: var(--fs-xs); color: var(--muted); }
.footer-links a { transition: color var(--dur-fast), transform var(--dur-fast); }
.footer-links a:hover { color: var(--ink); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-2xs); color: var(--muted-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------- toast */
#toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: grid; gap: 10px; width: min(370px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--navy); color: #fbf7ee; box-shadow: var(--shadow-3); font-size: var(--fs-xs);
  transform: translateY(12px); opacity: 0; transition: all .3s var(--ease-out);
}
.toast.is-visible { transform: none; opacity: 1; }
.toast--error { background: #5c1f1a; }
.toast--warning { background: #4a3406; }
.toast--info { background: #22283a; }
.toast__icon { margin-top: 1px; opacity: .92; }
.toast__close { margin-left: auto; color: rgba(255, 255, 255, .6); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.toast__close:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------------- modal */
#modal-root { position: relative; z-index: 300; }
.modal-overlay {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 14, 22, .5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .24s var(--ease-out); overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; }
.modal {
  width: min(100%, 580px); background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-4); transform: translateY(16px) scale(.99); transition: transform .3s var(--ease-out);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: none; }
.modal--sm { max-width: 430px; }
.modal--lg { max-width: 800px; }
.modal-head { display: flex; align-items: start; gap: 16px; margin-bottom: 18px; }
.modal-title { font-family: var(--display); font-weight: 600; font-size: 21px; }
.modal-close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--muted); }
.modal-close:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.modal-body { font-size: var(--fs-sm); color: var(--ink-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- misc */
.empty {
  display: grid; place-items: center; gap: 10px; padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2);
}
.empty h3 { font-family: var(--display); font-weight: 600; font-size: var(--fs-md); }
.empty p { color: var(--muted); font-size: var(--fs-xs); max-width: 46ch; }
.empty .icon { color: var(--muted-2); }
.skeleton {
  background: linear-gradient(100deg, var(--paper-2) 20%, var(--surface-2) 40%, var(--paper-2) 60%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -120% 0; } }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-panel { display: grid; place-items: center; gap: 12px; padding: 70px 0; color: var(--muted); font-size: var(--fs-xs); }
.cloudbar {
  display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  background: var(--gold-soft); color: #5c4a12; font-size: var(--fs-2xs); padding: 9px 16px; border-bottom: 1px solid rgba(201, 162, 39, .32);
}
.cloudbar b { font-weight: 700; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 820px) {
  .mobile-toggle { display: grid; }
  .nav.open {
    display: grid; position: absolute; left: 12px; right: 12px; top: calc(68px - 6px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 10px; box-shadow: var(--shadow-3); gap: 2px; z-index: 70;
  }
  .nav.open .nav-auth { display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav.open .nav-auth a { padding: 10px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
  .nav.open .nav-auth .btn { margin: 4px 6px 2px; }
  .desktop-only { display: none !important; }
}
@media (max-width: 620px) {
  :root { --gutter: 14px; }
  .header-inner { gap: 8px; min-height: 60px; }
  .brand-text span { display: none; }
  .brand-text b { font-size: 15px; }
  .header-actions { gap: 6px; }
  .header-actions .btn--sm { min-height: 38px; padding: 7px 13px; }
}
