/* ============================================================
   FamilyGuard — app.css
   Port lengkap design system dari src/app/globals.css (Tailwind v4
   theme tokens) + komponen ui/* (button, input, card, badge, dialog,
   toast, tabs, skeleton, progress, switch, popover, dst.) menjadi CSS
   murni. Mobile-first (aplikasi parenting) — patah di lg (1024px).
   ============================================================ */

/* ---------------- TOKENS (globals.css :root) ---------------- */
:root {
  --radius: 0.65rem;
  --background: oklch(0.985 0.002 155);
  --foreground: oklch(0.19 0.02 160);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.19 0.02 160);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.19 0.02 160);
  --primary: oklch(0.52 0.13 162);
  --primary-foreground: oklch(0.985 0.005 160);
  --secondary: oklch(0.95 0.01 160);
  --secondary-foreground: oklch(0.3 0.03 162);
  --muted: oklch(0.96 0.005 160);
  --muted-foreground: oklch(0.5 0.02 160);
  --accent: oklch(0.94 0.02 162);
  --accent-foreground: oklch(0.3 0.03 162);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.9 0.01 160);
  --input: oklch(0.9 0.01 160);
  --ring: oklch(0.52 0.13 162);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark {
  --background: oklch(0.17 0.01 165);
  --foreground: oklch(0.96 0.005 160);
  --card: oklch(0.21 0.012 165);
  --card-foreground: oklch(0.96 0.005 160);
  --popover: oklch(0.21 0.012 165);
  --popover-foreground: oklch(0.96 0.005 160);
  --primary: oklch(0.65 0.13 162);
  --primary-foreground: oklch(0.17 0.02 165);
  --secondary: oklch(0.27 0.015 165);
  --secondary-foreground: oklch(0.96 0.005 160);
  --muted: oklch(0.27 0.015 165);
  --muted-foreground: oklch(0.68 0.015 160);
  --accent: oklch(0.29 0.02 165);
  --accent-foreground: oklch(0.96 0.005 160);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.65 0.13 162);
}

/* ---------------- BASE ---------------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
* { outline-color: color-mix(in oklab, var(--ring) 50%, transparent); }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p { margin: 0; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.8 0.02 160 / 0.5); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.7 0.03 162 / 0.7); }
.fg-scroll::-webkit-scrollbar { width: 6px; }
.fg-scroll::-webkit-scrollbar-track { background: transparent; }
.fg-scroll::-webkit-scrollbar-thumb { background: oklch(0.75 0.05 162 / 0.45); border-radius: 9999px; }
.fg-scroll::-webkit-scrollbar-thumb:hover { background: oklch(0.65 0.08 162 / 0.7); }

:focus-visible { outline: 2px solid color-mix(in oklab, var(--ring) 60%, transparent); outline-offset: 2px; }

/* ---------------- UTILITIES (subset) ---------------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-words { overflow-wrap: break-word; word-break: break-word; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-16 { top: 4rem; }
.bottom-0 { bottom: 0; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-0 { gap: 0; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-16 { padding-bottom: 4rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-11 { padding-right: 2.75rem; }
.mt-0 { margin-top: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.-mr-1 { margin-right: -0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-72 { width: 18rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xl { max-width: 36rem; }
.min-h-9 { min-height: 2.25rem; }
.min-h-11 { min-height: 2.75rem; }
.min-h-20 { min-height: 5rem; }
.min-h-24 { min-height: 6rem; }
.min-h-screen { min-height: 100vh; }
.min-w-5 { min-width: 1.25rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-emerald-600 { color: oklch(0.596 0.145 163.225); }
.text-emerald-700 { color: oklch(0.508 0.118 165.612); }
.text-emerald-800 { color: oklch(0.432 0.095 166.913); }
.text-emerald-300 { color: oklch(0.846 0.143 157.423); }
.text-amber-600 { color: oklch(0.666 0.179 58.318); }
.text-amber-800 { color: oklch(0.473 0.137 46.201); }
.text-amber-900 { color: oklch(0.414 0.112 45.904); }
.text-amber-200 { color: oklch(0.924 0.12 95.746); }
.text-red-600 { color: oklch(0.577 0.245 27.325); }
.text-red-900 { color: oklch(0.396 0.141 25.723); }
.text-red-200 { color: oklch(0.885 0.062 18.334); }
.text-red-100 { color: oklch(0.936 0.032 17.717); }
.text-red-500 { color: oklch(0.637 0.237 25.331); }
.text-sky-600 { color: oklch(0.588 0.158 241.966); }
.text-sky-300 { color: oklch(0.828 0.111 230.318); }
.text-white { color: #fff; }
.text-black { color: #000; }
.bg-background { background: var(--background); }
.bg-card { background: var(--card); }
.bg-primary { background: var(--primary); }
.bg-primary\/10 { background: color-mix(in oklab, var(--primary) 10%, transparent); }
.bg-primary\/5 { background: color-mix(in oklab, var(--primary) 5%, transparent); }
.bg-secondary { background: var(--secondary); }
.bg-muted { background: var(--muted); }
.bg-muted\/40 { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.bg-accent { background: var(--accent); }
.bg-accent\/30 { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.bg-accent\/40 { background: color-mix(in oklab, var(--accent) 40%, transparent); }
.bg-accent\/50 { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.bg-destructive { background: var(--destructive); }
.bg-destructive\/10 { background: color-mix(in oklab, var(--destructive) 10%, transparent); }
.bg-destructive\/5 { background: color-mix(in oklab, var(--destructive) 5%, transparent); }
.bg-emerald-600 { background: oklch(0.596 0.145 163.225); }
.bg-emerald-500 { background: oklch(0.696 0.17 162.48); }
.bg-emerald-50 { background: oklch(0.979 0.021 166.113); }
.bg-emerald-500\/5 { background: oklch(0.696 0.17 162.48 / 0.05); }
.bg-emerald-500\/10 { background: oklch(0.696 0.17 162.48 / 0.1); }
.bg-emerald-100 { background: oklch(0.95 0.052 163.051); }
.bg-emerald-950\/40 { background: oklch(0.262 0.051 172.552 / 0.4); }
.bg-amber-500 { background: oklch(0.769 0.188 70.08); }
.bg-amber-50 { background: oklch(0.987 0.022 95.277); }
.bg-amber-500\/10 { background: oklch(0.769 0.188 70.08 / 0.1); }
.bg-amber-950\/40 { background: oklch(0.279 0.077 45.635 / 0.4); }
.bg-amber-600 { background: oklch(0.666 0.179 58.318); }
.bg-amber-700 { background: oklch(0.555 0.163 48.998); }
.bg-amber-400 { background: oklch(0.828 0.189 84.429); }
.bg-amber-500\/5 { background: oklch(0.769 0.188 70.08 / 0.05); }
.bg-red-600 { background: oklch(0.577 0.245 27.325); }
.bg-red-700 { background: oklch(0.505 0.213 27.518); }
.bg-red-50 { background: oklch(0.971 0.013 17.38); }
.bg-red-500\/25 { background: oklch(0.637 0.237 25.331 / 0.25); }
.bg-red-600\/95 { background: oklch(0.577 0.245 27.325 / 0.95); }
.bg-red-700\/60 { background: oklch(0.505 0.213 27.518 / 0.6); }
.bg-red-950\/40 { background: oklch(0.254 0.052 17.585 / 0.4); }
.bg-sky-500\/10 { background: oklch(0.685 0.169 237.323 / 0.1); }
.bg-white { background: #fff; }
.bg-black { background: #000; }
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-l { border-left-width: 1px; }
.border-primary { border-color: var(--primary); }
.border-primary\/20 { border-color: color-mix(in oklab, var(--primary) 20%, transparent); }
.border-primary\/40 { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.border-primary\/50 { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.border-border { border-color: var(--border); }
.border-border\/60 { border-color: color-mix(in oklab, var(--border) 60%, transparent); }
.border-destructive { border-color: var(--destructive); }
.border-destructive\/30 { border-color: color-mix(in oklab, var(--destructive) 30%, transparent); }
.border-destructive\/40 { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); }
.border-amber-300 { border-color: oklch(0.879 0.169 91.605); }
.border-amber-500\/40 { border-color: oklch(0.769 0.188 70.08 / 0.4); }
.border-red-300 { border-color: oklch(0.808 0.114 19.571); }
.border-red-400 { border-color: oklch(0.704 0.191 22.216); }
.border-emerald-300 { border-color: oklch(0.869 0.122 163.831); }
.border-emerald-500 { border-color: oklch(0.696 0.17 162.48); }
.border-emerald-500\/40 { border-color: oklch(0.696 0.17 162.48 / 0.4); }
.border-emerald-600\/50 { border-color: oklch(0.596 0.145 163.225 / 0.5); }
.border-emerald-800\/60 { border-color: oklch(0.432 0.095 166.913 / 0.6); }
.border-sky-500\/40 { border-color: oklch(0.685 0.169 237.323 / 0.4); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.border-dashed { border-style: dashed; }
.rounded-md { border-radius: calc(var(--radius) - 4px); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }
.rounded-3xl { border-radius: calc(var(--radius-xl) + 8px); }
.rounded-full { border-radius: 9999px; }
.rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.ring-4 { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.2); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-background\/85 { background: color-mix(in oklab, var(--background) 85%, transparent); }
.bg-background\/80 { background: color-mix(in oklab, var(--background) 80%, transparent); }
.bg-background\/90 { background: color-mix(in oklab, var(--background) 90%, transparent); }
.bg-background\/95 { background: color-mix(in oklab, var(--background) 95%, transparent); }
.bg-card\/80 { background: color-mix(in oklab, var(--card) 80%, transparent); }
.opacity-50 { opacity: 0.5; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.aspect-video { aspect-ratio: 16 / 9; }
.divide-y > * + * { border-top-width: 1px; border-top-color: var(--border); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.grayscale { filter: grayscale(100%); }

/* md: / sm: / lg: breakpoints (subset dipakai tampilan) */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:hidden { display: none; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-col { flex-direction: column; }
  .sm\:items-center { align-items: center; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:max-w-md { max-width: 28rem; }
  .sm\:max-w-lg { max-width: 32rem; }
  .sm\:max-w-4xl { max-width: 56rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 768px) {
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:p-6 { padding: 1.5rem; }
  .md\:h-64 { height: 16rem; }
}
@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-col { flex-direction: column; }
  .lg\:items-center { align-items: center; }
  .lg\:w-72 { width: 18rem; }
  .lg\:w-full { width: 100%; }
  .lg\:sticky { position: sticky; }
  .lg\:top-16 { top: 4rem; }
  .lg\:self-start { align-self: flex-start; }
  .lg\:max-h-calc { max-height: calc(100vh - 4rem); }
  .lg\:overflow-y-auto { overflow-y: auto; }
  .lg\:overflow-x-visible { overflow-x: visible; }
  .lg\:border-b-0 { border-bottom-width: 0; }
  .lg\:border-r { border-right-width: 1px; }
  .lg\:p-0 { padding: 0; }
}

/* ---------------- BUTTON (ui/button.tsx) ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: var(--radius-md); font-size: 0.875rem;
  font-weight: 500; line-height: 1.25rem; height: 2.5rem; padding: 0 1rem;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
  border-width: 1px; border-color: transparent; user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { pointer-events: none; opacity: 0.5; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, black); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, black); }
.btn-outline {
  background: transparent; border-color: var(--input); color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
/* v1.0.95 — tombol teks "Kirim tiket" di header utama (kanan tombol
   Affiliate): ukuran mengikuti tombol Affiliate (btn-sm h-8 px-2.5
   text-xs lewat utility); kelas ini hanya menegaskan ketebalan huruf. */
.btn-kirim-tiket { font-weight: 600; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-destructive { background: var(--destructive); color: var(--destructive-foreground); box-shadow: var(--shadow-sm); }
.btn-destructive:hover { background: color-mix(in oklab, var(--destructive) 90%, black); }
.btn-danger-red { background: oklch(0.577 0.245 27.325); color: #fff; }
.btn-danger-red:hover { background: oklch(0.505 0.213 27.518); }
.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-md); }
.btn-lg { height: 2.75rem; padding: 0 1.5rem; font-size: 0.9375rem; }
.btn-icon { height: 2.5rem; width: 2.5rem; padding: 0; }
.btn svg { width: 1rem; height: 1rem; }
.btn-lg svg { width: 1.25rem; height: 1.25rem; }
.btn-block { width: 100%; }

/* ---------------- INPUT / LABEL / TEXTAREA / SELECT ---------------- */
.label { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1; }
.input, .textarea, .select {
  display: block; width: 100%; height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--input); border-radius: var(--radius-md);
  background: transparent; font-size: 0.875rem; color: var(--foreground);
  transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
.textarea { min-height: 5rem; height: auto; padding: 0.5rem 0.75rem; line-height: 1.5; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' 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 0.625rem center; padding-right: 2.25rem; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.input:disabled, .textarea:disabled, .select:disabled { opacity: 0.5; cursor: not-allowed; }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Switch (ui/switch.tsx) */
.switch {
  display: inline-flex; align-items: center; width: 2.75rem; height: 1.5rem;
  border-radius: 9999px; background: var(--input); border: none; padding: 2px;
  transition: background-color .2s; flex-shrink: 0; cursor: pointer;
}
.switch[data-on="true"] { background: var(--primary); }
.switch .switch-knob {
  width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: #fff;
  box-shadow: var(--shadow-md); transition: transform .2s; transform: translateX(0);
}
.switch[data-on="true"] .switch-knob { transform: translateX(1.25rem); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* Checkbox */
.checkbox {
  width: 1.125rem; height: 1.125rem; border-radius: 4px; border: 1px solid var(--input);
  accent-color: var(--primary); flex-shrink: 0; cursor: pointer;
}

/* Slider (ui/slider.tsx) */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 1.25rem; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 0.5rem; border-radius: 9999px; background: var(--muted); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -0.25rem; width: 1rem; height: 1rem;
  border-radius: 9999px; background: var(--primary); border: 2px solid var(--card);
  box-shadow: var(--shadow-sm);
}
.slider::-moz-range-track { height: 0.5rem; border-radius: 9999px; background: var(--muted); }
.slider::-moz-range-thumb { width: 1rem; height: 1rem; border: 2px solid var(--card); border-radius: 9999px; background: var(--primary); }
.slider:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- CARD (ui/card.tsx) ---------------- */
.card {
  display: flex; flex-direction: column; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--card); color: var(--card-foreground); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-title { font-weight: 600; font-size: 1rem; line-height: 1.5; }
.card-description { color: var(--muted-foreground); font-size: 0.875rem; }
.card-header { display: flex; flex-direction: column; gap: 0.375rem; }
.card-content { display: flex; flex-direction: column; gap: 0.75rem; }
.card-pad-0 { padding: 0; }

/* ---------------- BADGE (ui/badge.tsx) ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px;
  border: 1px solid transparent; padding: 0.125rem 0.625rem; font-size: 0.75rem;
  font-weight: 600; line-height: 1.25rem; white-space: nowrap; width: fit-content;
  transition: background-color .15s;
}
.badge-default { background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.badge-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.badge-emerald { background: oklch(0.596 0.145 163.225); color: #fff; }
.badge-amber { background: oklch(0.769 0.188 70.08); color: #fff; }
.badge-red { background: oklch(0.577 0.245 27.325); color: #fff; }
.badge svg { width: 0.75rem; height: 0.75rem; }

/* ---------------- SEPARATOR ---------------- */
.separator { height: 1px; width: 100%; background: var(--border); flex-shrink: 0; }

/* ---------------- ALERT ---------------- */
.alert {
  position: relative; width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 0.75rem 1rem; font-size: 0.875rem;
}
.alert-destructive {
  border-color: color-mix(in oklab, var(--destructive) 40%, transparent);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
}

/* ---------------- DIALOG / MODAL (ui/dialog.tsx + alert-dialog) ---------------- */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start;
  justify-content: center; padding: 1rem; overflow-y: auto;
  background: rgb(0 0 0 / 0.5); backdrop-filter: blur(2px);
  animation: fg-fade-in .15s ease-out;
}
.dialog-overlay.align-center { align-items: center; }
.dialog {
  position: relative; z-index: 61; width: 100%; max-width: 32rem; margin: auto;
  display: flex; flex-direction: column; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--card); color: var(--card-foreground); padding: 1.5rem;
  box-shadow: var(--shadow-lg); animation: fg-zoom-in .15s ease-out;
}
.dialog-lg { max-width: 56rem; }
.dialog-close {
  position: absolute; right: 0.875rem; top: 0.875rem;
  display: flex; height: 1.75rem; width: 1.75rem; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--muted-foreground);
}
.dialog-close:hover { background: var(--accent); color: var(--accent-foreground); }
.dialog-close svg { width: 1rem; height: 1rem; }
.dialog-title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.dialog-description { color: var(--muted-foreground); font-size: 0.875rem; }
.dialog-header { display: flex; flex-direction: column; gap: 0.375rem; margin-right: 1.75rem; }
.dialog-footer { display: flex; flex-direction: column-reverse; gap: 0.5rem; }
@media (min-width: 640px) {
  .dialog-footer { flex-direction: row; justify-content: flex-end; }
}
@keyframes fg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fg-zoom-in { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ----- Komponen form tab di dalam dialog -----
 * Dialog dirender di document.body (di LUAR wrapper .t-sched/.t-loc dsb.),
 * sehingga gaya berskope tab tidak berlaku di dalamnya. Tanpa blok ini,
 * chip hari (daychip) tampil polos & tanpa tanda terpilih → terlihat
 * "tidak bisa pilih hari". Berlaku untuk semua tab. */
.dialog .lbl { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--foreground); }
.dialog .muted { color: var(--muted-foreground); }
.dialog .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dialog .daychip {
  min-height: 2.75rem; border-radius: 9999px; border: 1px solid var(--border);
  padding: 0 0.875rem; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--muted-foreground);
  transition: background-color .15s, color .15s, border-color .15s;
}
.dialog .daychip.active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.dialog .daychip:hover:not(.active) { background: var(--accent); color: var(--accent-foreground); }
.dialog .daychip:focus-visible { outline: 2px solid color-mix(in oklab, var(--ring) 60%, transparent); outline-offset: 2px; }
.dialog .applist {
  display: flex; flex-direction: column; gap: 0.375rem; max-height: 14rem; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.5rem;
}
.dialog .approw {
  display: flex; min-height: 2.75rem; width: 100%; align-items: center; gap: 0.75rem;
  border: 1px solid transparent; border-radius: 0.5rem; padding: 0.5rem 0.75rem;
  text-align: left; cursor: pointer; background: transparent;
}
.dialog .approw:hover { background: var(--accent); }
.dialog .approw.checked { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.dialog .approw .checkbox {
  display: flex; height: 1.25rem; width: 1.25rem; flex: none; align-items: center; justify-content: center;
  border-radius: 0.375rem; border: 1px solid color-mix(in oklab, var(--muted-foreground) 45%, transparent);
  background: var(--background); color: #fff; font-size: 0.75rem; line-height: 1;
}
.dialog .approw.checked .checkbox { border-color: var(--primary); background: var(--primary); }
.dialog .quick {
  min-height: 2.75rem; border-radius: 9999px; border: 1px solid var(--border);
  padding: 0 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--muted-foreground);
}
.dialog .quick.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.dialog .badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; border: 1px solid transparent; padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.dialog .badge.outline { border-color: var(--border); background: transparent; color: var(--foreground); }
.dialog .badge.red { border-color: oklch(0.75 0.15 25); color: var(--destructive); }
.dialog .badge.green { background: oklch(0.6 0.12 155); color: #fff; }
.dialog .badge.sec { background: var(--muted); color: var(--foreground); }
.dialog .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.dialog .empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border: 1px dashed var(--border); border-radius: 0.75rem; padding: 1.25rem; text-align: center; color: var(--muted-foreground); }

/* ---------------- POPOVER (lonceng notifikasi) ---------------- */
.popover-anchor { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 55;
  width: 360px; max-width: calc(100vw - 2rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--popover); color: var(--popover-foreground);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
  animation: fg-zoom-in .12s ease-out;
}
.notif-item { display: flex; width: 100%; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; text-align: left; transition: background-color .15s; border: 0; background: none; }
.notif-item:hover { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.notif-item.unread { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.notif-icon {
  margin-top: 0.125rem; display: flex; height: 2.25rem; width: 2.25rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary);
}
.notif-icon svg { width: 1rem; height: 1rem; }

/* v1.0.93 — baris notifikasi = tombol utama + tombol hapus terpisah
   (button tidak boleh bersarang di dalam button, jadi dibungkus .notif-row) */
.notif-row { display: flex; align-items: stretch; }
.notif-row .notif-item { flex: 1 1 auto; min-width: 0; width: auto; }
.notif-row.unread .notif-item { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.notif-del {
  display: flex; flex: 0 0 auto; width: 2.75rem; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted-foreground); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.notif-del:hover, .notif-del:focus-visible { color: var(--destructive); background: color-mix(in oklab, var(--destructive) 8%, transparent); }
.notif-del svg { width: 0.875rem; height: 0.875rem; }

/* ---------------- TOAST (sonner → bottom) ---------------- */
#fg-toasts {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; width: calc(100vw - 2rem); max-width: 26rem; pointer-events: none;
}
.toast {
  pointer-events: auto; width: 100%; display: flex; align-items: flex-start; gap: 0.625rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--popover); color: var(--popover-foreground);
  padding: 0.75rem 1rem; box-shadow: var(--shadow-lg); font-size: 0.875rem;
  animation: fg-toast-in .2s ease-out;
}
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.toast .toast-dot { width: 8px; height: 8px; border-radius: 9999px; margin-top: 6px; flex-shrink: 0; }
.toast-success .toast-dot { background: oklch(0.696 0.17 162.48); }
.toast-error .toast-dot { background: var(--destructive); }
.toast-warning .toast-dot { background: oklch(0.769 0.188 70.08); }
.toast-info .toast-dot { background: var(--primary); }
.toast-success { border-color: oklch(0.696 0.17 162.48 / 0.5); }
.toast-error { border-color: color-mix(in oklab, var(--destructive) 50%, transparent); }
.toast-warning { border-color: oklch(0.769 0.188 70.08 / 0.5); }
.toast-description { display: block; color: var(--muted-foreground); font-size: 0.8125rem; margin-top: 0.125rem; }
@keyframes fg-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
 * v1.0.104 — BANNER NOTIFIKASI (permintaan pemilik: notifikasi di
 * APK panel orang tua tidak muncul). Kotak besar TURUN DARI ATAS
 * layar (aman notch/safe-area), ikut tone jenis notifikasi, auto-
 * tutup 6 dtk (SOS 10 dtk), bisa diketuk utk menutup. Bunyi
 * lonceng TIDAK berubah — denting tetap dr dashboard.js.
 * ============================================================ */
#fg-banners {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%; transform: translateX(-50%);
  z-index: 96000; display: flex; flex-direction: column; align-items: center;
  gap: 8px; width: calc(100vw - 24px); max-width: 430px; pointer-events: none;
}
.fg-notif-banner {
  pointer-events: auto; width: 100%; display: flex; align-items: flex-start; gap: 10px;
  text-align: left; border-radius: 14px; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
  font-family: inherit; font-size: 13.5px; line-height: 1.45;
  animation: fg-nb-in 0.22s cubic-bezier(0.2, 0.9, 0.25, 1.08);
}
.fg-notif-banner.out { opacity: 0; transform: translateY(-8px); transition: opacity 0.22s, transform 0.22s; }
@keyframes fg-nb-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.fg-nb-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; }
.fg-nb-ic svg { width: 18px; height: 18px; }
.fg-nb-main { min-width: 0; flex: 1; }
.fg-nb-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.fg-nb-child {
  flex: none; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 9999px;
  border: 1px solid var(--border); color: var(--muted-foreground);
}
.fg-nb-body { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: 12.5px; }
.fg-nb-x { flex: none; color: var(--muted-foreground); font-size: 15px; line-height: 1; margin-top: 2px; }
.fg-nb-error { border-color: color-mix(in oklab, var(--destructive) 55%, transparent); }
.fg-nb-error .fg-nb-ic { background: color-mix(in oklab, var(--destructive) 14%, transparent); color: var(--destructive); }
.fg-nb-warning { border-color: oklch(0.769 0.188 70.08 / 0.5); }
.fg-nb-warning .fg-nb-ic { background: color-mix(in oklab, oklch(0.769 0.188 70.08) 16%, transparent); color: oklch(0.62 0.15 70.08); }
.fg-nb-info .fg-nb-ic { background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }

/* ---------------- TABS (ui/tabs.tsx) ---------------- */
.tabs-list {
  display: flex; height: 2.75rem; width: 100%; align-items: center; justify-content: flex-start;
  gap: 0.25rem; overflow-x: auto; border-radius: var(--radius-lg); background: var(--muted);
  color: var(--muted-foreground); padding: 0.25rem;
}
.tabs-trigger {
  display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; flex-shrink: 0;
  border-radius: calc(var(--radius-md) - 2px); padding: 0.25rem 0.75rem; font-size: 0.875rem;
  font-weight: 500; color: var(--muted-foreground); border: 0; background: transparent;
  min-height: 2.25rem; transition: background-color .15s, color .15s, box-shadow .15s;
}
.tabs-trigger:hover { color: var(--foreground); }
.tabs-trigger[data-active="true"] {
  background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm);
}
.tabs-trigger:disabled { opacity: 0.5; pointer-events: none; }
.tabs-trigger svg { width: 0.875rem; height: 0.875rem; }

/* ---------------- SKELETON (ui/skeleton.tsx) ---------------- */
.skeleton { border-radius: var(--radius-md); background: var(--muted); animation: fg-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes fg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: fg-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: fg-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes fg-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.animate-spin { animation: fg-spin 1s linear infinite; }
@keyframes fg-spin { to { transform: rotate(360deg); } }

/* ---------------- PROGRESS (ui/progress.tsx) ---------------- */
.progress { position: relative; height: 0.5rem; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.progress-bar { height: 100%; width: 100%; border-radius: 9999px; background: var(--primary); transition: width .4s ease; }
.progress.h-1\.5 { height: 0.375rem; }
.progress.h-3 { height: 0.75rem; }
.progress-bar.bg-red-500 { background: oklch(0.637 0.237 25.331); }
.progress-bar.bg-amber-500 { background: oklch(0.769 0.188 70.08); }
.progress-bar.bg-destructive { background: var(--destructive); }

/* ---------------- TOOLTIP ---------------- */
.tooltip-host { position: relative; }
.tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  z-index: 70; white-space: nowrap; border-radius: var(--radius-md);
  background: var(--foreground); color: var(--background); padding: 0.25rem 0.5rem;
  font-size: 0.75rem; box-shadow: var(--shadow-md); pointer-events: none; display: none;
}
.tooltip-host:hover .tooltip, .tooltip-host:focus-within .tooltip { display: block; }

/* ---------------- TABEL-ish LIST ---------------- */
.fg-rows { display: flex; flex-direction: column; }
.fg-rows > * + * { border-top: 1px solid var(--border); }
.fg-row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.5rem;
  font-size: 0.875rem; text-align: left; width: 100%; background: none; border: 0;
}
.fg-row:hover { background: color-mix(in oklab, var(--accent) 40%, transparent); }

/* ============================================================
   LANDING (LandingPage.tsx)
   ============================================================ */
.landing-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent); backdrop-filter: blur(12px);
}
/* Menu hamburger mobile (tampil <640px): panel dropdown menempel di bawah
   header sticky — ketiga aksi (Unduh Aplikasi / Masuk / Daftar) pindah ke sini.
   CATATAN: utilitas Tailwind "hidden sm:inline-flex" TIDAK cukup untuk tombol
   .btn (display-nya menang atas .hidden pada specificity setara), jadi
   dipakai kelas khusus landing-desktop-only/landing-burger. */
.landing-desktop-only { display: none !important; }
@media (min-width: 640px) {
  .landing-desktop-only { display: inline-flex !important; }
  .landing-burger { display: none !important; }
}
.landing-burger {
  display: inline-flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: none; color: var(--foreground);
}
.landing-burger:hover { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.landing-mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  border-bottom: 1px solid var(--border); background: var(--background);
  box-shadow: var(--shadow-lg); padding: 0.75rem 1rem 1rem; gap: 0.5rem;
}
.landing-mobile-menu .btn { width: 100%; justify-content: center; }
.landing-header-inner {
  margin: 0 auto; display: flex; height: 4rem; width: 100%; max-width: 72rem;
  align-items: center; justify-content: space-between; padding: 0 1rem;
}
.brand-badge {
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: var(--radius-xl); background: var(--primary); color: var(--primary-foreground);
}
.brand-badge svg { width: 1.25rem; height: 1.25rem; }
/* v1.0.44 — badge "Beta" kecil, tampil persis di bawah site name
   (header landing, header dashboard orang tua, header panel Mitra). */
.beta-badge {
  display: inline-flex; align-items: center; width: fit-content;
  border-radius: 9999px; padding: 2px 8px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.2;
}
.landing-hero { position: relative; overflow: hidden; }
.landing-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, oklch(0.52 0.13 162 / 0.12), transparent);
}
.landing-hero-grid {
  position: relative; margin: 0 auto; display: grid; width: 100%; max-width: 72rem;
  gap: 2.5rem; padding: 4rem 1rem;
}
@media (min-width: 640px) { .landing-hero-grid { padding: 6rem 1rem; } }
@media (min-width: 1024px) { .landing-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; } }
.section-title { margin: 0 auto 2.5rem; max-width: 42rem; text-align: center; }
.section-title .kicker {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary);
}
.section-title h2 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 640px) { .section-title h2 { font-size: 2.25rem; } }
.section-title .subtitle { margin-top: 0.75rem; color: var(--muted-foreground); }
.faq-card { padding: 0; gap: 0; overflow: hidden; }
.faq-q {
  display: flex; min-height: 2.75rem; width: 100%; align-items: center; justify-content: space-between;
  gap: 0.75rem; border-radius: var(--radius-xl); padding: 0.75rem 1rem; text-align: left;
  font-size: 0.875rem; font-weight: 600; border: 0; background: none;
}
.faq-q:hover { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.faq-q .chev { transition: transform .2s; color: var(--muted-foreground); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { display: flex; gap: 0.5rem; border-top: 1px solid var(--border); padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.landing-cta {
  border-radius: 1.5rem; background: var(--primary); color: var(--primary-foreground);
  padding: 2rem; text-align: center;
}
@media (min-width: 640px) { .landing-cta { padding: 3rem; } }
.step-number {
  display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--primary); color: var(--primary-foreground);
  font-size: 1.125rem; font-weight: 700;
}
.step-bullet {
  display: flex; height: 1.5rem; width: 1.5rem; flex-shrink: 0; align-items: center;
  justify-content: center; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
}

/* ============================================================
   AUTH (AuthView.tsx)
   ============================================================ */
.auth-wrap { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.auth-card { width: 100%; max-width: 24rem; }
.auth-back {
  margin-bottom: 1rem; display: flex; min-height: 2.75rem; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; color: var(--muted-foreground); border: 0; background: none; padding: 0;
}
.auth-back:hover { color: var(--foreground); }
.auth-mode-tabs {
  margin-bottom: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem;
  border-radius: var(--radius-md); background: var(--muted); padding: 0.25rem;
}
.auth-mode-tab {
  min-height: 2.25rem; border-radius: var(--radius-md); padding: 0 0.75rem; font-size: 0.875rem;
  font-weight: 500; color: var(--muted-foreground); border: 0; background: none;
}
.auth-mode-tab[data-active="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
.form-error {
  margin-bottom: 1rem; border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--destructive);
}
.pw-meter { display: flex; gap: 0.25rem; }
.pw-meter span { height: 0.375rem; flex: 1 1 0%; border-radius: 9999px; background: var(--muted); transition: background-color .2s; }
.sec-box { border-radius: var(--radius-md); border: 1px solid var(--border); background: color-mix(in oklab, var(--accent) 30%, transparent); padding: 0.75rem; }
.captcha-box {
  border-radius: var(--radius-md); border: 1px solid oklch(0.769 0.188 70.08 / 0.4);
  background: oklch(0.769 0.188 70.08 / 0.1); padding: 0.75rem;
}
.twofa-box {
  border-radius: var(--radius-md); border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 5%, transparent); padding: 0.75rem;
}
.info-box-emerald {
  display: flex; align-items: flex-start; gap: 0.5rem; border-radius: var(--radius-md);
  border: 1px solid oklch(0.696 0.17 162.48 / 0.4); background: oklch(0.696 0.17 162.48 / 0.1); padding: 0.75rem;
}
.info-box-sky {
  display: flex; align-items: flex-start; gap: 0.5rem; border-radius: var(--radius-md);
  border: 1px solid oklch(0.685 0.169 237.323 / 0.4); background: oklch(0.685 0.169 237.323 / 0.1); padding: 0.75rem;
}
.info-box-primary {
  display: flex; align-items: flex-start; gap: 0.375rem; border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 5%, transparent); padding: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground);
}
.link-btn { font-weight: 500; color: var(--primary); border: 0; background: none; padding: 0; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   DASHBOARD (Dashboard.tsx)
   ============================================================ */
.dash-shell { display: flex; min-height: 100vh; flex-direction: column; }
.dash-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent); backdrop-filter: blur(12px);
}
.dash-header-inner {
  margin: 0 auto; display: flex; height: 4rem; width: 100%; max-width: 80rem;
  align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0 1rem;
}
.realtime-online { display: flex; align-items: center; gap: 0.25rem; color: oklch(0.596 0.145 163.225); }
.realtime-off { display: flex; align-items: center; gap: 0.25rem; color: var(--muted-foreground); }
.avatar-initial {
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: color-mix(in oklab, var(--primary) 10%, transparent);
  font-size: 0.875rem; font-weight: 700; color: var(--primary);
}
/* v1.0.106 — Tombol hamburger "menu anak" di header (hanya < 1024px) +
 * DRAWER menu anak. Bilah lama ".rail-toggle" ("Menu Anak & Panel")
 * DIHAPUS — permintaan pemilik: "hilangkan dropdown Menu Anak & Panel;
 * sidebar menu anak bikin buka". Kini: ketuk tombol hamburger → rail
 * tampil sbg lapisan tetap di kiri layar (drawer) dgn area gelap; ketuk
 * chip anak → panel anak langsung terbuka & drawer tertutup. */
.rail-open-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; width: 2.75rem; flex: none; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--background); color: var(--foreground);
}
.rail-open-btn:hover { background: var(--accent); }
@media (min-width: 1024px) { .rail-open-btn { display: none !important; } }
@media (max-width: 1023.98px) {
  .dash-rail.rail-drawer {
    display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 58;
    width: min(19rem, 88vw); max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--card); border-bottom: 0; border-right: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(9, 30, 60, 0.32);
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    animation: fg-drawer-in .22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .rail-drawer-backdrop {
    position: fixed; inset: 0; z-index: 57; background: rgba(9, 30, 60, 0.45);
    backdrop-filter: blur(2px); animation: fg-fade-in .15s ease-out;
  }
  .rail-drawer-close {
    position: fixed; top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(min(19rem, 88vw) + 10px); z-index: 58; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    height: 2.25rem; width: 2.25rem; border-radius: 9999px; border: 1px solid var(--border);
    background: var(--card); color: var(--foreground);
    box-shadow: 0 4px 14px rgba(9, 30, 60, 0.25);
  }
}
@keyframes fg-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.dash-body { margin: 0 auto; display: flex; width: 100%; max-width: 80rem; flex: 1 1 0%; flex-direction: column; }
@media (min-width: 1024px) { .dash-body { flex-direction: row; } }
.dash-rail {
  flex-shrink: 0; border-bottom: 1px solid var(--border); padding: 1rem;
}
@media (min-width: 1024px) {
  .dash-rail {
    position: sticky; top: 4rem; max-height: calc(100vh - 4rem); width: 18rem;
    align-self: flex-start; overflow-y: auto; border-bottom-width: 0; border-right-width: 1px;
  }
}
.rail-title { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--muted-foreground); }
.child-chip {
  display: flex; min-height: 2.75rem; flex-shrink: 0; cursor: pointer; user-select: none;
  align-items: center; gap: 0.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
}
.child-chip:hover { background: var(--accent); }
.child-chip[data-selected="true"] { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.child-chip .avatar-emoji { font-size: 1.25rem; line-height: 1; }
.child-chip .online-dot { margin-left: auto; display: inline-block; height: 0.5rem; width: 0.5rem; border-radius: 9999px; }
.child-chip .online-dot.on { background: oklch(0.696 0.17 162.48); }
.child-chip .online-dot.off { background: color-mix(in oklab, var(--muted-foreground) 30%, transparent); }
.child-delete-btn {
  display: flex; height: 1.75rem; width: 1.75rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  border: 0; background: none; margin-left: 0.125rem; margin-right: -0.25rem;
}
.child-delete-btn:hover { background: oklch(0.971 0.013 17.38); color: oklch(0.577 0.245 27.325); }
.child-delete-btn svg { width: 0.875rem; height: 0.875rem; }
.dash-main { min-width: 0; flex: 1 1 0%; padding: 1rem; }
@media (min-width: 768px) { .dash-main { padding: 1.5rem; } }
.dash-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--background); }
.dash-footer-inner {
  margin: 0 auto; display: flex; width: 100%; max-width: 80rem; flex-direction: column;
  align-items: center; padding: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground);
}
.dev-link {
  font-size: 11px; color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
  border: 0; background: none;
  /* Tap target nyaman di ponsel: padding + min-height 44px (kepatuhan sentuh),
     dikompensasi margin negatif agar tata letak footer tidak bergeser. */
  padding: 0.625rem 0.875rem; margin: -0.625rem -0.875rem;
  cursor: pointer; border-radius: var(--radius-md);
}
.dev-link:hover { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 4px; }
/* v1.0.65 — tautan menu footer landing (kolom Navigasi / Dokumen Hukum /
   Bantuan & baris legal ringkas). Meniru gaya .dev-link namun untuk menu
   footer 4 kolom: teks 13px redup, hover hijau primer + garis bawah. */
.foot-link {
  display: inline-flex; align-items: center; text-align: left;
  font-size: 13px; color: var(--muted-foreground);
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  border-radius: var(--radius-sm); min-height: 20px;
}
.foot-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
/* v1.0.108 — card "Tentang Kami" di footer landing: ATURAN PENGAMAN.
   Insiden: ikon perisai dipanggil tanpa kelas ukuran — SVG tanpa
   width/height melebar memenuhi kartu (svg max-width:100% + flex-shrink:0
   global) dan teks "Tentang Kami" tergencet jadi tegak di tepi kanan.
   Sekarang ikonnya PUNYA kelas h-4 w-4, dan aturan ini menjamin svg apa
   pun di dalam card selalu berukuran wajar + ikon judul berwarna primer. */
.about-card svg { width: 1rem; height: 1rem; flex: none; }
.about-card > p:first-child svg { color: var(--primary); }
.about-card .foot-link { color: var(--primary); font-weight: 600; }
.banner-license {
  margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  border-radius: var(--radius-lg); border: 1px solid oklch(0.808 0.114 19.571);
  background: oklch(0.971 0.013 17.38); padding: 0.75rem; color: oklch(0.396 0.141 25.723);
}
.banner-cache {
  margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem;
  border-radius: var(--radius-lg); border: 1px solid oklch(0.879 0.169 91.605);
  background: oklch(0.987 0.022 95.277); padding: 0.75rem; color: oklch(0.414 0.112 45.904);
}
/* v1.0.82 — Pengumuman di bawah header panel orang tua (teks dikelola
   Panel Developer). Gaya info hijau lembut selaras tema; slot mengikuti
   lebar .dash-header-inner agar rata dengan isi header di atasnya. */
.announce-slot { margin: 0 auto; width: 100%; max-width: 80rem; padding: 0 1rem; }
.banner-announce {
  margin-top: 0.75rem; display: flex; align-items: flex-start; gap: 0.75rem;
  border-radius: var(--radius-lg); border: 1px solid oklch(0.905 0.093 164.15);
  background: oklch(0.979 0.021 166.113); padding: 0.75rem 0.875rem;
  color: oklch(0.432 0.095 166.913);
}
.banner-announce > svg { color: oklch(0.596 0.145 163.225); margin-top: 0.125rem; }
.dark .banner-announce {
  border-color: oklch(0.696 0.17 162.48 / 0.35);
  background: oklch(0.432 0.095 166.913 / 0.14);
  color: oklch(0.905 0.093 164.15);
}
.banner-license .dark-banner, .dark .banner-license { border-color: oklch(0.637 0.237 25.331 / 0.4); }

/* SOS overlay layar penuh (SosOverlay.tsx) */
.sos-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: oklch(0.577 0.245 27.325 / 0.95); backdrop-filter: blur(4px); padding: 1rem;
}
.sos-card {
  width: 100%; max-width: 28rem; border-radius: 1.5rem; background: oklch(0.505 0.213 27.518 / 0.6);
  padding: 2rem; text-align: center; color: #fff;
  box-shadow: var(--shadow-2xl); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.2), var(--shadow-2xl);
}
.sos-title { font-size: 2.25rem; font-weight: 800; letter-spacing: 0.1em; }
.sos-dismiss {
  margin: 0 auto; display: flex; min-height: 2.75rem; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; color: oklch(0.936 0.032 17.717); border: 0; background: none;
}
.sos-dismiss:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Peta (FamilyMap.tsx) — kelas ikon Leaflet */
.fg-icon-wrap { background: transparent; border: none; }
.fg-pin-circle { position: relative; z-index: 2; display: flex; height: 34px; width: 34px; align-items: center; justify-content: center; border-radius: 9999px; border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(15,23,42,.35); font-size: 17px; line-height: 1; }
.fg-ping { position: absolute; z-index: 1; left: 50%; top: 50%; height: 34px; width: 34px; margin: -17px 0 0 -17px; border-radius: 9999px; animation: fg-map-pulse 1.8s cubic-bezier(0,0,.2,1) infinite; }
.fg-ping--fast { animation-duration: .9s; }
@keyframes fg-map-pulse { 0% { transform: scale(.55); opacity: .55; } 70%, 100% { transform: scale(2); opacity: 0; } }
.fg-dot { height: 12px; width: 12px; border-radius: 9999px; border: 2px solid #ffffff; box-shadow: 0 1px 3px rgba(15,23,42,.4); }
.fg-dot-label { margin-top: 2px; white-space: nowrap; font-size: 10px; line-height: 14px; color: #334155; background: rgba(255,255,255,.92); border-radius: 4px; padding: 0 4px; box-shadow: 0 1px 2px rgba(15,23,42,.25); }
.fg-pin-drop { width: 30px; height: 30px; transform: rotate(-45deg); border-radius: 50% 50% 50% 0; border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; }
.fg-pin-drop > span { transform: rotate(45deg); font-size: 13px; line-height: 1; }
.fg-map-wrap { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); }
.fg-map-wrap .leaflet-container { z-index: 0; height: 100%; width: 100%; }
.fg-map-coords {
  position: absolute; bottom: 0.5rem; left: 0.5rem; z-index: 500; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--background) 90%, transparent); padding: 0.375rem 0.625rem;
  font-family: ui-monospace, monospace; font-size: 0.75rem; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
/* v1.0.105 — PETA MENUTUPI FORM "TAMBAH ZONA" (laporan pemilik +
 * screenshot: peta Leaflet & marker anak menimpa dialog, form tak
 * terlihat di bawah "Warna zona"). PENYEBAB: pane & kontrol Leaflet
 * memakai z-index 400–1000 (leaflet.css); bila wadah peta tidak punya
 * stacking context sendiri, nilai setinggi itu lolos ke root dokumen
 * dan MENGALAHKAN .dialog-overlay (z-index 60) — peta kode lokasi &
 * peta riwayat (location.js) tidak dibungkus .fg-map-wrap sehingga
 * lolos kasus ini. PERBAIKAN GLOBAL: setiap .leaflet-container
 * dikunci dalam stacking context-nya sendiri (position:relative +
 * z-index:0) — di mana pun peta dipasang (kode lokasi, riwayat,
 * pratinjau zona, ringkasan), pane/kontrolnya tidak mungkin menimpa
 * dialog, banner notifikasi, toast, atau menu bawah. Urutan z-index
 * DI DALAM peta (tile < overlay < marker < popup < kontrol) tidak
 * berubah sama sekali. */
.leaflet-container { position: relative; z-index: 0; font: inherit; }

/* v1.0.111 — LAYAR PENUH PETA (permintaan pemilik: "pada semua fitur map
 * tambahkan agar bisa full screen"). Tombol ⛶ (FG.mapFullscreen, core.js)
 * di pojok kanan-atas SEMUA peta. Dua mode:
 * - .fg-map-fs-active : peta aktif layar penuh — mode APA PUN (API asli
 *   browser maupun CSS fallback); dipaksa memenuhi layar, sudut & bingkai
 *   dilepas, ikon tombol berganti ke "keluar layar penuh";
 * - .fg-map-fs        : mode CADANGAN CSS (iOS Safari / WebView APK yang
 *   menolak Fullscreen API) — overlay fixed di atas seluruh UI (z 95000,
 *   SENGAJA di bawah banner notifikasi 96000 agar SOS tetap terlihat);
 * - body.fg-map-fs-lock : gulir halaman dikunci selama layar penuh. */
.fg-fs-control { border: none; }
.fg-fs-control .fg-fs-btn {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  color: var(--foreground, #0f172a); background: var(--card, #ffffff);
}
.fg-fs-control .fg-fs-btn .fg-fs-ico { width: 16px; height: 16px; }
.fg-fs-control .fg-fs-btn:hover { background: var(--muted, #f1f5f9); }
.fg-map-fs-active, .fg-map-fs {
  position: fixed !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important;
  margin: 0 !important; border: none !important; border-radius: 0 !important;
  z-index: 95000 !important;
  background: var(--card, #ffffff);
}
body.fg-map-fs-lock { overflow: hidden !important; }

/* v1.0.112 — LAYER SATELIT PETA (permintaan pemilik: "pada semua fitur map
 * tambahkan layar satelit"). Kontrol segmented "Peta | Satelit" (FG.mapSatellite,
 * core.js) di pojok kanan-atas SEMUA peta — menumpuk di bawah tombol layar
 * penuh. Tombol aktif berwarna primary; hover hanya utk tombol non-aktif. */
.fg-ls-control { border: none; background: transparent; }
.fg-ls-control .fg-ls-inner {
  display: flex; overflow: hidden; border-radius: 4px;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.25);
}
.fg-ls-control .fg-ls-btn {
  display: flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--foreground, #0f172a); background: var(--card, #ffffff); text-decoration: none; cursor: pointer;
}
.fg-ls-control .fg-ls-btn + .fg-ls-btn { border-left: 1px solid var(--border, #e2e8f0); }
.fg-ls-control .fg-ls-btn.fg-ls-active {
  background: var(--primary, #0d9488); color: var(--primary-foreground, #ffffff);
}
.fg-ls-control .fg-ls-btn:hover:not(.fg-ls-active) { background: var(--muted, #f1f5f9); }

/* ============================================================
   DEV CONSOLE (DevConsole.tsx — panel dibuat agent 2-h)
   ============================================================ */
.dev-shell { min-height: 100vh; background: oklch(0.19 0.02 160); color: oklch(0.96 0.005 160); }
.dev-panel { border: 1px solid oklch(1 0 0 / 12%); border-radius: var(--radius-lg); background: oklch(0.21 0.012 165); padding: 1rem; }
.dev-input, .dev-select, .dev-textarea {
  display: block; width: 100%; border-radius: var(--radius-md); border: 1px solid oklch(1 0 0 / 16%);
  background: oklch(0.17 0.01 165); color: oklch(0.96 0.005 160); padding: 0.5rem 0.625rem; font-size: 0.8125rem;
}
.dev-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--radius-md);
  border: 1px solid oklch(1 0 0 / 16%); background: oklch(0.27 0.015 165); color: inherit;
  padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500;
}
.dev-btn:hover { background: oklch(0.29 0.02 165); }
.dev-btn-accent { background: var(--primary); border-color: transparent; color: var(--primary-foreground); }
.dev-btn-accent:hover { background: color-mix(in oklab, var(--primary) 85%, white); }
.dev-btn-danger { background: var(--destructive); border-color: transparent; color: #fff; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.dev-table th, .dev-table td { border-bottom: 1px solid oklch(1 0 0 / 12%); padding: 0.375rem 0.5rem; text-align: left; vertical-align: top; }
.dev-table th { color: oklch(0.68 0.015 160); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.625rem; }
.dev-code { font-family: ui-monospace, monospace; font-size: 0.6875rem; background: oklch(0.17 0.01 165); border-radius: 6px; padding: 0.25rem 0.375rem; display: block; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.dev-badge { display: inline-flex; border-radius: 9999px; padding: 0.0625rem 0.5rem; font-size: 0.625rem; font-weight: 700; background: oklch(0.29 0.02 165); }
.dev-tabbtn {
  border-radius: var(--radius-md); padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500;
  border: 1px solid oklch(1 0 0 / 12%); background: none; color: oklch(0.68 0.015 160);
}
.dev-tabbtn[data-active="true"] { background: oklch(0.27 0.015 165); color: inherit; }

/* Loading layar penuh (FullPageSkeleton) */
.fp-skeleton-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent); backdrop-filter: blur(8px);
}

/* ============================================================
 * v1.0.101 — WARNA HALAMAN PER ANAK (permintaan pemilik):
 * setiap anak diberi HUE aksen sendiri (--fg-child-h, diset
 * dashboard.js saat anak dipilih & disimpan di localStorage).
 * Semua komponen dgn var(--primary) (tab aktif, chip anak
 * terpilih, tombol utama, switch, badge, slider, progress…)
 * otomatis ikut warna anak → warna menu tab & halaman anak A
 * ≠ B ≠ C. Hue 162 = hijau toska lama (anak pertama, tampilan
 * awal tidak berubah). Mode gelap memakai lightness .65.
 * v1.0.103 — laporan pemilik: warna "terlalu lembut" → KROMA
 * DIPERKUAT 0.13 → 0.19 (lebih pekat/jelas) & tint latar halaman
 * dinaikkan 7% → 12% (gelap 10% → 15%) supaya perbedaan warna
 * halaman antar-anak langsung terlihat; garis aksen rail 40% → 70%.
 * ============================================================ */
body[data-child-hue] {
  --primary: oklch(0.52 0.19 var(--fg-child-h, 162));
  --ring: oklch(0.52 0.19 var(--fg-child-h, 162));
  background: color-mix(in oklab, oklch(0.52 0.19 var(--fg-child-h, 162)) 12%, var(--background));
}
.dark body[data-child-hue], body.dark[data-child-hue] {
  --primary: oklch(0.65 0.19 var(--fg-child-h, 162));
  --ring: oklch(0.65 0.19 var(--fg-child-h, 162));
  background: color-mix(in oklab, oklch(0.55 0.15 var(--fg-child-h, 162)) 15%, var(--background));
}
/* Daftar anak (rail): garis aksen kiri warna MILIK masing-masing
 * anak — A/B/C terlihat beda warna bahkan sebelum dipilih. */
.child-chip {
  border-left-width: 4px;
  border-left-color: color-mix(in oklab, oklch(0.52 0.19 var(--fg-child-h, 162)) 70%, transparent);
}
body[data-child-hue] .child-chip[data-selected="true"] { border-left-color: var(--primary); }

/* ============================================================
 * v1.0.101 — CHIP "?" BERKEDIP + KOTAK BANTUAN
 * "Ponsel Anak Tidak Terhubung Internet atau ponsel sedang
 * tidak aktif": lingkaran dgn "?" di dalamnya berkedip di
 * ujung teks status; diklik → kotak berisi "Lakukan Ini:" +
 * "Solusi:" + ajakan kirim tiket / chat CS.
 * ============================================================ */
.fg-help-q {
  width: 20px; height: 20px; border-radius: 9999px; border: 1.8px solid currentColor;
  background: transparent; color: inherit; display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 800; line-height: 1;
  padding: 0; cursor: pointer; flex: none;
  animation: fg-help-blink 1.15s ease-in-out infinite;
}
.fg-help-q:hover { background: color-mix(in oklab, currentColor 16%, transparent); }
.fg-help-q:active { transform: scale(0.92); }
@keyframes fg-help-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.22; } }
@media (prefers-reduced-motion: reduce) { .fg-help-q { animation: none; } }
.fg-help-backdrop {
  position: fixed; inset: 0; z-index: 99900; background: rgba(2, 6, 23, 0.52);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fg-help-fade 0.16s ease-out;
}
@keyframes fg-help-fade { from { opacity: 0; } to { opacity: 1; } }
.fg-help-box {
  width: min(430px, 100%); max-height: min(78vh, 640px); overflow-y: auto;
  background: var(--card); color: var(--card-foreground); text-align: left;
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.4);
  padding: 16px 18px 14px; font-size: 13.5px; line-height: 1.55;
  animation: fg-help-pop 0.18s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}
@keyframes fg-help-pop { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.fg-help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fg-help-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px; line-height: 1.3;
}
.fg-help-head h3 svg { width: 18px; height: 18px; flex: none; }
.fg-help-x {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--muted-foreground); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.fg-help-x:hover { background: var(--accent); color: var(--accent-foreground); }
.fg-help-box h4 { margin: 13px 0 5px; font-size: 13.5px; font-weight: 800; }
.fg-help-box ol { margin: 0; padding-left: 20px; }
.fg-help-box ol li { margin: 3px 0; }
.fg-help-box ol li::marker { font-weight: 800; color: var(--primary); }
.fg-help-foot {
  margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--muted-foreground);
}
