/* Sanaloka Partners — design system v3: tokens + shared components.
   Source of truth for every --sl-* token and .sl-* class. Spec:
   docs/superpowers/specs/2026-10-07-partners-design-system-v3-design.md
   Living reference: /design-system

   Direction: white/mist canvas, warm near-black ink, hairline structure,
   ONE emphasis device (solid ink fill), terracotta as a small accent only.
   Filled controls are always achromatic (primary = ink, destructive = risk).
   No gradients, no decorative blur, no pure-black backgrounds.

   Theme is controlled by assets/theme.js via [data-theme] on <html>, with
   @media (prefers-color-scheme) as the no-JS fallback. The four theme blocks
   below MUST stay in sync: light values in :root and [data-theme="light"],
   dark values in the media query and [data-theme="dark"].
   Hex literals live ONLY in these four blocks. */

/* ============================================================
   1. Theme tokens (colour + shadow)
   ============================================================ */

:root {
  color-scheme: light;
  --sl-paper: #FFFFFF;
  --sl-canvas: #F7F6F4;
  --sl-surface: #FFFFFF;
  --sl-surface-container: #F7F6F4;
  --sl-surface-container-high: #EFEDE9;
  --sl-ink: #141414;
  --sl-ink-strong: #141414;
  --sl-on-strong: #FFFFFF;
  --sl-strong-hover: #000000;
  --sl-ink-soft: #5A5550;
  --sl-secondary: #5A5550;
  --sl-outline: #7A736C;
  --sl-ink-faint: #9A938C;
  --sl-hairline: #E8E6E2;
  --sl-hairline-strong: #D4D1CB;
  --sl-outline-variant: #E8E6E2;
  --sl-accent: #B5614A;
  --sl-accent-deep: #9E4F3B;
  --sl-accent-glow: rgba(181, 97, 74, .08);
  --sl-accent-tint: #F7EBE6;
  --sl-danger: #A8411F;
  --sl-danger-light: #FBEAE3;
  --sl-success: #376B52;
  --sl-success-light: #E7F2EC;
  --sl-info: #3A5A78;
  --sl-info-light: #E9EFF4;
  --sl-warning: #806519;
  --sl-warning-light: #F5EFDF;
  --sl-danger-solid: #A8411F;
  --sl-danger-solid-hover: #8F3A1B;
  /* Supporting tokens (not in the spec table; derived from it). */
  --sl-on-danger: #FFFFFF;
  --sl-on-strong-soft: #B5AFA7;
  --sl-on-strong-line: #3D3935;
  --sl-overlay: rgba(20, 20, 20, .45);
  --sl-ring: rgba(20, 20, 20, .12);
  --sl-ring-danger: rgba(168, 65, 31, .2);
  --sl-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5550' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --sl-shadow-card: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --sl-shadow-lift: 0 2px 4px rgba(20, 20, 20, .04), 0 18px 40px rgba(20, 20, 20, .10);
  --sl-shadow-editorial: 0 1px 3px rgba(20, 20, 20, .06);
  --sl-shadow-float: 0 12px 40px rgba(20, 20, 20, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --sl-paper: #121110;
    --sl-canvas: #121110;
    --sl-surface: #1B1A18;
    --sl-surface-container: #232120;
    --sl-surface-container-high: #2B2927;
    --sl-ink: #F2F0EC;
    --sl-ink-strong: #F2F0EC;
    --sl-on-strong: #141414;
    --sl-strong-hover: #FFFFFF;
    --sl-ink-soft: #B5AFA7;
    --sl-secondary: #B5AFA7;
    --sl-outline: #9A938C;
    --sl-ink-faint: #7D776F;
    --sl-hairline: #2E2B28;
    --sl-hairline-strong: #3D3935;
    --sl-outline-variant: #2E2B28;
    --sl-accent: #D98A71;
    --sl-accent-deep: #E0A18C;
    --sl-accent-glow: rgba(217, 138, 113, .14);
    --sl-accent-tint: #2E211C;
    --sl-danger: #F0997B;
    --sl-danger-light: #3A1F16;
    --sl-success: #8FC7A8;
    --sl-success-light: #16291F;
    --sl-info: #9DBBD6;
    --sl-info-light: #18242F;
    --sl-warning: #D9BC6A;
    --sl-warning-light: #2C2412;
    --sl-danger-solid: #C2552F;
    --sl-danger-solid-hover: #B04B28;
    --sl-on-danger: #FFFFFF;
    --sl-on-strong-soft: #5A5550;
    --sl-on-strong-line: #D4D1CB;
    --sl-overlay: rgba(0, 0, 0, .6);
    --sl-ring: rgba(242, 240, 236, .12);
    --sl-ring-danger: rgba(240, 153, 123, .28);
    --sl-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B5AFA7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --sl-shadow-card: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .18);
    --sl-shadow-lift: 0 2px 4px rgba(0, 0, 0, .12), 0 18px 40px rgba(0, 0, 0, .30);
    --sl-shadow-editorial: 0 1px 3px rgba(0, 0, 0, .18);
    --sl-shadow-float: 0 12px 40px rgba(0, 0, 0, .42);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sl-paper: #121110;
  --sl-canvas: #121110;
  --sl-surface: #1B1A18;
  --sl-surface-container: #232120;
  --sl-surface-container-high: #2B2927;
  --sl-ink: #F2F0EC;
  --sl-ink-strong: #F2F0EC;
  --sl-on-strong: #141414;
  --sl-strong-hover: #FFFFFF;
  --sl-ink-soft: #B5AFA7;
  --sl-secondary: #B5AFA7;
  --sl-outline: #9A938C;
  --sl-ink-faint: #7D776F;
  --sl-hairline: #2E2B28;
  --sl-hairline-strong: #3D3935;
  --sl-outline-variant: #2E2B28;
  --sl-accent: #D98A71;
  --sl-accent-deep: #E0A18C;
  --sl-accent-glow: rgba(217, 138, 113, .14);
  --sl-accent-tint: #2E211C;
  --sl-danger: #F0997B;
  --sl-danger-light: #3A1F16;
  --sl-success: #8FC7A8;
  --sl-success-light: #16291F;
  --sl-info: #9DBBD6;
  --sl-info-light: #18242F;
  --sl-warning: #D9BC6A;
  --sl-warning-light: #2C2412;
  --sl-danger-solid: #C2552F;
  --sl-danger-solid-hover: #B04B28;
  --sl-on-danger: #FFFFFF;
  --sl-on-strong-soft: #5A5550;
  --sl-on-strong-line: #D4D1CB;
  --sl-overlay: rgba(0, 0, 0, .6);
  --sl-ring: rgba(242, 240, 236, .12);
  --sl-ring-danger: rgba(240, 153, 123, .28);
  --sl-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B5AFA7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --sl-shadow-card: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .18);
  --sl-shadow-lift: 0 2px 4px rgba(0, 0, 0, .12), 0 18px 40px rgba(0, 0, 0, .30);
  --sl-shadow-editorial: 0 1px 3px rgba(0, 0, 0, .18);
  --sl-shadow-float: 0 12px 40px rgba(0, 0, 0, .42);
}

:root[data-theme="light"] {
  color-scheme: light;
  --sl-paper: #FFFFFF;
  --sl-canvas: #F7F6F4;
  --sl-surface: #FFFFFF;
  --sl-surface-container: #F7F6F4;
  --sl-surface-container-high: #EFEDE9;
  --sl-ink: #141414;
  --sl-ink-strong: #141414;
  --sl-on-strong: #FFFFFF;
  --sl-strong-hover: #000000;
  --sl-ink-soft: #5A5550;
  --sl-secondary: #5A5550;
  --sl-outline: #7A736C;
  --sl-ink-faint: #9A938C;
  --sl-hairline: #E8E6E2;
  --sl-hairline-strong: #D4D1CB;
  --sl-outline-variant: #E8E6E2;
  --sl-accent: #B5614A;
  --sl-accent-deep: #9E4F3B;
  --sl-accent-glow: rgba(181, 97, 74, .08);
  --sl-accent-tint: #F7EBE6;
  --sl-danger: #A8411F;
  --sl-danger-light: #FBEAE3;
  --sl-success: #376B52;
  --sl-success-light: #E7F2EC;
  --sl-info: #3A5A78;
  --sl-info-light: #E9EFF4;
  --sl-warning: #806519;
  --sl-warning-light: #F5EFDF;
  --sl-danger-solid: #A8411F;
  --sl-danger-solid-hover: #8F3A1B;
  --sl-on-danger: #FFFFFF;
  --sl-on-strong-soft: #B5AFA7;
  --sl-on-strong-line: #3D3935;
  --sl-overlay: rgba(20, 20, 20, .45);
  --sl-ring: rgba(20, 20, 20, .12);
  --sl-ring-danger: rgba(168, 65, 31, .2);
  --sl-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5550' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --sl-shadow-card: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --sl-shadow-lift: 0 2px 4px rgba(20, 20, 20, .04), 0 18px 40px rgba(20, 20, 20, .10);
  --sl-shadow-editorial: 0 1px 3px rgba(20, 20, 20, .06);
  --sl-shadow-float: 0 12px 40px rgba(20, 20, 20, .14);
}

/* ============================================================
   2. Scales (identical in light and dark)
   ============================================================ */

:root {
  /* Type path: Partners = Plus Jakarta Sans everywhere. --sl-font-accent is
     kept only for .sl-accent-word on consumer surfaces (.sl-consumer). */
  --sl-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sl-font-display: var(--sl-font-body);
  --sl-font-accent: 'Instrument Serif', Georgia, serif;
  --sl-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale: size, with -lh (line-height) and -ls (letter-spacing) partners. */
  --sl-text-2xs: 11px;      --sl-text-2xs-lh: 1.4;   /* badge */
  --sl-text-xs: 12px;       --sl-text-xs-lh: 1.4;    /* caption, table header */
  --sl-text-sm: 13px;       --sl-text-sm-lh: 1.45;   /* label, secondary */
  --sl-text-base: 14px;     --sl-text-base-lh: 1.5;  /* app body */
  --sl-text-md: 16px;       --sl-text-md-lh: 1.55;   /* reading body; inputs on mobile */
  --sl-title: 20px;         --sl-title-lh: 1.3;
  --sl-heading: 24px;       --sl-heading-lh: 1.25;   --sl-heading-ls: -0.01em;
  --sl-display-l: 32px;     --sl-display-l-lh: 1.1;  --sl-display-l-ls: -0.02em;
  --sl-display-xl: 40px;    --sl-display-xl-lh: 1.05; --sl-display-xl-ls: -0.03em;
  /* Pre-v3 names still read by existing pages. */
  --sl-card-text: 24px;     --sl-card-text-lh: 1.35; --sl-card-text-ls: -0.01em;
  --sl-caption: 13px;       --sl-caption-lh: 1.4;

  --sl-radius-sm: 6px;
  --sl-radius-input: 8px;
  --sl-radius-btn: 14px;
  --sl-radius-card: 20px;
  --sl-radius-pill: 999px;

  --sl-space-1: 4px;
  --sl-space-2: 8px;
  --sl-space-3: 12px;
  --sl-space-4: 16px;
  --sl-space-5: 24px;
  --sl-space-6: 32px;
  --sl-space-7: 48px;
  --sl-space-8: 64px;

  /* Control heights. Touch target >= 44px: sm is for dense desktop toolbars
     and tables only and grows to md at <= 640px. */
  --sl-control-sm: 36px;
  --sl-control-md: 44px;
  --sl-control-lg: 52px;

  --sl-z-sticky: 40;
  --sl-z-header: 50;
  --sl-z-dropdown: 200;
  --sl-z-drawer: 300;
  --sl-z-modal: 400;
  --sl-z-toast: 500;

  /* Motion: transform / opacity / colour only. Never `transition: all`. */
  --sl-dur-fast: 150ms;
  --sl-dur: 200ms;
  --sl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Consumer type override (Care and future consumer lines). The page loads
   Cabinet Grotesk + Instrument Serif + Inter itself. Not used by Partners. */
.sl-consumer {
  --sl-font-display: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
  --sl-font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   3. Global base
   ============================================================ */

/* Every .sl-* dimension (44px controls, 100%-wide inputs) assumes border-box. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Low specificity on purpose: a page that sets its own body font keeps it. */
body {
  font-family: var(--sl-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html body {
  background-color: var(--sl-paper) !important;
  color: var(--sl-ink);
  transition: background-color var(--sl-dur) ease, color var(--sl-dur) ease;
}

/* App surfaces (staff dashboard, client portal, assessment portal after
   login) sit on the mist canvas with white cards. Also usable on a section. */
.sl-app-canvas { background-color: var(--sl-canvas); }
html body.sl-app-canvas { background-color: var(--sl-canvas) !important; }

:focus-visible {
  outline: 2px solid var(--sl-ink);
  outline-offset: 2px;
}

::selection {
  background: var(--sl-accent-tint);
  color: var(--sl-ink);
}

@keyframes sl-spin { to { transform: rotate(360deg); } }
@keyframes sl-pulse { 50% { opacity: .5; } }
@keyframes sl-fade-in { from { opacity: 0; } }
@keyframes sl-rise-in { from { opacity: 0; transform: translateY(8px); } }

/* Remap the raw Tailwind arbitrary-value utility classes used across pages
   (these bypass tailwind.config so they need an explicit dark override). */
:root[data-theme="dark"] .bg-white { background-color: var(--sl-surface) !important; }
:root[data-theme="dark"] .bg-\[\#F0F0F0\] { background-color: var(--sl-surface-container) !important; }
:root[data-theme="dark"] .bg-\[\#F9F5F4\],
:root[data-theme="dark"] .bg-\[\#FFF8F6\] { background-color: var(--sl-surface-container) !important; }
:root[data-theme="dark"] .border-\[\#EBEBEB\],
:root[data-theme="dark"] .border-\[\#F0D5CE\] { border-color: var(--sl-outline-variant) !important; }
:root[data-theme="dark"] .text-\[\#6B6460\] { color: var(--sl-ink-soft) !important; }
:root[data-theme="dark"] .bg-\[\#B5614A\] { background-color: var(--sl-accent) !important; }

/* ============================================================
   4. Utilities
   ============================================================ */

.sl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* First focusable element of every page; targets <main id="…">. */
.sl-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--sl-z-toast);
  padding: 10px 16px;
  border-radius: var(--sl-radius-btn);
  background: var(--sl-ink-strong);
  color: var(--sl-on-strong);
  font-size: var(--sl-text-base);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.sl-skip-link:focus { transform: none; }
.sl-skip-link:hover { background: var(--sl-strong-hover); }

.sl-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 640px) {
  .sl-container { padding-left: 20px; padding-right: 20px; }
}

.sl-divider {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--sl-hairline);
}

/* Vertical rhythm: .sl-stack-N = column with gap --sl-space-N. */
.sl-stack-1, .sl-stack-2, .sl-stack-3, .sl-stack-4,
.sl-stack-5, .sl-stack-6, .sl-stack-7, .sl-stack-8 {
  display: flex;
  flex-direction: column;
}
.sl-stack-1 { gap: var(--sl-space-1); }
.sl-stack-2 { gap: var(--sl-space-2); }
.sl-stack-3 { gap: var(--sl-space-3); }
.sl-stack-4 { gap: var(--sl-space-4); }
.sl-stack-5 { gap: var(--sl-space-5); }
.sl-stack-6 { gap: var(--sl-space-6); }
.sl-stack-7 { gap: var(--sl-space-7); }
.sl-stack-8 { gap: var(--sl-space-8); }

/* Serif accent word (consumer surfaces only, 1-2 words). Not for Partners. */
.sl-accent-word {
  font-family: var(--sl-font-accent);
  font-style: italic;
  font-weight: 400;
}

/* Anything that is literally a document: credential numbers, timestamps, reference codes. */
.sl-mono { font-family: var(--sl-font-mono); font-size: .9375em; letter-spacing: 0; }

/* Links in running text are underlined; terracotta context uses the text-safe accent-deep.
   Links inside feedback text sit on tinted backgrounds, so they inherit the colour. */
.sl-prose a:not([class]) {
  color: var(--sl-accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sl-prose a:not([class]):hover { text-decoration-thickness: 2px; }
.sl-callout a:not([class]), .sl-hint a:not([class]), .sl-error a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Arch motif (gate-arch derivative line art, never a modification of the
   logo files). Inline SVG, currentColor. */
.sl-arch { color: var(--sl-hairline); display: block; }

/* Scroll entrance (marketing pages only). */
.sl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--sl-ease-out), transform .8s var(--sl-ease-out);
}
.sl-reveal.in-view { opacity: 1; transform: translateY(0); }

/* Theme toggle (self-injected by theme.js on every page). */
.sl-theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* Below drawers, modals and toasts so it never floats over (or catches
     clicks meant for) an open overlay. */
  z-index: var(--sl-z-dropdown);
  width: 42px;
  height: 42px;
  border-radius: var(--sl-radius-pill);
  border: 1px solid var(--sl-hairline);
  background: var(--sl-surface);
  color: var(--sl-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--sl-shadow-card);
  transition: transform var(--sl-dur) var(--sl-ease-out), background-color var(--sl-dur) ease, color var(--sl-dur) ease;
}
.sl-theme-toggle:hover { transform: translateY(-2px); background: var(--sl-surface-container); }
.sl-theme-toggle:active { transform: translateY(0); }
.sl-theme-toggle svg { display: block; }
@media (max-width: 640px) {
  .sl-theme-toggle { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}

/* ============================================================
   5. Buttons
   md 44 (default) / sm 36 / lg 52. Filled = ink or risk, never terracotta.
   Icon-only buttons (.sl-btn-icon) REQUIRE aria-label.
   ============================================================ */

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--sl-control-md);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--sl-radius-btn);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease, border-color var(--sl-dur-fast) ease, transform var(--sl-dur-fast) ease;
}
.sl-btn > svg { flex: none; }
.sl-btn:active { transform: translateY(1px); }

.sl-btn-primary { background: var(--sl-ink-strong); color: var(--sl-on-strong); }
.sl-btn-primary:hover { background: var(--sl-strong-hover); }

.sl-btn-secondary {
  background: var(--sl-surface);
  color: var(--sl-ink-strong);
  border-color: var(--sl-hairline-strong);
}
.sl-btn-secondary:hover { background: var(--sl-surface-container); }
.sl-btn-secondary:active { background: var(--sl-surface-container-high); }

.sl-btn-ghost { background: transparent; color: var(--sl-ink-soft); }
.sl-btn-ghost:hover { background: var(--sl-surface-container); color: var(--sl-ink); }
.sl-btn-ghost:active { background: var(--sl-surface-container-high); }

.sl-btn-danger { background: var(--sl-danger-solid); color: var(--sl-on-danger); }
/* A fill swap, not a filter: a filter would also dim the white label. */
.sl-btn-danger:hover { background: var(--sl-danger-solid-hover); }

.sl-btn-sm { min-height: var(--sl-control-sm); padding: 6px 14px; font-size: var(--sl-text-sm); }
.sl-btn-lg { min-height: var(--sl-control-lg); padding: 12px 28px; font-size: var(--sl-text-md); }
.sl-btn-block { display: flex; width: 100%; }

.sl-btn-icon { width: var(--sl-control-md); padding: 0; flex: none; }
.sl-btn-icon.sl-btn-sm { width: var(--sl-control-sm); }
.sl-btn-icon.sl-btn-lg { width: var(--sl-control-lg); }

.sl-btn[disabled],
.sl-btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.sl-btn-primary[disabled],
.sl-btn-primary[aria-disabled="true"] { background: var(--sl-ink-strong); }
.sl-btn-secondary[disabled],
.sl-btn-secondary[aria-disabled="true"] { background: var(--sl-surface); }
.sl-btn-ghost[disabled],
.sl-btn-ghost[aria-disabled="true"] { background: transparent; color: var(--sl-ink-soft); }
.sl-btn-danger[disabled],
.sl-btn-danger[aria-disabled="true"] { background: var(--sl-danger-solid); }

/* Busy: 14px spinner left of the label; the control ignores clicks. */
.sl-btn[aria-busy="true"] { pointer-events: none; }
.sl-btn[aria-busy="true"]::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sl-spin .7s linear infinite;
}
.sl-btn-icon[aria-busy="true"] > * { display: none; }

@media (max-width: 640px) {
  .sl-btn-sm { min-height: var(--sl-control-md); }
  .sl-btn-icon.sl-btn-sm { width: var(--sl-control-md); }
}

/* ============================================================
   6. Forms
   ============================================================ */

.sl-field { display: block; min-width: 0; }

.sl-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--sl-text-sm);
  font-weight: 500;
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}
.sl-req { margin-left: 2px; color: var(--sl-danger); }

.sl-hint {
  margin: 6px 0 0;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}

/* Hidden until a control in the same field is [aria-invalid="true"]. */
.sl-error {
  display: none;
  margin: 6px 0 0;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-danger);
}
[aria-invalid="true"] ~ .sl-error,
.sl-field:has([aria-invalid="true"]) .sl-error { display: block; }

.sl-input,
.sl-select,
.sl-textarea {
  display: block;
  width: 100%;
  min-height: var(--sl-control-md);
  padding: 10px 14px;
  border: 1px solid var(--sl-hairline-strong);
  border-radius: var(--sl-radius-input);
  background-color: var(--sl-surface);
  color: var(--sl-ink);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  line-height: 1.5;
  transition: border-color var(--sl-dur-fast) ease, box-shadow var(--sl-dur-fast) ease, background-color var(--sl-dur-fast) ease;
}
.sl-input::placeholder,
.sl-textarea::placeholder { color: var(--sl-outline); opacity: 1; }

.sl-input:hover,
.sl-select:hover,
.sl-textarea:hover { border-color: var(--sl-ink-faint); }

/* The ring replaces the global outline; a transparent outline is kept so
   forced-colors mode still draws a focus indicator. */
.sl-input:focus,
.sl-select:focus,
.sl-textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--sl-ink);
  box-shadow: 0 0 0 3px var(--sl-ring);
}

.sl-input[aria-invalid="true"],
.sl-select[aria-invalid="true"],
.sl-textarea[aria-invalid="true"] { border-color: var(--sl-danger); }
.sl-input[aria-invalid="true"]:focus,
.sl-select[aria-invalid="true"]:focus,
.sl-textarea[aria-invalid="true"]:focus {
  border-color: var(--sl-danger);
  box-shadow: 0 0 0 3px var(--sl-ring-danger);
}

.sl-input:disabled,
.sl-select:disabled,
.sl-textarea:disabled {
  background-color: var(--sl-surface-container);
  border-color: var(--sl-hairline);
  color: var(--sl-outline);
  cursor: not-allowed;
}
.sl-input[readonly],
.sl-textarea[readonly] { background-color: var(--sl-surface-container); }

/* A <select> cannot carry a pseudo-element, so the chevron is a themed
   background image held in the --sl-chevron token. */
.sl-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: var(--sl-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.sl-textarea { min-height: 96px; resize: vertical; }

.sl-input-sm,
.sl-select-sm {
  min-height: var(--sl-control-sm);
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: var(--sl-text-sm);
}

/* 16px on small screens stops iOS zooming the page on focus. */
@media (max-width: 640px) {
  .sl-input,
  .sl-select,
  .sl-textarea { font-size: var(--sl-text-md); }
  .sl-input-sm,
  .sl-select-sm { min-height: var(--sl-control-md); }
}

/* Checkbox / radio: <label class="sl-check"><input type="checkbox"> Teks</label>.
   Label and control share one click target. */
.sl-check,
.sl-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--sl-control-md);
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  color: var(--sl-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sl-check input,
.sl-radio input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sl-ink-strong);
  cursor: pointer;
}
.sl-check:hover input:not(:disabled),
.sl-radio:hover input:not(:disabled) { accent-color: var(--sl-strong-hover); }
.sl-check input:disabled,
.sl-radio input:disabled { cursor: not-allowed; }
.sl-check:has(input:disabled),
.sl-radio:has(input:disabled) { color: var(--sl-outline); cursor: not-allowed; }

/* ============================================================
   7. Surfaces: card, stat
   ============================================================ */

.sl-card {
  background: var(--sl-surface);
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-shadow-card);
}
.sl-card-flat { box-shadow: none; }
.sl-card-mist { background: var(--sl-surface-container); box-shadow: none; }

/* The ink card: at most ONE per screen. Supported content: text, .sl-stat,
   and one inverted .sl-btn-primary (white fill, ink text, styled below).
   The text tokens are re-pointed so those read on the ink fill. Nested
   inputs, chips, badges, tables and secondary surfaces are NOT supported
   inside it (they would render light-on-light). */
.sl-card-ink {
  background: var(--sl-ink-strong);
  border-color: transparent;
  color: var(--sl-on-strong);
  box-shadow: none;
  --sl-ink: var(--sl-on-strong);
  --sl-ink-soft: var(--sl-on-strong-soft);
  --sl-secondary: var(--sl-on-strong-soft);
  --sl-outline: var(--sl-on-strong-soft);
  --sl-hairline: var(--sl-on-strong-line);
  --sl-outline-variant: var(--sl-on-strong-line);
}
.sl-card-ink :focus-visible { outline-color: var(--sl-on-strong); }
.sl-card-ink .sl-btn-primary { background: var(--sl-on-strong); color: var(--sl-ink-strong); }
.sl-card-ink .sl-btn-primary:hover { background: var(--sl-on-strong); opacity: .88; }
.sl-card-ink .sl-btn-primary[disabled],
.sl-card-ink .sl-btn-primary[aria-disabled="true"] { opacity: .45; }

.sl-card-interactive {
  cursor: pointer;
  transition: transform var(--sl-dur) var(--sl-ease-out), box-shadow var(--sl-dur) var(--sl-ease-out), border-color var(--sl-dur) ease;
}
a.sl-card-interactive { display: block; color: inherit; text-decoration: none; }
.sl-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--sl-shadow-lift);
  border-color: var(--sl-hairline-strong);
}
.sl-card-interactive:active { transform: translateY(0); box-shadow: var(--sl-shadow-card); }
.sl-card-interactive[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--sl-shadow-card);
}

.sl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}
.sl-card-body { padding: 20px 24px; }
@media (max-width: 640px) {
  .sl-card-header { padding: 16px 16px 0; }
  .sl-card-body { padding: 16px; }
}

.sl-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sl-stat-label {
  font-size: var(--sl-text-sm);
  font-weight: 500;
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}
.sl-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--sl-ink);
}
.sl-stat-sub {
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}

/* ============================================================
   8. Badge, chip, tabs, segmented
   ============================================================ */

/* Status pill: tint background + matching semantic text. Never a border. */
.sl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-surface-container);
  color: var(--sl-ink-soft);
  font-size: var(--sl-text-2xs);
  font-weight: 600;
  line-height: var(--sl-text-2xs-lh);
  white-space: nowrap;
}
.sl-badge-neutral { background: var(--sl-surface-container); color: var(--sl-ink-soft); }
.sl-badge-good { background: var(--sl-success-light); color: var(--sl-success); }
.sl-badge-warning { background: var(--sl-warning-light); color: var(--sl-warning); }
.sl-badge-risk { background: var(--sl-danger-light); color: var(--sl-danger); }
.sl-badge-info { background: var(--sl-info-light); color: var(--sl-info); }
.sl-badge-accent { background: var(--sl-accent-tint); color: var(--sl-accent-deep); }
.sl-badge-ink { background: var(--sl-ink-strong); color: var(--sl-on-strong); }

/* Filter chip: a <button aria-pressed>. Selected = ink fill. */
.sl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--sl-control-sm);
  padding: 6px 14px;
  border: 1px solid var(--sl-hairline-strong);
  border-radius: var(--sl-radius-pill);
  background: var(--sl-surface);
  color: var(--sl-ink);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-sm);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease, border-color var(--sl-dur-fast) ease;
}
.sl-chip:hover { background: var(--sl-surface-container); }
.sl-chip:active { background: var(--sl-surface-container-high); }
.sl-chip[aria-pressed="true"] {
  background: var(--sl-ink-strong);
  border-color: var(--sl-ink-strong);
  color: var(--sl-on-strong);
}
.sl-chip[aria-pressed="true"]:hover { background: var(--sl-strong-hover); border-color: var(--sl-strong-hover); }
.sl-chip:disabled { opacity: .45; cursor: not-allowed; }
.sl-chip:disabled:hover { background: var(--sl-surface); }
.sl-chip[aria-pressed="true"]:disabled:hover { background: var(--sl-ink-strong); border-color: var(--sl-ink-strong); }

/* Tabs: role=tablist > role=tab. Arrow keys via SLUI.tabs(tablistEl). */
.sl-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--sl-hairline);
}
.sl-tabs::-webkit-scrollbar { display: none; }
.sl-tab {
  flex: none;
  min-height: var(--sl-control-md);
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--sl-ink-soft);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--sl-dur-fast) ease, border-color var(--sl-dur-fast) ease;
}
.sl-tab:hover { color: var(--sl-ink); }
.sl-tab:active { color: var(--sl-ink); border-bottom-color: var(--sl-hairline-strong); }
.sl-tab:focus-visible { outline-offset: -2px; }
.sl-tab[aria-selected="true"] {
  color: var(--sl-ink);
  font-weight: 600;
  border-bottom-color: var(--sl-ink-strong);
}
.sl-tab:disabled,
.sl-tab[aria-disabled="true"] { opacity: .45; cursor: not-allowed; color: var(--sl-ink-soft); }

/* Segmented control: .sl-segmented > button[aria-pressed]. */
.sl-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-btn);
  background: var(--sl-surface);
}
.sl-segmented > button {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sl-ink-soft);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-sm);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease;
}
.sl-segmented > button:hover { background: var(--sl-surface-container); color: var(--sl-ink); }
.sl-segmented > button:active { background: var(--sl-surface-container-high); }
.sl-segmented > button[aria-pressed="true"] { background: var(--sl-ink-strong); color: var(--sl-on-strong); }
.sl-segmented > button[aria-pressed="true"]:hover { background: var(--sl-strong-hover); }
.sl-segmented > button:disabled { opacity: .45; cursor: not-allowed; }
.sl-segmented > button:disabled:hover { background: transparent; color: var(--sl-ink-soft); }
.sl-segmented > button[aria-pressed="true"]:disabled:hover { background: var(--sl-ink-strong); color: var(--sl-on-strong); }

@media (max-width: 640px) {
  .sl-chip,
  .sl-segmented > button { min-height: var(--sl-control-md); }
}

/* ============================================================
   9. Table
   Wide tables scroll inside .sl-table-wrap, never the page.
   ============================================================ */

.sl-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-card);
  background: var(--sl-surface);
}
.sl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  color: var(--sl-ink);
}
.sl-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 16px;
  background: var(--sl-surface-container);
  color: var(--sl-ink-soft);
  font-size: var(--sl-text-xs);
  font-weight: 600;
  line-height: var(--sl-text-xs-lh);
  text-align: left;
  white-space: nowrap;
}
/* Cells do not wrap: a wide table scrolls inside its wrap instead of
   squeezing names onto two lines. Long-text cells opt out with .sl-wrap. */
.sl-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--sl-hairline);
  vertical-align: middle;
  white-space: nowrap;
}
.sl-table .sl-wrap { white-space: normal; min-width: 16rem; }
.sl-table tbody tr { transition: background-color var(--sl-dur-fast) ease; }
.sl-table tbody tr:hover { background: var(--sl-surface-container); }
.sl-table th.sl-num,
.sl-table td.sl-num,
.sl-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   10. Overlays: modal, drawer, menu, toast
   Open/close with SLUI.modal (assets/ui.js): it toggles .is-open and the
   hidden attribute, traps focus, handles Escape and locks body scroll.
   ============================================================ */

.sl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--sl-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--sl-overlay);
  overscroll-behavior: contain;
  /* iOS Safari only dispatches a delegated click on a "clickable" element;
     the pointer cursor makes the overlay one. The panel resets it. */
  cursor: pointer;
  animation: sl-fade-in var(--sl-dur) ease-out;
}
.sl-modal-overlay > * { cursor: auto; }
.sl-modal-overlay[hidden] { display: none; }

.sl-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-card);
  background: var(--sl-surface);
  color: var(--sl-ink);
  box-shadow: var(--sl-shadow-float);
  animation: sl-rise-in var(--sl-dur) var(--sl-ease-out);
}
.sl-modal-sm { max-width: 448px; }
.sl-modal-lg { max-width: 800px; }

.sl-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 12px;
}
.sl-modal-title {
  margin: 0;
  font-size: var(--sl-title);
  font-weight: 700;
  line-height: var(--sl-title-lh);
  letter-spacing: -0.01em;
  color: var(--sl-ink);
}
.sl-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
}
.sl-modal > .sl-modal-body:first-child { padding-top: 20px; }
.sl-modal-message {
  margin: 0;
  color: var(--sl-ink-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.sl-modal-message + .sl-field { margin-top: 12px; }
.sl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--sl-hairline);
}
.sl-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--sl-control-sm);
  height: var(--sl-control-sm);
  margin: -6px -8px 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--sl-radius-btn);
  background: transparent;
  color: var(--sl-ink-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease;
}
.sl-modal-close:hover { background: var(--sl-surface-container); color: var(--sl-ink); }
.sl-modal-close:active { background: var(--sl-surface-container-high); }
.sl-modal-close:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .sl-modal-header { padding: 16px 16px 12px; }
  .sl-modal-body { padding: 4px 16px 16px; }
  .sl-modal-footer { flex-direction: column-reverse; padding: 16px; }
  .sl-modal-footer > .sl-btn { width: 100%; }
  .sl-modal-close { width: var(--sl-control-md); height: var(--sl-control-md); margin: -8px -8px 0 0; }
}

/* Side panel. Default docks left; .sl-drawer-right docks right. Usually the
   child of a .sl-modal-overlay, opened through SLUI.modal. */
.sl-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: var(--sl-z-drawer);
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sl-surface);
  color: var(--sl-ink);
  border-right: 1px solid var(--sl-hairline);
  box-shadow: var(--sl-shadow-float);
  animation: sl-fade-in var(--sl-dur) ease-out;
}
.sl-drawer-right { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--sl-hairline); }
.sl-drawer[hidden] { display: none; }

/* Scrim behind a drawer opened WITHOUT a .sl-modal-overlay (e.g. the
   .sl-sidenav drawer). SLUI.modal inserts it right before the panel and
   removes it on close; it catches the dismissing click so nothing
   underneath is activated. */
.sl-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--sl-z-drawer) - 1);
  background: var(--sl-overlay);
  overscroll-behavior: contain;
  cursor: pointer; /* iOS Safari: see .sl-modal-overlay */
  animation: sl-fade-in var(--sl-dur) ease-out;
}

/* Menu: role=menu > role=menuitem. Position it from the page. */
.sl-menu {
  z-index: var(--sl-z-dropdown);
  min-width: 200px;
  padding: 4px;
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-btn);
  background: var(--sl-surface);
  color: var(--sl-ink);
  box-shadow: var(--sl-shadow-float);
}
.sl-menu[hidden] { display: none; }
.sl-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sl-ink);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--sl-dur-fast) ease;
}
.sl-menu-item > svg { flex: none; color: var(--sl-ink-soft); }
.sl-menu-item:hover,
.sl-menu-item:focus-visible { background: var(--sl-surface-container); }
.sl-menu-item:focus-visible { outline-offset: -2px; }
.sl-menu-item:active { background: var(--sl-surface-container-high); }
.sl-menu-item:disabled,
.sl-menu-item[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; }

/* Toast: region created once by SLUI.toast(). */
.sl-toast-region {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--sl-z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.sl-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 8px 12px 16px;
  border: 1px solid var(--sl-hairline);
  border-radius: var(--sl-radius-btn);
  background: var(--sl-surface);
  color: var(--sl-ink);
  box-shadow: var(--sl-shadow-float);
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  pointer-events: auto;
  animation: sl-rise-in var(--sl-dur) var(--sl-ease-out);
}
/* Tone is carried by a full 1px semantic border, not by a side bar. */
.sl-toast-info { border-color: var(--sl-info); }
.sl-toast-good { border-color: var(--sl-success); }
.sl-toast-risk { border-color: var(--sl-danger); }
.sl-toast-message { flex: 1 1 auto; min-width: 0; padding: 4px 0; overflow-wrap: anywhere; }
.sl-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--sl-radius-input);
  background: transparent;
  color: var(--sl-ink-soft);
  cursor: pointer;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease;
}
.sl-toast-close:hover { background: var(--sl-surface-container); color: var(--sl-ink); }
.sl-toast-close:active { background: var(--sl-surface-container-high); }
@media (max-width: 640px) {
  /* Clear the theme toggle in the bottom-right corner. */
  .sl-toast-region { bottom: max(64px, env(safe-area-inset-bottom)); }
  .sl-toast-close { width: var(--sl-control-md); height: var(--sl-control-md); margin: -8px 0; }
}

/* ============================================================
   11. Feedback: callout, empty, loading, progress, stepper
   ============================================================ */

/* Body text stays --sl-ink; only the optional title takes the semantic colour. */
.sl-callout {
  padding: 12px 16px;
  border-radius: var(--sl-radius-btn);
  background: var(--sl-surface-container);
  color: var(--sl-ink);
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
}
.sl-callout-title { display: block; margin: 0 0 2px; font-weight: 600; color: var(--sl-ink); }
.sl-callout-info { background: var(--sl-info-light); }
.sl-callout-info .sl-callout-title { color: var(--sl-info); }
.sl-callout-good { background: var(--sl-success-light); }
.sl-callout-good .sl-callout-title { color: var(--sl-success); }
.sl-callout-warning { background: var(--sl-warning-light); }
.sl-callout-warning .sl-callout-title { color: var(--sl-warning); }
.sl-callout-risk { background: var(--sl-danger-light); }
.sl-callout-risk .sl-callout-title { color: var(--sl-danger); }

/* Empty state: always names the next step; at most one action. */
.sl-empty {
  padding: 40px 24px;
  border: 1px dashed var(--sl-hairline-strong);
  border-radius: var(--sl-radius-card);
  text-align: center;
}
.sl-empty-title {
  margin: 0;
  font-size: var(--sl-text-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--sl-ink);
}
.sl-empty-desc {
  max-width: 40ch;
  margin: 6px auto 0;
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  color: var(--sl-ink-soft);
}
.sl-empty > .sl-btn { margin-top: 16px; }

.sl-spinner {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: sl-spin .7s linear infinite;
}
.sl-spinner-sm { width: 14px; height: 14px; }

.sl-skeleton {
  display: block;
  min-height: 12px;
  border-radius: var(--sl-radius-input);
  background: var(--sl-surface-container);
  animation: sl-pulse 1.6s ease-in-out infinite;
}

/* role=progressbar on .sl-progress; set width on .sl-progress-bar. */
.sl-progress {
  height: 6px;
  overflow: hidden;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-surface-container);
  box-shadow: inset 0 0 0 1px var(--sl-hairline);
}
.sl-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sl-ink-strong);
}

/* Stepper: <ol class="sl-stepper"><li class="sl-step is-done">Label</li>…
   Numbers come from a CSS counter. */
.sl-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sl-step;
}
.sl-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: var(--sl-text-sm);
  font-weight: 500;
  line-height: 1.25;
  color: var(--sl-ink-soft);
  counter-increment: sl-step;
}
.sl-step::before {
  content: counter(sl-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sl-hairline-strong);
  border-radius: 50%;
  font-size: var(--sl-text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sl-ink-soft);
}
.sl-step.is-current { color: var(--sl-ink); font-weight: 600; }
.sl-step.is-current::before { border: 2px solid var(--sl-ink-strong); color: var(--sl-ink); }
.sl-step.is-done { color: var(--sl-ink); }
.sl-step.is-done::before {
  content: "";
  border-color: var(--sl-ink-strong);
  background: var(--sl-ink-strong);
}
.sl-step.is-done::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  background: var(--sl-on-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* ============================================================
   12. List row, icon tile, avatar
   ============================================================ */

/* <ul class="sl-list"><li class="sl-list-row">
     <span class="sl-icon-tile">…</span>
     <span class="sl-list-main"><span class="sl-list-title">…</span><span class="sl-list-meta">…</span></span>
     <span class="sl-list-end">…</span></li></ul>
   A row may also be an <a> or <button> when the whole row is the action. */
.sl-list { margin: 0; padding: 0; list-style: none; }
.sl-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--sl-hairline);
  background: transparent;
  color: var(--sl-ink);
  font-family: var(--sl-font-body);
  text-align: left;
  text-decoration: none;
}
.sl-list > :first-child.sl-list-row,
.sl-list > :first-child > .sl-list-row { border-top: 0; }
.sl-list-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.sl-list-title {
  overflow: hidden;
  font-size: var(--sl-text-base);
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sl-ink);
}
.sl-list-meta {
  overflow: hidden;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sl-ink-soft);
}
.sl-list-end {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  margin-left: auto;
  font-size: var(--sl-text-base);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
a.sl-list-row,
button.sl-list-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a.sl-list-row:hover .sl-list-title,
button.sl-list-row:hover .sl-list-title { text-decoration: underline; text-underline-offset: 3px; }
a.sl-list-row:hover .sl-icon-tile,
button.sl-list-row:hover .sl-icon-tile,
a.sl-list-row:active .sl-icon-tile,
button.sl-list-row:active .sl-icon-tile { background: var(--sl-surface-container-high); }
button.sl-list-row:disabled { opacity: .45; cursor: not-allowed; }

.sl-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sl-surface-container);
  color: var(--sl-ink);
  font-size: var(--sl-text-sm);
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--sl-dur-fast) ease;
}

.sl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--sl-ink-strong);
  color: var(--sl-on-strong);
  font-size: var(--sl-text-sm);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.sl-avatar-sm { width: 28px; height: 28px; font-size: var(--sl-text-2xs); }

/* ============================================================
   13. App shell (staff dashboard, client portal, assessment portal)
   <div class="sl-app"> <header class="sl-app-header"> <nav class="sl-sidenav">
   <main class="sl-app-main">. Below 1100px the sidenav becomes a left drawer:
   the .sl-app-menu-btn in the header opens it with SLUI.modal.open(sidenav).
   ============================================================ */

.sl-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.sl-app-header {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: var(--sl-z-header);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px;
  background: var(--sl-surface);
  border-bottom: 1px solid var(--sl-hairline);
}
.sl-sidenav {
  grid-column: 1;
  position: sticky;
  top: 60px;
  align-self: start;
  width: 232px;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  padding: 16px 12px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sl-canvas);
}
.sl-sidenav-group { display: flex; flex-direction: column; gap: 2px; }
.sl-sidenav-group + .sl-sidenav-group { margin-top: 20px; }
.sl-sidenav-label {
  padding: 0 12px 6px;
  font-size: var(--sl-text-xs);
  font-weight: 600;
  line-height: var(--sl-text-xs-lh);
  color: var(--sl-ink-soft);
}
.sl-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--sl-radius-btn);
  background: transparent;
  color: var(--sl-ink-soft);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--sl-dur-fast) ease, color var(--sl-dur-fast) ease;
}
.sl-sidenav-item > svg { flex: none; }
.sl-sidenav-item > .sl-badge { margin-left: auto; }
.sl-sidenav-item:hover { background: var(--sl-surface-container-high); color: var(--sl-ink); }
.sl-sidenav-item:active { background: var(--sl-hairline); }
.sl-sidenav-item[aria-current="page"],
.sl-sidenav-item.active { background: var(--sl-ink-strong); color: var(--sl-on-strong); }
.sl-sidenav-item[aria-current="page"]:hover,
.sl-sidenav-item.active:hover { background: var(--sl-strong-hover); color: var(--sl-on-strong); }
.sl-sidenav-item:disabled,
.sl-sidenav-item[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; color: var(--sl-ink-soft); }

.sl-app-main {
  grid-column: 2;
  min-width: 0;
  padding: 24px 32px 64px;
}

.sl-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
/* Card heading: h2/h3 inside .sl-card (size/weight from tokens, no margin). */
.sl-card-title {
  margin: 0;
  font-size: var(--sl-text-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--sl-ink);
}
.sl-page-title {
  margin: 0;
  font-size: var(--sl-heading);
  font-weight: 700;
  line-height: var(--sl-heading-lh);
  letter-spacing: var(--sl-heading-ls);
  color: var(--sl-ink);
  text-wrap: balance;
}
.sl-page-desc {
  margin: 4px 0 0;
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  color: var(--sl-ink-soft);
}
.sl-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

@media (min-width: 1100px) {
  .sl-app-menu-btn { display: none; }
}
@media (max-width: 1099.98px) {
  .sl-sidenav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: var(--sl-z-drawer);
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--sl-surface);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--sl-dur) var(--sl-ease-out), visibility 0s linear var(--sl-dur);
  }
  .sl-sidenav.is-open {
    transform: none;
    visibility: visible;
    box-shadow: var(--sl-shadow-float);
    transition: transform var(--sl-dur) var(--sl-ease-out);
  }
  .sl-app-header { gap: 8px; padding: 0 16px; }
  .sl-app-main { padding: 20px 16px 64px; }
}

/* ============================================================
   14. Public shell: nav, lockup, footer
   ============================================================ */

.sl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--sl-z-header);
  background: var(--sl-surface);
  border-bottom: 1px solid var(--sl-hairline);
}
.sl-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .sl-nav-inner { height: 68px; padding: 0 20px; }
}
.sl-nav-link {
  color: var(--sl-ink-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--sl-dur) ease;
}
.sl-nav-link:hover { color: var(--sl-ink-strong); }

/* Brand lockup: mark + wordmark. The mark file is NEVER modified; clear
   space = half mark height. Width/height match the tight SVG outline. */
.sl-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sl-ink-strong);
}
.sl-lockup img { width: 16px; height: 20px; display: block; }
.sl-lockup span {
  font-family: var(--sl-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
/* The mark is solid black on transparent (sanaloka-mark.svg): invert to get
   the official white-on-dark form instead of shipping a second asset. */
:root[data-theme="dark"] .sl-lockup img { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .sl-lockup img { filter: invert(1); }
}

/* Nav dropdown (hover / focus-within, desktop) */
.sl-nav-dropdown { position: relative; }
.sl-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sl-dur) ease, transform var(--sl-dur) var(--sl-ease-out);
  padding-top: 10px;
  z-index: var(--sl-z-dropdown);
  min-width: 250px;
}
.sl-nav-dropdown:hover .sl-nav-dropdown-menu,
.sl-nav-dropdown:focus-within .sl-nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sl-nav-chevron { transition: transform var(--sl-dur) ease; display: inline-block; }
.sl-nav-dropdown:hover .sl-nav-chevron,
.sl-nav-dropdown:focus-within .sl-nav-chevron { transform: rotate(180deg); }

/* Mobile menu (no-JS <details>) */
.sl-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--sl-ink-strong);
}
.sl-nav-mobile summary::-webkit-details-marker { display: none; }
.sl-nav-mobile[open] summary .sl-nav-burger-open { display: block; }
.sl-nav-mobile[open] summary .sl-nav-burger-closed { display: none; }
.sl-nav-mobile summary .sl-nav-burger-open { display: none; }
.sl-nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sl-surface);
  border-bottom: 1px solid var(--sl-hairline);
  box-shadow: var(--sl-shadow-lift);
}
.sl-nav-mobile-panel a {
  display: block;
  padding: 14px 24px;
  color: var(--sl-ink);
  text-decoration: none;
  border-top: 1px solid var(--sl-hairline);
  font-size: 15px;
}
.sl-nav-mobile-panel a:hover,
.sl-nav-mobile-panel a:active { background: var(--sl-surface-container); }

/* Footer: lockup + email + Bandung + Privasi / Syarat links. */
.sl-footer {
  padding: 32px 0;
  border-top: 1px solid var(--sl-hairline);
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}
.sl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sl-footer-meta,
.sl-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.sl-footer a:not(.sl-lockup) {
  color: var(--sl-ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--sl-hairline-strong);
  text-underline-offset: 3px;
  transition: color var(--sl-dur-fast) ease;
}
.sl-footer a:not(.sl-lockup):hover { color: var(--sl-ink); text-decoration-color: currentColor; }
/* Footer berkolom: merek + tautan + kontak dalam satu grid, bar bawah bergaris
   (struktur mengikuti footer Rexa Music School; judul kolom tanpa huruf kapital
   karena DESIGN.md melarang kicker). */
.sl-footer { padding: 48px 0 72px; } /* bawah 72px: bebas dari tombol tema yang melayang */
.sl-footer-inner--cols { display: block; }
.sl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
}
.sl-footer-tagline { margin: 12px 0 0; max-width: 30ch; }
.sl-footer-title {
  margin: 0 0 8px;
  font-size: var(--sl-text-sm);
  font-weight: 600;
  color: var(--sl-ink);
}
.sl-footer-col ul { margin: 0; padding: 0; list-style: none; }
.sl-footer-col li a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; }
.sl-footer .sl-footer-col a {
  color: var(--sl-ink);
  text-decoration: none;
}
.sl-footer .sl-footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sl-footer-contact .sl-help-link svg { flex: none; display: inline-block; }
.sl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sl-hairline);
}
.sl-footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 900px) {
  .sl-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* Dua kolom tautan berdampingan; merek dan kontak selebar penuh. */
  .sl-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .sl-footer-brand, .sl-footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* Bottom padding clears the fixed theme toggle. */
  .sl-footer { padding-bottom: 72px; }
  .sl-footer-inner { padding: 0 20px; }
  .sl-footer-col li a, .sl-footer-legal a, .sl-footer-brand .sl-lockup { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================================================
   14b. Auth (login + OTP): staff-login, client-portal, assessment_portal/index
   One pattern for all three: card > title > lede > form > actions > help.
   ============================================================ */

.sl-auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: 48px 16px 64px;
}
.sl-auth-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.sl-auth-wrap > .sl-callout { margin-bottom: 16px; }
.sl-auth-main .hidden { display: none !important; }

.sl-auth-card { padding: 32px; }
.sl-auth-head { margin-bottom: 24px; }
.sl-auth-title {
  margin: 0 0 8px;
  font-size: var(--sl-heading);
  line-height: var(--sl-heading-lh);
  letter-spacing: var(--sl-heading-ls);
  font-weight: 700;
  color: var(--sl-ink);
}
.sl-auth-lede {
  margin: 0;
  font-size: var(--sl-text-base);
  line-height: var(--sl-text-base-lh);
  color: var(--sl-ink-soft);
}
.sl-auth-lede strong { color: var(--sl-ink); font-weight: 600; overflow-wrap: anywhere; }

.sl-auth-form { display: grid; gap: 16px; }
.sl-auth-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sl-auth-form legend { padding: 0; }

/* Six-digit code row. Boxes share the row evenly so 360px never overflows. */
.sl-auth-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.sl-auth-digit {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid var(--sl-hairline-strong);
  border-radius: var(--sl-radius-input);
  background-color: var(--sl-surface);
  color: var(--sl-ink);
  font-family: var(--sl-font-body);
  font-size: var(--sl-heading);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--sl-dur-fast) ease, box-shadow var(--sl-dur-fast) ease;
}
.sl-auth-digit:hover { border-color: var(--sl-ink-faint); }
.sl-auth-digit:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--sl-ink);
  box-shadow: 0 0 0 3px var(--sl-ring);
}
.sl-auth-digit[aria-invalid="true"] { border-color: var(--sl-danger); }
.sl-auth-digit[aria-invalid="true"]:focus {
  border-color: var(--sl-danger);
  box-shadow: 0 0 0 3px var(--sl-ring-danger);
}
.sl-auth-digit:disabled {
  background-color: var(--sl-surface-container);
  color: var(--sl-ink-faint);
  cursor: not-allowed;
}

/* The single real field the page script reads; the boxes mirror it. */
.sl-auth-otp-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Error under the boxes (same voice as .sl-error, but always present text). */
.sl-auth-error {
  margin: 8px 0 0;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-danger);
}

.sl-auth-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}
.sl-auth-actions .sl-btn { min-height: var(--sl-control-md); }
/* The resend countdown is a status, not a dead control: keep it readable (AA). */
.sl-auth-actions .sl-btn:disabled { opacity: 1; color: var(--sl-ink-soft); background: transparent; }
.sl-auth-countdown {
  display: inline-flex;
  align-items: center;
  min-height: var(--sl-control-md);
  font-size: var(--sl-text-sm);
  color: var(--sl-ink-soft);
  font-variant-numeric: tabular-nums;
}

.sl-auth-help,
.sl-help-text {
  margin: 24px 0 0;
  text-align: center;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}
.sl-auth-help a,
.sl-help-text a {
  /* Vertical padding on an inline link widens the tap area to ~44px
     without stretching the line box. */
  padding: 12px 2px;
  color: var(--sl-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Baris kontak universal di semua halaman: ikon WhatsApp + nomor, ikon email +
   alamat, tanpa kalimat pengantar. Ikon SVG inline mewarisi warna teks dan
   menempel di samping teksnya. --stack menumpuk keduanya vertikal (footer). */
.sl-help-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 24px;
  margin: 24px 0 0;
  font-size: var(--sl-text-sm);
  line-height: var(--sl-text-sm-lh);
  color: var(--sl-ink-soft);
}
.sl-help-line .sl-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: var(--sl-ink);
  font-weight: 600;
  text-decoration: none;
}
.sl-help-line .sl-help-link svg { flex: none; }
.sl-help-line .sl-help-link span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sl-hairline-strong);
}
.sl-help-line .sl-help-link:hover span { text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .sl-auth-main { padding-top: 32px; }
  .sl-auth-card { padding: 24px; }
}
@media (max-width: 400px) {
  .sl-auth-card { padding: 20px; }
  .sl-auth-otp { gap: 6px; }
}

/* ============================================================
   15. Reduced motion (global; keep last)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .sl-reveal { opacity: 1; transform: none; }
  /* A frozen spinner reads as "stuck": keep the loading signal, slowed. */
  .sl-spinner,
  .sl-btn[aria-busy="true"]::before {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}
