/* /assets/fonts.css */
/* Funnel Display, Funnel Sans and DM Mono (SIL OFL) from Google Fonts' servers, latin and latin-ext. The rules
   ship inside the site's own stylesheet bundle instead of a request to fonts.googleapis.com, so the first paint
   waits for one request fewer and the fonts start downloading with the page's CSS (lib/site.php fonts()). They are
   preloaded, and font-display: optional keeps the words from being set twice: a font that is not there within
   about 100 ms is used from the next page on (it is cached by then). */
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTU7PB1QTsUX8KYthqQBK6PYK0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTR7PB1QTsUX8KYvumzEY2tbYf-Vlh3uA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTR7PB1QTsUX8KYvumzEYOtbYf-Vlg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/funneldisplay/v3/B50WF7FGv37QNVWgE0ga--4Pbb6TDYs0gnHAA4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/funneldisplay/v3/B50WF7FGv37QNVWgE0ga--4Pbb6dDYs0gnHA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/funnelsans/v3/OpNIno8Dg9bX6Bsp3Wq69Tp8fhjoyU7dDCA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url(https://fonts.gstatic.com/s/funnelsans/v3/OpNIno8Dg9bX6Bsp3Wq69TpyfhjoyU7d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* /assets/ocean/colors_and_type.css */
/* ════════════════════════════════════════════════════════════ */
/* Ocean Design System — Design Tokens                          */
/* Source: figma.com/design/zf0rTkF7qFjaLcsQCI7hrg             */
/* Last synced: 2026-07-14 — verified against Figma variables   */
/* (SF Pro, type scale, spacing, radius, focus ring, semantics) */
/* Generated via Claude + Figma MCP                            */
/* ════════════════════════════════════════════════════════════ */

:root {

  /* ── Font stacks (Figma: font-family-display / font-family-body = SF Pro) ── */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, Menlo, Consolas, 'Courier New', monospace;

  /* ── Font weights ─────────────────────────────────────── */
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* ── Font sizes — Display ─────────────────────────────── */
  --font-size-display-2xl: 40px;  /* lh:46px  ls:-0.02em */
  --font-size-display-xl:  32px;  /* lh:38px  ls:-0.02em */
  --font-size-display-lg:  24px;  /* lh:28px  ls:-0.02em */
  --font-size-display-md:  20px;  /* lh:24px  ls:-0.02em */
  --font-size-display-sm:  18px;  /* lh:22px  ls:0 */
  --font-size-display-xs:  16px;  /* lh:20px  ls:0 */

  /* ── Font sizes — Label (buttons, nav, tabs) ──────────── */
  --font-size-label-xl: 17px;   /* Figma style: Label 18 - xl */
  --font-size-label-lg: 15px;   /* Figma style: Label 16 - lg */
  --font-size-label-md: 13px;   /* Figma style: Label 14 - md */
  --font-size-label-compact: 12px; /* Figma style: Label 12 - cpmpact */
  --font-size-label-sm: 11px;   /* Figma style: Label 12 - sm */
  --font-size-label-xs: 10px;   /* Figma style: Label 10 - xs */

  /* ── Font sizes — Text (body) ─────────────────────────── */
  --font-size-xl: 17px;   /* lh:26px */
  --font-size-lg: 15px;   /* lh:22px */
  --font-size-md: 13px;   /* lh:18px — primary body */
  --font-size-sm: 11px;   /* lh:16px */
  --font-size-xs: 10px;   /* lh:14px */

  /* ── Line heights ─────────────────────────────────────── */
  --line-height-display-2xl: 46px;
  --line-height-display-xl:  38px;
  --line-height-display-lg:  28px;
  --line-height-display-md:  24px;
  --line-height-display-sm:  22px;
  --line-height-display-xs:  20px;
  --line-height-label-xl: 22px;
  --line-height-label-lg: 20px;
  --line-height-label-md: 18px;
  --line-height-label-compact: 16px;
  --line-height-label-sm: 16px;
  --line-height-label-xs: 12px;
  --line-height-xl: 26px;
  --line-height-lg: 22px;
  --line-height-md: 18px;
  --line-height-sm: 16px;
  --line-height-xs: 14px;

  /* ── Letter spacing ───────────────────────────────────── */
  --letter-spacing-display-tight: -0.02em;
  --letter-spacing-none: 0em;

  /* ── Color Primitives — Gray ──────────────────────────── */
  --gray-25:  #fdfdfd;
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e9eaeb;
  --gray-300: #d5d7da;
  --gray-400: #a4a7ae;
  --gray-500: #717680;
  --gray-600: #535862;
  --gray-700: #414651;
  --gray-800: #252b37;
  --gray-900: #181d27;
  --gray-950: #0a0d12;

  /* ── Color Primitives — Brand ─────────────────────────── */
  --brand-25:  #f2f9ff;
  --brand-50:  #eff8ff;
  --brand-100: #daeeff;
  --brand-200: #bde2ff;
  --brand-300: #90d1ff;
  --brand-400: #5cb6fe;
  --brand-500: #3696fb;
  --brand-600: #2077f0;
  --brand-700: #175cd3;
  --brand-800: #1a4eb3;
  --brand-900: #1b458d;
  --brand-950: #152b56;

  /* ── Color Primitives — Error ─────────────────────────── */
  --error-25:  #fffbfa;
  --error-50:  #fef3f2;
  --error-100: #fee4e2;
  --error-200: #fecdca;
  --error-300: #fda29b;
  --error-400: #f97066;
  --error-500: #f04438;
  --error-600: #d92d20;
  --error-700: #b42318;

  /* ── Color Primitives — Warning ───────────────────────── */
  --warning-25:  #fffcf5;
  --warning-50:  #fffaeb;
  --warning-100: #fef0c7;
  --warning-200: #fedf89;
  --warning-300: #fec84b;
  --warning-400: #fdb022;
  --warning-500: #f79009;
  --warning-600: #e8800a;
  --warning-700: #b54708;

  /* ── Color Primitives — Success ───────────────────────── */
  --success-25:  #f6fef9;
  --success-50:  #ecfdf3;
  --success-100: #d1fadf;
  --success-200: #abefc6;
  --success-300: #6ce9a6;
  --success-400: #32d583;
  --success-500: #17b26a;
  --success-600: #079455;
  --success-700: #067647;

  /* ── Semantic — Text ─────────────────────────────────── */
  --text-primary:         var(--gray-900);
  --text-secondary:       var(--gray-700);
  --text-tertiary:        var(--gray-600);
  --text-quaternary:      var(--gray-500);
  --text-white:           #ffffff;
  --text-disabled:        var(--gray-500);
  --text-placeholder:     var(--gray-500);
  --text-brand-primary:   var(--brand-700);
  --text-brand-secondary: var(--brand-800);  /* Figma-verified: #1a4eb3 */
  --text-error-primary:   var(--error-600);
  --text-warning-primary: var(--warning-600);
  --text-success-primary: var(--success-600);

  /* ── Semantic — Background ───────────────────────────── */
  --bg-primary:            #ffffff;
  --bg-primary-hover:      var(--gray-50);   /* Figma: bg-primary_hover */
  --bg-secondary:          var(--gray-50);
  --bg-tertiary:           var(--gray-100);
  --bg-quaternary:         var(--gray-200);  /* Figma-verified: #e9eaeb */
  --bg-active:             var(--gray-50);   /* Figma: bg-active #fafafa — selected nav/menu row */
  --bg-overlay:            rgba(10,13,18,0.70); /* Figma bg-overlay (gray-950) — modal scrim */
  --bg-disabled-subtle:    var(--gray-50);   /* Figma: bg-disabled_subtle */
  --bg-brand-solid:        var(--brand-700);
  --bg-brand-solid-hover:  var(--brand-600);
  --bg-brand-primary:      var(--brand-50);
  --bg-brand-secondary:    var(--brand-100);
  --bg-error:              var(--error-50);
  --bg-error-solid:        var(--error-600);
  --bg-warning:            var(--warning-50);
  --bg-warning-solid:      var(--warning-600);
  --bg-success:            var(--success-50);
  --bg-success-solid:      var(--success-600);

  /* ── Semantic — Border ───────────────────────────────── */
  --border-primary:         var(--gray-300);
  --border-secondary:       var(--gray-200);
  --border-tertiary:        var(--gray-100);
  --border-disabled:        var(--gray-300);
  --border-brand:           var(--brand-700);
  --border-brand-secondary: var(--brand-300);
  --border-error:           var(--error-300);
  --border-error-solid:     var(--error-600);
  --border-warning:         var(--warning-300);
  --border-success:         var(--success-300);

  /* ── Semantic — Foreground / Icons ───────────────────── */
  --fg-primary:         var(--gray-900);
  --fg-secondary:       var(--gray-700);
  --fg-tertiary:        var(--gray-600);
  --fg-quaternary:      var(--gray-400);  /* Figma-verified: fg-quaternary (400) */
  --fg-white:           #ffffff;
  --fg-disabled:        var(--gray-400);
  --fg-disabled-subtle: var(--gray-300);  /* Figma: fg-disabled_subtle */
  --checkbox-border:    var(--gray-300);  /* Figma: Component colors/Checkbox */
  --fg-brand-primary:   var(--brand-700);
  --fg-error-primary:   var(--error-600);
  --fg-warning-primary: var(--warning-600);
  --fg-success-primary: var(--success-600);

  /* ── Alpha utilities ─────────────────────────────────── */
  --alpha-black-4:  rgba(0,0,0,0.04);
  --alpha-black-8:  rgba(0,0,0,0.08);
  --alpha-black-10: rgba(0,0,0,0.10);
  --alpha-black-40: rgba(0,0,0,0.40);
  --alpha-white-10: rgba(255,255,255,0.10);
  --alpha-white-20: rgba(255,255,255,0.20);
  --alpha-white-40: rgba(255,255,255,0.40);
  --alpha-white-60: rgba(255,255,255,0.60);

  /* ── Spacing (4px grid) ──────────────────────────────── */
  --spacing-05: 2px;
  --spacing-1:  4px;
  --spacing-15: 6px;
  --spacing-2:  8px;
  --spacing-3:  12px;
  --spacing-4:  16px;
  --spacing-5:  20px;
  --spacing-6:  24px;
  --spacing-8:  32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-20: 80px;
  --spacing-24: 96px;
  --spacing-32: 128px;

  /* ── Radius ──────────────────────────────────────────── */
  --border-width-default: 1px;
  --radius-none: 0px;
  --radius-xxs:  2px;
  --radius-xs:   4px;   /* Figma-verified */
  --radius-sm:   6px;   /* Figma-verified */
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-3xl:  20px;  /* Figma-verified */
  --radius-4xl:  24px;
  --radius-full: 9999px; /* Figma-verified */

  /* ── Shadows (exact CSS values) ──────────────────────── */
  --shadow-xs:  0px 1px 2px 0px rgba(10,13,18,0.05);
  --shadow-sm:  0px 1px 2px 0px rgba(10,13,18,0.06), 0px 1px 3px 0px rgba(10,13,18,0.10);
  --shadow-md:  0px 2px 4px -1px rgba(10,13,18,0.06), 0px 4px 6px -1px rgba(10,13,18,0.10);
  --shadow-lg:  0px 2px 2px 0px rgba(10,13,18,0.04), 0px 4px 6px -2px rgba(10,13,18,0.08), 0px 12px 16px -4px rgba(10,13,18,0.08);
  --shadow-xl:  0px 3px 3px 0px rgba(10,13,18,0.04), 0px 8px 8px -4px rgba(10,13,18,0.08), 0px 20px 24px -4px rgba(10,13,18,0.08);
  --shadow-2xl: 0px 4px 4px -4px rgba(10,13,18,0.04), 0px 48px 48px -12px rgba(10,13,18,0.18);
  --shadow-3xl: 0px 5px 5px -4px rgba(10,13,18,0.04), 0px 64px 64px -12px rgba(10,13,18,0.14);

  /* ── Focus rings (Figma: 2px bg-primary + 4px brand-500 / error-500) ── */
  --focus-ring:       0px 0px 0px 2px var(--bg-primary), 0px 0px 0px 4px var(--brand-500);
  --focus-ring-error: 0px 0px 0px 2px var(--bg-primary), 0px 0px 0px 4px var(--error-500);

  /* ── Backdrop blur ───────────────────────────────────── */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --blur-xl: blur(40px);
  --backdrop-blur-sm: blur(8px);
  --backdrop-blur-md: blur(16px);   /* Figma: backdrop-blur-md — modal/drawer scrim */
  --backdrop-blur-lg: blur(24px);
  --backdrop-blur-xl: blur(40px);

  /* ── Motion ──────────────────────────────────────────── */
  --duration-fast:   100ms;
  --duration-base:   200ms;
  --duration-slow:   300ms;
  --duration-slower: 500ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Stable aliases used by the bundled web kit ───────── */
  --spacing-xxs:  var(--spacing-05);
  --spacing-xs:   var(--spacing-1);
  --spacing-sm:   var(--spacing-15);  /* Figma: spacing-sm = 6px */
  --spacing-md:   var(--spacing-2);
  --spacing-lg:   var(--spacing-3);
  --spacing-xl:   var(--spacing-4);
  --spacing-2xl:  var(--spacing-5);
  --spacing-3xl:  var(--spacing-6);
  --spacing-4xl:  var(--spacing-8);
  --spacing-5xl:  var(--spacing-10);
  --spacing-6xl:  var(--spacing-12);
  --spacing-7xl:  var(--spacing-16);
  --spacing-8xl:  var(--spacing-20);
  --spacing-9xl:  var(--spacing-24);
  --spacing-10xl: var(--spacing-32);
  --spacing-11xl: 160px;

  --bg-secondary-subtle: var(--bg-secondary);
  --bg-brand-section:    var(--brand-800);
  --bg-disabled:         var(--bg-tertiary);
  --bg-error-primary:    var(--bg-error);
  --bg-error-solid-hover: var(--error-700);
  --bg-warning-primary:  var(--bg-warning);
  --bg-success-primary:  var(--bg-success);
  --bg-info-primary:     var(--bg-brand-primary);
  --border-brand-primary: var(--border-brand);
  --border-brand-hover:   var(--brand-600);
  --border-error-subtle:  var(--border-error);
  --text-primary-on-brand:   var(--text-white);
  --text-secondary-on-brand: var(--brand-100);

  --container-max-width:       1280px;
  --container-padding-desktop: var(--spacing-8);
  --container-padding-mobile:  var(--spacing-4);
  --duration-normal:            var(--duration-base);
  --shadow-xs-skeuomorphic:     var(--shadow-xs);

  /* ── Button component contract (Figma: 3287:427074) ── */
  --button-height-xs: 24px;
  --button-height-sm: 32px;
  --button-height-md: 36px;
  --button-height-lg: 40px;
  --button-height-xl: 48px;
  --button-icon-only-sm: 36px;
  --button-icon-only-md: 40px;
  --button-icon-only-lg: 44px;
  --button-icon-only-xl: 48px;
  --button-padding-x-xs: 8px;
  --button-padding-x-sm: 12px;
  --button-padding-x-md: 14px;
  --button-padding-x-lg: 16px;
  --button-padding-x-xl: 18px;
  --button-gap-sm: 4px;
  --button-gap-lg: 6px;
  --button-icon-xs: 16px;
  --button-icon-sm: 16px;
  --button-icon-md: 20px;
  --button-icon-lg: 20px;
  --button-icon-xl: 24px;
  --button-radius-default: var(--radius-md);
  --button-radius-xl: 12px;
  --button-transition: var(--duration-fast) var(--ease-default);

  /* ── Segmented control contract (Figma: 20599:3479) ──
     sm is pointer-only (macOS); lg meets the 44pt iOS touch target
     and xl the 48dp Android one. See COMPONENT-SPECS.md §55.        */
  --segmented-height-sm: 28px;
  --segmented-height-md: 32px;
  --segmented-height-lg: 44px;
  --segmented-height-xl: 48px;
  --segmented-track-pad: var(--spacing-xxs);
  --segmented-gap: var(--spacing-xxs);
  --segmented-padding-x-sm: var(--spacing-md);
  --segmented-padding-x-md: var(--spacing-lg);
  --segmented-padding-x-lg: var(--spacing-xl);
  --segmented-padding-x-xl: var(--spacing-xl);
  --segmented-icon-sm: 16px;
  --segmented-icon-md: 16px;
  --segmented-icon-lg: 20px;
  --segmented-icon-xl: 20px;
  --segmented-radius-sm: var(--radius-md);
  --segmented-radius-md: var(--radius-md);
  --segmented-radius-lg: var(--radius-xl);
  --segmented-radius-xl: var(--radius-xl);
  --segmented-item-radius-sm: var(--radius-xs);
  --segmented-item-radius-md: var(--radius-sm);
  --segmented-item-radius-lg: var(--radius-md);
  --segmented-item-radius-xl: var(--radius-md);
  --segmented-transition: var(--duration-fast) var(--ease-default);
}

/* ── Dark mode ───────────────────────────────────────────────
   Giá trị trích xuất từ Figma (đợt 2026-04, đối chiếu lại 2026-07-14).
   Dòng đánh dấu (*) nội suy theo hệ Untitled UI dark — xác minh lại
   khi Figma publish đầy đủ dark mode collection.                    */
[data-theme="dark"], .dark {
  --text-primary:         #f7f7f7;
  --text-secondary:       #cecfd2;
  --text-tertiary:        #94979c;
  --text-quaternary:      #85888e;
  --text-disabled:        #85888e;
  --text-placeholder:     #85888e;
  --text-brand-primary:   #f7f7f7;
  --text-brand-secondary: #84caff;   /* (*) */
  --text-primary-on-brand:   #ffffff;
  --text-secondary-on-brand: #daeeff; /* (*) */

  --bg-primary:           #0c0e12;
  --bg-primary-hover:     #22262f;   /* (*) hover row/menu */
  --bg-active:            #22262f;   /* (*) selected nav/menu */
  --bg-quaternary:        #373a41;   /* (*) */
  --bg-secondary:         #22262f;
  --bg-secondary-subtle:  #13161b;   /* (*) */
  --bg-tertiary:          #373a41;
  --bg-disabled:          #22262f;   /* (*) */
  --bg-disabled-subtle:   #13161b;   /* (*) */
  --bg-brand-solid:       #175cd3;
  --bg-brand-solid-hover: #3696fb;
  --bg-brand-primary:     #152b56;   /* (*) brand-950 */
  --bg-brand-secondary:   #1b458d;   /* (*) brand-900 */
  --bg-info-primary:      rgba(23,92,211,0.12);
  --bg-error:             rgba(217,45,32,0.10);
  --bg-warning:           rgba(232,128,10,0.10);
  --bg-success:           rgba(7,148,85,0.10);

  --border-primary:   #373a41;
  --border-secondary: #22262f;
  --border-tertiary:  #13161b;
  --border-disabled:  #373a41;       /* (*) */
  --border-brand:     var(--brand-500);
  --border-brand-primary: var(--brand-500);
  --border-error:     var(--error-500);

  --fg-primary:       #f7f7f7;
  --fg-secondary:     #cecfd2;
  --fg-tertiary:      #94979c;
  --fg-quaternary:    #85888e;
  --fg-disabled:      #85888e;
  --fg-disabled-subtle: #373a41;     /* (*) */
  --fg-brand-primary: var(--brand-500);
  --checkbox-border:  #373a41;       /* (*) */
}

/* /assets/silvertiger/colors_and_type.css */
/* ==========================================================
   SilverTiger Design System — CSS Variables
   Figma file xbzvhROC7nyuLOjvofMzse · page "✅ Branding" (node 240:1920)
   Last synced: 2026-07-15 · Canonical source on conflict: FIGMA

   Provenance legend (per token / block):
     ✅ verified — value returned by Figma get_variable_defs (node id noted)
     ⚠️ assumed  — repo-authored; NOT returned by Figma this sync; verify before trusting

   IMPORTANT (anti-hallucination): The 2026-07-15 re-audit found that the earlier
   header claim "all values extracted directly from Figma" was false. Figma's own
   variables resolve Font/Family = Inter and Main-color/primary = #026EEE. The
   SF-Pro font and the #175cd3-centred Untitled-UI-style ramps below were NOT
   sourced from this file. Verified Figma primitives are captured in the
   FIGMA-VERIFIED PRIMITIVES block; the legacy ramps are retained (⚠️) only until a
   full Figma variable-collection export replaces them. See FIGMA_SYNC.md.
   ========================================================== */

/* ----------------------------------------------------------
   FIGMA-VERIFIED PRIMITIVES  ✅
   Returned by get_variable_defs on nodes 240:1920, 2937:212, 4532:1970.
   These are the authoritative Figma values; semantic tokens below map onto them.
   ---------------------------------------------------------- */
:root {
  /* Main-color/* — ✅ verified */
  --main-primary:          #026eee;  /* Main-color/primary (nodes 240:1920, 4532:1970) */
  --main-white:            #ffffff;  /* Main-color/white */
  --main-text-body:        #0b0809;  /* Main-color/text-body — page root 240:1920 */
  --main-text-grey:        #444746;  /* Main-color/text-grey — page root 240:1920 */
  --main-warning:          #ff9500;  /* Main-color/warning (= Brand-color/orange) */
  --main-success:          #2fa304;  /* Main-color/success (= Brand-color/green) */
  --main-danger:           #dc2626;  /* Main-color/danger (= Brand-color/red) */
  --main-line-color:       #dcdfe3;  /* Main-color/line-color — dividers, tab underline */
  --main-text-placeholder: #8e9ba8;  /* Main-color/text-placeholder — sign-in 4532:1970 */
  --main-border-input:     #b2bbc4;  /* Main-color/border-input — sign-in 4532:1970 */
  /* ⚠️ conflict: sign-in frame 4532:1970 resolves the same names to different hexes
     (mode/legacy override, unresolved this sync): text-body #00152c, text-grey #4c6075 */
  --main-text-body-signin: #00152c;
  --main-text-grey-signin: #4c6075;

  /* Brand-color/* named palette — ✅ verified (Ant-Design-style, node 2937:212) */
  --brand-blue:    #026eee;
  --brand-green:   #2fa304;
  --brand-orange:  #ff9500;
  --brand-red:     #dc2626;
  --brand-yellow:  #ffda44;
  --brand-teal:    #30b0c7;
  --brand-cyan:    #13c2c2;
  --brand-gold:    #faad14;
  --brand-volcano: #fa541c;
  --brand-purple:  #9333ea;
  --brand-magenta: #eb2f96;
  --brand-indigo:  #5856d6;
  --brand-pink:    #ff2d55;
  --brand-brown:   #a2845e;
  --brand-lime:    #a0d911;  /* Brand-color/lime — added from Color foundation 1:53 */
  /* ⚠️ gaps: Brand-color/AI, Main-color/AI-left menu and Main-color/grandient 1 are
     gradients (get_variable_defs returned empty strings) — not yet exported. */

  /* Chart categorical palette — ✅ verified from Figma Charts page 561:2032 (7 series). */
  --chart-1: #ffca41;  --chart-1-dark: #ffee32;
  --chart-2: #ef6d85;  --chart-2-dark: #ff5172;
  --chart-3: #59aad8;  --chart-3-dark: #30adf3;
  --chart-4: #8bc348;  --chart-4-dark: #9bf62d;
  --chart-5: #b878c7;  --chart-5-dark: #dd55fc;
  --chart-6: #ab765d;  --chart-6-dark: #f2802f;
  --chart-7: #a8adb1;  --chart-7-dark: #d9d9d9;
  /* ⚠️ Chart gradient/mix stops (grad 1-7, mix 1-7) returned empty — not exported. */
}

/* ----------------------------------------------------------
   PRIMITIVES — Legacy primitive ramps (brand · gray · error · warning · success)
   ⚠️ assumed — repo-authored Untitled-UI-style ramps. NOT returned by Figma.
   Retained as intermediate steps until full Figma ramps are exported.
   Authoritative brand primary is --main-primary / --brand-blue (#026eee).
   Partial Figma cross-checks: Variant/Gray/gray-100 = #E8EBED (≈ --gray-200 #e9e9eb),
   Colors/Background/bg-quaternary = #e9eaeb (matches), Main-color/warning = #FF9500.
   ---------------------------------------------------------- */
:root {
  /* Brand */
  --brand-25: #f1f8fe;
  --brand-50: #eff8ff;
  --brand-100: #daeeff;
  --brand-200: #bde2ff;
  --brand-300: #90d1ff;
  --brand-400: #5cb6fe;
  --brand-500: #3696fb;
  --brand-600: #2077f0;
  --brand-700: #175cd3;
  --brand-800: #1a4eb3;
  --brand-900: #1b458d;
  --brand-950: #152b56;

  /* Gray (light mode) */
  --gray-25: #fcfcfc;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e9e9eb;
  --gray-300: #d5d6d9;
  --gray-400: #a3a7ae;
  --gray-500: #717680;
  --gray-600: #535861;
  --gray-700: #414651;
  --gray-800: #252b37;
  --gray-900: #181d27;
  --gray-950: #0a0c12;

  /* Error */
  --error-25: #fefafa;
  --error-50: #fef2f1;
  --error-100: #fee3e1;
  --error-200: #fecdc9;
  --error-300: #fca19b;
  --error-400: #f97066;
  --error-500: #f04437;
  --error-600: #d92c20;
  --error-700: #b32218;
  --error-800: #901f17;
  --error-900: #7a2619;

  /* Warning */
  --warning-50: #fff9eb;
  --warning-100: #feefc6;
  --warning-200: #fede88;
  --warning-300: #fec84a;
  --warning-400: #fcb022;
  --warning-500: #f78f08;
  --warning-600: #db6803;
  --warning-700: #b54707;

  /* Success */
  --success-50: #ecfcf2;
  --success-100: #dbf9e6;
  --success-200: #aaefc6;
  --success-300: #75dfa6;
  --success-400: #47cd89;
  --success-500: #17b169;
  --success-600: #069454;
  --success-700: #057647;

  /* Base */
  --white: #ffffff;
  --black: #000000;
  --transparent: transparent;
}

/* ----------------------------------------------------------
   SEMANTIC TOKENS — Light mode (default)
   ---------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* Text */
  --text-primary: #181d27;
  --text-primary-on-brand: #ffffff;
  --text-secondary: #414651;
  --text-secondary-hover: #252b37;
  --text-tertiary: #535862;
  --text-quaternary: #717680;
  --text-white: #ffffff;
  --text-disabled: #717680;
  --text-placeholder: #717680;
  --text-placeholder-subtle: #d5d7da;
  --text-brand-primary: #026eee;      /* ✅ = --main-primary */
  --text-brand-secondary: #1a4eb3;    /* ⚠️ assumed — no Figma value */
  --text-brand-tertiary: #2077f0;     /* ⚠️ assumed — no Figma value */
  --text-brand-tertiary-alt: #3696fb; /* ⚠️ assumed — no Figma value */
  --text-error-primary: #dc2626;      /* ✅ = --brand-red */
  --text-warning-primary: #ff9500;    /* ✅ = --main-warning / --brand-orange */
  --text-success-primary: #2fa304;    /* ✅ = --brand-green */

  /* Foreground / Icons */
  --fg-primary: #181d27;
  --fg-secondary: #414651;
  --fg-tertiary: #535862;
  --fg-quaternary: #a4a7ae;
  --fg-white: #ffffff;
  --fg-disabled: #a4a7ae;
  --fg-disabled-subtle: #d5d7da;
  --fg-brand-primary: #026eee;   /* ✅ = --main-primary */
  --fg-brand-secondary: #2077f0; /* ⚠️ assumed — no Figma value */
  --fg-info-primary: #2077f0;    /* ⚠️ assumed — no Figma value */
  --fg-error-primary: #dc2626;   /* ✅ = --brand-red */
  --fg-warning-primary: #ff9500; /* ✅ = --main-warning */
  --fg-success-primary: #2fa304; /* ✅ = --brand-green */

  /* Background */
  --bg-primary: #ffffff;
  --bg-primary-alt: #ffffff;
  --bg-primary-hover: #fafafa;
  --bg-primary-solid: #0a0d12;
  --bg-secondary: #fafafa;
  --bg-secondary-hover: #f5f5f5;
  --bg-secondary-solid: #535862;
  --bg-tertiary: #f5f5f5;
  --bg-quaternary: #e9eaeb;
  --bg-active: #fafafa;
  --bg-disabled: #f5f5f5;
  --bg-disabled-subtle: #fafafa;
  --bg-overlay: #0a0d12;
  --bg-brand-primary: #eff8ff;        /* ⚠️ assumed tint — no Figma value */
  --bg-brand-secondary: #daeeff;      /* ⚠️ assumed tint — no Figma value */
  --bg-brand-solid: #026eee;          /* ✅ = --main-primary */
  --bg-brand-solid-hover: #0257c0;    /* ⚠️ assumed — darkened primary; verify hover state in Figma */
  --bg-brand-section: #1a4eb3;        /* ⚠️ assumed — no Figma value */
  --bg-error-primary: #fef3f2;        /* ⚠️ assumed tint — no Figma value */
  --bg-error-secondary: #fee4e2;      /* ⚠️ assumed tint — no Figma value */
  --bg-error-solid: #dc2626;          /* ✅ = --brand-red */
  --bg-warning-primary: #fffaeb;      /* ⚠️ assumed tint — no Figma value */
  --bg-warning-solid: #ff9500;        /* ✅ = --main-warning */
  --bg-success-primary: #ecfdf3;      /* ⚠️ assumed tint — no Figma value */
  --bg-success-solid: #2fa304;        /* ✅ = --brand-green */

  /* Border */
  --border-primary: #d5d7da;
  --border-secondary: #e9eaeb;
  --border-tertiary: #f5f5f5;
  --border-disabled: #d5d7da;
  --border-brand-primary: #026eee;    /* ✅ = --main-primary */
  --border-brand-secondary: #daeeff;  /* ⚠️ assumed — no Figma value */
  --border-error: #dc2626;            /* ✅ = --brand-red */
  --border-error-subtle: #fda29b;     /* ⚠️ assumed — no Figma value */

  /* Focus rings */
  --focus-ring: #026eee;              /* ✅ = --main-primary */
  --focus-ring-error: #dc2626;        /* ✅ = --brand-red */

  /* Shadows */
  /* Shadow scale — ✅ verified & reconciled to Figma Shadow foundation (page 1:55).
     Single-layer rgba(0,0,0,α); replaces the earlier Untitled-UI-style rgba(10,13,18) stacks. */
  --shadow-xs:  0 1px 2px  rgba(0, 0, 0, 0.04);  /* Shadow/xs  #0000000A */
  --shadow-sm:  0 2px 6px  rgba(0, 0, 0, 0.08);  /* Shadow/sm  #00000014 */
  --shadow-md:  0 3px 12px rgba(0, 0, 0, 0.13);  /* Shadow/md  #00000021 */
  --shadow-lg:  0 4px 16px rgba(0, 0, 0, 0.13);  /* Shadow/lg  #00000021 */
  --shadow-xl:  0 5px 20px rgba(0, 0, 0, 0.13);  /* Shadow/xl  #00000021 */
  --shadow-2xl: 0 6px 24px rgba(0, 0, 0, 0.13);  /* Shadow/2xl #00000021 */
  --shadow-3xl: 0 7px 28px rgba(0, 0, 0, 0.13);  /* Shadow/3xl #00000021 */

  /* Button component tokens */
  --btn-bg-primary: #026eee;          /* ✅ = --main-primary — flat fallback for the gradient below */
  --btn-gradient-primary: linear-gradient(180deg, #00a4d5, #0168ed);        /* ✅ figma-verified — set 59:1601 */
  --btn-gradient-primary-hover: linear-gradient(180deg, #0089b3, #0154c0);  /* ⚠️ assumed — darkened stops; Figma hover unmeasured */
  --btn-bg-secondary: #ffffff;        /* ✅ figma-verified — secondary is outlined: white fill + brand border */
  --btn-bg-secondary-hover: #f2f9ff;  /* ⚠️ assumed tint — no Figma value */
  --btn-text-primary: #ffffff;        /* ✅ = --main-white */
  --btn-text-secondary: #026eee;      /* ✅ = --main-primary */
  --btn-text-brand: #026eee;          /* ✅ = --main-primary */
  --btn-border-brand: #026eee;        /* ✅ = --main-primary */

  /* Backdrop blurs */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 40px;

  /* Focus ring CSS custom property (box-shadow) — inner white gap + brand ring */
  --ring-focus: 0 0 0 2px #ffffff, 0 0 0 4px #026eee;       /* ✅ ring = --main-primary */
  --ring-focus-error: 0 0 0 2px #ffffff, 0 0 0 4px #dc2626; /* ✅ ring = --brand-red */
}

/* ----------------------------------------------------------
   SEMANTIC TOKENS — Dark mode
   ⚠️ MAINTENANCE: The two blocks below (@media prefers-color-scheme
   and [data-theme="dark"]) MUST stay in sync. Edit one, copy to the other.
   Dark-mode values are repo-authored; no dark Figma mode was resolved.
   Brand primary is aligned to the verified #026eee; other dark values are unverified.
   ---------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Text */
    --text-primary: #f7f7f7;
    --text-primary-on-brand: #f7f7f7;
    --text-secondary: #cecfd2;
    --text-secondary-hover: #ececed;
    --text-tertiary: #94979c;
    --text-quaternary: #94979c;
    --text-disabled: #85888e;
    --text-placeholder: #85888e;
    --text-placeholder-subtle: #373a41;
    --text-brand-primary: #f7f7f7;
    --text-brand-secondary: #cecfd2;
    --text-brand-tertiary: #94979c;
    --text-error-primary: #f97066;
    --text-warning-primary: #fdb022;
    --text-success-primary: #47cd89;

    /* Foreground */
    --fg-primary: #ffffff;
    --fg-secondary: #cecfd2;
    --fg-tertiary: #94979c;
    --fg-quaternary: #61656c;
    --fg-disabled: #61656c;
    --fg-disabled-subtle: #373a41;
    --fg-brand-primary: #3696fb;   /* ⚠️ dark tint of --main-primary; unverified */
    --fg-brand-secondary: #3696fb; /* ⚠️ unverified */
    --fg-error-primary: #f04438;
    --fg-warning-primary: #f79009;
    --fg-success-primary: #17b26a;

    /* Background */
    --bg-primary: #0c0e12;
    --bg-primary-alt: #0c0e12;
    --bg-primary-hover: #22262f;
    --bg-primary-solid: #fafafa;
    --bg-secondary: #22262f;
    --bg-secondary-hover: #13161b;
    --bg-tertiary: #373a41;
    --bg-quaternary: #373a41;
    --bg-active: #22262f;
    --bg-disabled: #22262f;
    --bg-disabled-subtle: #13161b;
    --bg-overlay: #0a0d12;
    --bg-brand-primary: #3696fb;
    --bg-brand-solid: #026eee;        /* ✅ = --main-primary */
    --bg-brand-solid-hover: #3696fb;  /* ⚠️ unverified dark hover */
    --bg-error-primary: #7a271a;
    --bg-error-solid: #d92d20;
    --bg-warning-primary: #7a2e0e;
    --bg-success-primary: #074d31;

    /* Border */
    --border-primary: #373a41;
    --border-secondary: #22262f;
    --border-tertiary: #22262f;
    --border-disabled: #373a41;
    --border-brand-primary: #026eee;  /* ✅ = --main-primary */
    --border-error: #f97066;

    /* Shadows (none in dark mode as per Figma) */
    --shadow-xs: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;
    --shadow-3xl: none;
    --choice-disabled-bg: var(--bg-disabled);
    --status-success-bg: var(--bg-success-primary);
    --status-success-border: var(--fg-success-primary);
    --status-info-bg: #071c49;
    --status-info-border: var(--fg-brand-primary);
    --status-info-text: #5cb6fe;
    --status-info-text-strong: #5cb6fe;
    --status-warning-bg: var(--bg-warning-primary);
    --status-warning-border: var(--fg-warning-primary);
    --status-warning-text: var(--text-warning-primary);
    --status-error-bg: var(--bg-error-primary);
    --status-error-border: var(--fg-error-primary);
    --status-inactive-bg: var(--bg-disabled);
    --status-inactive-text: var(--text-tertiary);
    /* Button + focus ring tokens — must mirror [data-theme="dark"] below */
    --btn-bg-primary: #026eee;
    /* ⚠️ gap: still a filled tint, not the outlined pattern light now uses.
       Figma dark secondary unmeasured — see COMPONENT-MANIFEST.json Button gaps. */
    --btn-bg-secondary: #071c49;
    --btn-bg-secondary-hover: #daeeff;
    --btn-text-secondary: #5cb6fe;
    --ring-focus: 0 0 0 2px #0c0e12, 0 0 0 4px #026eee;
    --ring-focus-error: 0 0 0 2px #0c0e12, 0 0 0 4px #f04438;
  }
}

[data-theme="dark"] {
  --text-primary: #f7f7f7;
  --text-primary-on-brand: #f7f7f7;
  --text-secondary: #cecfd2;
  --text-secondary-hover: #ececed;
  --text-tertiary: #94979c;
  --text-quaternary: #94979c;
  --text-disabled: #85888e;
  --text-placeholder: #85888e;
  --text-placeholder-subtle: #373a41;
  --text-brand-primary: #f7f7f7;
  --text-brand-secondary: #cecfd2;
  --text-brand-tertiary: #94979c;
  --text-error-primary: #f97066;
  --text-warning-primary: #fdb022;
  --text-success-primary: #47cd89;
  --fg-primary: #ffffff;
  --fg-secondary: #cecfd2;
  --fg-tertiary: #94979c;
  --fg-quaternary: #61656c;
  --fg-disabled: #61656c;
  --fg-disabled-subtle: #373a41;
  --fg-brand-primary: #3696fb;   /* ⚠️ dark tint of --main-primary; unverified */
  --fg-brand-secondary: #3696fb; /* ⚠️ unverified */
  --fg-error-primary: #f04438;
  --fg-warning-primary: #f79009;
  --fg-success-primary: #17b26a;
  --bg-primary: #0c0e12;
  --bg-primary-alt: #0c0e12;
  --bg-primary-hover: #22262f;
  --bg-primary-solid: #fafafa;
  --bg-secondary: #22262f;
  --bg-secondary-hover: #13161b;
  --bg-tertiary: #373a41;
  --bg-quaternary: #373a41;
  --bg-active: #22262f;
  --bg-disabled: #22262f;
  --bg-disabled-subtle: #13161b;
  --bg-overlay: #0a0d12;
  --bg-brand-primary: #3696fb;
  --bg-brand-solid: #026eee;        /* ✅ = --main-primary */
  --bg-brand-solid-hover: #3696fb;  /* ⚠️ unverified dark hover */
  --bg-error-primary: #7a271a;
  --bg-error-solid: #d92d20;
  --bg-warning-primary: #7a2e0e;
  --bg-success-primary: #074d31;
  --border-primary: #373a41;
  --border-secondary: #22262f;
  --border-tertiary: #22262f;
  --border-disabled: #373a41;
  --border-brand-primary: #026eee;  /* ✅ = --main-primary */
  --border-error: #f97066;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;
  --shadow-3xl: none;
  --btn-bg-primary: #026eee;        /* ✅ = --main-primary */
  --btn-bg-secondary: #071c49;      /* ⚠️ unverified dark tint — still filled, not outlined like light */
  --btn-bg-secondary-hover: #daeeff;/* ⚠️ unverified dark tint */
  --btn-text-secondary: #5cb6fe;    /* ⚠️ unverified dark tint */
  --ring-focus: 0 0 0 2px #0c0e12, 0 0 0 4px #026eee;       /* ✅ ring = --main-primary */
  --ring-focus-error: 0 0 0 2px #0c0e12, 0 0 0 4px #f04438; /* ⚠️ unverified */
  --choice-disabled-bg: var(--bg-disabled);
  --status-success-bg: var(--bg-success-primary);
  --status-success-border: var(--fg-success-primary);
  --status-info-bg: #071c49;
  --status-info-border: var(--fg-brand-primary);
  --status-info-text: #5cb6fe;
  --status-info-text-strong: #5cb6fe;
  --status-warning-bg: var(--bg-warning-primary);
  --status-warning-border: var(--fg-warning-primary);
  --status-warning-text: var(--text-warning-primary);
  --status-error-bg: var(--bg-error-primary);
  --status-error-border: var(--fg-error-primary);
  --status-inactive-bg: var(--bg-disabled);
  --status-inactive-text: var(--text-tertiary);
}

/* ----------------------------------------------------------
   SPACING SCALE
   ⚠️ repo-authored scale. Partial Figma cross-check: Spacing/40 = 160 → --spacing-11xl ✅.
   Remaining steps not returned by Figma this sync.
   ---------------------------------------------------------- */
:root {
  --spacing-none: 0px;
  --spacing-xxs:  2px;
  --spacing-xs:   4px;
  --spacing-sm:   6px;
  --spacing-md:   8px;
  --spacing-lg:   12px;
  --spacing-xl:   16px;
  --spacing-2xl:  20px;
  --spacing-3xl:  24px;
  --spacing-4xl:  32px;
  --spacing-5xl:  40px;
  --spacing-6xl:  48px;
  --spacing-7xl:  64px;
  --spacing-8xl:  80px;
  --spacing-9xl:  96px;
  --spacing-10xl: 128px;
  --spacing-11xl: 160px;
}

/* ----------------------------------------------------------
   RADIUS SCALE
   ⚠️ repo-authored scale — not returned by Figma this sync (verify against Figma radius collection).
   ---------------------------------------------------------- */
:root {
  --radius-none: 0px;
  --radius-xxs:  2px;
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-3xl:  20px;
  --radius-4xl:  24px;
  --radius-full: 9999px;
}

/* ----------------------------------------------------------
   WIDTHS
   ⚠️ repo-authored scale — not returned by Figma this sync (verify against Figma widths collection).
   ---------------------------------------------------------- */
:root {
  --width-xxs:   320px;
  --width-xs:    384px;
  --width-sm:    480px;
  --width-md:    560px;
  --width-lg:    640px;
  --width-xl:    768px;
  --width-2xl:   1024px;
  --width-3xl:   1280px;
  --width-4xl:   1440px;
  --width-5xl:   1600px;
  --width-6xl:   1920px;
  --paragraph-max-width: 720px;

  /* Breakpoints and layout aliases (repo-derived from the verified width scale) */
  --breakpoint-sm: var(--width-sm);
  --breakpoint-md: var(--width-xl);
  --breakpoint-lg: var(--width-2xl);
  --breakpoint-xl: var(--width-3xl);

  /* Container */
  --container-padding-mobile:  16px;
  --container-padding-desktop: 32px;
  --container-max-width:       1440px;
}

/* ----------------------------------------------------------
   TYPOGRAPHY SCALE
   Font family — ✅ verified: Figma Font/Family = "Inter" (nodes 240:1920, 2937:212).
   (Prior "SF Pro" was an unverified assumption and has been corrected.)
   ✅ The full verified Figma type scale is now captured below as `--fs-*` (from Typography
   foundation 1:54). The legacy `--text-*-size` / `--display-*-size` tokens are SF-Pro-era
   and superseded — kept only for existing component compatibility; migrate to `--fs-*`.
   ---------------------------------------------------------- */
:root {
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; /* ✅ Inter */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; /* ✅ Inter */

  /* ==========================================================
     FIGMA-VERIFIED TYPE SCALE ✅ — full scale from Typography foundation (page 1:54).
     Font sizes (px). Default line-height is 1.4× unless a fixed value is noted in Figma.
     ⚠️ This is the canonical Figma scale. The legacy `--text-*-size` / `--display-*-size`
     tokens below are SF-Pro-era and superseded — migrate components to these.
     ========================================================== */
  /* Body text — fontsize/body/* */
  --fs-body-xs:  12px;  /* body/xs */
  --fs-body-sm:  14px;  /* body/sm */
  --fs-body-md:  16px;  /* body/md */
  --fs-body-lg:  18px;  /* body/lg */
  --fs-body-xxs: 10px;  /* XXSmall */
  /* Headings — fontsize/heading/* (h6→h0) */
  --fs-h6: 20px;
  --fs-h5: 24px;
  --fs-h4: 28px;
  --fs-h3: 32px;
  --fs-h2: 36px;
  --fs-h1: 40px;
  --fs-h0: 44px;
  /* Display — Display/D9→D1 */
  --fs-display-d9: 48px;
  --fs-display-d8: 52px;
  --fs-display-d7: 56px;
  --fs-display-d6: 60px;
  --fs-display-d5: 64px;
  --fs-display-d4: 68px;
  --fs-display-d3: 72px;
  --fs-display-d2: 76px;
  --fs-display-d1: 80px;
  --lh-tight: 1.4;   /* default Figma line-height multiplier */

  /* Font weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* --- Text styles --- */
  --text-xs-size:     10px;  --text-xs-lh:     14px;
  --text-sm-size:     11px;  --text-sm-lh:     16px;
  --text-compact-size:12px;  --text-compact-lh:18px;
  --text-md-size:     13px;  --text-md-lh:     18px;
  --text-lg-size:     15px;  --text-lg-lh:     22px;
  --text-xl-size:     17px;  --text-xl-lh:     26px;

  /* --- Label styles --- */
  --label-xs-size:      10px; --label-xs-lh:      12px;
  --label-sm-size:      11px; --label-sm-lh:      14px;
  --label-compact-size: 12px; --label-compact-lh: 16px;
  --label-md-size:      13px; --label-md-lh:      18px;
  --label-lg-size:      15px; --label-lg-lh:      20px;
  --label-xl-size:      17px; --label-xl-lh:      22px;

  /* --- Display styles --- */
  --display-xs-size:  16px; --display-xs-lh:  20px;
  --display-sm-size:  18px; --display-sm-lh:  22px;
  --display-md-size:  20px; --display-md-lh:  24px;
  --display-lg-size:  24px; --display-lg-lh:  28px;
  --display-xl-size:  32px; --display-xl-lh:  38px;
  --display-2xl-size: 40px; --display-2xl-lh: 46px;

  /* Borders, motion, layers, and verified component dimensions */
  --border-width-default: 1px;
  /* Motion. ⚠️ repo-defined — Figma carries no motion spec, so these are
     conventions, not measurements. --ease-standard is kept as the back-compat
     alias existing recipes already reference. */
  --duration-fast:   100ms;  /* hover, focus, colour swaps */
  --duration-normal: 200ms;  /* default transition */
  --duration-slow:   300ms;  /* modal, drawer, reveal */
  --duration-loading: calc(var(--duration-normal) * 4);
  --duration-loading-reduced: calc(var(--duration-normal) * 8);
  --ease-standard: ease;
  --ease-linear: linear;                              /* progress, looping */
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);          /* exit */
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);          /* enter */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);        /* move, resize */
  --rotation-full: 1turn;
  /* Layer scale. Ascending, gapped by 50–100 so a new layer can be inserted
     without renumbering. Tooltip is highest: it may be raised from any layer,
     including modal content. */
  --z-base: 0;
  --z-sticky: 900;
  --z-dropdown: 1000;
  --z-overlay: 1050;
  --z-modal: 1100;
  --z-popover: 1150;
  --z-toast: 1200;
  --z-tooltip: 1300;
  /* Button heights — ✅ verified from Figma Button set 59:1601 (2026-07-15).
     Medium = 40px (NOT 48px — the earlier 48px was the Sign-in instance = xlarge). */
  --button-height-xxs:  28px;
  --button-height-xs:   32px;
  --button-height-sm:   36px;
  --button-height-md:   40px;
  --button-height-lg:   44px;
  --button-height-xl:   48px;
  /* Input field — ✅ measured from Figma set 63:1152 (nodes 63:1153, 317:2472, 4406:4826, 97:1769) */
  --input-height-xs: 36px;    /* Size=XSmall */
  --input-height-sm: 40px;    /* Size=Small */
  --input-height-md: 48px;    /* Size=Medium */
  --input-height-lg: 56px;    /* Size=Large */
  --input-padding-inline-xs: 12px;
  --input-padding-leading-sm: 20px;
  --input-padding-trailing-sm: 12px;
  --input-padding-inline-md: 20px;
  --input-padding-leading-lg: 20px;
  --input-padding-trailing-lg: 12px;
  --input-font-size-xs: 13px;
  --input-font-size-sm: 14px;
  --input-font-size-md: 14px;
  --input-font-size-lg: 16px;
  --input-line-height: 1.4;
  --input-icon-size-sm: 16px;
  --input-icon-size-md: 20px;
  --input-icon-size-lg: 24px;
  --input-label-size: 12px;
  --control-padding-inline-md: var(--input-padding-inline-md);
  /* Button padding-inline. md=20 and xl=24 are ✅ measured (set 59:1601).
     The other four follow the observed height/2 rule — ⚠️ assumed, not measured. */
  --button-padding-inline-xxs: 14px; /* ⚠️ assumed */
  --button-padding-inline-xs:  16px; /* ⚠️ assumed */
  --button-padding-inline-sm:  18px; /* ⚠️ assumed */
  --button-padding-inline-md:  20px; /* ✅ measured */
  --button-padding-inline-lg:  22px; /* ⚠️ assumed */
  --button-padding-inline-xl:  24px; /* ✅ measured */
  /* Button label size. md=14 and xl=16 are ✅ measured; the rest reuse the
     body scale — ⚠️ assumed. Label weight 500 is ✅ measured for all sizes. */
  --button-font-size-xxs: var(--fs-body-xs); /* ⚠️ assumed */
  --button-font-size-xs:  var(--fs-body-xs); /* ⚠️ assumed */
  --button-font-size-sm:  var(--fs-body-xs); /* ⚠️ assumed */
  --button-font-size-md:  var(--fs-body-sm); /* ✅ measured 14px */
  --button-font-size-lg:  var(--fs-body-sm); /* ⚠️ assumed */
  --button-font-size-xl:  var(--fs-body-md); /* ✅ measured 16px */
  --button-font-weight:   var(--fw-medium);  /* ✅ measured 500 */
  --a11y-pixel: 1px;
  /* Form control — ✅ measured from Figma set 63:1396 */
  --choice-size-md: 16px;
  --choice-size-lg: 20px;
  --choice-gap: 8px;
  --choice-mark-stroke: 2px;
  --choice-disabled-bg: #f4f4f4;
  /* Toggle track — ✅ measured from Figma set 63:4587 */
  --toggle-track-w-md: 36px;  --toggle-track-h-md: 20px;
  --toggle-track-w-lg: 46px;  --toggle-track-h-lg: 26px;
  --toggle-knob-md: 16px;
  --toggle-knob-lg: 22px;
  --toggle-inset: 2px;
  --switch-width: var(--toggle-track-w-md);
  --switch-height: var(--toggle-track-h-md);
  --switch-knob: var(--toggle-knob-md);
  --toggle-off: #b2bbc4;
  --toggle-on-disabled: #60a4f4;
  --toggle-off-disabled: #e8ebed;
  /* Label (status pill) heights — ✅ measured from Figma set 63:4661 */
  --label-height-xs: 20px;
  --label-height-sm: 24px;
  --label-height-md: 32px;
  --label-height-lg: 40px;
  --label-padding-xs: 8px;
  --label-padding-sm: 8px;
  --label-padding-md: 16px;
  --label-padding-lg: 16px;
  --label-font-xs: 12px;
  --label-font-sm: 13px;
  --label-font-md: 14px;
  --label-font-lg: 16px;
  --status-success-bg: #f0f9ec;
  --status-success-border: #a6d793;
  --status-info-bg: #ebf5ff;
  --status-info-border: #92c1f8;
  --status-info-text: #014ea9;
  --status-info-text-strong: #025eca;
  --status-warning-bg: #fff7ed;
  --status-warning-border: #ffd191;
  --status-warning-text: #d97f00;
  --status-error-bg: #fff2f2;
  --status-error-border: #f0a2a2;
  --status-inactive-bg: #f4f4f4;
  --status-inactive-text: #4c6075;
  /* Alert — ✅ measured from Figma set 63:1599 */
  --alert-max-width: 395px;
  --alert-padding-sm: 8px;
  --alert-padding-block-md: 12px;
  --alert-padding-inline-md: 16px;
  --alert-gap-sm: 4px;
  --alert-gap-md: 8px;
  --alert-icon-size: 20px;
  --alert-glyph-size: 16px;
  /* Tabs — ✅ measured from Figma set 63:1687 */
  --tab-height-xs: 42px;
  --tab-height-sm: 44px;
  --tab-height-md: 46px;
  --tab-padding-inline: 16px;
  --tab-padding-block: 12px;
  --tab-gap: 6px;
  --tab-number-gap: 5px;
  --tab-indicator-size: 2px;
  --tab-font-xs: 13px;
  --tab-font-sm: 14px;
  --tab-font-md: 16px;
  --tab-badge-padding-inline: 6px;
  --control-icon-size-sm: 16px;
  --app-icon-size-sm: 16px;
  --app-icon-size-md: 24px;
  --app-icon-size-lg: 32px;
  --app-icon-size-xl: 64px;
  /* Loader/spinner sizes — ✅ measured from Figma set 63:4515 */
  --spinner-size-xxs: 16px;  /* Size=XXSmall */
  --spinner-size-xs:  24px;  /* Size=XSmall */
  --spinner-size-sm:  32px;  /* Size=Small */
  --spinner-size-md:  48px;  /* Size=Regular */
  --spinner-size-lg:  56px;  /* Size=Large */
  --spinner-size-xl:  64px;  /* Size=XLarge */
  --spinner-stroke-xxs: 2px;
  --spinner-stroke-sm: 3px;
  --spinner-stroke-lg: 4px;
  /* Tooltip — ✅ from Figma set 63:4557 (dark surface + white text) */
  --tooltip-bg: #222b35;     /* Variant/Gray/gray-900 */
  --tooltip-fg: #ffffff;     /* Main-color/white */
  --tooltip-width: 150px;
  --tooltip-height-xs: 25px;
  --tooltip-height-sm: 26px;
  --tooltip-height-md: 33px;
  --tooltip-padding-block-compact: 4px;
  --tooltip-padding-inline-compact: 8px;
  --tooltip-padding-block-default: 8px;
  --tooltip-padding-inline-default: 12px;
  --tooltip-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  /* Modal — provenance node 63:2990 / set 63:3134. ⚠️ Container widths and
     padding NOT measured from Figma (recorded gap); these are conventional
     assumptions pending a measurement pass. Layout Types 1/2/3 unmeasured — not
     implemented. Backdrop reuses --bg-overlay. */
  --modal-width-md: 400px;   /* ⚠️ assumed */
  --modal-width-lg: 560px;   /* ⚠️ assumed */
  --modal-padding: 24px;     /* ⚠️ assumed */
  --modal-gap: 16px;         /* ⚠️ assumed */
  --modal-backdrop: rgb(10 13 18 / 60%);  /* ⚠️ assumed — from --bg-overlay #0a0d12 */
  /* Avatar sizes — ✅ measured from Figma set 1544:3952 */
  --avatar-size-sm: 30px;    /* Property 1=small */
  --avatar-size-md: 40px;    /* Property 1=medium */
  --avatar-size-lg: 60px;    /* Property 1=large */
  --avatar-size-xl: 80px;    /* Property 1=big */
  --avatar-status-sm: 8px;
  --avatar-status-md: 12px;
  --avatar-status-lg: 18px;
  --avatar-status-xl: 24px;
  --avatar-status-border: 2px;
  /* Breadcrumb — ✅ measured from Figma set 1922:5842 */
  --breadcrumb-gap: 6px;
  --breadcrumb-item-gap: 4px;
  --breadcrumb-padding-inline: 4px;
  --breadcrumb-height: 28px;
  --breadcrumb-icon-size: 16px;
  /* Pagination — ✅ measured from Figma set 1594:3755 */
  --pagination-gap: 4px;
  --pagination-section-gap: 20px;
  --pagination-control-gap: 12px;
  --pagination-select-radius: 8px;
  --pagination-ellipsis-font-size: 10px;
  /* Badge count — ✅ measured from Figma set 828:5302 */
  --badge-height-md: 17px;
  --badge-height-xs: 14px;
  --badge-padding-md: 8px;
  --badge-padding-sm: 4px;
  --badge-font-md: 12px;
  --badge-font-xs: 10px;
  --badge-warning: #eab308;
  /* Step marker — ✅ measured from Figma NumBase set 6688:1024 */
  --step-marker-size: 24px;
  --step-marker-icon-size: 16px;
  --stepper-gap: 8px;
  --stepper-connector-width: 48px;
  /* Scroll bar — ✅ from Figma set 1195:14091 */
  --scrollbar-thumb-width: 8px;
  --scrollbar-thumb-color: #b2bbc4;  /* Variant/Gray/gray-3 */
  --scrollbar-track-color: #f4f4f4;  /* Variant/Gray/gray-50 */
  /* Pagination item — ✅ measured from Figma 1594:1756 */
  --pagination-item-size: 32px;
  --touch-target-min: 44px;
}

/* ----------------------------------------------------------
   UTILITY CLASSES — Text
   ---------------------------------------------------------- */
.text-xs      { font-size: var(--text-xs-size);      line-height: var(--text-xs-lh); }
.text-sm      { font-size: var(--text-sm-size);      line-height: var(--text-sm-lh); }
.text-compact { font-size: var(--text-compact-size); line-height: var(--text-compact-lh); }
.text-md      { font-size: var(--text-md-size);      line-height: var(--text-md-lh); }
.text-lg      { font-size: var(--text-lg-size);      line-height: var(--text-lg-lh); }
.text-xl      { font-size: var(--text-xl-size);      line-height: var(--text-xl-lh); }

.display-xs   { font-size: var(--display-xs-size);   line-height: var(--display-xs-lh);  font-weight: var(--fw-semibold); }
.display-sm   { font-size: var(--display-sm-size);   line-height: var(--display-sm-lh);  font-weight: var(--fw-semibold); }
.display-md   { font-size: var(--display-md-size);   line-height: var(--display-md-lh);  font-weight: var(--fw-semibold); }
.display-lg   { font-size: var(--display-lg-size);   line-height: var(--display-lg-lh);  font-weight: var(--fw-semibold); }
.display-xl   { font-size: var(--display-xl-size);   line-height: var(--display-xl-lh);  font-weight: var(--fw-bold); }
.display-2xl  { font-size: var(--display-2xl-size);  line-height: var(--display-2xl-lh); font-weight: var(--fw-bold); }

/* /assets/st-bridge.css */
/* UIUXIcon — bridge from the Ocean token names to SilverTiger.
   Load order: ocean tokens → silvertiger tokens → this file → ocean components (gap families) → silvertiger components → app.css.
   SilverTiger has no Segmented control, Code block, Toast, Kbd, Empty state, Tag or Nav item yet, so those
   Ocean recipes stay but resolve to SilverTiger foundations through the aliases below.
   Silvertiger files in assets/silvertiger/ are copied unchanged from web-silvertiger-design-system (see VERSION). */
:root {
  /* type: Ocean's compact SF scale → SilverTiger's Figma scale (--fs-*, Inter, 1.4×) */
  --font-size-xs: var(--fs-body-xxs);
  --font-size-sm: var(--fs-body-xs);
  --font-size-md: var(--fs-body-sm);
  --font-size-lg: var(--fs-body-md);
  --font-size-xl: var(--fs-body-lg);
  --line-height-xs: 14px;
  --line-height-sm: 17px;
  --line-height-md: 20px;
  --line-height-lg: 22px;
  --line-height-xl: 25px;
  --font-size-label-xs: var(--fs-body-xxs);
  --font-size-label-sm: var(--fs-body-xs);
  --font-size-label-compact: var(--fs-body-xs);
  --font-size-label-md: var(--fs-body-sm);
  --font-size-label-lg: var(--fs-body-md);
  --font-size-label-xl: var(--fs-body-lg);
  --line-height-label-xs: 14px;
  --line-height-label-sm: 17px;
  --line-height-label-compact: 17px;
  --line-height-label-md: 20px;
  --line-height-label-lg: 22px;
  --line-height-label-xl: 25px;
  --font-weight-regular: var(--fw-regular);
  --font-weight-medium: var(--fw-medium);
  --font-weight-semibold: var(--fw-semibold);
  --font-weight-bold: var(--fw-bold);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* colour + focus: Ocean's --focus-ring is a box-shadow, SilverTiger's is a colour */
  --focus-ring: var(--ring-focus);
  --border-brand: var(--border-brand-primary);
  --duration-base: var(--duration-normal);
  --ease-default: var(--ease-standard);
}

/* DS gap: SilverTiger Button has no icon-only size. Square button built from the Button height tokens. */
.st-button--icon { width: var(--button-height-md); min-width: var(--button-height-md); padding-inline: 0; }
.st-button--icon.st-button--sm { width: var(--button-height-sm); min-width: var(--button-height-sm); }
.st-button > svg, .st-button > span > svg { flex: none; }
/* text variant on neutral toolbars: icon buttons stay neutral, brand on hover */
.st-button--text.st-button--icon { color: var(--fg-secondary); }
.st-button--text.st-button--icon:hover { color: var(--fg-brand-primary); background: var(--bg-brand-primary); }
[data-theme="dark"] .st-button--text:hover { background: var(--bg-secondary); }

/* /assets/ocean/ocean-components.css */
/* Ocean DS component recipes.
 * Import after colors_and_type.css.
 * Source: Figma Buttons/Button, node 3287:427074; audited 2026-07-14.
 */

.ocean-button {
  --button-height: var(--button-height-md);
  --button-padding-x: var(--button-padding-x-md);
  --button-gap: var(--button-gap-sm);
  --button-icon-size: var(--button-icon-md);
  --button-font-size: var(--font-size-label-sm);
  --button-line-height: var(--line-height-label-sm);
  --button-radius: var(--button-radius-default);

  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: var(--button-gap);
  min-width: 0;
  height: var(--button-height);
  padding-block: 0;
  padding-inline: var(--button-padding-x);
  overflow: hidden;
  border: var(--border-width-default) solid transparent;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-size: var(--button-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--button-line-height);
  letter-spacing: var(--letter-spacing-none);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--button-transition),
    border-color var(--button-transition),
    color var(--button-transition),
    box-shadow var(--button-transition);
}

.ocean-button > svg,
.ocean-button > img,
.ocean-button > .ocean-button__icon {
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  flex: 0 0 var(--button-icon-size);
}

.ocean-button--xs {
  --button-height: var(--button-height-xs);
  --button-padding-x: var(--button-padding-x-xs);
  --button-icon-size: var(--button-icon-xs);
}

.ocean-button--sm {
  --button-height: var(--button-height-sm);
  --button-padding-x: var(--button-padding-x-sm);
  --button-icon-size: var(--button-icon-sm);
}

.ocean-button--lg {
  --button-height: var(--button-height-lg);
  --button-padding-x: var(--button-padding-x-lg);
  --button-gap: var(--button-gap-lg);
  --button-icon-size: var(--button-icon-lg);
  --button-font-size: var(--font-size-label-md);
  --button-line-height: var(--line-height-label-md);
}

.ocean-button--xl {
  --button-height: var(--button-height-xl);
  --button-padding-x: var(--button-padding-x-xl);
  --button-gap: var(--button-gap-lg);
  --button-icon-size: var(--button-icon-xl);
  --button-font-size: var(--font-size-label-lg);
  --button-line-height: var(--line-height-label-lg);
  --button-radius: var(--button-radius-xl);
}

.ocean-button--primary {
  color: var(--text-white);
  background: var(--bg-brand-solid);
}

.ocean-button--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--bg-brand-solid-hover);
}

.ocean-button--primary[data-state="hover"] {
  background: var(--bg-brand-solid-hover);
}

.ocean-button--secondary {
  color: var(--text-brand-primary);
  background: var(--bg-primary);
  border-color: var(--border-brand);
}

.ocean-button--secondary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--bg-brand-primary);
  border-color: var(--border-brand-hover);
}

.ocean-button--secondary[data-state="hover"] {
  background: var(--bg-brand-primary);
  border-color: var(--border-brand-hover);
}

.ocean-button--tertiary {
  color: var(--text-tertiary);
  background: transparent;
}

.ocean-button--tertiary:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.ocean-button--tertiary[data-state="hover"] {
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.ocean-button--destructive {
  color: var(--text-white);
  background: var(--bg-error-solid);
  border-color: var(--border-error-solid);
}

.ocean-button--destructive:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--bg-error-solid-hover);
}

.ocean-button--link {
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  color: var(--text-brand-primary);
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-none);
}

.ocean-button--link:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--text-brand-secondary);
  text-decoration: underline;
}

.ocean-button:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-xs), var(--focus-ring);
}

.ocean-button[data-state="focused"] {
  box-shadow: var(--shadow-xs), var(--focus-ring);
}

.ocean-button:disabled,
.ocean-button[aria-disabled="true"] {
  color: var(--fg-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.ocean-button--primary:disabled,
.ocean-button--primary[aria-disabled="true"] {
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-xs);
}

.ocean-button--secondary:disabled,
.ocean-button--secondary[aria-disabled="true"] {
  background: var(--bg-primary);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-xs);
}

.ocean-button--tertiary:disabled,
.ocean-button--tertiary[aria-disabled="true"] {
  background: transparent;
}

.ocean-button[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.ocean-button__spinner {
  box-sizing: border-box;
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  flex: 0 0 var(--button-icon-size);
  border: var(--border-width-default) solid currentColor;
  border-right-color: transparent;
  border-radius: var(--radius-full);
  animation: ocean-button-spin var(--duration-slower) linear infinite;
}

.ocean-button--icon-only {
  width: var(--button-icon-only-md);
  min-width: var(--button-icon-only-md);
  height: var(--button-icon-only-md);
  padding: 0;
}

.ocean-button--icon-only.ocean-button--sm {
  width: var(--button-icon-only-sm);
  min-width: var(--button-icon-only-sm);
  height: var(--button-icon-only-sm);
}

.ocean-button--icon-only.ocean-button--lg {
  width: var(--button-icon-only-lg);
  min-width: var(--button-icon-only-lg);
  height: var(--button-icon-only-lg);
}

.ocean-button--icon-only.ocean-button--xl {
  width: var(--button-icon-only-xl);
  min-width: var(--button-icon-only-xl);
  height: var(--button-icon-only-xl);
}

@media (prefers-reduced-motion: reduce) {
  .ocean-button {
    transition: none;
  }

  .ocean-button__spinner {
    animation: none;
  }
}

@keyframes ocean-button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══════════════════════════════════════════════════════════════
 * Recipes bổ sung — số đo lấy từ Figma 2026-07-14.
 * Chi tiết variant/kích thước: COMPONENT-SPECS.md
 * ════════════════════════════════════════════════════════════ */

/* ── Alert (1130:81134) ─────────────────────────────────────── */
.ocean-alert {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.ocean-alert--full-width {
  border-radius: var(--radius-none);
  border-inline: 0;
  box-shadow: none;
}
.ocean-alert__icon { flex: 0 0 auto; color: var(--fg-tertiary); }
.ocean-alert--brand   .ocean-alert__icon { color: var(--fg-brand-primary); }
.ocean-alert--error   .ocean-alert__icon { color: var(--fg-error-primary); }
.ocean-alert--warning .ocean-alert__icon { color: var(--fg-warning-primary); }
.ocean-alert--success .ocean-alert__icon { color: var(--fg-success-primary); }
.ocean-alert__title {
  font-size: var(--font-size-label-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label-md);
  color: var(--text-primary);
}
.ocean-alert__body {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-tertiary);
}

/* ── Modal (4057:415205) ────────────────────────────────────── */
.ocean-modal__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: var(--backdrop-blur-md);
  display: grid;
  place-items: center;
  padding: var(--spacing-xl);
}
.ocean-modal {
  box-sizing: border-box;
  width: min(100%, 400px);
  padding: var(--spacing-3xl);
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
}
.ocean-modal__title {
  font-family: var(--font-display);
  font-size: var(--font-size-display-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-display-xs);
  color: var(--text-primary);
}
.ocean-modal__supporting {
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-tertiary);
}
.ocean-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}
@media (max-width: 640px) {
  .ocean-modal__footer { flex-direction: column-reverse; }
  .ocean-modal__footer > .ocean-button { width: 100%; }
}

/* ── Dropdown / menu (3281:383083) ──────────────────────────── */
.ocean-menu {
  min-width: 240px;
  padding: var(--spacing-xs);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}
.ocean-menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  height: 32px;
  padding-inline: var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
}
.ocean-menu__item:hover,
.ocean-menu__item[data-state="active"] { background: var(--bg-primary-hover); }
.ocean-menu__item[aria-disabled="true"] { color: var(--text-disabled); pointer-events: none; }
.ocean-menu__divider { height: 1px; margin: var(--spacing-xs) 0; background: var(--border-secondary); }

/* ── Progress bar (1085:57382) ──────────────────────────────── */
.ocean-progress {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-quaternary);
  overflow: hidden;
}
.ocean-progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--bg-brand-solid);
  transition: width var(--duration-normal) var(--ease-out);
}

/* ── File upload dropzone (139:335) ─────────────────────────── */
.ocean-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) var(--spacing-3xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-xl);
  text-align: center;
  font-family: var(--font-body);
  cursor: pointer;
}
.ocean-dropzone:hover { background: var(--bg-secondary); }
.ocean-dropzone__cta {
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-brand-secondary);
}
.ocean-dropzone__hint {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  color: var(--text-tertiary);
}

/* ── Sidebar nav item (1152:89220) ──────────────────────────── */
.ocean-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  height: 40px;
  padding-inline: var(--spacing-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}
.ocean-nav-item > svg { color: var(--fg-quaternary); flex: 0 0 auto; }
.ocean-nav-item:hover { background: var(--bg-secondary); }
.ocean-nav-item[aria-current="page"] { background: var(--bg-active); color: var(--text-primary); }
.ocean-nav-item[aria-current="page"] > svg { color: var(--fg-brand-primary); }

/* ── Table (1227:110587) ────────────────────────────────────── */
.ocean-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  font-family: var(--font-body);
}
.ocean-table thead th {
  padding: var(--spacing-lg) var(--spacing-3xl);
  background: var(--bg-secondary);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-size: var(--font-size-label-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label-xs);
  color: var(--text-quaternary);
  text-align: left;
}
.ocean-table tbody td {
  padding: var(--spacing-lg) var(--spacing-3xl);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-secondary);
}
.ocean-table tbody tr:hover { background: var(--bg-primary-hover); }

/* ── Tabs (1118:69893) ──────────────────────────────────────── */
.ocean-tabs { display: flex; gap: var(--spacing-xs); font-family: var(--font-body); }
.ocean-tabs--underline { gap: 0; box-shadow: inset 0 -1px 0 var(--border-secondary); }
.ocean-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  height: 36px;
  padding-inline: var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-quaternary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ocean-tab:hover { color: var(--text-secondary); }
.ocean-tab[aria-selected="true"] { color: var(--text-brand-secondary); background: var(--bg-brand-primary); }
.ocean-tabs--underline .ocean-tab { border-radius: 0; }
.ocean-tabs--underline .ocean-tab[aria-selected="true"] {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--border-brand-primary);
}

/* ── Tag (3307:417515) ──────────────────────────────────────── */
.ocean-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 24px;
  padding-inline: var(--spacing-md);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}
.ocean-tag__count {
  padding-inline: var(--spacing-xs);
  background: var(--bg-tertiary);
  border-radius: var(--radius-xs);
}

/* ── Tooltip (1052:489) — dark surface ─────────────────────── */
.ocean-tooltip {
  max-width: 240px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gray-950);
  color: var(--text-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-label-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label-xs);
}
.ocean-tooltip__supporting { color: var(--gray-300); font-weight: var(--font-weight-medium); }

/* ── Toast / Notification (20521:4130) ─────────────────────── */
.ocean-toast {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}
.ocean-toast__title {
  font-size: var(--font-size-label-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-toast__body {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-tertiary);
}

/* ── Pagination (1115:68622) ────────────────────────────────── */
.ocean-pagination { display: flex; align-items: center; gap: var(--spacing-xs); font-family: var(--font-body); }
.ocean-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ocean-pagination--circle .ocean-pagination__item { border-radius: var(--radius-full); }
.ocean-pagination__item:hover { background: var(--bg-primary-hover); }
.ocean-pagination__item[aria-current="page"] { background: var(--bg-active); color: var(--text-primary); }

/* ── Empty state (1182:317) ─────────────────────────────────── */
.ocean-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
  padding: var(--spacing-4xl);
  text-align: center;
  font-family: var(--font-body);
}
.ocean-empty__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-empty__body {
  max-width: 380px;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-tertiary);
}
.ocean-empty__actions { display: flex; gap: var(--spacing-lg); }

/* ── Breadcrumbs (1122:153) ─────────────────────────────────── */
.ocean-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-family: var(--font-body);
  font-size: var(--font-size-label-sm);
}
.ocean-breadcrumbs__item { color: var(--text-quaternary); text-decoration: none; }
.ocean-breadcrumbs__item:hover { color: var(--text-secondary); }
.ocean-breadcrumbs__item[aria-current="page"] { color: var(--text-secondary); font-weight: var(--font-weight-semibold); }
.ocean-breadcrumbs__sep { color: var(--fg-quaternary); }

/* ── Slider (1086:534) ──────────────────────────────────────── */
.ocean-slider { position: relative; height: 8px; border-radius: var(--radius-full); background: var(--bg-quaternary); }
.ocean-slider__fill { position: absolute; height: 100%; border-radius: var(--radius-full); background: var(--bg-brand-solid); }
.ocean-slider__handle {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 2px solid var(--brand-600);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: grab;
}
.ocean-slider__handle:focus-visible { outline: 0; box-shadow: var(--shadow-md), var(--focus-ring); }

/* ── Content divider (1252:126874) ──────────────────────────── */
.ocean-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-family: var(--font-body);
}
.ocean-divider::before,
.ocean-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-secondary); }
.ocean-divider__label {
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-tertiary);
}

/* ── Textarea (1238:278) ────────────────────────────────────── */
.ocean-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 180px;
  padding: var(--spacing-lg);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
  color: var(--text-primary);
  resize: vertical;
}
.ocean-textarea::placeholder { color: var(--text-placeholder); }
.ocean-textarea:focus-visible { outline: 0; border-color: var(--border-brand-primary); box-shadow: var(--focus-ring); }
.ocean-textarea:disabled { background: var(--bg-disabled-subtle); color: var(--text-disabled); }
.ocean-textarea--destructive { border-color: var(--border-error-subtle); }
.ocean-textarea--destructive:focus-visible { border-color: var(--border-error); box-shadow: var(--focus-ring-error); }

/* ── Verification code (1106:66757) ─────────────────────────── */
.ocean-otp { display: flex; gap: var(--spacing-md); }
.ocean-otp__cell {
  width: 80px;
  height: 80px;
  text-align: center;
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: var(--font-size-display-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-otp__cell:focus-visible { outline: 0; border-color: var(--border-brand-primary); box-shadow: var(--focus-ring); }

/* ── Loading spinner (1192:610) ─────────────────────────────── */
.ocean-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-secondary);
  border-top-color: var(--fg-brand-primary);
  border-radius: var(--radius-full);
  animation: ocean-button-spin var(--duration-slower) linear infinite;
}
@media (prefers-reduced-motion: reduce) { .ocean-spinner { animation: none; } }

/* ── Progress circle / steps — cấu trúc SVG, xem COMPONENT-SPECS §17–18 ── */
.ocean-progress-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: var(--border-width-default) solid var(--border-primary);
  color: var(--fg-quaternary);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
}
.ocean-progress-step__icon--current { border-color: var(--fg-brand-primary); color: var(--fg-brand-primary); background: var(--bg-brand-primary); }
.ocean-progress-step__icon--complete { border-color: var(--bg-brand-solid); background: var(--bg-brand-solid); color: var(--text-white); }

/* ══ Batch 4 — app shells (COMPONENT-SPECS §26–34) ══════════ */

/* ── Metric item (1560:266217) ──────────────────────────────── */
.ocean-metric {
  box-sizing: border-box;
  padding: var(--spacing-2xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-body);
}
.ocean-metric__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--text-tertiary); }
.ocean-metric__value {
  font-family: var(--font-display);
  font-size: var(--font-size-display-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-metric__change--up { color: var(--fg-success-primary); }
.ocean-metric__change--down { color: var(--fg-error-primary); }

/* ── Inline CTA (1255:131915) ───────────────────────────────── */
.ocean-inline-cta {
  padding: var(--spacing-3xl);
  background: var(--bg-secondary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  font-family: var(--font-body);
}
.ocean-inline-cta--brand { background: var(--bg-brand-primary); border-color: var(--border-brand-secondary); }
.ocean-inline-cta__title { font-size: var(--font-size-display-xs); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.ocean-inline-cta__body { font-size: var(--font-size-sm); color: var(--text-tertiary); }

/* ── Featured icon (Light style) ────────────────────────────── */
.ocean-featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-brand-secondary);
  color: var(--fg-brand-primary);
}
.ocean-featured-icon--sm { width: 32px; height: 32px; }
.ocean-featured-icon--lg { width: 48px; height: 48px; }
.ocean-featured-icon--xl { width: 56px; height: 56px; }
.ocean-featured-icon--modern { border-radius: var(--radius-lg); }
.ocean-featured-icon--success { background: var(--bg-success-primary); color: var(--fg-success-primary); }
.ocean-featured-icon--warning { background: var(--bg-warning-primary); color: var(--fg-warning-primary); }
.ocean-featured-icon--error { background: var(--bg-error-primary); color: var(--fg-error-primary); }

/* ── Avatar group (1274:812) ────────────────────────────────── */
.ocean-avatar-group { display: inline-flex; align-items: center; }
.ocean-avatar-group > * { margin-left: -8px; border: 2px solid var(--bg-primary); border-radius: var(--radius-full); }
.ocean-avatar-group > *:first-child { margin-left: 0; }
.ocean-avatar-group__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--font-size-label-sm);
  font-weight: var(--font-weight-semibold);
}

/* ── Badge group / announcement (1046:8088) ─────────────────── */
.ocean-badge-group {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xxs) var(--spacing-md) var(--spacing-xxs) var(--spacing-xxs);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--font-size-label-sm);
  color: var(--text-secondary);
}

/* ── Activity feed item (1254:128631) ───────────────────────── */
.ocean-feed-item { display: flex; gap: var(--spacing-lg); font-family: var(--font-body); }
.ocean-feed-item__connector { position: relative; }
.ocean-feed-item__connector::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: -12px;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border-secondary);
}
.ocean-feed-item__actor { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.ocean-feed-item__meta { font-size: var(--font-size-xs); color: var(--text-quaternary); }

/* ══ Batch 5 — data viz (COMPONENT-SPECS §35–39) ═══════════ */

/* Chart card wrapper + default brand-ramp series palette.
 * For multi-series categorical charts, override --chart-N with a
 * higher-contrast palette (see the dataviz skill). */
.ocean-chart-card {
  --chart-grid: var(--border-tertiary);
  --chart-axis: var(--border-secondary);
  --chart-label: var(--text-tertiary);
  --chart-1: var(--brand-700);
  --chart-2: var(--brand-500);
  --chart-3: var(--brand-300);
  --chart-4: var(--brand-600);
  --chart-5: var(--brand-400);
  padding: var(--spacing-2xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-body);
}
.ocean-chart-card__axis { font-size: var(--font-size-xs); color: var(--chart-label); }
.ocean-chart-legend { display: flex; flex-wrap: wrap; gap: var(--spacing-lg); font-size: var(--font-size-sm); color: var(--text-tertiary); }
.ocean-chart-legend__swatch { width: 8px; height: 8px; border-radius: var(--radius-full); }

/* ── Video player 16:9 (9264:576771) ────────────────────────── */
.ocean-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
}
.ocean-video__overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--fg-white);
  background: var(--alpha-white-40);
  backdrop-filter: var(--backdrop-blur-md);
  border-radius: var(--radius-full);
  cursor: pointer;
}
.ocean-video__controls {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  color: var(--fg-white);
  background: linear-gradient(to top, rgba(10,13,18,0.7), transparent);
}
.ocean-video__scrubber { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--alpha-white-20); }
.ocean-video__scrubber-fill { height: 100%; border-radius: var(--radius-full); background: var(--fg-white); }

/* ══ Batch 6 — mobile/Ocean (COMPONENT-SPECS §40–50) ═══════ */

/* ── Bottom sheet (20549:98568) ─────────────────────────────── */
.ocean-bottom-sheet {
  width: 100%;
  max-width: 416px;
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-4xl) var(--radius-4xl) 0 0;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
}
.ocean-bottom-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto var(--spacing-xl);
  border-radius: var(--radius-full);
  background: var(--bg-quaternary);
}

/* ── Snack bar (20531:72515) ────────────────────────────────── */
.ocean-snackbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  height: 48px;
  padding-inline: var(--spacing-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
}
.ocean-snackbar--info    { background: var(--bg-brand-solid); color: var(--text-white); }
.ocean-snackbar--success { background: var(--bg-success-solid); color: var(--text-white); }
.ocean-snackbar--warning { background: var(--bg-warning-solid); color: var(--text-white); }
.ocean-snackbar--error   { background: var(--bg-error-solid); color: var(--text-white); }
.ocean-snackbar--surface { background: var(--bg-primary); color: var(--text-primary); border: var(--border-width-default) solid var(--border-secondary); }

/* ── Bottom nav (20542:98056) ───────────────────────────────── */
.ocean-bottom-nav {
  display: flex;
  height: 54px;
  background: var(--bg-primary);
  border-top: var(--border-width-default) solid var(--border-secondary);
  font-family: var(--font-body);
}
.ocean-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xxs);
  font-size: var(--font-size-label-xs);
  color: var(--text-quaternary);
  text-decoration: none;
}
.ocean-bottom-nav__item > svg { color: var(--fg-quaternary); }
.ocean-bottom-nav__item[aria-current="page"] { color: var(--text-brand-primary); }
.ocean-bottom-nav__item[aria-current="page"] > svg { color: var(--fg-brand-primary); }

/* ── ItemList row (20565:3719) ──────────────────────────────── */
.ocean-item-list-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  min-height: 57px;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--bg-primary);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-family: var(--font-body);
}
.ocean-item-list-row__title { font-size: var(--font-size-label-md); color: var(--text-primary); }
.ocean-item-list-row__sub { font-size: var(--font-size-sm); color: var(--text-tertiary); }
.ocean-item-list-row__value { margin-left: auto; font-size: var(--font-size-sm); color: var(--text-secondary); }
.ocean-item-list-row__arrow { color: var(--fg-quaternary); }

/* ── PIN dots (20440:7379) ──────────────────────────────────── */
.ocean-pin { display: flex; gap: var(--spacing-lg); }
.ocean-pin__dot { width: 16px; height: 16px; border-radius: var(--radius-full); border: 2px solid var(--border-primary); }
.ocean-pin__dot--filled { background: var(--bg-brand-solid); border-color: var(--border-brand-primary); }
.ocean-pin--error .ocean-pin__dot { border-color: var(--border-error); }

/* ══ Batch 7 — assets & decorative (COMPONENT-SPECS §51–54) ══ */

/* ── Verified tick (3302:418803) ────────────────────────────── */
.ocean-verified { display: inline-flex; width: 14px; height: 14px; color: var(--fg-brand-primary); }
.ocean-verified--sm { width: 12px; height: 12px; }
.ocean-verified--lg { width: 16px; height: 16px; }
.ocean-verified--xl { width: 18px; height: 18px; }
.ocean-verified--2xl { width: 20px; height: 20px; }

/* ── Company logo placeholder (bfd1f1c2) ────────────────────── */
.ocean-company-logo { color: var(--fg-quaternary); }
.ocean-company-logo--on-brand { color: var(--fg-white); }

/* ── Background pattern (25930becb) — decorative only ─────────
 * Grid behind a featured icon, fading out radially. Purely visual;
 * mark aria-hidden. Swap the mask for a dots/squares variant. */
.ocean-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border-secondary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-secondary) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
 * GAP-FILL — recipe thực thi còn thiếu cho Batch 3–7
 * (spec đã có trong COMPONENT-SPECS.md; đây là phần dựng-sẵn)
 * ═══════════════════════════════════════════════════════════════ */

/* ── Progress circle (§17) — set --value: 0..100 inline ─────── */
.ocean-progress-circle {
  --value: 0;
  --size: 240px;
  --thickness: 8px;
  width: var(--size);
  height: var(--size);
  border-radius: var(--radius-full);
  background:
    radial-gradient(closest-side, var(--bg-primary) calc(100% - var(--thickness)), transparent calc(100% - var(--thickness) + 1px)),
    conic-gradient(var(--bg-brand-solid) calc(var(--value) * 1%), var(--bg-quaternary) 0);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-progress-circle--xs { --size: 160px; }
.ocean-progress-circle--sm { --size: 200px; }
.ocean-progress-circle--lg { --size: 280px; }

/* ── Progress steps container (§18) ─────────────────────────── */
.ocean-steps { display: flex; align-items: flex-start; font-family: var(--font-body); }
.ocean-steps__item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.ocean-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border-secondary);
}
.ocean-steps__item--complete:not(:last-child)::after { background: var(--bg-brand-solid); }
.ocean-steps__label { margin-top: var(--spacing-md); font-size: var(--font-size-label-md); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.ocean-steps__desc { font-size: var(--font-size-sm); color: var(--text-tertiary); }

/* ── Code snippet (§22) — dark surface + mono ───────────────── */
.ocean-code {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}
.ocean-code__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gray-950);
  color: var(--gray-300);
}
.ocean-code__body { display: block; padding: var(--spacing-lg); color: var(--gray-200); white-space: pre; overflow-x: auto; }
.ocean-code__copy { color: var(--gray-300); background: transparent; border: 0; cursor: pointer; }

/* ── File-type icon (§33) — document + label chip ───────────── */
.ocean-file-icon {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 32px;
  height: 40px;
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-xs);
  padding-bottom: var(--spacing-xs);
}
.ocean-file-icon__label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--fg-white);
  padding: 1px 3px;
  border-radius: 2px;
}
.ocean-file-icon__label--pdf { background: var(--error-600); }
.ocean-file-icon__label--doc { background: var(--bg-brand-solid); }
.ocean-file-icon__label--xls { background: var(--success-600); }

/* ── Page / Card / Section header (§26) ─────────────────────── */
.ocean-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding-block: var(--spacing-2xl);
  font-family: var(--font-body);
}
.ocean-page-header__title {
  font-family: var(--font-display);
  font-size: var(--font-size-display-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.ocean-page-header__supporting { margin-top: var(--spacing-xs); font-size: var(--font-size-md); color: var(--text-tertiary); }
.ocean-page-header__actions { display: flex; gap: var(--spacing-lg); flex: 0 0 auto; }

.ocean-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-family: var(--font-body);
}
.ocean-card-header__title { font-family: var(--font-display); font-size: var(--font-size-display-sm); font-weight: var(--font-weight-semibold); color: var(--text-primary); }

.ocean-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
  font-family: var(--font-body);
}
.ocean-section-header__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); color: var(--text-primary); }

/* ── Command bar / ⌘K (§28) ─────────────────────────────────── */
.ocean-command {
  width: min(100%, 640px);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-family: var(--font-body);
}
.ocean-command__input {
  width: 100%;
  height: 52px;
  padding-inline: var(--spacing-xl);
  border: 0;
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-size: var(--font-size-md);
  color: var(--text-primary);
}
.ocean-command__input::placeholder { color: var(--text-placeholder); }
.ocean-command__list { max-height: 320px; overflow-y: auto; padding: var(--spacing-xs); }
.ocean-command__footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: var(--border-width-default) solid var(--border-secondary);
  font-size: var(--font-size-xs);
  color: var(--text-quaternary);
}
.ocean-kbd {
  padding: 1px var(--spacing-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

/* ── Slide-out menu (§29) ───────────────────────────────────── */
.ocean-slideout {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 440px);
  background: var(--bg-primary);
  border-left: var(--border-width-default) solid var(--border-secondary);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}
.ocean-slideout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
}
.ocean-slideout__body { flex: 1; overflow-y: auto; padding: var(--spacing-xl); }

/* ── Charts (§35–38) — pure-CSS templates ───────────────────
 * Bar/donut/gauge render without JS. Line & radar need SVG paths
 * (data-driven) — see COMPONENT-SPECS §35/§37 + the dataviz skill. */
.ocean-bar-chart { display: flex; align-items: flex-end; gap: var(--spacing-md); height: 240px; }
.ocean-bar-chart__bar { flex: 1; border-radius: var(--radius-xs) var(--radius-xs) 0 0; background: var(--chart-1, var(--brand-500)); }

.ocean-donut {
  --value: 0;
  --thickness: 32px;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(closest-side, var(--bg-primary) calc(100% - var(--thickness)), transparent calc(100% - var(--thickness) + 1px)),
    conic-gradient(var(--brand-500) calc(var(--value) * 1%), var(--bg-quaternary) 0);
}
.ocean-gauge {
  --value: 0;
  width: 240px;
  aspect-ratio: 2 / 1;
  border-radius: 240px 240px 0 0;
  background:
    radial-gradient(closest-side at 50% 100%, var(--bg-primary) calc(100% - 24px), transparent calc(100% - 23px)),
    conic-gradient(from 270deg at 50% 100%, var(--bg-brand-solid) calc(var(--value) * 0.5%), var(--bg-quaternary) 0);
}

/* ── NavigationBar (top app bar, §40) ───────────────────────── */
.ocean-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding-inline: var(--spacing-lg);
  background: var(--bg-primary);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
  font-family: var(--font-body);
}
.ocean-navbar__title { font-size: var(--font-size-label-lg); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.ocean-navbar--brand { background: var(--bg-brand-solid); border-color: transparent; }
.ocean-navbar--brand .ocean-navbar__title { color: var(--text-white); }

/* ── Carousel (§48) ─────────────────────────────────────────── */
.ocean-carousel { position: relative; }
.ocean-carousel__track {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ocean-carousel__track::-webkit-scrollbar { display: none; }
.ocean-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius-2xl); overflow: hidden; }
.ocean-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.ocean-carousel__arrow--prev { left: var(--spacing-lg); }
.ocean-carousel__arrow--next { right: var(--spacing-lg); }

/* ── Action menu (mobile action sheet, §43) ─────────────────── */
.ocean-action-menu {
  width: min(100%, 262px);
  padding: var(--spacing-xs);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}
.ocean-action-menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-label-md);
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ocean-action-menu__item:hover { background: var(--bg-primary-hover); }
.ocean-action-menu__item--destructive { color: var(--text-error-primary); }

/* ── Dialog (biometric / normal, §44) ───────────────────────── */
.ocean-dialog {
  width: min(100%, 270px);
  padding: var(--spacing-2xl);
  background: var(--bg-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  font-family: var(--font-body);
}
.ocean-dialog__title { font-size: var(--font-size-label-lg); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.ocean-dialog__body { margin-top: var(--spacing-xs); font-size: var(--font-size-sm); color: var(--text-tertiary); }

/* ── Text editor (§50) ──────────────────────────────────────── */
.ocean-editor {
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-primary);
}
.ocean-editor__toolbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxs);
  padding: var(--spacing-xs);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
}
.ocean-editor__btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--fg-tertiary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ocean-editor__btn:hover { background: var(--bg-secondary); }
.ocean-editor__btn[aria-pressed="true"] { background: var(--bg-active); color: var(--fg-brand-primary); }
.ocean-editor__content { min-height: 160px; padding: var(--spacing-lg); font-size: var(--font-size-md); line-height: var(--line-height-md); color: var(--text-primary); }

/* ── Segmented control (§55 · Figma 20599:3479) ──────────────
   A single-choice switch between 2–5 mutually exclusive views or
   values. Track holds a moving selected "pill".
   Markup: role="radiogroup" + role="radio"/aria-checked for a value
   picker; role="tablist" + role="tab"/aria-selected when each segment
   swaps a panel. Both attribute pairs are styled.
   All items are semibold at every state on purpose — swapping weight
   on selection reflows the track and makes the pill jitter.        */
.ocean-segmented {
  --segmented-height: var(--segmented-height-md);
  --segmented-padding-x: var(--segmented-padding-x-md);
  --segmented-icon-size: var(--segmented-icon-md);
  --segmented-radius: var(--segmented-radius-md);
  --segmented-item-radius: var(--segmented-item-radius-md);
  --segmented-font-size: var(--font-size-label-compact);
  --segmented-line-height: var(--line-height-label-compact);

  box-sizing: border-box;
  display: inline-flex;
  align-items: stretch;
  gap: var(--segmented-gap);
  height: var(--segmented-height);
  padding: var(--segmented-track-pad);
  background: var(--bg-tertiary);
  border-radius: var(--segmented-radius);
  font-family: var(--font-body);
}

.ocean-segmented__item {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  flex: 0 1 auto;
  min-width: 0;
  padding-block: 0;
  padding-inline: var(--segmented-padding-x);
  background: transparent;
  border: 0;
  border-radius: var(--segmented-item-radius);
  font-family: inherit;
  font-size: var(--segmented-font-size);
  line-height: var(--segmented-line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-none);
  color: var(--text-tertiary);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--segmented-transition),
    color var(--segmented-transition),
    box-shadow var(--segmented-transition);
}

.ocean-segmented__item > svg,
.ocean-segmented__item > img,
.ocean-segmented__item > .ocean-segmented__icon {
  width: var(--segmented-icon-size);
  height: var(--segmented-icon-size);
  flex: 0 0 var(--segmented-icon-size);
}

/* label truncates inside its own segment rather than widening the track */
.ocean-segmented__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Selected ──────────────────────────────────────────────── */
.ocean-segmented__item[aria-checked="true"],
.ocean-segmented__item[aria-selected="true"],
.ocean-segmented__item[data-state="selected"] {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* ── Hover (unselected only) ───────────────────────────────── */
.ocean-segmented__item:hover:not([aria-checked="true"]):not([aria-selected="true"]):not([data-state="selected"]):not(:disabled):not([aria-disabled="true"]) {
  color: var(--text-secondary);
  background: var(--bg-active);
}
.ocean-segmented__item[data-state="hover"]:not([aria-checked="true"]):not([aria-selected="true"]) {
  color: var(--text-secondary);
  background: var(--bg-active);
}

/* ── Focus ─────────────────────────────────────────────────── */
.ocean-segmented__item:focus-visible,
.ocean-segmented__item[data-state="focused"] {
  outline: 0;
  box-shadow: var(--focus-ring);
  z-index: 1;
}
.ocean-segmented__item[aria-checked="true"]:focus-visible,
.ocean-segmented__item[aria-selected="true"]:focus-visible,
.ocean-segmented__item[aria-checked="true"][data-state="focused"],
.ocean-segmented__item[aria-selected="true"][data-state="focused"] {
  box-shadow: var(--shadow-xs), var(--focus-ring);
}

/* ── Disabled — single item ────────────────────────────────── */
.ocean-segmented__item:disabled,
.ocean-segmented__item[aria-disabled="true"] {
  color: var(--fg-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Disabled — whole control ──────────────────────────────── */
.ocean-segmented[aria-disabled="true"],
.ocean-segmented--disabled {
  background: var(--bg-disabled-subtle);
  pointer-events: none;
}
.ocean-segmented[aria-disabled="true"] .ocean-segmented__item,
.ocean-segmented--disabled .ocean-segmented__item {
  color: var(--fg-disabled);
  cursor: not-allowed;
}
.ocean-segmented[aria-disabled="true"] .ocean-segmented__item[aria-checked="true"],
.ocean-segmented[aria-disabled="true"] .ocean-segmented__item[aria-selected="true"],
.ocean-segmented--disabled .ocean-segmented__item[aria-checked="true"],
.ocean-segmented--disabled .ocean-segmented__item[aria-selected="true"] {
  background: var(--bg-primary);
  box-shadow: none;
}

/* ── Sizes ─────────────────────────────────────────────────── */
.ocean-segmented--sm {
  --segmented-height: var(--segmented-height-sm);
  --segmented-padding-x: var(--segmented-padding-x-sm);
  --segmented-icon-size: var(--segmented-icon-sm);
  --segmented-radius: var(--segmented-radius-sm);
  --segmented-item-radius: var(--segmented-item-radius-sm);
}
.ocean-segmented--lg {
  --segmented-height: var(--segmented-height-lg);
  --segmented-padding-x: var(--segmented-padding-x-lg);
  --segmented-icon-size: var(--segmented-icon-lg);
  --segmented-radius: var(--segmented-radius-lg);
  --segmented-item-radius: var(--segmented-item-radius-lg);
  --segmented-font-size: var(--font-size-label-md);
  --segmented-line-height: var(--line-height-label-md);
}
.ocean-segmented--xl {
  --segmented-height: var(--segmented-height-xl);
  --segmented-padding-x: var(--segmented-padding-x-xl);
  --segmented-icon-size: var(--segmented-icon-xl);
  --segmented-radius: var(--segmented-radius-xl);
  --segmented-item-radius: var(--segmented-item-radius-xl);
  --segmented-font-size: var(--font-size-label-md);
  --segmented-line-height: var(--line-height-label-md);
}

/* ── Full width — segments share the row equally ───────────── */
.ocean-segmented--full-width { display: flex; width: 100%; }
.ocean-segmented--full-width .ocean-segmented__item { flex: 1 1 0; }

/* ── Icon only — square segments, needs an accessible name ─── */
.ocean-segmented--icon-only .ocean-segmented__item,
.ocean-segmented__item--icon-only {
  padding-inline: 0;
  aspect-ratio: 1;
}

/* ── Brand style — solid selected pill ─────────────────────── */
.ocean-segmented--brand .ocean-segmented__item[aria-checked="true"],
.ocean-segmented--brand .ocean-segmented__item[aria-selected="true"],
.ocean-segmented--brand .ocean-segmented__item[data-state="selected"] {
  background: var(--bg-brand-solid);
  color: var(--text-white);
  box-shadow: none;
}
.ocean-segmented--brand .ocean-segmented__item[aria-checked="true"]:focus-visible,
.ocean-segmented--brand .ocean-segmented__item[aria-selected="true"]:focus-visible {
  box-shadow: var(--focus-ring);
}

/* ── Dividers between unselected neighbours (Apple-style) ──── */
.ocean-segmented--dividers .ocean-segmented__item + .ocean-segmented__item::before {
  content: "";
  position: absolute;
  inset-block: 22%;
  inset-inline-start: calc(-1 * var(--segmented-gap) / 2 - 0.5px);
  width: 1px;
  background: var(--border-secondary);
}
.ocean-segmented--dividers .ocean-segmented__item[aria-checked="true"]::before,
.ocean-segmented--dividers .ocean-segmented__item[aria-selected="true"]::before,
.ocean-segmented--dividers .ocean-segmented__item[aria-checked="true"] + .ocean-segmented__item::before,
.ocean-segmented--dividers .ocean-segmented__item[aria-selected="true"] + .ocean-segmented__item::before {
  content: none;
}

/* ── Hidden native radios, when the group is a real form field ── */
.ocean-segmented__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.ocean-segmented__input:checked + .ocean-segmented__item {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}
.ocean-segmented__input:focus-visible + .ocean-segmented__item {
  box-shadow: var(--shadow-xs), var(--focus-ring);
  z-index: 1;
}

/* ── Segmented control · dark mode ───────────────────────────
   In light mode the selected pill lifts off a grey track. The dark
   ramp has nothing lighter than --bg-tertiary, so the pill would
   land on --bg-primary (#0c0e12) and sink below its own track
   instead. Invert the pair: track drops to --bg-secondary and the
   pill takes --bg-tertiary, so the selected segment stays the
   lighter of the two. Drop this block once the dark palette gains a
   proper elevated tier (see COMPONENT-SPECS.md §55).              */
[data-theme="dark"] .ocean-segmented,
.dark .ocean-segmented {
  background: var(--bg-secondary);
}
[data-theme="dark"] .ocean-segmented__item[aria-checked="true"],
[data-theme="dark"] .ocean-segmented__item[aria-selected="true"],
[data-theme="dark"] .ocean-segmented__item[data-state="selected"],
[data-theme="dark"] .ocean-segmented__input:checked + .ocean-segmented__item,
.dark .ocean-segmented__item[aria-checked="true"],
.dark .ocean-segmented__item[aria-selected="true"],
.dark .ocean-segmented__item[data-state="selected"],
.dark .ocean-segmented__input:checked + .ocean-segmented__item {
  background: var(--bg-tertiary);
}
/* brand style keeps its solid fill in both themes */
[data-theme="dark"] .ocean-segmented--brand .ocean-segmented__item[aria-checked="true"],
[data-theme="dark"] .ocean-segmented--brand .ocean-segmented__item[aria-selected="true"],
.dark .ocean-segmented--brand .ocean-segmented__item[aria-checked="true"],
.dark .ocean-segmented--brand .ocean-segmented__item[aria-selected="true"] {
  background: var(--bg-brand-solid);
}
/* disabled group: the generic dark track rule above has the same specificity as
   the base disabled rule and would win on order, so restate it here. */
[data-theme="dark"] .ocean-segmented[aria-disabled="true"],
[data-theme="dark"] .ocean-segmented--disabled,
.dark .ocean-segmented[aria-disabled="true"],
.dark .ocean-segmented--disabled {
  background: var(--bg-disabled-subtle);
}
[data-theme="dark"] .ocean-segmented[aria-disabled="true"] .ocean-segmented__item[aria-checked="true"],
[data-theme="dark"] .ocean-segmented--disabled .ocean-segmented__item[aria-checked="true"],
.dark .ocean-segmented[aria-disabled="true"] .ocean-segmented__item[aria-checked="true"],
.dark .ocean-segmented--disabled .ocean-segmented__item[aria-checked="true"] {
  background: var(--bg-secondary);
}

/* /assets/silvertiger/components.css */
/* SilverTiger component recipes. Raw values belong in colors_and_type.css. */

.sr-only { position: absolute; width: var(--a11y-pixel); height: var(--a11y-pixel); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.st-button {
  min-height: var(--button-height-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding-inline: var(--button-padding-inline-md);
  border: var(--border-width-default) solid transparent;
  border-radius: var(--radius-md);
  font: var(--button-font-weight) var(--button-font-size-md) / var(--lh-tight) var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-standard), color var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard);
}

/* Sizes — heights ✅ measured from set 59:1601. Default (no modifier) is md. */
.st-button--xxs { min-height: var(--button-height-xxs); padding-inline: var(--button-padding-inline-xxs); font-size: var(--button-font-size-xxs); }
.st-button--xs  { min-height: var(--button-height-xs);  padding-inline: var(--button-padding-inline-xs);  font-size: var(--button-font-size-xs); }
.st-button--sm  { min-height: var(--button-height-sm);  padding-inline: var(--button-padding-inline-sm);  font-size: var(--button-font-size-sm); }
.st-button--md  { min-height: var(--button-height-md);  padding-inline: var(--button-padding-inline-md);  font-size: var(--button-font-size-md); }
.st-button--lg  { min-height: var(--button-height-lg);  padding-inline: var(--button-padding-inline-lg);  font-size: var(--button-font-size-lg); }
.st-button--xl  { min-height: var(--button-height-xl);  padding-inline: var(--button-padding-inline-xl);  font-size: var(--button-font-size-xl); }

.st-button--primary { background: var(--btn-gradient-primary); color: var(--btn-text-primary); }
.st-button--primary:hover { background: var(--btn-gradient-primary-hover); }
.st-button--secondary { background: var(--btn-bg-secondary); color: var(--btn-text-secondary); border-color: var(--btn-border-brand); }
.st-button--secondary:hover { background: var(--btn-bg-secondary-hover); }
.st-button--destructive { background: var(--bg-error-solid); color: var(--text-white); }
/* ⚠️ text and link treatments are assumed — the Type variants exist in set
   59:1601 but their fills were never measured. Tonal 1 / tonal 2 are omitted
   rather than guessed; see COMPONENT-MANIFEST.json Button gaps. */
.st-button--text { background: transparent; color: var(--btn-text-brand); border-color: transparent; }
.st-button--text:hover { background: var(--bg-brand-primary); }
.st-button--link { background: transparent; color: var(--btn-text-brand); border-color: transparent; min-height: 0; padding-inline: 0; text-decoration: underline; }
.st-button--link:hover { color: var(--text-brand-secondary); }
.st-button:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.st-button--destructive:focus-visible { box-shadow: var(--ring-focus-error); }
.st-button:disabled,
.st-button[aria-disabled="true"] { background: var(--bg-disabled); color: var(--text-disabled); border-color: var(--border-disabled); cursor: not-allowed; }
.st-button--loading { cursor: wait; }
.st-button__spinner { width: var(--control-icon-size-sm); height: var(--control-icon-size-sm); border: var(--border-width-default) solid currentColor; border-right-color: var(--transparent); border-radius: var(--radius-full); animation: st-spin var(--duration-loading) linear infinite; }

.st-field { display: grid; gap: var(--spacing-sm); color: var(--text-secondary); }
.st-field__label { font: var(--fw-medium) var(--label-md-size) / var(--label-md-lh) var(--font-body); }
.st-input {
  box-sizing: border-box;
  width: 100%;
  height: var(--input-height-md);
  padding-inline: var(--control-padding-inline-md);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font: var(--fw-regular) var(--input-font-size-md) / var(--input-line-height) var(--font-body);
  box-shadow: var(--shadow-xs);
}
.st-input--xs { height: var(--input-height-xs); padding-inline: var(--input-padding-inline-xs); font-size: var(--input-font-size-xs); }
.st-input--sm { height: var(--input-height-sm); padding-inline: var(--input-padding-leading-sm) var(--input-padding-trailing-sm); font-size: var(--input-font-size-sm); }
.st-input--md { height: var(--input-height-md); padding-inline: var(--input-padding-inline-md); font-size: var(--input-font-size-md); }
.st-input--lg { height: var(--input-height-lg); padding-inline: var(--input-padding-leading-lg) var(--input-padding-trailing-lg); font-size: var(--input-font-size-lg); }
.st-input::placeholder { color: var(--text-placeholder); }
.st-input:hover { border-color: var(--border-brand-primary); }
.st-input:focus-visible { outline: none; box-shadow: var(--ring-focus); border-color: var(--border-brand-primary); }
.st-input:disabled { background: var(--bg-disabled); color: var(--text-disabled); cursor: not-allowed; }
.st-input[aria-invalid="true"] { border-color: var(--border-error); }
.st-input[aria-invalid="true"]:focus-visible { box-shadow: var(--ring-focus-error); }
.st-field__message { color: var(--text-tertiary); font: var(--fw-regular) var(--text-sm-size) / var(--text-sm-lh) var(--font-body); }
.st-field__message--error { color: var(--text-error-primary); }

.st-choice {
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  gap: var(--choice-gap);
  position: relative;
  color: var(--text-primary);
  cursor: pointer;
  font: var(--fw-regular) var(--fs-body-sm) / var(--lh-tight) var(--font-body);
}
.st-choice__input,
.st-switch__input {
  position: absolute;
  width: var(--a11y-pixel);
  height: var(--a11y-pixel);
  opacity: 0;
  clip-path: inset(50%);
}
.st-choice__control {
  width: var(--choice-size-md);
  height: var(--choice-size-md);
  flex: none;
  position: relative;
  border: var(--border-width-default) solid var(--main-border-input);
  border-radius: var(--radius-xs);
  background: var(--bg-primary);
  transition: border-color var(--duration-normal) var(--ease-standard), background-color var(--duration-normal) var(--ease-standard);
}
.st-choice--lg .st-choice__control { width: var(--choice-size-lg); height: var(--choice-size-lg); }
.st-choice--radio .st-choice__control { border-radius: var(--radius-full); }
.st-choice:hover .st-choice__control { border-color: var(--main-primary); }
.st-choice__input:focus-visible + .st-choice__control { box-shadow: var(--ring-focus); border-color: var(--main-primary); }
.st-choice__input:checked + .st-choice__control { border-color: var(--main-primary); background: var(--main-primary); }
.st-choice--checkbox .st-choice__input:checked + .st-choice__control::after {
  content: "";
  position: absolute;
  inset: 8% auto auto 30%;
  width: 30%;
  height: 55%;
  border: solid var(--main-white);
  border-width: 0 var(--choice-mark-stroke) var(--choice-mark-stroke) 0;
  transform: rotate(45deg);
}
.st-choice--checkbox .st-choice__input:indeterminate + .st-choice__control { border-color: var(--main-primary); background: var(--bg-primary); }
.st-choice--checkbox .st-choice__input:indeterminate + .st-choice__control::after {
  content: "";
  position: absolute;
  inset: 50% 20% auto;
  height: var(--choice-mark-stroke);
  background: var(--main-primary);
  transform: translateY(-50%);
}
.st-choice--radio .st-choice__input:checked + .st-choice__control { background: var(--bg-primary); }
.st-choice--radio .st-choice__input:checked + .st-choice__control::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: var(--radius-full);
  background: var(--main-primary);
}
.st-choice__input:disabled + .st-choice__control { border-color: var(--main-border-input); background: var(--choice-disabled-bg); }
.st-choice--checkbox .st-choice__input:disabled:checked + .st-choice__control::after { border-color: var(--main-border-input); }
.st-choice--radio .st-choice__input:disabled:checked + .st-choice__control::after { background: var(--main-border-input); }
.st-choice:has(.st-choice__input:disabled) { color: var(--text-disabled); cursor: not-allowed; }

.st-switch {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.st-switch__track {
  --switch-width: var(--toggle-track-w-md);
  --switch-height: var(--toggle-track-h-md);
  --switch-knob: var(--toggle-knob-md);
  width: var(--switch-width);
  height: var(--switch-height);
  position: relative;
  border-radius: var(--radius-full);
  background: var(--toggle-off);
  transition: background-color var(--duration-normal) var(--ease-standard);
}
.st-switch--lg .st-switch__track { --switch-width: var(--toggle-track-w-lg); --switch-height: var(--toggle-track-h-lg); --switch-knob: var(--toggle-knob-lg); }
.st-switch__track::after {
  content: "";
  position: absolute;
  inset: var(--toggle-inset) auto auto var(--toggle-inset);
  width: var(--switch-knob);
  height: var(--switch-knob);
  border-radius: var(--radius-full);
  background: var(--main-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-standard);
}
.st-switch__input:checked + .st-switch__track { background: var(--main-primary); }
.st-switch__input:checked + .st-switch__track::after { transform: translateX(calc(var(--switch-width) - var(--switch-knob) - (var(--toggle-inset) * 2))); }
.st-switch__input:disabled:checked + .st-switch__track { background: var(--toggle-on-disabled); }
.st-switch__input:disabled:not(:checked) + .st-switch__track { background: var(--toggle-off-disabled); }
.st-switch__input:focus-visible + .st-switch__track { box-shadow: var(--ring-focus); }
.st-switch:has(.st-switch__input:disabled) { cursor: not-allowed; }

.st-label {
  height: var(--label-height-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding-inline: var(--label-padding-sm);
  border-radius: var(--radius-full);
  font: var(--fw-medium) var(--label-font-sm) / var(--lh-tight) var(--font-body);
  white-space: nowrap;
}
.st-label--xs { height: var(--label-height-xs); padding-inline: var(--label-padding-xs); font-size: var(--label-font-xs); }
.st-label--md { height: var(--label-height-md); padding-inline: var(--label-padding-md); font-size: var(--label-font-md); }
.st-label--lg { height: var(--label-height-lg); padding-inline: var(--label-padding-lg); font-size: var(--label-font-lg); font-weight: var(--fw-semibold); }
.st-label--active { background: var(--status-success-bg); color: var(--main-success); }
.st-label--new { background: var(--status-info-bg); color: var(--main-primary); }
.st-label--verifying { background: var(--status-warning-bg); color: var(--main-warning); }
.st-label--locked { background: var(--status-error-bg); color: var(--main-danger); }
.st-label--inactive { background: var(--status-inactive-bg); color: var(--status-inactive-text); }

.st-alert {
  width: 100%;
  max-width: var(--alert-max-width);
  display: flex;
  align-items: flex-start;
  gap: var(--alert-gap-md);
  padding: var(--alert-padding-block-md) var(--alert-padding-inline-md);
  border: var(--border-width-default) solid;
  border-radius: var(--radius-md);
  font: var(--fw-medium) var(--fs-body-sm) / var(--lh-tight) var(--font-body);
}
.st-alert--sm { align-items: center; gap: var(--alert-gap-sm); padding: var(--alert-padding-sm); font-size: var(--fs-body-xs); }
.st-alert--success { border-color: var(--status-success-border); background: var(--status-success-bg); color: var(--main-success); }
.st-alert--info { border-color: var(--status-info-border); background: var(--status-info-bg); color: var(--status-info-text-strong); }
.st-alert--warning { border-color: var(--status-warning-border); background: var(--status-warning-bg); color: var(--status-warning-text); }
.st-alert--error { border-color: var(--status-error-border); background: var(--status-error-bg); color: var(--main-danger); }
.st-alert__icon { width: var(--alert-icon-size); height: var(--alert-icon-size); display: grid; place-items: center; flex: none; }
.st-alert__icon img { width: var(--alert-glyph-size); height: var(--alert-glyph-size); display: block; }
.st-alert__content { min-width: 0; flex: 1; }
.st-alert__close { width: var(--alert-icon-size); height: var(--alert-icon-size); display: grid; place-items: center; flex: none; position: relative; padding: var(--spacing-none); border: none; background: transparent; color: currentColor; cursor: pointer; }
.st-alert__close::before { content: ""; position: absolute; inset: calc((var(--touch-target-min) - var(--alert-icon-size)) / -2); }
.st-alert__close img { width: var(--alert-glyph-size); height: var(--alert-glyph-size); display: block; }
.st-alert__close:focus-visible { outline: none; box-shadow: var(--ring-focus); }

.st-tabs { display: flex; align-items: end; gap: var(--spacing-3xl); overflow-x: auto; }
.st-tab {
  height: var(--tab-height-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tab-gap);
  flex: none;
  padding: var(--tab-padding-block) var(--tab-padding-inline);
  border: none;
  border-bottom: var(--border-width-default) solid var(--main-line-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font: var(--fw-medium) var(--tab-font-sm) / var(--lh-tight) var(--font-body);
}
.st-tab--xs { height: var(--tab-height-xs); font-size: var(--tab-font-xs); }
.st-tab--md { height: var(--tab-height-md); font-size: var(--tab-font-md); }
.st-tab:hover { color: var(--main-primary); }
.st-tab[aria-selected="true"] { border-bottom-width: var(--tab-indicator-size); border-bottom-color: var(--main-primary); color: var(--main-primary); }
.st-tab:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.st-tab__badge { padding-inline: var(--tab-badge-padding-inline); border-radius: var(--radius-full); background: var(--status-info-bg); color: var(--main-primary); font-size: var(--tab-font-xs); }
.st-tab:not([aria-selected="true"]) .st-tab__badge { background: var(--status-inactive-bg); color: var(--text-secondary); }

.st-loader {
  width: var(--spinner-size-md);
  height: var(--spinner-size-md);
  display: inline-block;
  border: var(--spinner-stroke-lg) solid var(--status-info-bg);
  border-top-color: var(--main-primary);
  border-radius: var(--radius-full);
  animation: st-spin var(--duration-loading) linear infinite;
}
.st-loader--xxs { width: var(--spinner-size-xxs); height: var(--spinner-size-xxs); border-width: var(--spinner-stroke-xxs); }
.st-loader--xs { width: var(--spinner-size-xs); height: var(--spinner-size-xs); border-width: var(--spinner-stroke-xxs); }
.st-loader--sm { width: var(--spinner-size-sm); height: var(--spinner-size-sm); border-width: var(--spinner-stroke-sm); }
.st-loader--lg { width: var(--spinner-size-lg); height: var(--spinner-size-lg); }
.st-loader--xl { width: var(--spinner-size-xl); height: var(--spinner-size-xl); }

/* position: relative makes z-index apply without changing layout. A tooltip
   inside an overflow container must be positioned absolute or fixed by the
   consumer to escape clipping. */
.st-tooltip {
  width: var(--tooltip-width);
  min-height: var(--tooltip-height-md);
  position: relative;
  z-index: var(--z-tooltip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--tooltip-padding-block-default) var(--tooltip-padding-inline-default);
  border-radius: var(--radius-sm);
  background: var(--tooltip-bg);
  color: var(--tooltip-fg);
  box-shadow: var(--tooltip-shadow);
  font: var(--fw-regular) var(--fs-body-xs) / var(--lh-tight) var(--font-body);
  text-align: center;
}
.st-tooltip--xs,
.st-tooltip--sm { padding: var(--tooltip-padding-block-compact) var(--tooltip-padding-inline-compact); }
.st-tooltip--xs { min-height: var(--tooltip-height-xs); font-size: var(--fs-body-xs); }
.st-tooltip--sm { min-height: var(--tooltip-height-sm); font-size: var(--fs-body-sm); }

.st-avatar {
  width: var(--avatar-size-md);
  height: var(--avatar-size-md);
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: none;
  overflow: visible;
  border-radius: var(--radius-full);
  background: var(--bg-brand-solid);
  color: var(--text-primary-on-brand);
  font: var(--fw-semibold) var(--fs-body-sm) / var(--lh-tight) var(--font-body);
}
.st-avatar--sm { width: var(--avatar-size-sm); height: var(--avatar-size-sm); font-size: var(--fs-body-xs); }
.st-avatar--lg { width: var(--avatar-size-lg); height: var(--avatar-size-lg); font-size: var(--fs-body-lg); }
.st-avatar--xl { width: var(--avatar-size-xl); height: var(--avatar-size-xl); font-size: var(--display-md-size); }
.st-avatar__image { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.st-avatar__status { width: var(--avatar-status-md); height: var(--avatar-status-md); position: absolute; right: 0; bottom: 0; border: var(--avatar-status-border) solid var(--bg-primary); border-radius: var(--radius-full); background: var(--main-success); }
.st-avatar--sm .st-avatar__status { width: var(--avatar-status-sm); height: var(--avatar-status-sm); }
.st-avatar--lg .st-avatar__status { width: var(--avatar-status-lg); height: var(--avatar-status-lg); }
.st-avatar--xl .st-avatar__status { width: var(--avatar-status-xl); height: var(--avatar-status-xl); }
.st-avatar-group { display: flex; align-items: center; }
.st-avatar-group .st-avatar + .st-avatar { margin-inline-start: calc(var(--spacing-md) * -1); }

.st-breadcrumb { color: var(--main-text-grey); font: var(--fw-regular) var(--fs-body-sm) / var(--lh-tight) var(--font-body); }
.st-breadcrumb__list { display: flex; align-items: center; gap: var(--breadcrumb-gap); margin: 0; padding: 0; list-style: none; }
.st-breadcrumb__item { display: inline-flex; align-items: center; gap: var(--breadcrumb-gap); min-width: 0; }
.st-breadcrumb__link,
.st-breadcrumb__current { min-height: var(--breadcrumb-height); display: inline-flex; align-items: center; gap: var(--breadcrumb-item-gap); padding-inline: var(--breadcrumb-padding-inline); border-radius: var(--radius-sm); color: inherit; text-decoration: none; white-space: nowrap; }
.st-breadcrumb__link:hover { background: var(--status-inactive-bg); color: var(--main-primary); }
.st-breadcrumb__link:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.st-breadcrumb__separator { width: var(--breadcrumb-icon-size); height: var(--breadcrumb-icon-size); display: inline-grid; place-items: center; color: var(--text-disabled); }
.st-breadcrumb__separator::before { content: ""; width: 35%; height: 35%; border-block-start: var(--border-width-default) solid currentColor; border-inline-end: var(--border-width-default) solid currentColor; transform: rotate(45deg); }

.st-pagination { max-width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: var(--pagination-section-gap); color: var(--main-text-grey); font: var(--fw-regular) var(--fs-body-xs) / var(--lh-tight) var(--font-body); }
.st-pagination__summary,
.st-pagination__pages { display: flex; align-items: center; gap: var(--pagination-control-gap); }
.st-pagination__pages { gap: var(--pagination-gap); }
.st-pagination__select { height: var(--pagination-item-size); padding-inline: var(--spacing-md); border: var(--border-width-default) solid var(--main-line-color); border-radius: var(--pagination-select-radius); background: var(--bg-primary); color: var(--text-primary); font: inherit; }
.st-pagination__button,
.st-pagination__page { min-width: var(--pagination-item-size); height: var(--pagination-item-size); display: inline-grid; place-items: center; padding: 0; border: var(--border-width-default) solid transparent; border-radius: var(--radius-full); background: transparent; color: var(--main-text-grey); font: var(--fw-regular) var(--fs-body-sm) / var(--lh-tight) var(--font-body); cursor: pointer; }
.st-pagination__page:hover,
.st-pagination__button:hover { background: var(--status-inactive-bg); color: var(--main-primary); }
.st-pagination__page[aria-current="page"] { border-color: var(--main-primary); color: var(--main-primary); }
.st-pagination__button:focus-visible,
.st-pagination__page:focus-visible,
.st-pagination__select:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.st-pagination__button:disabled { color: var(--text-disabled); cursor: not-allowed; }
.st-pagination__ellipsis { min-width: var(--pagination-item-size); text-align: center; font-size: var(--pagination-ellipsis-font-size); }

.st-badge { min-width: var(--badge-height-md); height: var(--badge-height-md); display: inline-flex; align-items: center; justify-content: center; padding-inline: var(--badge-padding-md); border-radius: var(--radius-full); background: var(--main-danger); color: var(--main-white); font: var(--fw-semibold) var(--badge-font-md) / var(--lh-tight) var(--font-body); white-space: nowrap; }
.st-badge--sm { padding-inline: var(--badge-padding-sm); }
.st-badge--xs { min-width: var(--badge-height-xs); height: var(--badge-height-xs); padding-inline: var(--badge-padding-sm); font-size: var(--badge-font-xs); }
.st-badge--gray { background: var(--status-inactive-text); }
.st-badge--green { background: var(--main-success); }
.st-badge--blue { background: var(--main-primary); }
.st-badge--warning { background: var(--badge-warning); color: var(--main-text-body); }
.st-badge--invert { background: var(--status-error-bg); color: var(--main-danger); }
.st-badge--green.st-badge--invert { background: var(--status-success-bg); color: var(--main-success); }
.st-badge--blue.st-badge--invert { background: var(--status-info-bg); color: var(--main-primary); }

.st-stepper { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.st-step { display: flex; align-items: center; color: var(--text-secondary); font: var(--fw-medium) var(--fs-body-sm) / var(--lh-tight) var(--font-body); }
.st-step:not(:last-child)::after { content: ""; width: var(--stepper-connector-width); height: var(--border-width-default); margin-inline: var(--stepper-gap); background: var(--main-line-color); }
.st-step__content { display: inline-flex; align-items: center; gap: var(--stepper-gap); }
.st-step__marker { width: var(--step-marker-size); height: var(--step-marker-size); display: inline-grid; place-items: center; flex: none; border: var(--border-width-default) solid var(--main-line-color); border-radius: var(--radius-full); background: var(--bg-primary); color: var(--main-text-grey); font: var(--fw-semibold) var(--fs-body-sm) / var(--lh-tight) var(--font-body); }
.st-step[aria-current="step"] .st-step__marker,
.st-step--done .st-step__marker { border-color: var(--main-success); background: var(--main-success); color: var(--main-white); }
.st-step[aria-current="step"] .st-step__label { color: var(--main-success); }
.st-step--done .st-step__marker::before { content: ""; width: 30%; height: 52%; border: solid currentColor; border-width: 0 var(--choice-mark-stroke) var(--choice-mark-stroke) 0; transform: rotate(45deg); }
.st-step--done .st-step__marker { font-size: 0; }
.st-step--disabled { color: var(--text-disabled); }

.st-brand-logo { display: block; width: auto; height: var(--spacing-4xl); }
.st-app-icon { display: inline-block; width: var(--app-icon-size-md); height: var(--app-icon-size-md); object-fit: contain; }
.st-app-icon--sm { width: var(--app-icon-size-sm); height: var(--app-icon-size-sm); }
.st-app-icon--lg { width: var(--app-icon-size-lg); height: var(--app-icon-size-lg); }
.st-app-icon--xl { width: var(--app-icon-size-xl); height: var(--app-icon-size-xl); }

/* Modal — provenance node 63:2990 / set 63:3134. Status variants Delete/Error/
   Info/Success/Warning use the semantic status accent. Sizes md/lg use assumed
   widths (Figma widths unmeasured). Layout Types 1/2/3 NOT implemented — their
   arrangements are unmeasured and were not guessed. Accessibility (role, focus,
   Esc) is repository-owned per the authority split. */
.st-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--modal-backdrop);
  display: grid;
  place-items: center;
  padding: var(--spacing-4xl);
}
.st-modal {
  position: relative;
  z-index: var(--z-modal);
  width: var(--modal-width-md);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--modal-gap);
  padding: var(--modal-padding);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.st-modal--lg { width: var(--modal-width-lg); }
.st-modal__icon { flex: none; }
.st-modal--delete .st-modal__icon,
.st-modal--error .st-modal__icon { color: var(--main-danger); }
.st-modal--success .st-modal__icon { color: var(--main-success); }
.st-modal--warning .st-modal__icon { color: var(--main-warning); }
.st-modal--info .st-modal__icon { color: var(--fg-info-primary); }
.st-modal__title { margin: 0; font: var(--fw-semibold) var(--display-sm-size) / var(--display-sm-lh) var(--font-display); color: var(--text-primary); }
.st-modal__body { margin: 0; color: var(--text-secondary); }
.st-modal__button-group { display: flex; justify-content: flex-end; gap: var(--spacing-md); }
.st-modal__close { position: absolute; inset-block-start: var(--modal-padding); inset-inline-end: var(--modal-padding); background: none; border: none; cursor: pointer; color: var(--text-secondary); }
.st-modal__close:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-sm); }

/* Scroll bar — ✅ measured from Figma node 1194:14080 / set 1195:14091:
   8px thumb, gray-3 (#b2bbc4) thumb on gray-50 (#f4f4f4) track; Hover darkens the
   thumb. Apply .st-scrollbar to any scroll container. Tokens pre-existed and
   match the measurement exactly. */
.st-scrollbar { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color); }
.st-scrollbar::-webkit-scrollbar { width: var(--scrollbar-thumb-width); height: var(--scrollbar-thumb-width); }
.st-scrollbar::-webkit-scrollbar-track { background: var(--scrollbar-track-color); border-radius: var(--radius-full); }
.st-scrollbar::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb-color); border-radius: var(--radius-full); }
.st-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--main-border-input); }

@keyframes st-spin { to { transform: rotate(var(--rotation-full)); } }

@media (prefers-reduced-motion: reduce) {
  .st-button { transition: none; }
  .st-button__spinner,
  .st-loader { animation-duration: var(--duration-loading-reduced); }
}

/* /assets/product-tokens.css */
/* Shared product foundations: public app and admin. */
:root { --product-accent:#175cd3; --product-focus:#528bff; --product-radius:10px; --product-control-height:44px; --product-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
:where(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--product-focus); outline-offset:3px; }
:where(button,input,select,textarea) { font-family:var(--product-font); }

/* /assets/app.css */
/* UIUXIcon — page layout on top of Ocean DS (colors_and_type.css + ocean-components.css).
 * Only Ocean tokens. Local patterns that Ocean has no component for are marked "DS gap". */

:root {
  --topbar-h: 76px;
  --sidebar-w: 248px;
  --tile: 80px; /* DS gap: icon tile — square button, no Ocean component */
  --detail-w: 440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--topbar-h) + var(--spacing-xl)); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-brand-primary); }
code, kbd { font-family: var(--font-mono); }
button { font: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.muted { color: var(--text-tertiary); font-weight: var(--font-weight-regular); }

.skip-link {
  position: absolute;
  left: var(--spacing-xl);
  top: calc(-1 * var(--spacing-12));
  z-index: 50;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), var(--focus-ring);
}
.skip-link:focus { top: var(--spacing-md); }

:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* ── announcement (admin → Cài đặt) ─────────────────────── */
.announce {
  padding: var(--spacing-sm) var(--spacing-xl);
  background: var(--bg-brand-solid);
  color: var(--text-white);
  font: var(--font-weight-medium) var(--font-size-sm)/var(--line-height-sm) var(--font-body);
  text-align: center;
}
.announce a { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* ── top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  height: var(--topbar-h);
  padding-inline: var(--spacing-3xl);
  background: var(--bg-primary);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 0 0 auto;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.brand__mark { display: block; width: 32px; height: 32px; flex: 0 0 32px; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--font-size-display-xs);
  line-height: var(--line-height-display-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-display-tight);
}

/* DS gap: Ocean has no text-input recipe in CSS; this follows Input[size=md] from OCEAN-DESIGN-SYSTEM.md */
.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 640px;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: var(--spacing-lg);
  color: var(--fg-quaternary);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: var(--button-height-lg);
  padding-inline: calc(var(--spacing-lg) + var(--spacing-3xl)) var(--spacing-4xl);
  background: var(--bg-secondary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-md);
  box-shadow: none;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-family: var(--font-body);
  transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
}
.search__input::placeholder { color: var(--text-placeholder); }
.search__input:focus { outline: 0; border-color: var(--border-brand); box-shadow: var(--shadow-xs), var(--focus-ring); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__kbd { position: absolute; right: var(--spacing-lg); pointer-events: none; }
.search__input:focus ~ .search__kbd { display: none; }

.topbar__actions { display: flex; align-items: center; gap: var(--spacing-md); margin-left: auto; }

/* ── customize popover ───────────────────────────────────── */
.tune {
  position: fixed;
  top: calc(var(--topbar-h) + var(--spacing-md));
  right: var(--spacing-3xl);
  z-index: 30;
  display: grid;
  gap: var(--spacing-xl);
  width: min(calc(100vw - 2 * var(--spacing-xl)), 380px);
  max-height: calc(100dvh - var(--topbar-h) - 2 * var(--spacing-md));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--spacing-2xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
}
.tune__head { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.tune__title { margin: 0; font-size: var(--font-size-lg); line-height: var(--line-height-lg); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.tune__head .st-button { gap: var(--spacing-xs); }
.tune__group { display: grid; gap: var(--spacing-md); min-width: 0; }
.tune__label, .tune__slider label { font-size: var(--font-size-sm); line-height: var(--line-height-sm); font-weight: var(--font-weight-medium); color: var(--text-secondary); }
.tune__seg { border-radius: var(--radius-full); }
.tune__seg .ocean-segmented__item { flex: 1 1 0; border-radius: var(--radius-full); gap: var(--spacing-sm); padding-inline: var(--spacing-sm); }
.tune__seg--num .ocean-segmented__item { font-variant-numeric: tabular-nums; }
.tune__style-ic { display: inline-flex; width: 16px; height: 16px; }
.tune__style-ic svg { width: 16px; height: 16px; }

.tune__slider { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: var(--spacing-sm); }
.tune__slider output { font-size: var(--font-size-sm); color: var(--text-primary); font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.tune__range { grid-column: 1 / -1; }
.tune__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-lg); }

/* DS gap: range input styled after Ocean Slider (track bg-quaternary, fill + handle brand) */
.tune__range, .picker__hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.tune__range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-full); background: linear-gradient(to right, var(--bg-brand-solid) var(--p, 50%), var(--bg-quaternary) var(--p, 50%)); }
.tune__range::-moz-range-track { height: 4px; border-radius: var(--radius-full); background: var(--bg-quaternary); }
.tune__range::-moz-range-progress { height: 4px; border-radius: var(--radius-full); background: var(--bg-brand-solid); }
.tune__range::-webkit-slider-thumb, .picker__hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--bg-brand-solid);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}
.tune__range::-moz-range-thumb, .picker__hue::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--bg-brand-solid); border-radius: var(--radius-full); background: var(--bg-primary); box-shadow: var(--shadow-sm); }
.tune__range:focus-visible, .picker__hue:focus-visible { outline: 0; }
.tune__range:focus-visible::-webkit-slider-thumb, .picker__hue:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-sm), var(--focus-ring); }

/* colour swatches */
.swatches { display: flex; justify-content: space-between; gap: var(--spacing-sm); }
.swatch {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
  cursor: pointer;
  transition: transform .12s;
}
.swatch:hover { transform: scale(1.08); }
.swatch:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.swatch--text { background: var(--text-primary); }
.swatch--custom { background: conic-gradient(from 200deg, var(--brand-red), var(--brand-orange), var(--brand-yellow), var(--brand-green), var(--brand-teal), var(--brand-blue), var(--brand-purple), var(--brand-magenta), var(--brand-red)); }
.swatch--custom.has-color::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: var(--sw); box-shadow: 0 0 0 2px var(--bg-primary); }
.swatch[aria-checked="true"], .swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--text-primary); }
.swatches--sm { gap: var(--spacing-xs); }
.swatch--sm { width: 22px; height: 22px; }
.swatch--sm[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 3.5px var(--text-primary); }

/* custom colour picker */
.picker { display: grid; gap: var(--spacing-lg); padding: var(--spacing-lg); border-radius: var(--radius-xl); background: var(--bg-secondary); }
.picker[hidden] { display: none; }
.picker__sv {
  position: relative;
  height: 148px;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue, #00f));
  cursor: crosshair;
  touch-action: none;
}
.picker__sv:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.picker__knob { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-radius: var(--radius-full); box-shadow: 0 0 0 1px rgb(0 0 0 / 25%), var(--shadow-sm); transform: translate(-50%, -50%); pointer-events: none; }
.picker__hue::-webkit-slider-runnable-track { height: 12px; border-radius: var(--radius-full); background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.picker__hue::-moz-range-track { height: 12px; border-radius: var(--radius-full); background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.picker__hue::-webkit-slider-thumb { margin-top: -3px; border-color: #fff; background: transparent; box-shadow: 0 0 0 1px rgb(0 0 0 / 25%), var(--shadow-sm); }
.picker__hue::-moz-range-thumb { border-color: #fff; background: transparent; }
.picker__row { display: flex; gap: var(--spacing-md); }
.picker__hex {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 40px;
  padding: 0 var(--spacing-md) 0 var(--spacing-sm);
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-tertiary);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--font-size-sm);
}
.picker__hex:focus-within { border-color: var(--border-brand); box-shadow: var(--shadow-xs), var(--focus-ring); }
.picker__chip { width: 26px; height: 26px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); }
.picker__hex input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-primary); font: inherit; text-transform: uppercase; outline: 0; }
.picker .btn-soft { background: var(--bg-primary); }

@media (max-width: 520px) {
  .tune { right: var(--spacing-xl); padding: var(--spacing-xl); }
  .swatch { width: 28px; height: 28px; }
  .swatch--sm { width: 20px; height: 20px; }
  .tune__pair { grid-template-columns: 1fr; }
}

/* ── layout ──────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-4xl);
  border-right: var(--border-width-default) solid var(--border-secondary);
  overscroll-behavior: contain;
}
.sidebar .ocean-nav-item { height: var(--button-height-md); justify-content: space-between; }
.sidebar .ocean-nav-item:focus-visible { box-shadow: var(--focus-ring); }
.nav-count { font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); color: var(--text-quaternary); font-variant-numeric: tabular-nums; }
.nav-group { margin-top: var(--spacing-xl); }
.nav-group__label {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-label-xs);
  line-height: var(--line-height-label-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main { min-width: 0; padding: var(--spacing-3xl) var(--spacing-4xl) var(--spacing-7xl); outline: 0; }

.intro { max-width: 820px; padding-block: 12px 40px; }
.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-display-tight);
  text-wrap: balance;
}
.intro__lead { margin: var(--spacing-md) 0 0; font-size: var(--font-size-lg); line-height: var(--line-height-lg); color: var(--text-tertiary); text-wrap: pretty; }
.ssr { margin-top: var(--spacing-3xl); color: var(--text-tertiary); }
.ssr-icon { margin: 0; display: inline-grid; gap: var(--spacing-md); color: var(--text-primary); }
/* Links and lists for crawlers and no-JS readers; the app replaces #ssr, so with JS they never flash in. */
.js .ssr-more, .js .ssr-list { display: none; }
.ssr h2 { margin: var(--spacing-2xl) 0 var(--spacing-md); font-size: 15px; color: var(--text-secondary); }
.ssr-list { display: flex; flex-wrap: wrap; gap: var(--spacing-md) var(--spacing-xl); padding: 0; list-style: none; }

/* ── sets & grid ─────────────────────────────────────────── */
.set { padding-bottom: 48px; }
.set__head { padding-bottom: var(--spacing-xl); border-bottom: var(--border-width-default) solid var(--border-secondary); margin-bottom: var(--spacing-xl); }
.set__line { display: flex; align-items: baseline; gap: var(--spacing-md); }
.set__num { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--text-quaternary); font-variant-numeric: tabular-nums; }
.set__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-display-tight);
}
.set__title a, .cat__title a { color: inherit; text-decoration: none; border-radius: var(--radius-xs); }
.set__title a:hover, .cat__title a:hover { color: var(--text-brand-primary); }
.set__count { font-size: var(--font-size-md); color: var(--text-quaternary); font-variant-numeric: tabular-nums; }
.set__desc { margin: var(--spacing-xs) 0 0; color: var(--text-tertiary); }
.set__error { color: var(--text-error-primary); }

.cat { margin-top: var(--spacing-2xl); }
.cat__title {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  margin: 0 0 var(--spacing-md);
  font-size: var(--font-size-label-md);
  line-height: var(--line-height-label-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}
.cat__title span { font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); color: var(--text-quaternary); font-variant-numeric: tabular-nums; }
.cat__title--set { font-size: var(--font-size-display-xs); line-height: var(--line-height-display-xs); color: var(--text-primary); margin-top: var(--spacing-xl); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr));
  gap: 8px;
}
.grid--small { --tile: 48px; }

/* DS gap: icon tile */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  background: var(--bg-secondary);
  border: var(--border-width-default) solid transparent;
  border-radius: var(--radius-lg);
  color: var(--fg-primary);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.tile:hover { background: var(--bg-primary); border-color: var(--border-brand); transform: translateY(-2px); box-shadow: 0 4px 12px rgb(0 0 0 / 5%); }
.tile:focus-visible { box-shadow: var(--focus-ring); }
.tile:active { background: var(--bg-tertiary); }
.tile__art { display: grid; place-items: center; width: var(--s, 24px); height: var(--s, 24px); }
.tile:not(.is-ready) .tile__art::before {
  content: "";
  width: 50%;
  height: 50%;
  border-radius: var(--radius-xs);
  background: var(--bg-tertiary);
}
.tile svg { width: 100%; height: 100%; }

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md) var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: var(--border-width-default) solid var(--border-secondary);
}
.results-head p { margin: 0; color: var(--text-secondary); }
.set--results { padding-bottom: var(--spacing-xl); }

.ocean-empty .ocean-featured-icon { color: var(--fg-tertiary); }

/* ── icon detail modal (Ocean Modal, wide two-column layout) ── */
html.has-modal { overflow: hidden; }
.icon-overlay { z-index: 55; opacity: 0; transition: opacity var(--duration-base) var(--ease-out); }
.icon-overlay.is-open { opacity: 1; }
.icon-modal {
  --lens: 352px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(1000px, 100%);
  height: min(680px, calc(100dvh - 2 * var(--spacing-xl)));
  padding: 0;
  overflow: hidden;
  transform: scale(0.98) translateY(var(--spacing-md));
  transition: transform var(--duration-base) var(--ease-out);
}
.icon-overlay.is-open .icon-modal { transform: none; }

.icon-modal__stage { background: var(--bg-secondary); border-right: 1px solid var(--border-secondary); display: grid; place-content: center; justify-items: center; gap: var(--spacing-xl); padding: var(--spacing-3xl); }
.lens { position: relative; width: var(--lens); height: var(--lens); color: var(--fg-primary); }
.lens__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--fg-brand-primary); opacity: 0; transition: opacity var(--duration-base) var(--ease-out); pointer-events: none; }
.lens.show-grid .lens__grid,
.lens.show-keylines .lens__keylines,
.lens.show-padding .lens__padding { opacity: 1; }
.lens__icon { position: absolute; inset: 0; }
.lens__icon svg { width: 100%; height: 100%; }
.lens__toggles, .code-toggles { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }
/* DS gap: toggle chip — Ocean tertiary button with a pressed state */
.lens__toggle { border-radius: var(--radius-full); color: var(--text-tertiary); }
.lens__toggle[aria-pressed="true"] { background: var(--bg-tertiary); color: var(--text-primary); }

.icon-modal__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px;
}
.icon-modal__info > * { flex-shrink: 0; }
.icon-modal__head { display: flex; align-items: flex-start; gap: var(--spacing-lg); }
.icon-modal__titles { flex: 1; min-width: 0; display: grid; justify-items: start; gap: var(--spacing-xs); }
.icon-modal__tools { display: flex; margin: calc(-1 * var(--spacing-xs)) calc(-1 * var(--spacing-md)) 0 0; }
.set-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: var(--button-height-xs, 28px);
  margin-left: calc(-1 * var(--spacing-sm));
  padding: 0 var(--spacing-md) 0 var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-label-md);
  color: var(--text-tertiary);
  text-decoration: none;
}
.set-chip:hover { background: var(--bg-secondary); color: var(--text-primary); }
.icon-modal__title {
  margin: var(--spacing-xs) 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-display-tight);
  overflow-wrap: anywhere;
}
.icon-modal__name {
  padding: var(--spacing-xxs) 0;
  background: none;
  border: 0;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--font-size-md);
  color: var(--text-tertiary);
  cursor: copy;
  overflow-wrap: anywhere;
  text-align: left;
}
.icon-modal__name:hover { color: var(--text-primary); }
.icon-modal__style { border-radius: var(--radius-full); }
.icon-modal__style .ocean-segmented__item { border-radius: var(--radius-full); }

.size-row { display: flex; align-items: center; gap: var(--spacing-xl); }
.size-row__preview {
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  height: 104px;
  border-radius: var(--radius-3xl);
  background: var(--bg-secondary);
  color: var(--fg-primary);
  overflow: hidden;
}
.size-row__control { flex: 1; min-width: 0; }
.size-row__label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--font-size-md); color: var(--text-tertiary); }
.size-row__label--next { margin-top: var(--spacing-xs); }
.size-row { align-items: flex-start; }
.size-row__preview { margin-top: var(--spacing-xl); }
.size-row__label output { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-primary); font-variant-numeric: tabular-nums; }
/* DS gap: range input styled after Ocean Slider (track bg-quaternary, fill + handle brand) */
.size-row__range {
  width: 100%;
  height: 20px;
  margin: var(--spacing-xs) 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.size-row__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--bg-brand-solid) var(--p), var(--bg-quaternary) var(--p));
}
.size-row__range::-moz-range-track { height: 4px; border-radius: var(--radius-full); background: var(--bg-quaternary); }
.size-row__range::-moz-range-progress { height: 4px; border-radius: var(--radius-full); background: var(--bg-brand-solid); }
.size-row__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid var(--bg-brand-solid);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}
.size-row__range::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--bg-brand-solid); border-radius: var(--radius-full); background: var(--bg-primary); box-shadow: var(--shadow-sm); }
.size-row__range:focus-visible { outline: 0; box-shadow: none; }
.size-row__range:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-sm), var(--focus-ring); }
.size-row__ticks { position: relative; height: var(--spacing-3xl); }
.size-row__tick {
  position: absolute;
  top: var(--spacing-xxs);
  transform: translateX(-50%);
  padding: 0 var(--spacing-xs);
  background: none;
  border: 0;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-quaternary);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.size-row__tick:hover, .size-row__tick[aria-pressed="true"] { color: var(--text-primary); }

.icon-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.icon-modal__actions .st-button { width: 100%; }
/* DS gap: neutral filled button — Ocean tertiary on a bg-secondary fill */
.btn-soft { background: var(--bg-secondary); color: var(--text-secondary); }
.btn-soft:hover:not(:disabled) { background: var(--bg-tertiary); }
.code-toggles { margin-top: calc(-1 * var(--spacing-xl)); }
.code-slot:empty { display: none; }
.icon-modal .ocean-code__header { gap: var(--spacing-md); }
.icon-modal .ocean-code__header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-modal .ocean-code__body { max-height: 220px; overflow: auto; font-size: var(--font-size-xs); line-height: var(--line-height-xs); }
.icon-modal__tags { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.icon-modal__tags .ocean-tag { height: 32px; padding-inline: var(--spacing-lg); border-radius: var(--radius-full); border-color: transparent; background: var(--bg-secondary); color: var(--text-tertiary); cursor: pointer; }
.icon-modal__tags .ocean-tag:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--spacing-xxs); margin: calc(-1 * var(--spacing-2xl)) calc(-1 * var(--spacing-sm)) 0; }
.detail__h {
  margin: 0;
  font-size: var(--font-size-label-md);
  line-height: var(--line-height-label-md);
  font-weight: var(--font-weight-medium);
  color: var(--text-tertiary);
}

@media (max-width: 860px) {
  .icon-modal { --lens: min(280px, 64vw); grid-template-columns: 1fr; height: auto; max-height: calc(100dvh - 2 * var(--spacing-xl)); overflow-y: auto; }
  .icon-modal__stage { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--border-secondary); }
  .icon-modal__info { overflow: visible; padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-3xl); }
}
@media (max-width: 640px) {
  .icon-overlay { padding: 0; place-items: end center; }
  .icon-modal { width: 100%; max-height: 100dvh; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; }
  .icon-modal__title { font-size: var(--font-size-display-lg); line-height: var(--line-height-display-lg); }
  .size-row__preview { flex-basis: 80px; height: 80px; border-radius: var(--radius-2xl); }
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── modal ───────────────────────────────────────────────── */
.ocean-modal__overlay { z-index: 60; overflow-y: auto; }
.modal--wide { width: min(100%, 560px); max-height: calc(100vh - 2 * var(--spacing-xl)); overflow-y: auto; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--spacing-xl); }
.modal__head .ocean-featured-icon { color: var(--fg-brand-primary); }
.modal__tabs { flex-wrap: wrap; margin-top: var(--spacing-2xl); }
.modal__hint { margin: var(--spacing-lg) 0 var(--spacing-md); font-size: var(--font-size-sm); line-height: var(--line-height-sm); color: var(--text-tertiary); }
.modal__ask { margin: var(--spacing-xl) 0 var(--spacing-md); color: var(--text-secondary); }
.tool-list { display: grid; gap: var(--spacing-md); margin: 0; padding: 0; list-style: none; }
.tool-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-xs) var(--spacing-md); font-size: var(--font-size-sm); line-height: var(--line-height-sm); color: var(--text-tertiary); }
.tool-list code { padding: 1px var(--spacing-sm); background: var(--bg-tertiary); border-radius: var(--radius-sm); font-size: var(--font-size-xs); color: var(--text-secondary); }
.ocean-code__body { margin: 0; }
.license-text {
  margin-top: var(--spacing-xl);
  max-height: 240px;
  overflow-y: auto;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-tertiary);
}
.license-text p:first-child { margin-top: 0; color: var(--text-primary); }

/* DS gap: input field (Input[size=md]) */
.field { display: grid; gap: var(--spacing-sm); margin-top: var(--spacing-xl); }
.field__label { font-size: var(--font-size-label-sm); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
.field__input {
  height: var(--button-height-lg);
  padding-inline: var(--spacing-lg);
  background: var(--bg-secondary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-md);
  box-shadow: none;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}
.field__input[readonly] { background: var(--bg-secondary); color: var(--text-secondary); }
.field__input:focus, .field__area:focus { outline: 0; border-color: var(--border-brand); box-shadow: var(--shadow-xs), var(--focus-ring); }
.field__area { min-height: 112px; resize: vertical; color: var(--text-primary); }
.field__error { margin: var(--spacing-md) 0 0; font-size: var(--font-size-sm); color: var(--text-error-primary); }

/* ── toasts ──────────────────────────────────────────────── */
/* above every page layer (menus at 1000 included); in browsers with popover it is in the top layer too,
   above open modal dialogs like Projects (app.js: raiseToasts) */
.toast-region {
  position: fixed;
  inset: auto var(--spacing-3xl) var(--spacing-3xl) auto;
  z-index: 2147483000;
  display: grid;
  gap: var(--spacing-md);
  width: min(calc(100vw - 2 * var(--spacing-xl)), 360px);
  margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; /* undo the popover defaults */
}
.toast-region:popover-open { display: grid; }
.toast-region:empty { pointer-events: none; }
.ocean-toast { align-items: center; animation: toast-in var(--duration-base) var(--ease-out); }
.ocean-toast.is-leaving { opacity: 0; transform: translateY(var(--spacing-md)); transition: opacity var(--duration-slow) var(--ease-in), transform var(--duration-slow) var(--ease-in); }
.toast__icon { color: var(--fg-success-primary); }
@keyframes toast-in { from { opacity: 0; transform: translateY(var(--spacing-md)); } }

/* ── footer ──────────────────────────────────────────────── */
.footer {
  padding: var(--spacing-4xl) var(--spacing-3xl) var(--spacing-5xl);
  border-top: var(--border-width-default) solid var(--border-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--text-secondary);
  text-align: center;
}
.footer p { margin: 0 0 var(--spacing-xs); }
.footer__muted { color: var(--text-quaternary); }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1279px) {
  .style-switch { display: none; }
}
@media (max-width: 1023px) {
  :root { --tile: 60px; }
  .layout { display: block; }
  .sidebar {
    position: sticky;
    top: var(--topbar-h);
    z-index: 10;
    display: flex;
    gap: var(--spacing-xs);
    height: auto;
    overflow-x: auto;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--bg-primary);
    border-right: 0;
    border-bottom: var(--border-width-default) solid var(--border-secondary);
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-group__label { display: none; }
  .sidebar .ocean-nav-item { flex: 0 0 auto; height: var(--button-height-sm); gap: var(--spacing-sm); white-space: nowrap; }
  .main { padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-6xl); }
  html { scroll-padding-top: calc(var(--topbar-h) + var(--spacing-6xl)); }
}
@media (max-width: 640px) {
  :root { --topbar-h: 112px; --tile: 52px; }
  .topbar { flex-wrap: wrap; height: auto; min-height: var(--topbar-h); padding: var(--spacing-md) var(--spacing-xl); gap: var(--spacing-md); }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search__kbd { display: none; }
  .hide-sm { display: none; }
  #btn-agents { width: var(--button-icon-only-md); padding: 0; }
  .intro__title { font-size: var(--font-size-display-lg); line-height: var(--line-height-display-lg); }
  .intro__lead { font-size: var(--font-size-md); line-height: var(--line-height-md); }
  .tune { right: var(--spacing-xl); }
  .toast-region { right: var(--spacing-xl); bottom: var(--spacing-xl); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-overlay, .icon-modal, .lens__layer, .ocean-toast, .tile, .search__input { transition: none; animation: none; }
}

/* Shared workspace finish across library, inspectors and utility dialogs. */
.topbar { gap: 24px; }
.brand { min-width: 200px; }
.brand__name { font-size: 22px; letter-spacing: -0.8px; }
.search__input { font-size: 14px; height: 44px; }
.sidebar { background: var(--bg-secondary); scrollbar-width: thin; }
.sidebar .ocean-nav-item { margin-bottom: var(--spacing-xxs); border-radius: var(--radius-md); font-size: var(--fs-body-sm); }
.nav-group__label { font-size: 10px; letter-spacing: 0.09em; padding-block: 12px 8px; }
.nav-count { font-size: 11px; }
.main { padding: 36px clamp(24px, 4vw, 64px) 80px; }
.intro__lead { max-width: 640px; font-size: 15px; line-height: 1.7; }
.set__head { padding-bottom: 16px; margin-bottom: 20px; }
.set__num { font-family: var(--font-mono); font-size: var(--fs-body-xxs); }
.set__count { font-size: 12px; }
.set__desc { font-size: 13px; line-height: 1.6; }
.cat__title { font-size: 12px; margin-bottom: 12px; }
.cat__title--set { font-size: 16px; }
.ocean-segmented { padding: var(--spacing-xs); border-radius: var(--radius-lg); }
.ocean-segmented__item { border-radius: var(--radius-md); }
.ocean-modal { border-radius: var(--radius-3xl); }
.ocean-modal__overlay { backdrop-filter: blur(6px); }
.icon-modal__info { gap: 24px; }
.icon-modal__title { font-size: 30px; }
.icon-modal__name { font-size: 12px; }
.size-row__preview { border-radius: var(--radius-xl); }
.tune { border-radius: var(--radius-2xl); max-height: calc(100dvh - var(--topbar-h) - 24px); overflow-y: auto; }
.field__input, .field__area { font: inherit; font-size: 14px; }
.field__area { padding: 12px; line-height: 1.6; }
.ocean-code { border-radius: var(--radius-xl); }
.modal--wide { padding: 28px; }
.footer { margin-left: var(--sidebar-w); text-align: left; padding: 24px 48px; }
.footer a { text-underline-offset: 4px; }
.sidebar a { transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
:focus-visible { outline: 2px solid var(--border-brand); outline-offset: 3px; }
@media (max-width: 1279px) {
  .brand { min-width: 176px; }
}
@media (max-width: 1023px) {
  .main { padding: 28px 24px 56px; }
  .sidebar { background: var(--bg-primary); }
  .sidebar .ocean-nav-item { min-height: 36px; }
  .footer { margin-left: 0; padding: 24px; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 120px; --tile: 60px; }
  .topbar { gap: 8px; padding: 10px 16px; }
  .brand { min-width: 0; }
  .brand__name { font-size: 20px; }
  .topbar__actions { gap: 4px; }
  .main { padding: 24px 16px 48px; }
  .intro { padding: 4px 0 28px; }
  .intro__title { font-size: 28px; line-height: 1.2; }
  .set__title { font-size: 22px; }
  .grid { gap: 6px; }
  .modal--wide { padding: 22px; }
  .icon-modal { border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
  .icon-modal__info { padding: 24px 20px; }
  .icon-modal__actions .st-button { padding-inline: 8px; }
  .search__input, .field__input, .field__area { font-size: 16px; }
  .size-row { flex-direction: column; gap: 16px; }
  .size-row__preview { flex-basis: auto; width: 64px; height: 64px; margin-top: 0; }
  .size-row__control { width: 100%; }
  .size-row__ticks { display: flex; justify-content: space-between; height: auto; }
  .size-row__tick { position: static; transform: none; min-width: 40px; min-height: 44px; }
  .size-row__tick[aria-pressed="true"] { background: var(--bg-secondary); }
  .icon-modal__info { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tile:hover { transform: none; }
}

/* Icon inspector: shared Settings controls, with a visible export preview. */
.icon-modal {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  /* as tall as the screen allows, 32px above and below on a short screen up to 48px on a tall one */
  --modal-gap: clamp(32px, 5dvh, 48px);
  height: calc(100dvh - 2 * var(--modal-gap));
}
.icon-modal__info { min-width: 0; gap: 28px; padding: 28px; scrollbar-gutter: stable; }
.icon-modal__titles { gap: 8px; }
/* set chip + prev/next/report/close stay pinned while the panel scrolls */
.icon-modal__info { padding-top: 0; }
.icon-modal__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin: 0 -28px -12px;
  padding: 20px 20px 12px 28px;
  background: var(--bg-primary);
  box-shadow: 0 1px 0 transparent;
}
.icon-modal__bar .set-chip { min-width: 0; }
.icon-modal__tools { flex: 0 0 auto; margin: 0; }
@supports (animation-timeline: scroll()) {
  .icon-modal__bar { animation: bar-divider linear both; animation-timeline: scroll(nearest); animation-range: 0 16px; }
  @keyframes bar-divider { to { box-shadow: 0 1px 0 var(--border-secondary); } }
}
@media (max-width: 640px) {
  .icon-modal__bar { margin: 0 -20px -8px; padding: 16px 12px 10px 20px; }
}
.icon-modal__title { font-size: 32px; line-height: 1.15; letter-spacing: -1px; }
.icon-modal__name { font-size: 13px; line-height: 1.5; }
.icon-modal__style { padding: 4px; min-height: 44px; }
.icon-modal__style .ocean-segmented__item { min-width: 0; min-height: 36px; padding-inline: 8px; font-size: 14px; }
.icon-modal .size-row { align-items: center; gap: 20px; }
.icon-modal .size-row__preview { flex: 0 0 104px; height: 104px; margin: 0; border-radius: var(--radius-2xl); border: 1px solid var(--border-secondary); }
.icon-modal .size-row__label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.icon-modal .size-row__label output { font-size: 12px; }
.icon-modal .size-row__label--next { margin-top: 12px; }
.icon-modal .size-row__range { height: 24px; margin-top: 8px; }
.icon-modal .size-row__ticks { display: flex; justify-content: space-between; height: auto; gap: 2px; }
.icon-modal .size-row__tick { position: static; transform: none; padding: 0 4px; min-width: 32px; min-height: 32px; font-size: 11px; border-radius: 8px; }
.icon-modal .size-row__tick[aria-pressed="true"] { color: var(--text-primary); background: var(--bg-secondary); }
.icon-modal__actions { gap: 8px; }
.icon-modal__actions .st-button { min-height: var(--button-height-lg); gap: var(--spacing-md); }
.icon-modal__actions [data-copy-jsx] { color: var(--text-brand-primary); border-color: var(--border-brand); }
.icon-modal .code-toggles { margin: -12px 0 -12px; gap: 4px; flex-wrap: nowrap; }
.icon-modal .code-toggles .st-button { flex: 1; min-width: 0; min-height: var(--button-height-md); padding-inline: var(--spacing-md); font-size: var(--fs-body-xs); }
.icon-modal .ocean-code { min-width: 0; overflow: hidden; border-radius: var(--radius-xl); border: var(--border-width-default) solid var(--gray-800); background: var(--gray-900); color: var(--gray-200); }
.icon-modal .ocean-code__header { padding: 10px 14px; background: var(--gray-950); color: var(--gray-300); font-size: var(--fs-body-xs); }
.icon-modal .ocean-code__copy { min-height: var(--button-height-xs); color: var(--gray-200); }
.icon-modal .ocean-code__body { display: block; padding: 16px; color: var(--gray-200); white-space: pre; max-height: 240px; font-size: var(--fs-body-xs); line-height: 1.65; }
@media (max-width: 860px) {
  .icon-modal { grid-template-columns: 1fr; height: auto; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .icon-modal__stage { display: none; }
  .icon-modal__info { overflow: visible; scrollbar-gutter: auto; }
}
@media (max-width: 640px) {
  .icon-modal { max-height: 100dvh; }
  .icon-modal__info { padding: 24px 20px max(24px, env(safe-area-inset-bottom)); gap: 24px; }
  .icon-modal__title { font-size: 28px; }
  .icon-modal .size-row { flex-direction: row; gap: 16px; }
  .icon-modal .size-row__preview { flex-basis: 72px; height: 80px; }
  .icon-modal .size-row__control { width: auto; }
  .icon-modal .size-row__tick { min-height: 44px; min-width: 28px; padding-inline: 2px; }
}
@media (max-width: 359px) {
  .icon-modal .size-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .icon-modal .size-row__preview { flex-basis: auto; width: 100%; height: 72px; }
  .icon-modal .size-row__tick { min-width: 40px; }
}
.project-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--border-secondary); border-radius: 20px; background: var(--bg-primary); color: var(--text-primary); overflow-y: auto; }
.project-dialog::backdrop { background: rgb(0 0 0 / 45%); backdrop-filter: blur(4px); }
.project-head, .project-form, .project-icon-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-head { justify-content: space-between; }
.project-head h2 { margin: 0; }
.project-dialog section { border-top: 1px solid var(--border-secondary); padding-block: 16px; }
.project-dialog .muted { font-size: 13px; color: var(--text-tertiary); }
.project-form input { flex: 1; min-width: 140px; }
.project-list { margin-block: 12px; max-height: 220px; overflow-y: auto; }
.project-list > div { display: flex; align-items: center; gap: 8px; padding-block: 6px; }
.project-list > div > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-dialog select { width: 100%; margin-block: 8px; }
.project-dialog .field__input { font-size: 16px; }
.project-icon-actions > button { flex: 1; }
.project-import { position: relative; overflow: hidden; }
.project-import input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.project-import:focus-within { outline: 2px solid var(--text-primary); outline-offset: 3px; }
#project-status { flex-basis: 100%; overflow-wrap: anywhere; }
#project-status a { display: block; padding-block: 12px; }
@media (max-width: 600px) {
  .project-dialog { padding: 20px; overscroll-behavior: contain; }
  .project-dialog .st-button, .project-dialog select { min-height: 44px; }
  .project-dialog .project-form > .st-button { flex-grow: 1; }
}
@media (max-width: 380px) {
  /* Projects remains available inside Customize on narrow phones. */
  .topbar [data-projects] { display: none; }
}


/* ── search box: one field holding icon, scope chip, input, clear, ⌘K ── */
.search {
  gap: var(--spacing-sm);
  height: 44px;
  padding: 0 var(--spacing-sm) 0 var(--spacing-lg);
  background: var(--bg-secondary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
}
.search:focus-within { border-color: var(--border-brand); box-shadow: var(--shadow-xs), var(--focus-ring); }
.search__icon { position: static; display: inline-flex; flex: 0 0 auto; }
.search .search__input,
.search .search__input:focus { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; outline: 0; }
.search__kbd { position: static; flex: 0 0 auto; margin-right: var(--spacing-xs); }
.search__clear:not([hidden]) ~ .search__kbd { display: none; }
.search__clear {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--fg-quaternary); cursor: pointer;
}
.search__clear:hover { background: var(--bg-active); color: var(--text-primary); }
.search__clear[hidden], .search__scope[hidden] { display: none; }
.search__scope {
  display: inline-flex; align-items: center; gap: var(--spacing-xxs); flex: 0 0 auto; max-width: min(200px, 45%);
  height: 26px; padding: 0 var(--spacing-xs) 0 var(--spacing-md);
  border: var(--border-width-default) solid var(--border-secondary); border-radius: var(--radius-full);
  background: var(--bg-primary); color: var(--text-secondary);
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); white-space: nowrap; cursor: pointer;
}
.search__scope-label { overflow: hidden; text-overflow: ellipsis; }
.search__scope > [data-ui] { display: inline-flex; color: var(--fg-quaternary); }
.search__scope:hover { border-color: var(--border-brand); color: var(--text-primary); }
.search__scope:hover > [data-ui] { color: var(--text-primary); }

/* ── category button ───────────────────────────────────────── */
.catbtn {
  display: inline-flex; align-items: center; gap: var(--spacing-sm); flex: 0 0 auto;
  height: 44px; max-width: 240px; padding: 0 var(--spacing-md) 0 var(--spacing-lg);
  background: var(--bg-secondary); color: var(--text-primary);
  border: var(--border-width-default) solid var(--border-secondary); border-radius: var(--radius-md);
  font: inherit; font-size: var(--font-size-md); font-weight: var(--font-weight-medium); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default), background-color var(--duration-fast) var(--ease-default);
}
.catbtn:hover { border-color: var(--border-primary); }
.catbtn[aria-expanded="true"] { border-color: var(--border-brand); background: var(--bg-primary); }
.catbtn__ic, .catbtn__chev { display: inline-flex; flex: 0 0 auto; }
.catbtn__ic { color: var(--fg-brand-primary); }
.catbtn__chev { color: var(--fg-quaternary); transition: transform var(--duration-fast) var(--ease-default); }
.catbtn[aria-expanded="true"] .catbtn__chev { transform: rotate(180deg); }
.catbtn__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* topbar style switch: icon-only */
.style-switch .ocean-segmented__item { width: 32px; padding: 0; justify-content: center; }

/* ── category picker ───────────────────────────────────────── */
.cats { position: fixed; inset: var(--topbar-h) 0 0; z-index: 30; }
.cats[hidden] { display: none; }
.cats__sheet {
  position: absolute; top: var(--spacing-md); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column;
  width: min(980px, calc(100vw - 2 * var(--spacing-xl)));
  max-height: calc(100dvh - var(--topbar-h) - 2 * var(--spacing-xl));
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  overflow: hidden;
}
.cats__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-lg); }
.cats__top { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); }
.cats__top .cats__item { width: auto; padding-right: var(--spacing-lg); }
.cats__label {
  padding: 0 var(--spacing-md) var(--spacing-sm);
  font-size: var(--font-size-sm); line-height: var(--line-height-sm);
  font-weight: var(--font-weight-medium); color: var(--text-quaternary);
}
.cats__sub { margin-bottom: var(--spacing-xl); }
.cats__chips { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); padding-inline: var(--spacing-md); }
.cats__chip {
  height: 32px; padding: 0 var(--spacing-lg);
  border: var(--border-width-default) solid var(--border-secondary); border-radius: var(--radius-full);
  background: var(--bg-primary); color: var(--text-secondary);
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); cursor: pointer;
}
.cats__chip:hover { border-color: var(--border-brand); color: var(--text-primary); }
.cats__cols { columns: 3 240px; column-gap: var(--spacing-2xl); }
.cats__group { break-inside: avoid; padding-bottom: var(--spacing-xl); }
.cats__item {
  display: flex; align-items: center; gap: var(--spacing-md);
  width: 100%; height: 36px; padding: 0 var(--spacing-md);
  border-radius: var(--radius-full);
  color: var(--text-primary); text-decoration: none;
  font-size: var(--font-size-md); font-weight: var(--font-weight-medium);
}
.cats__item:hover { background: var(--bg-secondary); }
.cats__item[aria-current="page"] { background: var(--bg-active); color: var(--text-brand-primary, var(--fg-brand-primary)); }
.cats__item:focus-visible { outline-offset: -2px; }
.cats__ic { display: inline-flex; flex: 0 0 auto; color: var(--fg-quaternary); }
.cats__item[aria-current="page"] .cats__ic { color: var(--fg-brand-primary); }
.cats__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cats__count { flex: 0 0 auto; font-size: var(--font-size-xs); color: var(--text-quaternary); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity var(--duration-fast) var(--ease-default); }
.cats__item:hover .cats__count, .cats__item[aria-current="page"] .cats__count, .cats__item--all .cats__count { opacity: 1; }
.cats__foot {
  display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  border-top: var(--border-width-default) solid var(--border-secondary);
}
.cats__foot .st-button { gap: var(--spacing-sm); color: var(--text-tertiary); }
.cats__foot .st-button:hover { color: var(--text-primary); }
.cats__foot [data-ui] { display: inline-flex; }

/* tablet and phone: picker replaces the chip row and opens as a bottom sheet */
@media (max-width: 1023px) {
  .sidebar { display: none; }
  html { scroll-padding-top: calc(var(--topbar-h) + var(--spacing-xl)); }
  .cats { inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg-overlay) 45%, transparent); }
  .cats__sheet {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; max-height: 86dvh;
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; border-bottom: 0;
    animation: cats-up var(--duration-base, 200ms) var(--ease-default);
  }
  .cats__sheet::before {
    content: ""; display: block; flex: 0 0 auto; width: 36px; height: 4px; margin: var(--spacing-md) auto 0;
    border-radius: var(--radius-full); background: var(--border-primary);
  }
  .cats__body { padding: var(--spacing-lg) var(--spacing-xl); }
  .cats__cols { columns: 2 220px; }
  .cats__count { opacity: 1; }
  .cats__item { height: 44px; }
  .cats__foot { padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom)); }
  body.cats-open { overflow: hidden; }
}
@keyframes cats-up { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 640px) {
  .topbar::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .catbtn { order: 3; max-width: 44%; padding-inline: var(--spacing-md) var(--spacing-sm); font-size: var(--font-size-sm); }
  .search { order: 4; flex: 1 1 0; min-width: 0; }
  .search__scope { display: none; }
  .search__input::placeholder { font-size: 15px; }
}

/* ── grid tools: quick copy, multi-select, recents ───────── */
.tile-copy {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}
.tile-copy:hover { color: var(--text-brand-primary); border-color: var(--border-brand); }
.tile-copy svg { width: 16px; height: 16px; }

#btn-select[aria-pressed="true"] { background: var(--bg-brand-primary); color: var(--text-brand-primary); }
body.is-selecting #view .tile { cursor: copy; }
#view .tile.is-selected { background: var(--bg-brand-primary); border-color: var(--border-brand); color: var(--text-brand-primary); }
#view .tile.is-selected::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-brand-solid);
}

.selbar {
  position: fixed;
  left: 50%;
  bottom: var(--spacing-2xl);
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: calc(100vw - 2 * var(--spacing-xl));
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-xl);
  background: var(--bg-primary);
  border: var(--border-width-default) solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
}
.selbar__count { margin-right: var(--spacing-sm); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--text-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.selbar__sep { width: 1px; height: 20px; background: var(--border-secondary); }
.selbar .st-button { gap: var(--spacing-xs); white-space: nowrap; }
body.is-selecting .main { padding-bottom: 120px; }
body.is-selecting .toast-region { bottom: 88px; }

.recent { margin-bottom: var(--spacing-4xl); padding-bottom: var(--spacing-3xl); border-bottom: var(--border-width-default) solid var(--border-secondary); }
.recent__head { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.recent__head .cat__title { margin-bottom: 0; }
.recent .grid { margin-top: var(--spacing-lg); }
.recent__q { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); margin-top: var(--spacing-xl); }
.recent__q-label { margin-right: var(--spacing-xs); font-size: var(--font-size-xs); color: var(--text-quaternary); }
.recent__q .ocean-tag { height: 28px; padding-inline: var(--spacing-lg); border-radius: var(--radius-full); border-color: transparent; background: var(--bg-secondary); color: var(--text-tertiary); cursor: pointer; }
.recent__q .ocean-tag:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ── icon modal: formats, PNG options, image link ────────── */
.icon-modal .code-toggles { flex-wrap: wrap; }
.icon-modal .code-toggles .st-button { flex: 0 0 auto; }
.code-actions { display: inline-flex; gap: var(--spacing-xs); }
.code-note { margin: var(--spacing-md) 0 0; font-size: var(--font-size-xs); line-height: var(--line-height-xs); color: var(--text-tertiary); }
.png-opts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); margin-top: calc(-1 * var(--spacing-xl)); }
.png-opts__label { font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); color: var(--text-tertiary); }
.png-opts .ocean-segmented__item { padding-inline: var(--spacing-md); }
.icon-modal__tools .st-button[disabled] { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
  .selbar { left: var(--spacing-md); right: var(--spacing-md); bottom: max(var(--spacing-md), env(safe-area-inset-bottom)); transform: none; max-width: none; justify-content: space-between; padding-left: var(--spacing-lg); gap: var(--spacing-xs); }
  .selbar__t, .selbar__sep, .selbar [data-sel-act="clear"] { display: none; }
  .selbar .st-button { min-width: 40px; min-height: 40px; padding-inline: 0; justify-content: center; }
  .selbar__count { margin-right: auto; }
}

#btn-agents { white-space: nowrap; }
@media (max-width: 1359px) and (min-width: 641px) { #btn-agents .hide-sm { display: none; } #btn-agents { width: var(--button-icon-only-md, 40px); padding: 0; } }
.project-icon-actions > button { flex: 1 1 auto; white-space: nowrap; }

/* ── New icons ───────────────────────────────────────────── */
#view .tile.is-new::before, .related-grid .tile.is-new::before {
  content: "New";
  position: absolute;
  top: 3px;
  left: 3px;
  padding: 0 4px;
  border-radius: var(--radius-xs);
  background: var(--bg-brand-solid);
  color: #fff;
  font: var(--font-weight-semibold) 9px/14px var(--font-body);
  letter-spacing: 0.02em;
}
.nav-count--new { padding: 0 6px; border-radius: var(--radius-full); background: var(--bg-brand-primary); color: var(--text-brand-primary); }
.newgroup { margin-bottom: var(--spacing-4xl); }
.newgroup .cat__title--set { margin-top: 0; }
.newgroup__asked { margin: 0 0 var(--spacing-lg); font-size: var(--font-size-sm); color: var(--text-tertiary); }
.newgroup__asked a { color: var(--text-brand-primary); }
.icon-modal__new { display: flex; align-items: center; gap: var(--spacing-md); margin: var(--spacing-xs) 0 0; font-size: var(--font-size-xs); color: var(--text-tertiary); }
.newpill { padding: 0 6px; border-radius: var(--radius-xs); background: var(--bg-brand-solid); color: #fff; font-weight: var(--font-weight-semibold); line-height: 18px; }

/* ── Projects sync ───────────────────────────────────────── */
.sync h3 { margin-top: 0; }
.sync__code { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); margin-block: var(--spacing-md); }
.sync__code code { padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-secondary); border: var(--border-width-default) solid var(--border-secondary); font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.06em; color: var(--text-primary); user-select: all; }
.sync__state { margin: 0 0 var(--spacing-md); }
.sync__msg { margin: var(--spacing-md) 0 0; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-secondary); font-size: 13px; color: var(--text-secondary); }
.sync__danger { color: var(--text-error-primary, #d92d20); }
.sync #sync-join { margin-top: var(--spacing-md); }
.sync #sync-join .field__input { flex: 1 1 220px; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── icon modal: one Export block ────────────────────────── */
/* minmax(0, 1fr): a long unwrapped code line must scroll inside its block, not widen the panel */
.export { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-lg); min-width: 0; }
.export > *, .export__code, .export .code-slot { min-width: 0; max-width: 100%; }
.export__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--spacing-md); }
.export__fmt {
  min-width: 0;
  height: var(--button-height-lg, 44px);
  padding: 0 36px 0 14px;
  border: var(--border-width-default) solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23717680' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  color: var(--text-primary);
  font: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  appearance: none;
  cursor: pointer;
}
.export__fmt:focus-visible { outline: 0; border-color: var(--border-brand); box-shadow: var(--focus-ring); }
.export .st-button { min-height: var(--button-height-lg, 44px); gap: var(--spacing-sm); white-space: nowrap; }
.export__dl { width: var(--button-height-lg, 44px); padding: 0; justify-content: center; }
.export .png-opts { margin: 0; gap: var(--spacing-md); }
.export .png-opts .ocean-segmented__item { min-height: 32px; padding-inline: var(--spacing-lg); }
.export__note { margin: 0; }
.export__code > summary { cursor: pointer; width: fit-content; padding: 4px 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--text-tertiary); }
.export__code > summary:hover { color: var(--text-primary); }
.export__code[open] > summary { margin-bottom: var(--spacing-md); }
.icon-modal__more { display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-md); margin-top: calc(-1 * var(--spacing-md)); }
.icon-modal__more .st-button { gap: var(--spacing-xs); padding-inline: var(--spacing-sm); color: var(--text-tertiary); }
.icon-modal__more .st-button:hover { color: var(--text-brand-primary); }

/* ── header buttons with a word ──────────────────────────── */
.hdr-btn { gap: var(--spacing-sm); padding-inline: var(--spacing-md); white-space: nowrap; color: var(--text-secondary); }
.hdr-btn__ic { display: inline-flex; }
#btn-select[aria-pressed="true"] { background: var(--bg-brand-primary); color: var(--text-brand-primary); }
@media (max-width: 1359px) {
  .hdr-btn__t { display: none; }
  .hdr-btn { width: var(--button-icon-only-md, 40px); padding: 0; justify-content: center; }
}

/* ── touch targets on phones: 40 px or more ──────────────── */
@media (max-width: 640px) {
  .export__row { grid-template-columns: minmax(0, 1fr) auto; }
  .export__row .export__fmt { grid-column: 1 / -1; }
  .export .png-opts { flex-wrap: wrap; }
  .export .png-opts .ocean-segmented__item { min-height: 40px; }
  .icon-modal__name { min-height: 40px; padding-block: 8px; }
  .icon-modal__more .st-button { min-height: 40px; }
  .lens__toggles .st-button, .icon-modal__tags .ocean-tag { min-height: 40px; }
  .size-row__tick { min-height: 40px; }
  .icon-modal__style .ocean-segmented__item { min-height: 40px; }
  .export__code > summary { display: flex; align-items: center; min-height: 40px; padding: 0; }
}

/* Projects workspace and colour inspector */
.project-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border-secondary); margin:18px 0 8px; }
.project-tabs button { flex:1; padding:12px 8px; border:0; background:transparent; color:var(--text-secondary); font:inherit; cursor:pointer; }
.project-tabs button[aria-pressed="true"] { color:var(--text-primary); box-shadow:inset 0 -2px #175cd3; font-weight:600; }
.project-dialog [hidden] { display:none !important; }
.project-dialog { width:min(720px,calc(100vw - 32px)); }
.project-dialog .project-list { max-height:38dvh; }
.project-list .project-preview { flex:0 0 40px; height:40px; display:grid; place-items:center; background:var(--bg-secondary); border-radius:8px; }
.collection-export { position:sticky; bottom:-24px; background:var(--bg-primary); border-top:1px solid var(--border-secondary); padding:16px 0; }
.collection-export > p,.export-summary { font-size:13px; color:var(--text-secondary); margin:0 0 12px; }
.export h3 { font-size:15px; margin:0 0 6px; }
.duo-palette { margin:20px 0; padding:16px 0; border:0; border-top:1px solid var(--border-secondary); display:flex; flex-wrap:wrap; gap:16px; }
.duo-palette legend { font-size:13px; font-weight:600; }
.duo-palette label { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.duo-palette input { width:60px; height:44px; padding:3px; border:1px solid var(--border-secondary); border-radius:8px; background:var(--bg-primary); }
.duo-palette select { max-width:100%; min-height:44px; font:inherit; background:var(--bg-primary); color:var(--text-primary); border:1px solid var(--border-secondary); border-radius:8px; }
.duo-palette p { flex-basis:100%; margin:0; font-size:12px; color:var(--text-secondary); }
.project-tabs button:focus-visible { outline:2px solid #175cd3; outline-offset:-3px; }
@media(max-width:600px) {
 .project-dialog { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; padding:20px 16px max(20px,env(safe-area-inset-bottom)); box-sizing:border-box; }
 .project-head { position:sticky; top:-20px; padding:12px 0; background:var(--bg-primary); z-index:2; }
 .project-form { flex-direction:column; align-items:stretch; }
 .project-form input { width:100%; min-width:0; box-sizing:border-box; }
 .project-dialog .st-button,.project-tabs button { min-height:44px; }
 .project-dialog .project-list { max-height:none; }
 .collection-export { bottom:-20px; }
 .collection-export .project-form { flex-direction:row; }
 .icon-modal__info .export { position:sticky; bottom:0; background:var(--bg-primary); z-index:2; padding:16px 0 max(16px,env(safe-area-inset-bottom)); border-top:1px solid var(--border-secondary); }
 .icon-modal__info .export:has(details[open]) { position:static; }
 .icon-modal__more { flex-wrap:wrap; }
 .icon-modal__more button { min-height:44px; }
}
@media(prefers-reduced-motion:no-preference) { .project-tabs button { transition:color .15s,box-shadow .15s; } .duo-palette { animation:palette-in .16s ease-out; } @keyframes palette-in { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} } }
.project-dialog input.field__input { min-height:44px; padding:10px 12px; }
/* P2: discovery, progressive controls, backup review and onboarding. */
.discovery { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 24px; }
.discovery a { padding:10px 14px; border:1px solid var(--border-secondary); border-radius:var(--product-radius); color:var(--text-secondary); text-decoration:none; }
.discovery a:hover { color:var(--product-accent); background:var(--bg-secondary); }
.recent-fold > summary,.help-disclosure > summary { cursor:pointer; padding:14px 0; font-weight:600; font-size:14px; }
.recent { margin-block:16px; }
.recent__head h2 { display:none; }
.help-disclosure { border-top:1px solid var(--border-secondary); margin-top:16px; }
.help-disclosure p,.control-help { color:var(--text-secondary); font-size:13px; line-height:1.6; }
.control-help { grid-column:1 / -1; margin:6px 0 12px; }
.tune-preview { min-height:76px; display:grid; place-items:center; background:var(--bg-secondary); border-radius:var(--product-radius); margin:12px 0; font-size:12px; }
.appearance-settings { border-top:1px solid var(--border-secondary); padding-top:18px; margin-top:20px; }
.step-title { font-size:15px; margin:24px 0 12px; }
.backup-preview { padding:16px; border:1px solid var(--border-secondary); border-radius:var(--product-radius); }
.backup-preview button { margin:8px 8px 0 0; }
.backup-preview p { font-size:14px; line-height:1.6; }
@media(max-width:640px){ .intro { padding-block:20px; } .intro__title { font-size:24px; } .intro__lead { font-size:14px; } .discovery { flex-wrap:nowrap; overflow:auto; margin-block:12px; } .discovery a { flex-shrink:0; } .modal__tabs { overflow-x:auto; flex-wrap:nowrap; } .modal__tabs > button { flex-shrink:0; min-height:44px; } .tune { max-height:calc(100dvh - 32px); overflow-y:auto; } }
.tune { max-height:calc(100dvh - 100px); overflow-y:auto; overscroll-behavior:contain; }
.tune__pair:empty { display:none; }
.discovery a[aria-current="page"] { background:var(--bg-secondary); color:var(--product-accent); border-color:var(--product-accent); }
@media(max-width:640px){ .sync #sync-join .field__input { flex:0 0 auto; height:44px; } }

/* ── /examples: screens use the full width, no set sidebar ── */
body.is-examples .layout { grid-template-columns: minmax(0, 1fr); }
body.is-examples .sidebar { display: none; }
body.is-examples .footer { margin-left: 0; }
#btn-examples[aria-current="page"] { background: var(--bg-brand-primary); color: var(--text-brand-primary); }
body.is-examples .discovery { display: none; }

/* Compact modal controls: keep export actions and single-line fields aligned. */
:is(.icon-modal, .ocean-modal, .project-dialog) :is(input.field__input, select, input[type="color"]),
.sync #sync-join input.field__input {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding-block: 0;
}
.icon-modal .duo-palette input[type="color"] { padding: 3px; }
.icon-modal .export__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.icon-modal .export__row .export__fmt { grid-column: auto; padding-left: 10px; padding-right: 30px; background-position: right 8px center; }
.icon-modal .export__row .st-button {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 20px;
  gap: 6px;
}
.icon-modal .export__row .export__dl { width: 32px; min-width: 32px; padding: 0; }
.icon-modal .export__row .st-button svg { width: 16px; height: 16px; flex-shrink: 0; }

.button-label:not([hidden]) { display: grid; gap: .25rem; margin-top: .5rem; }
.button-label .field__input { height: 32px; }
#icon-role-form label { min-width: 0; flex: 1; }
#icon-role-form .field__input { width: 100%; }

/* Examples → Try my collection: a Projects collection applied to the example by icon role (assets/roles.js) */
.kit-try { display: grid; gap: var(--spacing-md); margin: 0 0 var(--spacing-xl); }
.kit-try .kit__h { margin: 0; }
.kit-try p { margin: 0; font-size: 13px; line-height: 1.5; }
.kit-try code { font: 500 12px/1.4 var(--font-mono, ui-monospace, monospace); padding: 1px 4px; border-radius: 4px; background: var(--bg-secondary, rgba(0,0,0,.05)); }
.kit-try__row { display: flex; flex-wrap: wrap; gap: var(--spacing-md); align-items: center; }
.kit-try__sel { flex: 1 1 160px; min-width: 0; }
.kit-try__sel select { width: 100%; }
.kit-try__res { color: var(--text-secondary); }
.kit__rt code { font: 500 11px/1.3 var(--font-mono, ui-monospace, monospace); color: var(--text-tertiary); }
.role-cov { margin-top: var(--spacing-xl); display: grid; gap: var(--spacing-md); }
.role-cov h4 { margin: 0; font-size: 14px; }
.role-cov ul { display: grid; gap: var(--spacing-md); margin: 0; padding: 0; list-style: none; }
.role-cov li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: var(--spacing-md); }
.role-cov__t { display: grid; } .role-cov__t small { color: var(--text-tertiary); }
.role-cov__bar { height: 6px; border-radius: 3px; background: var(--border-secondary, rgba(0,0,0,.08)); overflow: hidden; }
.role-cov__bar i { display: block; height: 100%; background: var(--fg-brand-primary, #175cd3); }
.role-cov code { font-size: 11px; }

/* Customize → Motion: the icon under the pointer (or keyboard focus) plays it. Preview only. */
.tune__seg--motion .ocean-segmented__item { padding-inline: 4px; min-width: 0; }
.tune__hint { color: var(--text-tertiary); font-size: 12px; line-height: 1.45; }
@keyframes hm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hm-fade { from { opacity: .15; } to { opacity: 1; } }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .6; } }
@keyframes hm-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@keyframes hm-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } 60% { transform: translateY(-6%); } }
@keyframes hm-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } }
.tile .tile__art svg { transform-origin: 50% 50%; }
html[data-hover-motion="draw"]:not([data-icon-style="solid"]) .tile[data-hm] .tile__art :is(path, line, polyline, polygon, circle, rect, ellipse) { stroke-dasharray: 1; animation: hm-draw .9s cubic-bezier(.65, 0, .35, 1) both; }
html[data-hover-motion="draw"][data-icon-style="solid"] .tile:is(:hover, :focus-visible) .tile__art svg { animation: hm-fade .5s ease-out both; }
html[data-hover-motion="spin"] .tile:is(:hover, :focus-visible) .tile__art svg { animation: hm-spin 1s linear infinite; }
html[data-hover-motion="pulse"] .tile:is(:hover, :focus-visible) .tile__art svg { animation: hm-pulse 1.6s ease-in-out infinite; }
html[data-hover-motion="wiggle"] .tile:is(:hover, :focus-visible) .tile__art svg { transform-origin: 50% 10%; animation: hm-wiggle 1.2s ease-in-out infinite; }
html[data-hover-motion="bounce"] .tile:is(:hover, :focus-visible) .tile__art svg { animation: hm-bounce 1s cubic-bezier(.3, .7, .4, 1) infinite; }
html[data-hover-motion="beat"] .tile:is(:hover, :focus-visible) .tile__art svg { animation: hm-beat 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html[data-hover-motion] .tile .tile__art svg, html[data-hover-motion] .tile .tile__art svg * { animation: none !important; }
}

/* Icon name tooltip over a tile: shown on hover and keyboard focus after a short pause. */
.tile[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5;
  max-width: 180px; padding: 4px 8px; border-radius: 6px;
  background: var(--bg-primary-solid, #101828); color: var(--text-white, #fff);
  font: 500 12px/1.35 var(--font-body, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
  pointer-events: none; opacity: 0; transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease; transition-delay: 0s;
}
.tile[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 250ms; }
@media (hover: none) { .tile[data-tip]::after { display: none; } }

/* Guided tour (assets/tour.js): a spotlight on one element and a card that explains it. Top layer via popover. */
.tour { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; z-index: 2147483000; }
.tour--fallback { display: block; }
.tour::backdrop { background: transparent; }
.tour__spot { position: fixed; border-radius: var(--radius-xl); box-shadow: 0 0 0 9999px rgb(10 13 18 / 55%), 0 0 0 2px var(--fg-brand-primary) inset; pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.tour--center .tour__spot { box-shadow: 0 0 0 9999px rgb(10 13 18 / 55%); }
.tour__card { position: fixed; width: min(360px, calc(100vw - 24px)); padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg); border-radius: var(--radius-2xl); background: var(--bg-primary); color: var(--text-primary); box-shadow: var(--shadow-xl); border: 1px solid var(--border-secondary); outline: none; transition: left .25s ease, top .25s ease; }
.tour__card:focus-visible { box-shadow: var(--shadow-xl), 0 0 0 3px color-mix(in srgb, var(--fg-brand-primary) 35%, transparent); }
.tour__step { margin: 0 0 var(--spacing-xs); color: var(--text-brand-primary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tour__title { margin: 0 0 var(--spacing-md); font-family: var(--font-display); font-size: var(--font-size-lg); line-height: 1.3; }
.tour__body { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: 1.55; }
.tour__body p { margin: 0 0 var(--spacing-md); }
.tour__body kbd { padding: 1px 5px; border: 1px solid var(--border-primary); border-radius: 4px; font-size: 12px; }
.tour__body code { font-size: 12px; }
.tour__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); margin-top: var(--spacing-md); }
.tour__nav { display: flex; gap: var(--spacing-md); margin-left: auto; }
.tour__skip { padding: 6px 0; border: 0; background: none; color: var(--text-tertiary); font-size: var(--font-size-sm); cursor: pointer; }
.tour__skip:hover { color: var(--text-primary); text-decoration: underline; }
.tour--narrow .tour__card { left: 12px !important; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); top: auto !important; width: auto; }
.tour--center:not(.tour--narrow) .tour__card { width: min(420px, calc(100vw - 24px)); }
@media (prefers-reduced-motion: reduce) { .tour__spot, .tour__card { transition: none; } }
/* entry point in the footer and the browse panel */
.tour-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.tour-link:hover { text-decoration: underline; }
.tour--narrow.tour--top .tour__card { top: max(12px, env(safe-area-inset-top)) !important; bottom: auto; }

/* Disclosures (<details>): the browser's triangle becomes the UIUXIcon chevron — right when closed, down when open.
   Drawn as a mask so it takes the summary's text colour. .mcp-code (landing) draws its own. */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details:not(.mcp-code) > summary::before {
  content: ""; display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.875 3.75 10.125 8 5.875 12.25'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.875 3.75 10.125 8 5.875 12.25'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transition: transform .15s ease;
}
details:not(.mcp-code)[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }

/* /assets/app-skin.css */
/* UIUXIcon library app: the front page's system on top of the SilverTiger tokens.
   Loaded last. It changes the type (Funnel Display, Funnel Sans, DM Mono, as on the front page), keeps the
   logo blue #0647F7 and cyan #00BFE8, and gives every dialog one layout: a fixed head, a body that scrolls, a fixed foot,
   24px padding on all sides. The SilverTiger and Ocean files in assets/ are not edited. */

:root {
  --font-display: "Funnel Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --product-font: var(--font-body);
  --product-accent: #0647f7;
  --product-focus: #0647f7;
  --mx-pad: 24px;
  --mx-ease: cubic-bezier(.2, .7, .2, 1);
}
html, body, button, input, select, textarea { font-family: var(--font-body); }
code, kbd, pre, samp, output { font-family: var(--font-mono); }
h1, h2, .intro__title, .ocean-modal__title, .icon-modal__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.intro__title { letter-spacing: -0.03em; }

/* focus: one visible ring everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #0647f7; outline-offset: 2px; }

/* buttons step on hover and press on click */
.st-button { transition: background-color .16s var(--mx-ease), color .16s var(--mx-ease), box-shadow .16s var(--mx-ease), transform .12s var(--mx-ease); }
.st-button:not(:disabled):active { transform: translateY(1px) scale(.985); }
.st-button--primary:not(:disabled):hover { box-shadow: 0 6px 16px -8px rgb(6 71 247 / 55%); }
.tile { transition: transform .16s var(--mx-ease), background-color .16s var(--mx-ease), box-shadow .16s var(--mx-ease); }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); } }

/* ── dialogs: one layout ─────────────────────────────────────────────── */
.ocean-modal__overlay { overflow: hidden; padding: 24px; }
.mx {
  display: flex; flex-direction: column;
  width: min(100%, 560px); max-height: min(760px, calc(100dvh - 48px));
  padding: 0; overflow: hidden;
  border: 1px solid var(--border-secondary); border-radius: 20px;
  animation: mx-in .22s var(--mx-ease) both;
}
@keyframes mx-in { from { transform: translateY(8px) scale(.985); } }
.mx__head {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px;
  padding: var(--mx-pad); border-bottom: 1px solid var(--border-secondary); background: var(--bg-primary);
}
.mx__head .ocean-featured-icon { color: var(--fg-brand-primary); }
.mx__titles { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.mx__titles .ocean-modal__title { margin: 0; font-size: 22px; line-height: 1.25; }
.mx__titles .ocean-modal__supporting { margin: 0; }
.mx__head > .st-button--icon { margin: -6px -8px 0 0; }
.mx__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--mx-pad); display: flex; flex-direction: column; gap: 16px; }
/* children keep their full height: a box with overflow hidden (the code block, the tab row) never shrinks to fit */
.mx__body > * { margin-block: 0; flex-shrink: 0; min-width: 0; }
.mx__body .step-title { margin: 8px 0 0; }
.mx__body .step-title:first-child { margin-top: 0; }
.mx__foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px var(--mx-pad); border-top: 1px solid var(--border-secondary); background: var(--bg-primary);
}
.mx__foot > a.st-button--text:first-child { margin-right: auto; }
.mx .field { margin: 0; }
.mx .license-text { margin: 0; }
@media (max-width: 640px) {
  .ocean-modal__overlay { padding: 0; place-items: end center; }
  .mx { width: 100%; max-height: calc(100dvh - 24px); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .mx__head { padding: 20px; }
  .mx__body { padding: 20px; }
  .mx__foot { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
  .mx__foot > .st-button { flex: 1 1 0; }
  .mx__foot > a.st-button--text:first-child { flex: 0 0 auto; }
}

/* the icon dialog: the right column is head / body / foot */
.icon-modal .icon-modal__info { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; min-height: 0; scrollbar-gutter: auto; }
.icon-modal .icon-modal__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 16px var(--mx-pad) 20px; }
.icon-modal .icon-modal__bar { position: static; margin: 0 -8px 0 0; padding: 0; background: none; box-shadow: none; animation: none; }
.icon-modal .icon-modal__body { gap: 24px; }
.icon-modal .icon-modal__foot { display: block; padding: 16px var(--mx-pad); }
.icon-modal .icon-modal__foot .export { gap: 12px; }
.icon-modal .icon-modal__foot .export h3 { margin: 0; }
.icon-modal .icon-modal__foot .export__code .code-slot { max-height: 180px; overflow: auto; }
.icon-modal .icon-modal__foot .ocean-code__body { max-height: 160px; }
@media (max-width: 860px) {
  .icon-modal { display: flex; flex-direction: column; overflow: hidden; }
  .icon-modal .icon-modal__stage { flex: none; padding: 16px; }
  .icon-modal { --lens: min(200px, 48vw); }
  .icon-modal .icon-modal__info { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .icon-modal .icon-modal__top { padding: 12px 20px 16px; }
  .icon-modal .icon-modal__foot { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
}

/* the Projects dialog */
.project-dialog.mx-dialog, .project-dialog { display: none; padding: 0; overflow: hidden; width: min(620px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 48px)); border-radius: 20px; }
.project-dialog[open] { display: flex; flex-direction: column; }
.project-dialog > .project-head { grid-template-columns: auto minmax(0, 1fr) auto; }
.project-dialog > .project-head .project-tabs { grid-column: 1 / -1; margin: 4px 0 0; }
.project-dialog > .mx__body section { border-top: 0; padding-block: 0; }
.project-dialog > .mx__body section > h3:first-child { margin-top: 0; }
.project-dialog > .project-foot { flex-direction: column; align-items: stretch; gap: 12px; }
.project-dialog > .project-foot .collection-export p { margin: 0 0 8px; font-size: 13px; color: var(--text-tertiary); }
.project-dialog > .project-foot #project-status:empty { display: none; }
.project-dialog > .project-foot:not(:has(> [data-project-section]:not([hidden]), > #project-status:not(:empty))) { display: none; }
@media (max-width: 640px) {
  .project-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: calc(100dvh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .mx { animation: none; }
  .st-button, .tile { transition: none; }
  .st-button:active, .tile:hover { transform: none; }
}
@media (max-width: 640px) { .icon-modal .icon-modal__foot .export-summary { display: none; } }

/* phone header: two rows — the logo and the actions on one, the set picker and search on the next */
@media (max-width: 640px) {
  :root { --topbar-h: 108px; }
  .topbar { row-gap: 8px; column-gap: 8px; padding: 8px 16px 10px; }
  .topbar .brand { order: 0; flex: 0 1 auto; gap: 6px; }
  .topbar .brand__mark { width: 28px; height: 28px; }
  .topbar .brand__name { font-size: 18px; }
  .topbar__actions { order: 1; flex: 0 0 auto; flex-wrap: nowrap; gap: 0; margin-left: auto; }
  .topbar__actions .st-button--icon, .topbar__actions .hdr-btn, #btn-agents { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; }
  #btn-agents { margin-left: 4px; }
}
@media (max-width: 360px) { .topbar .brand__name { display: none; } }

/* the grid holds a screen's height until the app fills it, so the footer never shows and then jumps on load */
#view:empty { min-height: 100svh; }

/* icon dialog on tablets and phones: the large preview comes back as a compact stage above the panel */
@media (max-width: 860px) {
  .icon-modal .icon-modal__stage { display: grid; flex: none; gap: 8px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border-secondary); --lens: 148px; }
  .icon-modal .lens__toggles { justify-content: center; }
  .icon-modal .lens__toggle { min-height: 28px; padding-block: 0; font-size: 12px; }
}
@media (max-width: 640px) and (max-height: 700px) { .icon-modal .icon-modal__stage { --lens: 112px; } .icon-modal .lens__toggles { display: none; } }

/* library footer: the front page's columns */
.footer { border-top: 1px solid var(--border-secondary); padding: 40px 48px 32px; color: var(--text-tertiary); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1080px; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font: 500 18px/1 var(--font-display); text-decoration: none; letter-spacing: -0.02em; }
.footer__about p { max-width: 34ch; margin: 12px 0 0; line-height: 1.55; }
.footer__col { display: grid; align-content: start; gap: 8px; }
.footer__col h2 { margin: 0 0 4px; font: 500 13px/1.3 var(--font-body); color: var(--text-primary); letter-spacing: 0; }
.footer__col a { color: var(--text-tertiary); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s, color .2s; }
.footer__col a:hover { color: var(--text-primary); background-size: 100% 1px; }
.footer .footer__muted { margin: 32px 0 0; font-size: 13px; }
@media (max-width: 900px) { .footer { padding: 32px 24px; } .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }

/* library intro: the front page's headline type */
.intro__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(32px, 4vw, 48px); text-wrap: balance; }
.intro__lead { color: var(--text-tertiary); }
@media (max-width: 640px) { .intro__title { font-size: 30px; } }

/* the logo's colours: blue #0647F7 and cyan #00BFE8 (overrides on this site only; the SilverTiger files are untouched) */
:root, :root[data-theme] {
  --product-accent: #0647f7; --product-focus: #0647f7;
  --fg-brand-primary: #0647f7; --bg-brand-solid: #0647f7; --bg-brand-solid-hover: #0536c4;
  --border-brand-primary: #0647f7; --border-brand: #0647f7; --focus-ring: #0647f7;
  --btn-bg-primary: #0647f7; --btn-text-secondary: #0647f7; --btn-text-brand: #0647f7; --btn-border-brand: #0647f7;
  --btn-gradient-primary: linear-gradient(180deg, #0a8ff0, #0647f7);
  --btn-gradient-primary-hover: linear-gradient(180deg, #077ad0, #0536c4);
  --logo-cyan: #00bfe8;
}
:root:not([data-theme="dark"]) { --text-brand-primary: #0647f7; --bg-brand-primary: #eef3ff; }
:root[data-theme="dark"] { --fg-brand-primary: #4f7dff; --border-brand-primary: #4f7dff; --btn-text-secondary: #8fb0ff; --btn-text-brand: #8fb0ff; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: #0647f7; }
.project-tabs button[aria-pressed="true"] { box-shadow: inset 0 -2px #0647f7; }
.project-tabs button:focus-visible { outline-color: #0647f7; }

/* ══ library revamp: the front page's frame on the app ══════════════════════════════════════ */
:root { --lib-tint: #eef4ff; --lib-tint-2: #e3f6fc; --lib-line: var(--border-secondary); }
:root[data-theme="dark"] { --lib-tint: #101a33; --lib-tint-2: #0c2230; }

/* header: a frosted bar with a hairline, the search as a pill */
.topbar { background: color-mix(in oklab, var(--bg-primary) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--lib-line); }
.brand__name { font-weight: 500; letter-spacing: -0.02em; }
.hdr-btn { border-radius: var(--radius-md, 8px); }
.hdr-btn[aria-current="page"], .hdr-btn[aria-pressed="true"] { background: var(--lib-tint); color: var(--fg-brand-primary); }
#btn-agents { border-radius: var(--radius-md, 8px); }

/* intro: a lit band in the logo's blue and cyan, like the front page's closing band */
.intro {
  max-width: none; position: relative; overflow: hidden;
  margin: 0 0 24px; padding: 40px 44px 36px; border-radius: 24px; border: 1px solid var(--lib-line);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, #00bfe8 22%, transparent) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in oklab, #0647f7 14%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--lib-tint), var(--bg-primary));
}
.intro__lead { max-width: 60ch; margin-top: 12px; font-size: 16px; line-height: 1.6; }
.intro__facts { display: none; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
body.is-home .intro__facts { display: flex; }
.intro__facts li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in oklab, var(--bg-primary) 80%, transparent); border: 1px solid var(--lib-line); font-size: 13px; color: var(--text-tertiary); }
.intro__facts b { font: 500 13px/1 var(--font-mono); color: var(--text-primary); }
body.is-examples .intro { padding: 32px 36px 28px; }
@media (max-width: 640px) {
  .intro { margin: 0 0 16px; padding: 24px 20px 22px; border-radius: 18px; }
  .intro__facts { gap: 6px; margin-top: 16px; }
  .intro__facts li { padding: 4px 10px; font-size: 12px; }
}

/* quick browse: pill tabs */
.discovery a { border-radius: 999px; }
.discovery a[aria-current="page"] { background: var(--lib-tint); border-color: color-mix(in oklab, #0647f7 40%, transparent); color: var(--fg-brand-primary); }

/* sidebar: quiet labels in mono, the current set on a blue tint */
.sidebar { background: var(--bg-primary); border-right-color: var(--lib-line); }
/* Native scrollbars in the set navigation and the icon inspector. */
.sidebar, .cats__body, .icon-modal__body {
  --scroll-thumb: var(--text-quaternary);
  scrollbar-color: var(--scroll-thumb) transparent;
}
[data-theme="dark"] :is(.sidebar, .cats__body, .icon-modal__body) { color-scheme: dark; }
:is(.sidebar, .cats__body, .icon-modal__body):focus-within { --scroll-thumb: var(--text-tertiary); }
@media (hover: hover) {
  :is(.sidebar, .cats__body, .icon-modal__body):hover { --scroll-thumb: var(--text-tertiary); }
}
@media (pointer: fine) {
  .sidebar, .cats__body, .icon-modal__body { scrollbar-width: thin; scrollbar-gutter: stable; }
  /* Older Safari uses the native track and thumb pseudo-elements. */
  @supports not (scrollbar-color: auto) {
    :is(.sidebar, .cats__body, .icon-modal__body)::-webkit-scrollbar { width: 10px; }
    :is(.sidebar, .cats__body, .icon-modal__body)::-webkit-scrollbar-track { background: transparent; }
    :is(.sidebar, .cats__body, .icon-modal__body)::-webkit-scrollbar-thumb {
      background: var(--scroll-thumb); border: 2px solid transparent;
      background-clip: padding-box; border-radius: 999px;
    }
  }
}
@media (forced-colors: active) {
  .sidebar, .cats__body, .icon-modal__body { scrollbar-color: auto; scrollbar-width: auto; }
}
@media (min-width: 1024px) {
  .sidebar { scroll-padding-block: 44px var(--spacing-lg); }
  .sidebar .nav-group__label {
    position: sticky; top: calc(0px - var(--spacing-xl)); z-index: 1;
    background: var(--bg-primary);
  }
}
.nav-group__label { font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; color: var(--text-quaternary); }
.sidebar .ocean-nav-item { border-radius: 10px; color: var(--text-secondary); }
.sidebar .ocean-nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.sidebar .ocean-nav-item[aria-current="page"], .sidebar .ocean-nav-item.is-active { background: var(--lib-tint); color: var(--fg-brand-primary); font-weight: 500; }
.sidebar .ocean-nav-item[aria-current="page"] .nav-count, .sidebar .ocean-nav-item.is-active .nav-count { color: var(--fg-brand-primary); }
.nav-count { font-family: var(--font-mono); font-weight: 400; }

/* set and category headings: display type, numbers in mono */
.set__head { border-bottom-color: var(--lib-line); }
.set__num { color: #007c9e; }
html[data-theme="dark"] .set__num { color: #00a9d4; }
.set__title { font-weight: 500; letter-spacing: -0.025em; font-size: 28px; }
.set__count, .cat__title span { font-family: var(--font-mono); font-size: 12px; }
.cat__title { font-weight: 500; color: var(--text-secondary); }
.cat__title--set { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }

/* tiles: soft cards that light up in the brand tint */
.tile { border-radius: 14px; border-color: transparent; background: var(--bg-secondary); }
.tile:hover { background: var(--lib-tint); border-color: color-mix(in oklab, #0647f7 35%, transparent); color: var(--fg-brand-primary); box-shadow: 0 8px 20px -12px rgb(6 71 247 / 45%); }
.tile.is-selected { background: var(--lib-tint); border-color: #0647f7; box-shadow: inset 0 0 0 1px #0647f7; }
.tile-copy { border-radius: 10px; }

/* the customize panel and the set picker: the same rounded surfaces as the dialogs */
.tune, .cats__sheet { border-radius: 20px; border: 1px solid var(--lib-line); box-shadow: 0 24px 48px -24px rgb(8 23 61 / 30%); }
.selbar { border-radius: 999px; }

/* dialog head: no space under it; the Projects tabs without their own rule */
.project-dialog > .mx__head { padding-bottom: 0; }
.project-tabs { border-bottom: 0; }

/* ══ inputs: SilverTiger Input, size XSmall (36px, 12px padding, 13px type) ═══════════════════════
   One look for every text field, select and textarea in the app: white ground, the DS border, a soft
   shadow, the brand border on hover and focus with the DS focus ring. Phones keep 16px type so iOS
   does not zoom into the field. */
:root { --in-h: var(--input-height-xs, 36px); --in-pad: var(--input-padding-inline-xs, 12px); --in-fs: var(--input-font-size-xs, 13px); --in-ring: 0 0 0 3px rgb(6 71 247 / 16%); }
:root[data-theme="dark"] { --in-ring: 0 0 0 3px rgb(79 125 255 / 28%); }
.field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea {
  box-sizing: border-box; width: 100%; min-width: 0;
  height: var(--in-h); min-height: var(--in-h); padding: 0 var(--in-pad);
  border: 1px solid var(--border-primary); border-radius: var(--radius-md, 8px);
  background-color: var(--bg-primary); color: var(--text-primary);
  font: 400 var(--in-fs)/1.4 var(--font-body); letter-spacing: 0;
  box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%));
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field__area, .ocean-textarea { height: auto; min-height: 96px; padding: 8px var(--in-pad); line-height: 1.5; resize: vertical; }
:is(.field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea)::placeholder { color: var(--text-placeholder); opacity: 1; }
:is(.field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea):hover:not(:disabled):not([readonly]) { border-color: var(--border-brand-primary); }
:is(.field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea):focus,
:is(.field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea):focus-visible { outline: 0; border-color: var(--border-brand-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)), var(--in-ring); }
.field__input[readonly] { background: var(--bg-secondary); color: var(--text-secondary); box-shadow: none; }
:is(.field__input, .export__fmt, .field__area):disabled { background: var(--bg-disabled, var(--bg-secondary)); color: var(--text-disabled); cursor: not-allowed; box-shadow: none; }
.field__input[aria-invalid="true"], .field__area[aria-invalid="true"] { border-color: var(--border-error); }

/* selects: the DS chevron instead of the browser's */
.export__fmt, .duo-palette select, .project-dialog select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23717680' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}

/* labels and the hex field beside the colour picker */
.field { gap: 6px; margin-top: 0; }
.field__label { font: 500 13px/1.4 var(--font-body); color: var(--text-secondary); }
.picker__hex { height: var(--in-h); padding: 0 var(--in-pad) 0 6px; border-color: var(--border-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)); font-size: var(--in-fs); }
.picker__hex:hover { border-color: var(--border-brand-primary); }
.picker__hex:focus-within { border-color: var(--border-brand-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)), var(--in-ring); }
.picker__chip { width: 22px; height: 22px; }
.duo-palette input[type="color"] { width: 48px; height: var(--in-h); padding: 3px; border-color: var(--border-primary); border-radius: var(--radius-md, 8px); }
.duo-palette select { min-height: var(--in-h); }
.sync #sync-join .field__input { font-family: var(--font-mono); font-size: var(--in-fs); }

/* the buttons that sit in a row with a field take the same 36px, so the row reads as one line */
.export__row .st-button, .project-form .st-button, .project-form .project-import, .sync #sync-join .st-button { height: var(--in-h); min-height: var(--in-h); }
.export__row .export__dl { width: var(--in-h); min-width: var(--in-h); padding: 0; }
.project-dialog .project-form input { font-size: var(--in-fs); }

@media (max-width: 640px) {
  .field__input, .export__fmt, .duo-palette select, .project-dialog select, .field__area, .ocean-textarea, .project-dialog .project-form input, .sync #sync-join .field__input, .picker__hex input { font-size: 16px; }
}
/* the header search and the set picker beside it: 36px, like the fields */
.search { height: var(--in-h); padding: 0 6px 0 var(--in-pad); border: 1px solid var(--border-primary); border-radius: var(--radius-md, 8px); background: var(--bg-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)); }
.search:hover { border-color: var(--border-brand-primary); }
.search:focus-within { border-color: var(--border-brand-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)), var(--in-ring); }
.search .search__input, .search .search__input:focus { height: 100%; border-radius: 0; background: transparent; border: 0; box-shadow: none; font-size: 14px; }
.search__icon svg { width: 16px; height: 16px; }
.catbtn { height: var(--in-h); border-radius: var(--radius-md, 8px); border-color: var(--border-primary); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)); }
.icon-modal .export__row .st-button, .icon-modal .export__row .export__fmt { height: var(--in-h); min-height: var(--in-h); }
.icon-modal .export__row .export__dl { width: var(--in-h); min-width: var(--in-h); }
.icon-modal .export__row .export__fmt { padding-left: var(--in-pad); padding-right: 36px; background-position: right 12px center; }
@media (max-width: 640px) { .search .search__input { font-size: 16px; } }
/* the older "compact modal controls" rule set dialog fields to 32px; the DS size is 36px */
:is(.icon-modal, .ocean-modal, .project-dialog) :is(input.field__input, select),
.sync #sync-join input.field__input { height: var(--in-h); min-height: var(--in-h); }
:is(.icon-modal, .ocean-modal, .project-dialog) input[type="color"] { height: var(--in-h); min-height: var(--in-h); }
.project-dialog label[for="collection-select"] { display: block; margin: 16px 0 6px; font: 500 13px/1.4 var(--font-body); color: var(--text-secondary); }
.project-dialog select#collection-select { margin-block: 0; }

/* "Use it in your agent": a wider dialog, and the app tabs on one line (they scroll sideways when they do not fit) */
.mx:has(.modal__tabs) { width: min(100%, 640px); }
.mx .modal__tabs {
  flex-wrap: nowrap; gap: 4px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; box-shadow: inset 0 -1px var(--border-secondary);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.mx .modal__tabs::-webkit-scrollbar { display: none; }
.mx .modal__tabs .st-tab { flex: 0 0 auto; white-space: nowrap; padding-inline: 14px; }
@media (min-width: 641px) { .mx .modal__tabs { -webkit-mask-image: none; mask-image: none; } }
/* eleven apps do not fit one line: the app picker wraps as pills instead of a scrolling tab row */
.mx .modal__tabs[aria-label="Agent"] { flex-wrap: wrap; gap: 6px; overflow: visible; box-shadow: none; -webkit-mask-image: none; mask-image: none; }
.mx .modal__tabs[aria-label="Agent"] .st-tab { height: 34px; padding-inline: 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--border-secondary); font-size: 13px; }
.mx .modal__tabs[aria-label="Agent"] .st-tab::after { display: none; }
.mx .modal__tabs[aria-label="Agent"] .st-tab { display: inline-flex; align-items: center; gap: 7px; }
.mx .agent-logo { flex: none; width: 16px; height: 16px; object-fit: contain; }
.mx .agent-logo.is-paper { padding: 1px; border-radius: 4px; background: #9046ff; box-sizing: content-box; }
.mx .st-tab[aria-selected="true"] .agent-logo { background: #fff; border-radius: 4px; padding: 1px; box-sizing: content-box; }
:root[data-theme="dark"] .mx .st-tab:not([aria-selected="true"]) .agent-logo.is-ink { filter: invert(1) hue-rotate(180deg); }
.mx .modal__tabs[aria-label="Agent"] .st-tab[aria-selected="true"] { background: var(--bg-brand-solid, #0647f7); color: #fff; box-shadow: none; }

/* set page: the bar that downloads the whole set */
.packbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 14px 16px 14px 20px; border: 1px solid var(--lib-line); border-radius: 16px; background: var(--bg-primary); }
.packbar__text { display: grid; gap: 2px; margin: 0; font-size: 14px; color: var(--text-primary); }
.packbar__text strong { font-weight: 500; }
.packbar__text span { font: 12px var(--font-mono); color: var(--text-tertiary); }
.packbar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.packbar__btns { align-items: center; }
.packbar__paid { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 28px; border-radius: 999px; background: color-mix(in srgb, #0647F7 8%, transparent); color: #0647F7; font-size: 12px; font-weight: 500; }
.packbar__paid svg { width: 14px; height: 14px; }
.pro__perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pro__perks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pro__perks svg { margin-top: 3px; color: #0647F7; }
.pro__perks b { display: block; font-weight: 500; color: var(--text-primary); }
.pro__note { margin: 16px 0 0; font-size: 13px; color: var(--text-tertiary); }
.pro__note a { color: inherit; }
.mx__foot a.st-button { text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .packbar__paid { color: #00BFE8; background: color-mix(in srgb, #00BFE8 12%, transparent); } }
:root[data-theme="dark"] .packbar__paid { color: #00BFE8; background: color-mix(in srgb, #00BFE8 12%, transparent); }
.packbar .st-button { height: var(--in-h); min-height: var(--in-h); gap: 6px; }
.packbar .st-button[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 640px) { .packbar { padding: 12px; } .packbar__btns { width: 100%; } .packbar__btns .st-button { flex: 1 1 0; padding-inline: 8px; } }

/* Projects → Sync & backup: the account block above code sync */
.acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in oklab, #0647f7 28%, transparent); background: var(--lib-tint); }
.acct p { display: grid; gap: 2px; margin: 0; min-width: 0; flex: 1 1 260px; }
.acct strong { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.acct span { font-size: 13px; color: var(--text-tertiary); }
.acct--out { border-color: var(--lib-line); background: var(--bg-secondary); }
.acct .st-button { height: var(--in-h); }

/* Agents dialog: the other channels (npm, VS Code, Figma) once they are published */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.channel { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--lib-line); border-radius: 12px; color: var(--text-primary); text-decoration: none; transition: border-color .15s, background-color .15s; }
.channel:hover { border-color: color-mix(in oklab, #0647f7 40%, transparent); background: var(--lib-tint); }
.channel__ic { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-secondary); color: var(--fg-brand-primary); }
.channel b { display: block; font-weight: 500; font-size: 14px; }
.channel small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }

/* popular: ranked tiles and the "#3 this week" badge in the icon dialog */
.grid--ranked { counter-reset: rank; }
.grid--ranked .tile { counter-increment: rank; }
.grid--ranked .tile::after { content: counter(rank); position: absolute; top: 6px; left: 8px; font: 500 10px/1 var(--font-mono); color: var(--text-quaternary); pointer-events: none; }
.grid--ranked .tile:nth-child(-n+3)::after { color: #007c9e; }
html[data-theme="dark"] .grid--ranked .tile:nth-child(-n+3)::after { color: #00a9d4; }
.icon-modal__pop:empty { display: none; }
.poppill { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 8px; border-radius: 999px; background: var(--lib-tint); color: var(--fg-brand-primary); font: 500 12px/1.3 var(--font-body); text-decoration: none; }
.poppill svg { width: 14px; height: 14px; }
.sidebar .ocean-nav-item .nav-count svg { width: 14px; height: 14px; vertical-align: -2px; }

/* request board */
.board__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 28px; padding: 14px 16px 14px 20px; border: 1px solid var(--lib-line); border-radius: 16px; }
.board__ask p { display: grid; gap: 2px; margin: 0; flex: 1 1 280px; }
.board__ask strong { font-weight: 500; font-size: 14px; }
.board__ask span { font-size: 13px; color: var(--text-tertiary); }
.board__ask .st-button { height: var(--in-h); gap: 6px; }
.board { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lib-line); border-radius: 16px; overflow: hidden; }
.board__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--lib-line); }
.board__row:first-child { border-top: 0; }
.board__rank { font: 500 12px/1 var(--font-mono); color: var(--text-quaternary); }
.board__row:nth-child(-n+3) .board__rank { color: #007c9e; }
html[data-theme="dark"] .board__row:nth-child(-n+3) .board__rank { color: #00a9d4; }
.board__title { font-size: 15px; color: var(--text-primary); overflow-wrap: anywhere; }
.board__vote { display: inline-flex; align-items: center; gap: 6px; height: var(--in-h); min-width: 64px; padding: 0 12px; border: 1px solid var(--border-primary); border-radius: 999px; background: var(--bg-primary); color: var(--text-secondary); font: 500 13px/1 var(--font-mono); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .12s; }
.board__vote svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.board__vote:hover { border-color: #0647f7; color: var(--fg-brand-primary); }
.board__vote:active { transform: scale(.96); }
.board__vote[aria-pressed="true"] { background: var(--lib-tint); border-color: color-mix(in oklab, #0647f7 45%, transparent); color: var(--fg-brand-primary); }

/* icon dialog: the motion row */
.motion-row { display: grid; gap: 8px; }
.motion-row__label { font: 500 13px/1.4 var(--font-body); color: var(--text-secondary); }
.motion-row__kinds { display: flex; flex-wrap: wrap; width: 100%; }
.motion-row__kinds .ocean-segmented__item { flex: 1 0 auto; min-width: 0; padding-inline: 8px; }
.motion-row__kinds .ocean-segmented__item:disabled { opacity: .45; cursor: not-allowed; }
.motion-row__when { width: fit-content; }
.motion-row__note { margin: 0; font-size: 12px; color: var(--text-tertiary); }

/* toasts with a follow-up link */
.toast__link { display: inline-block; margin-top: 4px; font: 500 13px/1.4 var(--font-body); color: var(--fg-brand-primary); text-underline-offset: 3px; }
/* phone: the motion choices on one line that scrolls sideways */
@media (max-width: 640px) {
  .motion-row__kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
  .motion-row__kinds::-webkit-scrollbar { display: none; }
  .motion-row__kinds .ocean-segmented__item { flex: 0 0 auto; }
}

/* Projects footer: one rule (the footer's own), previews sized to the 24px icon, buttons in one row */
.project-dialog > .project-foot .collection-export { position: static; border-top: 0; padding: 0; background: none; }
.project-dialog > .project-foot .collection-export .project-form { flex-wrap: wrap; gap: 8px; }
.project-dialog > .project-foot .collection-export .st-button { flex: 0 0 auto; padding-inline: 14px; }
.project-dialog > .project-foot .collection-export .st-button--text { padding-inline: 10px; }
.project-list .project-preview { flex-basis: 40px; color: var(--text-primary); }
.project-list .project-preview svg { width: 24px; height: 24px; }

/* Projects → Sync & backup: the import review card */
.import-card { display: grid; gap: 12px; margin-bottom: 12px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in oklab, #00bfe8 45%, transparent); background: color-mix(in oklab, #00bfe8 8%, var(--bg-primary)); }
.import-card p { display: grid; gap: 4px; margin: 0; }
.import-card strong { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.import-card p span { font-size: 13px; color: var(--text-tertiary); }
.import-card__list { display: grid; gap: 6px; max-height: 180px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.import-card__list li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-secondary); }
.import-card__list svg { flex: none; width: 16px; height: 16px; color: var(--fg-brand-primary); }
.import-card__list b { font-weight: 500; color: var(--text-primary); }

/* Projects → Collections: the links this browser shared */
.shared-links-wrap:empty { display: none; }
.shared-links-wrap h3 { margin: 24px 0 4px; }
.shared-links > div { display: flex; align-items: center; gap: 8px; }
.shared-links__main { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.shared-links__main a { color: var(--text-primary); font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-links__main a:hover { color: var(--fg-brand-primary); }
.shared-links__main small { font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-links .shared-links__revoke { color: var(--text-error-primary, #d92d20); }

/* no results: related searches */
.related { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; max-width: 560px; }
.related > span { font-size: 13px; color: var(--text-tertiary); margin-right: 2px; }
.related__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-primary); border-radius: 999px; background: var(--bg-primary); color: var(--text-primary); font: 400 13px/1 var(--font-body); cursor: pointer; transition: border-color .15s, background-color .15s; }
.related__chip:hover { border-color: #0647f7; background: var(--lib-tint); }
.related__chip small { font: 400 11px/1 var(--font-mono); color: var(--text-tertiary); }

/* compare 2–4 icons */
.mx--wide { width: min(100%, 980px); }
.cmp__ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp { display: grid; grid-template-columns: repeat(var(--cmp-cols), minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.cmp__col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cmp__name { display: grid; gap: 2px; min-width: 0; }
.cmp__name b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp__name code { font-size: 11px; color: var(--text-tertiary); }
.cmp__scene { --c-bg: #ffffff; --c-ink: #0a0d12; --c-muted: #6b7280; --c-line: #e8eaee; --c-surface: #f4f6f9; display: grid; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); }
.cmp__scene.is-dark { --c-bg: #0c0e12; --c-ink: #f5f6f7; --c-muted: #8b919c; --c-line: #23272f; --c-surface: #171a20; }
.cmp__scene svg { display: block; flex: none; }
.cmp__tabbar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px 6px; border-radius: 10px; background: var(--c-surface); }
.cmp__tabbar span { display: grid; justify-items: center; gap: 3px; }
.cmp__tabbar small { font-size: 10px; color: var(--c-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp__tabbar .is-on small { color: #0647f7; }
.cmp__row { display: flex; gap: 8px; align-items: center; }
.cmp__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; background: #0647f7; color: #fff; font-size: 13px; font-weight: 500; }
.cmp__ghost { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--c-line); }
.cmp__toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.cmp__title { flex: 1; font-size: 13px; font-weight: 500; }
.cmp__list { display: flex; align-items: center; gap: 10px; }
.cmp__badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-surface); }
.cmp__list b { display: block; font-size: 13px; font-weight: 500; }
.cmp__list small { display: block; font-size: 11px; color: var(--c-muted); }
.cmp__acts { display: flex; gap: 6px; }
@media (max-width: 640px) { .cmp { grid-template-columns: repeat(var(--cmp-cols), minmax(200px, 78%)); } }

/* Projects → Collections: the collection's own look */
.col-look { display: grid; gap: 8px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-primary); }
.col-look.is-locked { border-style: solid; border-color: color-mix(in oklab, #0647f7 35%, transparent); background: var(--lib-tint); }
.col-look p { display: grid; gap: 2px; margin: 0; }
.col-look strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-primary); }
.col-look strong svg { width: 16px; height: 16px; color: var(--fg-brand-primary); }
.col-look span { font-size: 12px; color: var(--text-tertiary); }
/* Projects → a collection saved from Examples: leads back to that example, set up as it was */
.col-example { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-secondary, var(--border-primary)); background: var(--bg-secondary, transparent); }
.col-example__sw { width: 32px; height: 32px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.col-example p { display: grid; gap: 2px; margin: 0; }
.col-example strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-primary); }
.col-example strong svg { width: 16px; height: 16px; color: var(--fg-brand-primary); }
.col-example span { font-size: 12px; color: var(--text-tertiary); }
.col-example .project-form { grid-column: 1 / -1; }

/* ══ primary button: one spec on every page (SilverTiger Button in the logo colours) ═══════════════
   Gradient #0A8FF0 → #0647F7, white Funnel Sans 500, 8px corners, 36 / 40 / 44 px tall; hover darker with a
   soft blue shadow, press nudges down, focus ring 2px blue. The same values live in landing.css (the front
   page kit's .btn--primary), site-chrome.css (.sc-btn) and account.css, so every primary looks the same. */
.st-button--primary { background: linear-gradient(180deg, #0a8ff0, #0647f7); border-color: transparent; color: #fff; border-radius: var(--radius-md, 8px); font-weight: 500; }
.st-button--primary:hover:not(:disabled) { background: linear-gradient(180deg, #077ad0, #0536c4); color: #fff; box-shadow: 0 6px 16px -8px rgb(6 71 247 / 55%); }
.st-button--primary:disabled { background: linear-gradient(180deg, #0a8ff0, #0647f7); opacity: .45; }

/* ══ select: the DS menu over a native <select> (assets/select.js) ═════════════════════════════════════
   The button looks like the 36px SilverTiger input with its chevron; the list is the Ocean Menu: one surface,
   8px corners, a soft shadow, 36px rows, the picked row ticked in brand blue, the active row tinted. */
.uisel__native { display: none !important; }
.uisel {
  display: inline-flex; align-items: center; box-sizing: border-box; width: 100%; min-width: 0;
  height: var(--in-h, 36px); min-height: var(--in-h, 36px); padding: 0 36px 0 var(--in-pad, 12px);
  border: 1px solid var(--border-primary); border-radius: var(--radius-md, 8px);
  background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23717680' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--text-primary); font: 400 var(--in-fs, 13px)/1.4 var(--font-body); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)); transition: border-color .15s, box-shadow .15s;
}
.uisel__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uisel:hover:not(:disabled) { border-color: var(--border-brand-primary, #0647f7); }
.uisel:focus-visible, .uisel[aria-expanded="true"] { outline: 0; border-color: var(--border-brand-primary, #0647f7); box-shadow: var(--shadow-xs, 0 1px 2px rgb(10 13 18 / 5%)), var(--in-ring, 0 0 0 3px rgb(6 71 247 / 16%)); }
.uisel[aria-expanded="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230647f7' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10 4-4 4 4'/%3E%3C/svg%3E"); }
.uisel:disabled { opacity: .5; cursor: not-allowed; }
.icon-modal .export__row .uisel { grid-column: auto; padding-left: var(--in-pad, 12px); }
.project-dialog .uisel { margin: 0; }
.duo-palette .uisel { min-width: 180px; }

.uisel__list {
  position: fixed; z-index: 1000; box-sizing: border-box; margin: 0; padding: 4px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-md, 8px);
  box-shadow: 0 12px 32px -8px rgb(10 13 18 / 22%), 0 4px 8px -4px rgb(10 13 18 / 10%);
  font: 400 14px/1.3 var(--font-body); color: var(--text-secondary);
  animation: uisel-in .12s ease-out both;
}
.uisel__list.is-up { animation-name: uisel-up; }
@keyframes uisel-in { from { transform: translateY(-4px); } }
@keyframes uisel-up { from { transform: translateY(4px); } }
.uisel__list [role="option"] { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.uisel__list [role="option"].is-active { background: var(--bg-primary-hover, var(--bg-secondary)); color: var(--text-primary); }
.uisel__list [role="option"][aria-selected="true"] { color: var(--fg-brand-primary, #0647f7); font-weight: 500; }
.uisel__list [aria-disabled="true"] { color: var(--text-disabled); cursor: not-allowed; }
.uisel__check { flex: none; width: 16px; height: 16px; }
.uisel__list [aria-selected="true"] .uisel__check { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230647f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat; }
:root[data-theme="dark"] .uisel__list [aria-selected="true"] .uisel__check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234f7dff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .uisel { font-size: 16px; } .uisel__list [role="option"] { min-height: 44px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .uisel__list { animation: none; } }

/* toasts: action buttons (Undo, Change collection) */
.toast__acts { display: flex; gap: 4px; margin-top: 6px; }
.toast__act { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--lib-tint); color: var(--fg-brand-primary); font: 500 13px/1 var(--font-body); cursor: pointer; }
.toast__act:hover { background: color-mix(in oklab, #0647f7 16%, var(--bg-primary)); }
/* grid: the save button beside copy */
.tile-save.tile-copy { z-index: 6; }
[data-save-icon].is-saved { color: var(--fg-brand-primary); }
/* download preview */
.pack__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pack__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--lib-line); border-radius: 8px; font-size: 13px; color: var(--text-primary); }
.pack__chip small { font: 400 11px/1 var(--font-mono); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; }
.pack__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }
.pack__files { border: 1px solid var(--lib-line); border-radius: 12px; overflow: hidden; }
.pack__files-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--lib-line); background: var(--bg-secondary); font-size: 13px; }
.pack__files-head b { font-weight: 500; }
.pack__files-head code { font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack__files ul { margin: 0; padding: 8px 12px; list-style: none; max-height: 180px; overflow: auto; columns: 2 180px; column-gap: 16px; font: 400 12px/1.9 var(--font-mono); color: var(--text-secondary); }
.pack__more { color: var(--text-tertiary); }
.footer__support { color: var(--fg-brand-primary); }

