/* ---- dist/ayves-fonts.css ---- */
/* AYVES design system 3. Generated by scripts/build.mjs from tokens/*.tokens.json. Do not edit. */
/* Fonts are hosted by AYVES. Never load them from Google: that sends visitor data outside the EU. */

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/Archivo-Italic-var-latin-ext.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;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/Archivo-Italic-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/Archivo-var-latin-ext.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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/Archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-Italic-400-latin-ext.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-Italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin-ext.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin-ext.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-600-latin-ext.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- dist/ayves-tokens.css ---- */
/* AYVES design system 3. Generated by scripts/build.mjs from tokens/*.tokens.json. Do not edit. */

:root {
  color-scheme: light;
  --ay-neutral-3: #0B0B0A;
  --ay-neutral-5: #111111;
  --ay-neutral-7: #161515;
  --ay-neutral-10: #1C1B1B;
  --ay-neutral-14: #242423;
  --ay-neutral-20: #31302F;
  --ay-neutral-29: #444444;
  --ay-neutral-38: #5A5958;
  --ay-neutral-46: #6E6E6E;
  --ay-neutral-55: #848482;
  --ay-neutral-64: #9A9A9A;
  --ay-neutral-70: #ABABAA;
  --ay-neutral-79: #C4C4C2;
  --ay-neutral-88: #DDDDDD;
  --ay-neutral-90: #E3E2E1;
  --ay-neutral-93: #ECECEA;
  --ay-neutral-96: #F3F3F1;
  --ay-neutral-98: #FAF9F8;
  --ay-neutral-99: #FCFCFB;
  --ay-neutral-100: #FFFFFF;
  --ay-palette-critical-mark: #C35047;
  --ay-palette-critical-text: #9E342E;
  --ay-palette-critical-soft: #FFEBE7;
  --ay-palette-critical-on-soft: #7E221E;
  --ay-palette-critical-dark-mark: #F18A7F;
  --ay-palette-critical-dark-text: #FFAA9F;
  --ay-palette-critical-dark-soft: #42201D;
  --ay-palette-critical-dark-on-soft: #FFCEC6;
  --ay-palette-attention-mark: #A56D0F;
  --ay-palette-attention-text: #845000;
  --ay-palette-attention-soft: #FBEFE2;
  --ay-palette-attention-on-soft: #683C00;
  --ay-palette-attention-dark-mark: #D3A05F;
  --ay-palette-attention-dark-text: #E6BC87;
  --ay-palette-attention-dark-soft: #382812;
  --ay-palette-attention-dark-on-soft: #F5D9B8;
  --ay-palette-clear-mark: #3F8C63;
  --ay-palette-clear-text: #226D49;
  --ay-palette-clear-soft: #E8F5ED;
  --ay-palette-clear-on-soft: #115536;
  --ay-palette-clear-dark-mark: #7CBB96;
  --ay-palette-clear-dark-text: #9ED2B3;
  --ay-palette-clear-dark-soft: #1C3125;
  --ay-palette-clear-dark-on-soft: #C6E8D3;
  --ay-palette-info-mark: #467DB9;
  --ay-palette-info-text: #2C6096;
  --ay-palette-info-soft: #E8F2FF;
  --ay-palette-info-on-soft: #1C4978;
  --ay-palette-info-dark-mark: #7FAFE5;
  --ay-palette-info-dark-text: #A0C8F5;
  --ay-palette-info-dark-soft: #1D2D3E;
  --ay-palette-info-dark-on-soft: #C7E1FF;
  --ay-palette-data-petrol: #166673;
  --ay-palette-data-dark-petrol: #64A7B5;
  --ay-palette-data-plum: #8C4971;
  --ay-palette-data-dark-plum: #D28BB3;
  --ay-palette-data-olive: #797D3A;
  --ay-palette-data-dark-olive: #BBC180;
  --ay-palette-data-iris: #6360A0;
  --ay-palette-data-dark-iris: #A4A3E5;
  --ay-palette-data-sky: #5895B0;
  --ay-palette-data-dark-sky: #A0DBF6;
  --ay-palette-data-sand: #B9A176;
  --ay-palette-data-dark-sand: #F3DBB0;
  --ay-palette-data-seq-1: #DFF3F7;
  --ay-palette-data-dark-seq-1: #142A2F;
  --ay-palette-data-seq-2: #ADD6DF;
  --ay-palette-data-dark-seq-2: #234F57;
  --ay-palette-data-seq-3: #68AAB8;
  --ay-palette-data-dark-seq-3: #3A7C89;
  --ay-palette-data-seq-4: #2C7E8D;
  --ay-palette-data-dark-seq-4: #68AAB8;
  --ay-palette-data-seq-5: #034B56;
  --ay-palette-data-dark-seq-5: #ACDAE4;
  --ay-font-sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ay-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ay-weight-display: 330;
  --ay-weight-regular: 400;
  --ay-weight-medium: 500;
  --ay-weight-label: 540;
  --ay-weight-semibold: 600;
  --ay-stretch-display: 106;
  --ay-stretch-normal: 100;
  --ay-stretch-wordmark: 100;
  --ay-radius-none: 0px;
  --ay-radius-xs: 6px;
  --ay-radius-sm: 10px;
  --ay-radius-md: 14px;
  --ay-radius-lg: 20px;
  --ay-radius-xl: 28px;
  --ay-radius-2xl: 36px;
  --ay-radius-full: 9999px;
  --ay-space-0: 0px;
  --ay-space-2: 2px;
  --ay-space-4: 4px;
  --ay-space-6: 6px;
  --ay-space-8: 8px;
  --ay-space-12: 12px;
  --ay-space-16: 16px;
  --ay-space-20: 20px;
  --ay-space-24: 24px;
  --ay-space-32: 32px;
  --ay-space-40: 40px;
  --ay-space-48: 48px;
  --ay-space-56: 56px;
  --ay-space-64: 64px;
  --ay-space-80: 80px;
  --ay-space-96: 96px;
  --ay-space-128: 128px;
  --ay-space-160: 160px;
  --ay-size-tap: 44px;
  --ay-size-control-sm: 32px;
  --ay-size-control-md: 40px;
  --ay-size-control-lg: 48px;
  --ay-size-icon-sm: 16px;
  --ay-size-icon-md: 20px;
  --ay-size-icon-lg: 24px;
  --ay-size-header: 64px;
  --ay-size-header-compact: 52px;
  --ay-size-sidebar: 264px;
  --ay-size-rail: 80px;
  --ay-size-pane-gap: 12px;
  --ay-size-container: 1200px;
  --ay-size-measure: 680px;
  --ay-bp-medium: 600px;
  --ay-bp-expanded: 840px;
  --ay-bp-large: 1200px;
  --ay-bp-xlarge: 1600px;
  --ay-cell-xs: 4px;
  --ay-cell-sm: 6px;
  --ay-cell-md: 8px;
  --ay-cell-lg: 12px;
  --ay-cell-xl: 16px;
  --ay-cell-gap-ratio: 0.25;
  --ay-duration-instant: 90ms;
  --ay-duration-quick: 160ms;
  --ay-duration-standard: 240ms;
  --ay-duration-emphasized: 400ms;
  --ay-duration-fill: 700ms;
  --ay-duration-count: 1100ms;
  --ay-duration-breath: 1600ms;
  --ay-duration-stagger: 40ms;
  --ay-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ay-ease-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ay-ease-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ay-ease-spatial: cubic-bezier(0.27, 1.06, 0.18, 1);
  --ay-spring-snappy: linear(0, 0.0316, 0.1083, 0.2086, 0.3179, 0.4264, 0.528, 0.6194, 0.6989, 0.7665, 0.8225, 0.868, 0.9042, 0.9326, 0.9543, 0.9705, 0.9825, 0.991, 0.9968, 1.0007, 1.0031, 1.0044, 1.0049, 1.005, 1.0047, 1.0043, 1);
  --ay-spring-snappy-duration: 360ms;
  --ay-spring-snappy-fallback: cubic-bezier(0.27, 1.06, 0.18, 1);
  --ay-spring-smooth: linear(0, 0.0134, 0.0478, 0.0961, 0.1532, 0.215, 0.2785, 0.3417, 0.403, 0.4615, 0.5164, 0.5675, 0.6146, 0.6576, 0.6967, 0.732, 0.7638, 0.7922, 0.8176, 0.8401, 0.8601, 0.8778, 0.8934, 0.9071, 0.9192, 0.9297, 0.939, 0.9471, 0.9541, 0.9603, 0.9656, 0.9703, 0.9743, 0.9778, 0.9809, 0.9835, 0.9858, 0.9878, 0.9895, 0.9909, 0.9922, 0.9933, 0.9943, 0.9951, 0.9958, 1);
  --ay-spring-smooth-duration: 620ms;
  --ay-spring-smooth-fallback: cubic-bezier(0.2, 0, 0, 1);
  --ay-spring-gentle: linear(0, 0.0067, 0.0247, 0.0515, 0.0847, 0.1226, 0.1637, 0.2067, 0.2508, 0.2951, 0.3389, 0.3819, 0.4236, 0.4639, 0.5024, 0.5391, 0.5738, 0.6066, 0.6375, 0.6664, 0.6934, 0.7186, 0.742, 0.7637, 0.7839, 0.8024, 0.8196, 0.8354, 0.8499, 0.8633, 0.8756, 0.8868, 0.8971, 0.9065, 0.9151, 0.923, 0.9301, 0.9367, 0.9426, 0.948, 0.9529, 0.9574, 0.9615, 0.9652, 0.9685, 0.9716, 0.9743, 0.9768, 0.9791, 0.9811, 0.983, 0.9846, 0.9862, 0.9875, 0.9888, 0.9899, 0.9909, 0.9918, 0.9926, 0.9933, 0.994, 0.9946, 0.9952, 0.9956, 1);
  --ay-spring-gentle-duration: 920ms;
  --ay-spring-gentle-fallback: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ay-spring-lively: linear(0, 0.0119, 0.0444, 0.0932, 0.154, 0.2235, 0.2983, 0.3759, 0.454, 0.5306, 0.6043, 0.6739, 0.7385, 0.7975, 0.8506, 0.8977, 0.9386, 0.9736, 1.0029, 1.0269, 1.046, 1.0606, 1.0712, 1.0782, 1.0822, 1.0835, 1.0827, 1.0801, 1.0762, 1.0712, 1.0655, 1.0592, 1.0528, 1.0462, 1.0398, 1.0336, 1.0278, 1.0223, 1.0174, 1.0129, 1.0089, 1.0054, 1.0025, 1, 0.9979, 0.9963, 0.995, 0.9941, 0.9935, 0.9932, 0.993, 0.9931, 0.9933, 0.9936, 0.994, 0.9945, 0.995, 0.9955, 1);
  --ay-spring-lively-duration: 810ms;
  --ay-spring-lively-fallback: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ay-press-scale: 0.97;
  --ay-press-scale-icon: 0.94;
  --ay-press-scale-card: 0.99;
  --ay-lift: 2px;
  --ay-z-base: 0;
  --ay-z-raised: 1;
  --ay-z-sticky: 100;
  --ay-z-header: 200;
  --ay-z-overlay: 300;
  --ay-z-sheet: 400;
  --ay-z-dialog: 500;
  --ay-z-toast: 600;
  --ay-z-tooltip: 700;
  --ay-bg-page: #FCFCFB;
  --ay-bg-canvas: #F3F3F1;
  --ay-bg-surface: #FFFFFF;
  --ay-bg-surface-raised: #FFFFFF;
  --ay-bg-surface-sunken: #FAF9F8;
  --ay-bg-band: #F3F3F1;
  --ay-bg-inverse: #111111;
  --ay-bg-tonal: rgb(17 17 17 / 0.05);
  --ay-bg-tonal-hover: rgb(17 17 17 / 0.08);
  --ay-bg-tonal-pressed: rgb(17 17 17 / 0.12);
  --ay-bg-selected: rgb(17 17 17 / 0.07);
  --ay-bg-scrim: rgb(17 17 17 / 0.32);
  --ay-bg-glass: rgb(252 252 251 / 0.72);
  --ay-text-primary: #111111;
  --ay-text-secondary: #444444;
  --ay-text-tertiary: #6E6E6E;
  --ay-text-disabled: #ABABAA;
  --ay-text-inverse: #FCFCFB;
  --ay-text-on-primary: #FCFCFB;
  --ay-line-hairline: rgb(17 17 17 / 0.08);
  --ay-line-strong: rgb(17 17 17 / 0.16);
  --ay-line-control: #848482;
  --ay-line-focus: #111111;
  --ay-fill-primary: #111111;
  --ay-fill-primary-hover: #31302F;
  --ay-fill-primary-pressed: #444444;
  --ay-fill-icon: #5A5958;
  --ay-status-critical-mark: #C35047;
  --ay-status-critical-text: #9E342E;
  --ay-status-critical-soft: #FFEBE7;
  --ay-status-critical-on-soft: #7E221E;
  --ay-status-attention-mark: #A56D0F;
  --ay-status-attention-text: #845000;
  --ay-status-attention-soft: #FBEFE2;
  --ay-status-attention-on-soft: #683C00;
  --ay-status-clear-mark: #3F8C63;
  --ay-status-clear-text: #226D49;
  --ay-status-clear-soft: #E8F5ED;
  --ay-status-clear-on-soft: #115536;
  --ay-status-info-mark: #467DB9;
  --ay-status-info-text: #2C6096;
  --ay-status-info-soft: #E8F2FF;
  --ay-status-info-on-soft: #1C4978;
  --ay-status-monitor-mark: #A56D0F;
  --ay-status-monitor-text: #845000;
  --ay-status-monitor-soft: #FBEFE2;
  --ay-status-monitor-on-soft: #683C00;
  --ay-status-unrateable-mark: #848482;
  --ay-status-unrateable-text: #5A5958;
  --ay-status-unrateable-soft: #ECECEA;
  --ay-status-unrateable-on-soft: #444444;
  --ay-chart-1: #111111;
  --ay-chart-2: #6E6E6E;
  --ay-chart-3: #C4C4C2;
  --ay-chart-4: #E3E2E1;
  --ay-chart-seq-1: #ECECEA;
  --ay-chart-seq-2: #C4C4C2;
  --ay-chart-seq-3: #848482;
  --ay-chart-seq-4: #444444;
  --ay-chart-seq-5: #111111;
  --ay-chart-grid: rgb(17 17 17 / 0.07);
  --ay-chart-axis: #6E6E6E;
  --ay-data-petrol: #166673;
  --ay-data-plum: #8C4971;
  --ay-data-olive: #797D3A;
  --ay-data-iris: #6360A0;
  --ay-data-sky: #5895B0;
  --ay-data-sand: #B9A176;
  --ay-data-seq-1: #DFF3F7;
  --ay-data-seq-2: #ADD6DF;
  --ay-data-seq-3: #68AAB8;
  --ay-data-seq-4: #2C7E8D;
  --ay-data-seq-5: #034B56;
  --ay-shadow-0: inset 0px 0px 0px 1px rgb(17 17 17 / 0.08);
  --ay-shadow-1: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 1px 2px 0px rgb(17 17 17 / 0.05), 0px 2px 6px -2px rgb(17 17 17 / 0.06);
  --ay-shadow-2: 0px 0px 0px 1px rgb(17 17 17 / 0.05), 0px 2px 4px -1px rgb(17 17 17 / 0.06), 0px 12px 28px -10px rgb(17 17 17 / 0.16);
  --ay-shadow-3: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 6px 12px -4px rgb(17 17 17 / 0.08), 0px 24px 48px -16px rgb(17 17 17 / 0.2);
  --ay-shadow-4: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 12px 24px -8px rgb(17 17 17 / 0.12), 0px 48px 96px -28px rgb(17 17 17 / 0.32);
  --ay-glass-blur: 24px;
  --ay-glass-saturate: 1.8;
  --ay-type-display-xl-size: clamp(52px, 35.657px + 4.1905vw, 96px);
  --ay-type-display-xl-line: 1;
  --ay-type-display-xl-weight: 330;
  --ay-type-display-xl-tracking: -0.042em;
  --ay-type-display-l-size: clamp(44px, 33.6px + 2.6667vw, 72px);
  --ay-type-display-l-line: 1.0556;
  --ay-type-display-l-weight: 340;
  --ay-type-display-l-tracking: -0.038em;
  --ay-type-display-m-size: clamp(38px, 31.314px + 1.7143vw, 56px);
  --ay-type-display-m-line: 1.0714;
  --ay-type-display-m-weight: 360;
  --ay-type-display-m-tracking: -0.032em;
  --ay-type-headline-l-size: clamp(32px, 29.029px + 0.7619vw, 40px);
  --ay-type-headline-l-line: 1.15;
  --ay-type-headline-l-weight: 400;
  --ay-type-headline-l-tracking: -0.024em;
  --ay-type-headline-m-size: clamp(26px, 23.771px + 0.5714vw, 32px);
  --ay-type-headline-m-line: 1.1875;
  --ay-type-headline-m-weight: 400;
  --ay-type-headline-m-tracking: -0.02em;
  --ay-type-headline-s-size: clamp(22px, 21.257px + 0.1905vw, 24px);
  --ay-type-headline-s-line: 1.25;
  --ay-type-headline-s-weight: 440;
  --ay-type-headline-s-tracking: -0.012em;
  --ay-type-title-l-size: 20px;
  --ay-type-title-l-line: 1.4;
  --ay-type-title-l-weight: 500;
  --ay-type-title-l-tracking: -0.008em;
  --ay-type-title-m-size: 17px;
  --ay-type-title-m-line: 1.4118;
  --ay-type-title-m-weight: 560;
  --ay-type-title-m-tracking: -0.004em;
  --ay-type-title-s-size: 15px;
  --ay-type-title-s-line: 1.3333;
  --ay-type-title-s-weight: 600;
  --ay-type-title-s-tracking: 0em;
  --ay-type-body-l-size: 18px;
  --ay-type-body-l-line: 1.6667;
  --ay-type-body-l-weight: 400;
  --ay-type-body-l-tracking: 0em;
  --ay-type-body-m-size: 16px;
  --ay-type-body-m-line: 1.625;
  --ay-type-body-m-weight: 400;
  --ay-type-body-m-tracking: 0em;
  --ay-type-body-s-size: 14px;
  --ay-type-body-s-line: 1.5;
  --ay-type-body-s-weight: 400;
  --ay-type-body-s-tracking: 0.002em;
  --ay-type-label-l-size: 15px;
  --ay-type-label-l-line: 1.3333;
  --ay-type-label-l-weight: 540;
  --ay-type-label-l-tracking: 0em;
  --ay-type-label-m-size: 14px;
  --ay-type-label-m-line: 1.2857;
  --ay-type-label-m-weight: 540;
  --ay-type-label-m-tracking: 0em;
  --ay-type-label-s-size: 12px;
  --ay-type-label-s-line: 1.3333;
  --ay-type-label-s-weight: 560;
  --ay-type-label-s-tracking: 0.01em;
  --ay-type-caption-size: 12px;
  --ay-type-caption-line: 1.4167;
  --ay-type-caption-weight: 400;
  --ay-type-caption-tracking: 0.005em;
  --ay-type-data-xl-size: clamp(44px, 36.571px + 1.9048vw, 64px);
  --ay-type-data-xl-line: 1;
  --ay-type-data-xl-weight: 500;
  --ay-type-data-xl-tracking: -0.045em;
  --ay-type-data-l-size: clamp(32px, 29.029px + 0.7619vw, 40px);
  --ay-type-data-l-line: 1.1;
  --ay-type-data-l-weight: 500;
  --ay-type-data-l-tracking: -0.035em;
  --ay-type-data-m-size: 24px;
  --ay-type-data-m-line: 1.25;
  --ay-type-data-m-weight: 500;
  --ay-type-data-m-tracking: -0.02em;
  --ay-type-data-s-size: 14px;
  --ay-type-data-s-line: 1.4286;
  --ay-type-data-s-weight: 400;
  --ay-type-data-s-tracking: 0em;
  --ay-type-data-xs-size: 12px;
  --ay-type-data-xs-line: 1.3333;
  --ay-type-data-xs-weight: 400;
  --ay-type-data-xs-tracking: 0.01em;
  --ay-type-overline-size: 11px;
  --ay-type-overline-line: 1.2727;
  --ay-type-overline-weight: 500;
  --ay-type-overline-tracking: 0.12em;
}

/* Dark theme: the platform only. Outward material is always light. */
:root[data-theme="dark"], [data-theme="dark"] {
  color-scheme: dark;
  --ay-bg-page: #0B0B0A;
  --ay-bg-canvas: #0B0B0A;
  --ay-bg-surface: #161515;
  --ay-bg-surface-raised: #1C1B1B;
  --ay-bg-surface-sunken: #111111;
  --ay-bg-band: #1C1B1B;
  --ay-bg-inverse: #F3F3F1;
  --ay-bg-tonal: rgb(255 255 255 / 0.08);
  --ay-bg-tonal-hover: rgb(255 255 255 / 0.12);
  --ay-bg-tonal-pressed: rgb(255 255 255 / 0.16);
  --ay-bg-selected: rgb(255 255 255 / 0.12);
  --ay-bg-scrim: rgb(0 0 0 / 0.56);
  --ay-bg-glass: rgb(22 21 21 / 0.66);
  --ay-text-primary: #F3F3F1;
  --ay-text-secondary: #C4C4C2;
  --ay-text-tertiary: #9A9A9A;
  --ay-text-disabled: #5A5958;
  --ay-text-inverse: #111111;
  --ay-text-on-primary: #111111;
  --ay-line-hairline: rgb(255 255 255 / 0.09);
  --ay-line-strong: rgb(255 255 255 / 0.18);
  --ay-line-control: #848482;
  --ay-line-focus: #F3F3F1;
  --ay-fill-primary: #F3F3F1;
  --ay-fill-primary-hover: #FFFFFF;
  --ay-fill-primary-pressed: #DDDDDD;
  --ay-fill-icon: #ABABAA;
  --ay-status-critical-mark: #F18A7F;
  --ay-status-critical-text: #FFAA9F;
  --ay-status-critical-soft: #42201D;
  --ay-status-critical-on-soft: #FFCEC6;
  --ay-status-attention-mark: #D3A05F;
  --ay-status-attention-text: #E6BC87;
  --ay-status-attention-soft: #382812;
  --ay-status-attention-on-soft: #F5D9B8;
  --ay-status-clear-mark: #7CBB96;
  --ay-status-clear-text: #9ED2B3;
  --ay-status-clear-soft: #1C3125;
  --ay-status-clear-on-soft: #C6E8D3;
  --ay-status-info-mark: #7FAFE5;
  --ay-status-info-text: #A0C8F5;
  --ay-status-info-soft: #1D2D3E;
  --ay-status-info-on-soft: #C7E1FF;
  --ay-status-monitor-mark: #D3A05F;
  --ay-status-monitor-text: #E6BC87;
  --ay-status-monitor-soft: #382812;
  --ay-status-monitor-on-soft: #F5D9B8;
  --ay-status-unrateable-mark: #9A9A9A;
  --ay-status-unrateable-text: #C4C4C2;
  --ay-status-unrateable-soft: #31302F;
  --ay-status-unrateable-on-soft: #E3E2E1;
  --ay-chart-1: #F3F3F1;
  --ay-chart-2: #9A9A9A;
  --ay-chart-3: #5A5958;
  --ay-chart-4: #31302F;
  --ay-chart-seq-1: #242423;
  --ay-chart-seq-2: #444444;
  --ay-chart-seq-3: #6E6E6E;
  --ay-chart-seq-4: #ABABAA;
  --ay-chart-seq-5: #F3F3F1;
  --ay-chart-grid: rgb(255 255 255 / 0.08);
  --ay-chart-axis: #9A9A9A;
  --ay-data-petrol: #64A7B5;
  --ay-data-plum: #D28BB3;
  --ay-data-olive: #BBC180;
  --ay-data-iris: #A4A3E5;
  --ay-data-sky: #A0DBF6;
  --ay-data-sand: #F3DBB0;
  --ay-data-seq-1: #142A2F;
  --ay-data-seq-2: #234F57;
  --ay-data-seq-3: #3A7C89;
  --ay-data-seq-4: #68AAB8;
  --ay-data-seq-5: #ACDAE4;
  --ay-shadow-0: inset 0px 0px 0px 1px rgb(255 255 255 / 0.07);
  --ay-shadow-1: 0px 0px 0px 1px rgb(255 255 255 / 0.07), 0px 1px 2px 0px rgb(0 0 0 / 0.4);
  --ay-shadow-2: 0px 0px 0px 1px rgb(255 255 255 / 0.08), 0px 12px 28px -10px rgb(0 0 0 / 0.6);
  --ay-shadow-3: 0px 0px 0px 1px rgb(255 255 255 / 0.09), 0px 24px 48px -16px rgb(0 0 0 / 0.7);
  --ay-shadow-4: 0px 0px 0px 1px rgb(255 255 255 / 0.09), 0px 48px 96px -28px rgb(0 0 0 / 0.8);
  --ay-glass-blur: 24px;
  --ay-glass-saturate: 1.8;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"], [data-theme="auto"] {
    color-scheme: dark;
    --ay-bg-page: #0B0B0A;
    --ay-bg-canvas: #0B0B0A;
    --ay-bg-surface: #161515;
    --ay-bg-surface-raised: #1C1B1B;
    --ay-bg-surface-sunken: #111111;
    --ay-bg-band: #1C1B1B;
    --ay-bg-inverse: #F3F3F1;
    --ay-bg-tonal: rgb(255 255 255 / 0.08);
    --ay-bg-tonal-hover: rgb(255 255 255 / 0.12);
    --ay-bg-tonal-pressed: rgb(255 255 255 / 0.16);
    --ay-bg-selected: rgb(255 255 255 / 0.12);
    --ay-bg-scrim: rgb(0 0 0 / 0.56);
    --ay-bg-glass: rgb(22 21 21 / 0.66);
    --ay-text-primary: #F3F3F1;
    --ay-text-secondary: #C4C4C2;
    --ay-text-tertiary: #9A9A9A;
    --ay-text-disabled: #5A5958;
    --ay-text-inverse: #111111;
    --ay-text-on-primary: #111111;
    --ay-line-hairline: rgb(255 255 255 / 0.09);
    --ay-line-strong: rgb(255 255 255 / 0.18);
    --ay-line-control: #848482;
    --ay-line-focus: #F3F3F1;
    --ay-fill-primary: #F3F3F1;
    --ay-fill-primary-hover: #FFFFFF;
    --ay-fill-primary-pressed: #DDDDDD;
    --ay-fill-icon: #ABABAA;
    --ay-status-critical-mark: #F18A7F;
    --ay-status-critical-text: #FFAA9F;
    --ay-status-critical-soft: #42201D;
    --ay-status-critical-on-soft: #FFCEC6;
    --ay-status-attention-mark: #D3A05F;
    --ay-status-attention-text: #E6BC87;
    --ay-status-attention-soft: #382812;
    --ay-status-attention-on-soft: #F5D9B8;
    --ay-status-clear-mark: #7CBB96;
    --ay-status-clear-text: #9ED2B3;
    --ay-status-clear-soft: #1C3125;
    --ay-status-clear-on-soft: #C6E8D3;
    --ay-status-info-mark: #7FAFE5;
    --ay-status-info-text: #A0C8F5;
    --ay-status-info-soft: #1D2D3E;
    --ay-status-info-on-soft: #C7E1FF;
    --ay-status-monitor-mark: #D3A05F;
    --ay-status-monitor-text: #E6BC87;
    --ay-status-monitor-soft: #382812;
    --ay-status-monitor-on-soft: #F5D9B8;
    --ay-status-unrateable-mark: #9A9A9A;
    --ay-status-unrateable-text: #C4C4C2;
    --ay-status-unrateable-soft: #31302F;
    --ay-status-unrateable-on-soft: #E3E2E1;
    --ay-chart-1: #F3F3F1;
    --ay-chart-2: #9A9A9A;
    --ay-chart-3: #5A5958;
    --ay-chart-4: #31302F;
    --ay-chart-seq-1: #242423;
    --ay-chart-seq-2: #444444;
    --ay-chart-seq-3: #6E6E6E;
    --ay-chart-seq-4: #ABABAA;
    --ay-chart-seq-5: #F3F3F1;
    --ay-chart-grid: rgb(255 255 255 / 0.08);
    --ay-chart-axis: #9A9A9A;
    --ay-data-petrol: #64A7B5;
    --ay-data-plum: #D28BB3;
    --ay-data-olive: #BBC180;
    --ay-data-iris: #A4A3E5;
    --ay-data-sky: #A0DBF6;
    --ay-data-sand: #F3DBB0;
    --ay-data-seq-1: #142A2F;
    --ay-data-seq-2: #234F57;
    --ay-data-seq-3: #3A7C89;
    --ay-data-seq-4: #68AAB8;
    --ay-data-seq-5: #ACDAE4;
    --ay-shadow-0: inset 0px 0px 0px 1px rgb(255 255 255 / 0.07);
    --ay-shadow-1: 0px 0px 0px 1px rgb(255 255 255 / 0.07), 0px 1px 2px 0px rgb(0 0 0 / 0.4);
    --ay-shadow-2: 0px 0px 0px 1px rgb(255 255 255 / 0.08), 0px 12px 28px -10px rgb(0 0 0 / 0.6);
    --ay-shadow-3: 0px 0px 0px 1px rgb(255 255 255 / 0.09), 0px 24px 48px -16px rgb(0 0 0 / 0.7);
    --ay-shadow-4: 0px 0px 0px 1px rgb(255 255 255 / 0.09), 0px 48px 96px -28px rgb(0 0 0 / 0.8);
    --ay-glass-blur: 24px;
    --ay-glass-saturate: 1.8;
  }
}

/* A light island inside a dark page (a document preview in the platform, or a page that must stay light). */
[data-theme="light"] {
  color-scheme: light;
  --ay-bg-page: #FCFCFB;
  --ay-bg-canvas: #F3F3F1;
  --ay-bg-surface: #FFFFFF;
  --ay-bg-surface-raised: #FFFFFF;
  --ay-bg-surface-sunken: #FAF9F8;
  --ay-bg-band: #F3F3F1;
  --ay-bg-inverse: #111111;
  --ay-bg-tonal: rgb(17 17 17 / 0.05);
  --ay-bg-tonal-hover: rgb(17 17 17 / 0.08);
  --ay-bg-tonal-pressed: rgb(17 17 17 / 0.12);
  --ay-bg-selected: rgb(17 17 17 / 0.07);
  --ay-bg-scrim: rgb(17 17 17 / 0.32);
  --ay-bg-glass: rgb(252 252 251 / 0.72);
  --ay-text-primary: #111111;
  --ay-text-secondary: #444444;
  --ay-text-tertiary: #6E6E6E;
  --ay-text-disabled: #ABABAA;
  --ay-text-inverse: #FCFCFB;
  --ay-text-on-primary: #FCFCFB;
  --ay-line-hairline: rgb(17 17 17 / 0.08);
  --ay-line-strong: rgb(17 17 17 / 0.16);
  --ay-line-control: #848482;
  --ay-line-focus: #111111;
  --ay-fill-primary: #111111;
  --ay-fill-primary-hover: #31302F;
  --ay-fill-primary-pressed: #444444;
  --ay-fill-icon: #5A5958;
  --ay-status-critical-mark: #C35047;
  --ay-status-critical-text: #9E342E;
  --ay-status-critical-soft: #FFEBE7;
  --ay-status-critical-on-soft: #7E221E;
  --ay-status-attention-mark: #A56D0F;
  --ay-status-attention-text: #845000;
  --ay-status-attention-soft: #FBEFE2;
  --ay-status-attention-on-soft: #683C00;
  --ay-status-clear-mark: #3F8C63;
  --ay-status-clear-text: #226D49;
  --ay-status-clear-soft: #E8F5ED;
  --ay-status-clear-on-soft: #115536;
  --ay-status-info-mark: #467DB9;
  --ay-status-info-text: #2C6096;
  --ay-status-info-soft: #E8F2FF;
  --ay-status-info-on-soft: #1C4978;
  --ay-status-monitor-mark: #A56D0F;
  --ay-status-monitor-text: #845000;
  --ay-status-monitor-soft: #FBEFE2;
  --ay-status-monitor-on-soft: #683C00;
  --ay-status-unrateable-mark: #848482;
  --ay-status-unrateable-text: #5A5958;
  --ay-status-unrateable-soft: #ECECEA;
  --ay-status-unrateable-on-soft: #444444;
  --ay-chart-1: #111111;
  --ay-chart-2: #6E6E6E;
  --ay-chart-3: #C4C4C2;
  --ay-chart-4: #E3E2E1;
  --ay-chart-seq-1: #ECECEA;
  --ay-chart-seq-2: #C4C4C2;
  --ay-chart-seq-3: #848482;
  --ay-chart-seq-4: #444444;
  --ay-chart-seq-5: #111111;
  --ay-chart-grid: rgb(17 17 17 / 0.07);
  --ay-chart-axis: #6E6E6E;
  --ay-data-petrol: #166673;
  --ay-data-plum: #8C4971;
  --ay-data-olive: #797D3A;
  --ay-data-iris: #6360A0;
  --ay-data-sky: #5895B0;
  --ay-data-sand: #B9A176;
  --ay-data-seq-1: #DFF3F7;
  --ay-data-seq-2: #ADD6DF;
  --ay-data-seq-3: #68AAB8;
  --ay-data-seq-4: #2C7E8D;
  --ay-data-seq-5: #034B56;
  --ay-shadow-0: inset 0px 0px 0px 1px rgb(17 17 17 / 0.08);
  --ay-shadow-1: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 1px 2px 0px rgb(17 17 17 / 0.05), 0px 2px 6px -2px rgb(17 17 17 / 0.06);
  --ay-shadow-2: 0px 0px 0px 1px rgb(17 17 17 / 0.05), 0px 2px 4px -1px rgb(17 17 17 / 0.06), 0px 12px 28px -10px rgb(17 17 17 / 0.16);
  --ay-shadow-3: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 6px 12px -4px rgb(17 17 17 / 0.08), 0px 24px 48px -16px rgb(17 17 17 / 0.2);
  --ay-shadow-4: 0px 0px 0px 1px rgb(17 17 17 / 0.06), 0px 12px 24px -8px rgb(17 17 17 / 0.12), 0px 48px 96px -28px rgb(17 17 17 / 0.32);
  --ay-glass-blur: 24px;
  --ay-glass-saturate: 1.8;
}

/* A screen drawn at its real size inside a device frame (.ay-screen) has a width of its own: --ay-screen-w,
   in px without a unit, set by the frame. The type sizes that grow with the window follow that width instead,
   so a picture of the platform looks the same in every browser window. */
.ay-screen {
  --ay-type-display-xl-size: clamp(52px, 35.657px + 4.1905px * var(--ay-screen-w, 1180) / 100, 96px);
  --ay-type-display-l-size: clamp(44px, 33.6px + 2.6667px * var(--ay-screen-w, 1180) / 100, 72px);
  --ay-type-display-m-size: clamp(38px, 31.314px + 1.7143px * var(--ay-screen-w, 1180) / 100, 56px);
  --ay-type-headline-l-size: clamp(32px, 29.029px + 0.7619px * var(--ay-screen-w, 1180) / 100, 40px);
  --ay-type-headline-m-size: clamp(26px, 23.771px + 0.5714px * var(--ay-screen-w, 1180) / 100, 32px);
  --ay-type-headline-s-size: clamp(22px, 21.257px + 0.1905px * var(--ay-screen-w, 1180) / 100, 24px);
  --ay-type-data-xl-size: clamp(44px, 36.571px + 1.9048px * var(--ay-screen-w, 1180) / 100, 64px);
  --ay-type-data-l-size: clamp(32px, 29.029px + 0.7619px * var(--ay-screen-w, 1180) / 100, 40px);
}

/* Browsers without linear() fall back to the Material 3 curves. */
@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --ay-spring-snappy: var(--ay-spring-snappy-fallback);
    --ay-spring-smooth: var(--ay-spring-smooth-fallback);
    --ay-spring-gentle: var(--ay-spring-gentle-fallback);
    --ay-spring-lively: var(--ay-spring-lively-fallback);
  }
}

/* ---- dist/ayves-fluent.css ---- */
/* AYVES design system 3. Generated by scripts/build.mjs from tokens/*.tokens.json. Do not edit. */
/* The Fluent UI colour slots that have no AYVES role, in light and dark. ayvesTheme (dist/fluent) points every
   Fluent colour at an AYVES role or at one of these, so data-theme switches Fluent without a re-render. */
:root {
  --ayf-colorNeutralForeground5: #616160;
  --ayf-colorNeutralForeground5Hover: #242423;
  --ayf-colorNeutralForeground5Pressed: #242423;
  --ayf-colorNeutralForeground5Selected: #242423;
  --ayf-colorNeutralForeground2Link: #424241;
  --ayf-colorNeutralForeground2LinkHover: #242423;
  --ayf-colorNeutralForeground2LinkPressed: #242423;
  --ayf-colorNeutralForeground2LinkSelected: #242423;
  --ayf-colorNeutralForegroundInverted: #ffffff;
  --ayf-colorNeutralForegroundInvertedHover: #ffffff;
  --ayf-colorNeutralForegroundInvertedPressed: #ffffff;
  --ayf-colorNeutralForegroundInvertedSelected: #ffffff;
  --ayf-colorNeutralForegroundInverted2: #ffffff;
  --ayf-colorBrandForegroundInvertedHover: #FFFFFF;
  --ayf-colorNeutralBackground1Hover: #F5F5F3;
  --ayf-colorNeutralBackground1Pressed: #E0E0DE;
  --ayf-colorNeutralBackground1Selected: #EBEBE9;
  --ayf-colorNeutralBackground2Hover: #F0F0EE;
  --ayf-colorNeutralBackground2Pressed: #DBDBD9;
  --ayf-colorNeutralBackground2Selected: #E6E6E4;
  --ayf-colorNeutralBackground3Hover: #EBEBE9;
  --ayf-colorNeutralBackground3Pressed: #D6D6D4;
  --ayf-colorNeutralBackground3Selected: #E0E0DE;
  --ayf-colorNeutralBackground4: #F0F0EE;
  --ayf-colorNeutralBackground4Hover: #FAFAF8;
  --ayf-colorNeutralBackground4Pressed: #F5F5F3;
  --ayf-colorNeutralBackground4Selected: #ffffff;
  --ayf-colorNeutralBackground5: #EBEBE9;
  --ayf-colorNeutralBackground5Hover: #F5F5F3;
  --ayf-colorNeutralBackground5Pressed: #F0F0EE;
  --ayf-colorNeutralBackground5Selected: #FAFAF8;
  --ayf-colorNeutralBackground6: #E6E6E4;
  --ayf-colorNeutralBackground7Hover: #EBEBE9;
  --ayf-colorNeutralBackground7Pressed: #D6D6D4;
  --ayf-colorNeutralBackground8: #FCFCFA;
  --ayf-colorNeutralBackgroundInverted: #292928;
  --ayf-colorNeutralBackgroundInvertedHover: #3D3D3C;
  --ayf-colorNeutralBackgroundInvertedPressed: #1F1F1E;
  --ayf-colorNeutralBackgroundInvertedSelected: #383837;
  --ayf-colorNeutralBackgroundStatic: #333332;
  --ayf-colorNeutralBackgroundAlpha: rgba(255, 255, 255, 0.5);
  --ayf-colorNeutralBackgroundAlpha2: rgba(255, 255, 255, 0.8);
  --ayf-colorSubtleBackgroundLightAlphaHover: rgba(255, 255, 255, 0.7);
  --ayf-colorSubtleBackgroundLightAlphaPressed: rgba(255, 255, 255, 0.5);
  --ayf-colorNeutralBackgroundDisabled: #F0F0EE;
  --ayf-colorNeutralBackgroundDisabled2: #ffffff;
  --ayf-colorNeutralStencil1: #E6E6E4;
  --ayf-colorNeutralStencil2: #FAFAF8;
  --ayf-colorNeutralStencil1Alpha: rgba(17, 17, 17, 0.1);
  --ayf-colorNeutralStencil2Alpha: rgba(17, 17, 17, 0.05);
  --ayf-colorScrollbarOverlay: rgba(17, 17, 17, 0.5);
  --ayf-colorBrandBackground2: #F3F3F1;
  --ayf-colorBrandBackground2Pressed: #E3E2E1;
  --ayf-colorBrandBackground4Static: #242423;
  --ayf-colorBrandBackgroundInvertedHover: #F3F3F1;
  --ayf-colorNeutralCardBackground: #FAFAF8;
  --ayf-colorNeutralCardBackgroundHover: #ffffff;
  --ayf-colorNeutralCardBackgroundPressed: #F5F5F3;
  --ayf-colorNeutralCardBackgroundSelected: #EBEBE9;
  --ayf-colorNeutralCardBackgroundDisabled: #F0F0EE;
  --ayf-colorNeutralStrokeAccessibleHover: #575756;
  --ayf-colorNeutralStrokeAccessiblePressed: #4D4D4C;
  --ayf-colorNeutralStroke1: #D1D1CF;
  --ayf-colorNeutralStroke1Hover: #C7C7C5;
  --ayf-colorNeutralStroke1Pressed: #B3B3B1;
  --ayf-colorNeutralStroke1Selected: #BDBDBB;
  --ayf-colorNeutralStroke2: #E0E0DE;
  --ayf-colorNeutralStroke3: #F0F0EE;
  --ayf-colorNeutralStroke4: #EBEBE9;
  --ayf-colorNeutralStroke4Hover: #E0E0DE;
  --ayf-colorNeutralStroke4Pressed: #D6D6D4;
  --ayf-colorNeutralStroke4Selected: #EBEBE9;
  --ayf-colorNeutralStrokeSubtle: #E0E0DE;
  --ayf-colorNeutralStrokeOnBrand: #ffffff;
  --ayf-colorBrandStroke2: #DDDDDD;
  --ayf-colorBrandStroke2Contrast: #DDDDDD;
  --ayf-colorNeutralStrokeDisabled: #E0E0DE;
  --ayf-colorNeutralStrokeDisabled2: #EBEBE9;
  --ayf-colorNeutralStrokeAlpha: rgba(17, 17, 17, 0.05);
  --ayf-colorStrokeFocus1: #FFFFFF;
  --ayf-colorNeutralShadowAmbient: rgba(17, 17, 17, 0.12);
  --ayf-colorNeutralShadowKey: rgba(17, 17, 17, 0.14);
  --ayf-colorNeutralShadowAmbientLighter: rgba(17, 17, 17, 0.06);
  --ayf-colorNeutralShadowKeyLighter: rgba(17, 17, 17, 0.07);
  --ayf-colorNeutralShadowAmbientDarker: rgba(17, 17, 17, 0.20);
  --ayf-colorNeutralShadowKeyDarker: rgba(17, 17, 17, 0.24);
  --ayf-colorPaletteRedBackground2: #EEC0BA;
  --ayf-colorPaletteRedBorder1: #EEC0BA;
  --ayf-colorPaletteGreenBackground2: #B9D8C6;
  --ayf-colorPaletteGreenBorder1: #B9D8C6;
  --ayf-colorPaletteDarkOrangeBackground2: #E3CBA7;
  --ayf-colorPaletteDarkOrangeBorder1: #E3CBA7;
  --ayf-colorPaletteYellowBackground2: #E3CBA7;
  --ayf-colorPaletteYellowBorder1: #E3CBA7;
  --ayf-colorPaletteBerryBackground1: #fdf5fc;
  --ayf-colorPaletteBerryBackground2: #edbbe7;
  --ayf-colorPaletteBerryForeground1: #af33a1;
  --ayf-colorPaletteBerryForeground2: #6d2064;
  --ayf-colorPaletteBerryForeground3: #c239b3;
  --ayf-colorPaletteBerryBorderActive: #c239b3;
  --ayf-colorPaletteBerryBorder1: #edbbe7;
  --ayf-colorPaletteBerryBorder2: #c239b3;
  --ayf-colorPaletteLightGreenBackground2: #B9D8C6;
  --ayf-colorPaletteLightGreenBorder1: #B9D8C6;
  --ayf-colorPaletteMarigoldBackground2: #E3CBA7;
  --ayf-colorPaletteMarigoldBorder1: #E3CBA7;
  --ayf-colorPaletteRedForegroundInverted: #F18A7F;
  --ayf-colorPaletteGreenForegroundInverted: #7CBB96;
  --ayf-colorPaletteYellowForegroundInverted: #D3A05F;
  --ayf-colorPaletteDarkRedBackground2: #EEC0BA;
  --ayf-colorPaletteCranberryBackground2: #EEC0BA;
  --ayf-colorPalettePumpkinBackground2: #E3CBA7;
  --ayf-colorPalettePeachBackground2: #E3CBA7;
  --ayf-colorPaletteGoldBackground2: #E3CBA7;
  --ayf-colorPaletteBrassBackground2: #E3CBA7;
  --ayf-colorPaletteBrownBackground2: #ddc3b0;
  --ayf-colorPaletteBrownForeground2: #50301a;
  --ayf-colorPaletteBrownBorderActive: #8e562e;
  --ayf-colorPaletteForestBackground2: #B9D8C6;
  --ayf-colorPaletteSeafoamBackground2: #B9D8C6;
  --ayf-colorPaletteDarkGreenBackground2: #B9D8C6;
  --ayf-colorPaletteLightTealBackground2: #a6e9ed;
  --ayf-colorPaletteLightTealForeground2: #00666d;
  --ayf-colorPaletteLightTealBorderActive: #00b7c3;
  --ayf-colorPaletteTealBackground2: #9bd9db;
  --ayf-colorPaletteTealForeground2: #02494c;
  --ayf-colorPaletteTealBorderActive: #038387;
  --ayf-colorPaletteSteelBackground2: #BBD1EB;
  --ayf-colorPaletteBlueBackground2: #BBD1EB;
  --ayf-colorPaletteRoyalBlueBackground2: #BBD1EB;
  --ayf-colorPaletteCornflowerBackground2: #BBD1EB;
  --ayf-colorPaletteNavyBackground2: #BBD1EB;
  --ayf-colorPaletteLavenderBackground2: #d2ccf8;
  --ayf-colorPaletteLavenderForeground2: #3f3682;
  --ayf-colorPaletteLavenderBorderActive: #7160e8;
  --ayf-colorPalettePurpleBackground2: #c6b1de;
  --ayf-colorPalettePurpleForeground2: #341a51;
  --ayf-colorPalettePurpleBorderActive: #5c2e91;
  --ayf-colorPaletteGrapeBackground2: #d9a7e0;
  --ayf-colorPaletteGrapeForeground2: #4c0d55;
  --ayf-colorPaletteGrapeBorderActive: #881798;
  --ayf-colorPaletteLilacBackground2: #e6bfed;
  --ayf-colorPaletteLilacForeground2: #63276d;
  --ayf-colorPaletteLilacBorderActive: #b146c2;
  --ayf-colorPalettePinkBackground2: #f7c0e3;
  --ayf-colorPalettePinkForeground2: #80215d;
  --ayf-colorPalettePinkBorderActive: #e43ba6;
  --ayf-colorPaletteMagentaBackground2: #eca5d1;
  --ayf-colorPaletteMagentaForeground2: #6b0043;
  --ayf-colorPaletteMagentaBorderActive: #bf0077;
  --ayf-colorPalettePlumBackground2: #d696c0;
  --ayf-colorPalettePlumForeground2: #43002b;
  --ayf-colorPalettePlumBorderActive: #77004d;
  --ayf-colorPaletteBeigeBackground2: #d7d4d4;
  --ayf-colorPaletteBeigeForeground2: #444241;
  --ayf-colorPaletteBeigeBorderActive: #7a7574;
  --ayf-colorPaletteMinkBackground2: #cecccb;
  --ayf-colorPaletteMinkForeground2: #343231;
  --ayf-colorPaletteMinkBorderActive: #5d5a58;
  --ayf-colorPalettePlatinumBackground2: #cdd6d8;
  --ayf-colorPalettePlatinumForeground2: #3b4447;
  --ayf-colorPalettePlatinumBorderActive: #69797e;
  --ayf-colorPaletteAnchorBackground2: #bcc3c7;
  --ayf-colorPaletteAnchorForeground2: #202427;
  --ayf-colorPaletteAnchorBorderActive: #394146;
  --ayf-colorStatusSuccessBackground2: #B9D8C6;
  --ayf-colorStatusSuccessForegroundInverted: #7CBB96;
  --ayf-colorStatusSuccessBorder1: #B9D8C6;
  --ayf-colorStatusWarningBackground2: #E3CBA7;
  --ayf-colorStatusWarningForegroundInverted: #D3A05F;
  --ayf-colorStatusWarningBorder1: #E3CBA7;
  --ayf-colorStatusDangerBackground2: #EEC0BA;
  --ayf-colorStatusDangerForegroundInverted: #F18A7F;
  --ayf-colorStatusDangerBorder1: #EEC0BA;
}
:root[data-theme="dark"], [data-theme="dark"] {
  --ayf-colorNeutralForeground5: #ADADAB;
  --ayf-colorNeutralForeground5Hover: #ffffff;
  --ayf-colorNeutralForeground5Pressed: #ffffff;
  --ayf-colorNeutralForeground5Selected: #ffffff;
  --ayf-colorNeutralForeground2Link: #D6D6D4;
  --ayf-colorNeutralForeground2LinkHover: #ffffff;
  --ayf-colorNeutralForeground2LinkPressed: #ffffff;
  --ayf-colorNeutralForeground2LinkSelected: #ffffff;
  --ayf-colorNeutralForegroundInverted: #242423;
  --ayf-colorNeutralForegroundInvertedHover: #242423;
  --ayf-colorNeutralForegroundInvertedPressed: #242423;
  --ayf-colorNeutralForegroundInvertedSelected: #242423;
  --ayf-colorNeutralForegroundInverted2: #242423;
  --ayf-colorBrandForegroundInvertedHover: #0B0B0A;
  --ayf-colorNeutralBackground1Hover: #3D3D3C;
  --ayf-colorNeutralBackground1Pressed: #1F1F1E;
  --ayf-colorNeutralBackground1Selected: #383837;
  --ayf-colorNeutralBackground2Hover: #333332;
  --ayf-colorNeutralBackground2Pressed: #141413;
  --ayf-colorNeutralBackground2Selected: #2E2E2D;
  --ayf-colorNeutralBackground3Hover: #292928;
  --ayf-colorNeutralBackground3Pressed: #0A0A09;
  --ayf-colorNeutralBackground3Selected: #242423;
  --ayf-colorNeutralBackground4: #0A0A09;
  --ayf-colorNeutralBackground4Hover: #1F1F1E;
  --ayf-colorNeutralBackground4Pressed: #000000;
  --ayf-colorNeutralBackground4Selected: #1A1A19;
  --ayf-colorNeutralBackground5: #000000;
  --ayf-colorNeutralBackground5Hover: #141413;
  --ayf-colorNeutralBackground5Pressed: #050504;
  --ayf-colorNeutralBackground5Selected: #0F0F0E;
  --ayf-colorNeutralBackground6: #333332;
  --ayf-colorNeutralBackground7Hover: #1A1A19;
  --ayf-colorNeutralBackground7Pressed: #0A0A09;
  --ayf-colorNeutralBackground8: #292928;
  --ayf-colorNeutralBackgroundInverted: #ffffff;
  --ayf-colorNeutralBackgroundInvertedHover: #F5F5F3;
  --ayf-colorNeutralBackgroundInvertedPressed: #E0E0DE;
  --ayf-colorNeutralBackgroundInvertedSelected: #EBEBE9;
  --ayf-colorNeutralBackgroundStatic: #3D3D3C;
  --ayf-colorNeutralBackgroundAlpha: rgba(26, 26, 26, 0.5);
  --ayf-colorNeutralBackgroundAlpha2: rgba(31, 31, 31, 0.7);
  --ayf-colorSubtleBackgroundLightAlphaHover: rgba(36, 36, 36, 0.8);
  --ayf-colorSubtleBackgroundLightAlphaPressed: rgba(36, 36, 36, 0.5);
  --ayf-colorNeutralBackgroundDisabled: #141413;
  --ayf-colorNeutralBackgroundDisabled2: #292928;
  --ayf-colorNeutralStencil1: #575756;
  --ayf-colorNeutralStencil2: #333332;
  --ayf-colorNeutralStencil1Alpha: rgba(255, 255, 255, 0.1);
  --ayf-colorNeutralStencil2Alpha: rgba(255, 255, 255, 0.05);
  --ayf-colorScrollbarOverlay: rgba(255, 255, 255, 0.6);
  --ayf-colorBrandBackground2: #242423;
  --ayf-colorBrandBackground2Pressed: #444444;
  --ayf-colorBrandBackground4Static: #DDDDDD;
  --ayf-colorBrandBackgroundInvertedHover: #242423;
  --ayf-colorNeutralCardBackground: #333332;
  --ayf-colorNeutralCardBackgroundHover: #3D3D3C;
  --ayf-colorNeutralCardBackgroundPressed: #2E2E2D;
  --ayf-colorNeutralCardBackgroundSelected: #383837;
  --ayf-colorNeutralCardBackgroundDisabled: #141413;
  --ayf-colorNeutralStrokeAccessibleHover: #BDBDBB;
  --ayf-colorNeutralStrokeAccessiblePressed: #B3B3B1;
  --ayf-colorNeutralStroke1: #666665;
  --ayf-colorNeutralStroke1Hover: #757574;
  --ayf-colorNeutralStroke1Pressed: #6B6B6A;
  --ayf-colorNeutralStroke1Selected: #70706F;
  --ayf-colorNeutralStroke2: #525251;
  --ayf-colorNeutralStroke3: #3D3D3C;
  --ayf-colorNeutralStroke4: #3D3D3C;
  --ayf-colorNeutralStroke4Hover: #2E2E2D;
  --ayf-colorNeutralStroke4Pressed: #242423;
  --ayf-colorNeutralStroke4Selected: #3D3D3C;
  --ayf-colorNeutralStrokeSubtle: #0A0A09;
  --ayf-colorNeutralStrokeOnBrand: #292928;
  --ayf-colorBrandStroke2: #444444;
  --ayf-colorBrandStroke2Contrast: #444444;
  --ayf-colorNeutralStrokeDisabled: #424241;
  --ayf-colorNeutralStrokeDisabled2: #3D3D3C;
  --ayf-colorNeutralStrokeAlpha: rgba(255, 255, 255, 0.1);
  --ayf-colorStrokeFocus1: #0B0B0A;
  --ayf-colorNeutralShadowAmbient: rgba(17, 17, 17, 0.24);
  --ayf-colorNeutralShadowKey: rgba(17, 17, 17, 0.28);
  --ayf-colorNeutralShadowAmbientLighter: rgba(17, 17, 17, 0.12);
  --ayf-colorNeutralShadowKeyLighter: rgba(17, 17, 17, 0.14);
  --ayf-colorNeutralShadowAmbientDarker: rgba(17, 17, 17, 0.40);
  --ayf-colorNeutralShadowKeyDarker: rgba(17, 17, 17, 0.48);
  --ayf-colorPaletteRedBackground2: #733E38;
  --ayf-colorPaletteRedBorder1: #733E38;
  --ayf-colorPaletteGreenBackground2: #375845;
  --ayf-colorPaletteGreenBorder1: #375845;
  --ayf-colorPaletteDarkOrangeBackground2: #634A28;
  --ayf-colorPaletteDarkOrangeBorder1: #634A28;
  --ayf-colorPaletteYellowBackground2: #634A28;
  --ayf-colorPaletteYellowBorder1: #634A28;
  --ayf-colorPaletteBerryBackground1: #3a1136;
  --ayf-colorPaletteBerryBackground2: #6d2064;
  --ayf-colorPaletteBerryForeground1: #da7ed0;
  --ayf-colorPaletteBerryForeground2: #edbbe7;
  --ayf-colorPaletteBerryForeground3: #d161c4;
  --ayf-colorPaletteBerryBorderActive: #da7ed0;
  --ayf-colorPaletteBerryBorder1: #c239b3;
  --ayf-colorPaletteBerryBorder2: #d161c4;
  --ayf-colorPaletteLightGreenBackground2: #375845;
  --ayf-colorPaletteLightGreenBorder1: #375845;
  --ayf-colorPaletteMarigoldBackground2: #634A28;
  --ayf-colorPaletteMarigoldBorder1: #634A28;
  --ayf-colorPaletteRedForegroundInverted: #C35047;
  --ayf-colorPaletteGreenForegroundInverted: #3F8C63;
  --ayf-colorPaletteYellowForegroundInverted: #A56D0F;
  --ayf-colorPaletteDarkRedBackground2: #733E38;
  --ayf-colorPaletteCranberryBackground2: #733E38;
  --ayf-colorPalettePumpkinBackground2: #634A28;
  --ayf-colorPalettePeachBackground2: #634A28;
  --ayf-colorPaletteGoldBackground2: #634A28;
  --ayf-colorPaletteBrassBackground2: #634A28;
  --ayf-colorPaletteBrownBackground2: #50301a;
  --ayf-colorPaletteBrownForeground2: #ddc3b0;
  --ayf-colorPaletteBrownBorderActive: #bb8f6f;
  --ayf-colorPaletteForestBackground2: #375845;
  --ayf-colorPaletteSeafoamBackground2: #375845;
  --ayf-colorPaletteDarkGreenBackground2: #375845;
  --ayf-colorPaletteLightTealBackground2: #00666d;
  --ayf-colorPaletteLightTealForeground2: #a6e9ed;
  --ayf-colorPaletteLightTealBorderActive: #58d3db;
  --ayf-colorPaletteTealBackground2: #02494c;
  --ayf-colorPaletteTealForeground2: #9bd9db;
  --ayf-colorPaletteTealBorderActive: #4cb4b7;
  --ayf-colorPaletteSteelBackground2: #38516D;
  --ayf-colorPaletteBlueBackground2: #38516D;
  --ayf-colorPaletteRoyalBlueBackground2: #38516D;
  --ayf-colorPaletteCornflowerBackground2: #38516D;
  --ayf-colorPaletteNavyBackground2: #38516D;
  --ayf-colorPaletteLavenderBackground2: #3f3682;
  --ayf-colorPaletteLavenderForeground2: #d2ccf8;
  --ayf-colorPaletteLavenderBorderActive: #a79cf1;
  --ayf-colorPalettePurpleBackground2: #341a51;
  --ayf-colorPalettePurpleForeground2: #c6b1de;
  --ayf-colorPalettePurpleBorderActive: #9470bd;
  --ayf-colorPaletteGrapeBackground2: #4c0d55;
  --ayf-colorPaletteGrapeForeground2: #d9a7e0;
  --ayf-colorPaletteGrapeBorderActive: #b55fc1;
  --ayf-colorPaletteLilacBackground2: #63276d;
  --ayf-colorPaletteLilacForeground2: #e6bfed;
  --ayf-colorPaletteLilacBorderActive: #cf87da;
  --ayf-colorPalettePinkBackground2: #80215d;
  --ayf-colorPalettePinkForeground2: #f7c0e3;
  --ayf-colorPalettePinkBorderActive: #ef85c8;
  --ayf-colorPaletteMagentaBackground2: #6b0043;
  --ayf-colorPaletteMagentaForeground2: #eca5d1;
  --ayf-colorPaletteMagentaBorderActive: #d957a8;
  --ayf-colorPalettePlumBackground2: #5a003b;
  --ayf-colorPalettePlumForeground2: #d696c0;
  --ayf-colorPalettePlumBorderActive: #ad4589;
  --ayf-colorPaletteBeigeBackground2: #444241;
  --ayf-colorPaletteBeigeForeground2: #d7d4d4;
  --ayf-colorPaletteBeigeBorderActive: #afabaa;
  --ayf-colorPaletteMinkBackground2: #343231;
  --ayf-colorPaletteMinkForeground2: #cecccb;
  --ayf-colorPaletteMinkBorderActive: #9e9b99;
  --ayf-colorPalettePlatinumBackground2: #3b4447;
  --ayf-colorPalettePlatinumForeground2: #cdd6d8;
  --ayf-colorPalettePlatinumBorderActive: #a0adb2;
  --ayf-colorPaletteAnchorBackground2: #202427;
  --ayf-colorPaletteAnchorForeground2: #bcc3c7;
  --ayf-colorPaletteAnchorBorderActive: #808a90;
  --ayf-colorStatusSuccessBackground2: #375845;
  --ayf-colorStatusSuccessForegroundInverted: #3F8C63;
  --ayf-colorStatusSuccessBorder1: #375845;
  --ayf-colorStatusWarningBackground2: #634A28;
  --ayf-colorStatusWarningForegroundInverted: #A56D0F;
  --ayf-colorStatusWarningBorder1: #634A28;
  --ayf-colorStatusDangerBackground2: #733E38;
  --ayf-colorStatusDangerForegroundInverted: #C35047;
  --ayf-colorStatusDangerBorder1: #733E38;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"], [data-theme="auto"] {
    --ayf-colorNeutralForeground5: #ADADAB;
    --ayf-colorNeutralForeground5Hover: #ffffff;
    --ayf-colorNeutralForeground5Pressed: #ffffff;
    --ayf-colorNeutralForeground5Selected: #ffffff;
    --ayf-colorNeutralForeground2Link: #D6D6D4;
    --ayf-colorNeutralForeground2LinkHover: #ffffff;
    --ayf-colorNeutralForeground2LinkPressed: #ffffff;
    --ayf-colorNeutralForeground2LinkSelected: #ffffff;
    --ayf-colorNeutralForegroundInverted: #242423;
    --ayf-colorNeutralForegroundInvertedHover: #242423;
    --ayf-colorNeutralForegroundInvertedPressed: #242423;
    --ayf-colorNeutralForegroundInvertedSelected: #242423;
    --ayf-colorNeutralForegroundInverted2: #242423;
    --ayf-colorBrandForegroundInvertedHover: #0B0B0A;
    --ayf-colorNeutralBackground1Hover: #3D3D3C;
    --ayf-colorNeutralBackground1Pressed: #1F1F1E;
    --ayf-colorNeutralBackground1Selected: #383837;
    --ayf-colorNeutralBackground2Hover: #333332;
    --ayf-colorNeutralBackground2Pressed: #141413;
    --ayf-colorNeutralBackground2Selected: #2E2E2D;
    --ayf-colorNeutralBackground3Hover: #292928;
    --ayf-colorNeutralBackground3Pressed: #0A0A09;
    --ayf-colorNeutralBackground3Selected: #242423;
    --ayf-colorNeutralBackground4: #0A0A09;
    --ayf-colorNeutralBackground4Hover: #1F1F1E;
    --ayf-colorNeutralBackground4Pressed: #000000;
    --ayf-colorNeutralBackground4Selected: #1A1A19;
    --ayf-colorNeutralBackground5: #000000;
    --ayf-colorNeutralBackground5Hover: #141413;
    --ayf-colorNeutralBackground5Pressed: #050504;
    --ayf-colorNeutralBackground5Selected: #0F0F0E;
    --ayf-colorNeutralBackground6: #333332;
    --ayf-colorNeutralBackground7Hover: #1A1A19;
    --ayf-colorNeutralBackground7Pressed: #0A0A09;
    --ayf-colorNeutralBackground8: #292928;
    --ayf-colorNeutralBackgroundInverted: #ffffff;
    --ayf-colorNeutralBackgroundInvertedHover: #F5F5F3;
    --ayf-colorNeutralBackgroundInvertedPressed: #E0E0DE;
    --ayf-colorNeutralBackgroundInvertedSelected: #EBEBE9;
    --ayf-colorNeutralBackgroundStatic: #3D3D3C;
    --ayf-colorNeutralBackgroundAlpha: rgba(26, 26, 26, 0.5);
    --ayf-colorNeutralBackgroundAlpha2: rgba(31, 31, 31, 0.7);
    --ayf-colorSubtleBackgroundLightAlphaHover: rgba(36, 36, 36, 0.8);
    --ayf-colorSubtleBackgroundLightAlphaPressed: rgba(36, 36, 36, 0.5);
    --ayf-colorNeutralBackgroundDisabled: #141413;
    --ayf-colorNeutralBackgroundDisabled2: #292928;
    --ayf-colorNeutralStencil1: #575756;
    --ayf-colorNeutralStencil2: #333332;
    --ayf-colorNeutralStencil1Alpha: rgba(255, 255, 255, 0.1);
    --ayf-colorNeutralStencil2Alpha: rgba(255, 255, 255, 0.05);
    --ayf-colorScrollbarOverlay: rgba(255, 255, 255, 0.6);
    --ayf-colorBrandBackground2: #242423;
    --ayf-colorBrandBackground2Pressed: #444444;
    --ayf-colorBrandBackground4Static: #DDDDDD;
    --ayf-colorBrandBackgroundInvertedHover: #242423;
    --ayf-colorNeutralCardBackground: #333332;
    --ayf-colorNeutralCardBackgroundHover: #3D3D3C;
    --ayf-colorNeutralCardBackgroundPressed: #2E2E2D;
    --ayf-colorNeutralCardBackgroundSelected: #383837;
    --ayf-colorNeutralCardBackgroundDisabled: #141413;
    --ayf-colorNeutralStrokeAccessibleHover: #BDBDBB;
    --ayf-colorNeutralStrokeAccessiblePressed: #B3B3B1;
    --ayf-colorNeutralStroke1: #666665;
    --ayf-colorNeutralStroke1Hover: #757574;
    --ayf-colorNeutralStroke1Pressed: #6B6B6A;
    --ayf-colorNeutralStroke1Selected: #70706F;
    --ayf-colorNeutralStroke2: #525251;
    --ayf-colorNeutralStroke3: #3D3D3C;
    --ayf-colorNeutralStroke4: #3D3D3C;
    --ayf-colorNeutralStroke4Hover: #2E2E2D;
    --ayf-colorNeutralStroke4Pressed: #242423;
    --ayf-colorNeutralStroke4Selected: #3D3D3C;
    --ayf-colorNeutralStrokeSubtle: #0A0A09;
    --ayf-colorNeutralStrokeOnBrand: #292928;
    --ayf-colorBrandStroke2: #444444;
    --ayf-colorBrandStroke2Contrast: #444444;
    --ayf-colorNeutralStrokeDisabled: #424241;
    --ayf-colorNeutralStrokeDisabled2: #3D3D3C;
    --ayf-colorNeutralStrokeAlpha: rgba(255, 255, 255, 0.1);
    --ayf-colorStrokeFocus1: #0B0B0A;
    --ayf-colorNeutralShadowAmbient: rgba(17, 17, 17, 0.24);
    --ayf-colorNeutralShadowKey: rgba(17, 17, 17, 0.28);
    --ayf-colorNeutralShadowAmbientLighter: rgba(17, 17, 17, 0.12);
    --ayf-colorNeutralShadowKeyLighter: rgba(17, 17, 17, 0.14);
    --ayf-colorNeutralShadowAmbientDarker: rgba(17, 17, 17, 0.40);
    --ayf-colorNeutralShadowKeyDarker: rgba(17, 17, 17, 0.48);
    --ayf-colorPaletteRedBackground2: #733E38;
    --ayf-colorPaletteRedBorder1: #733E38;
    --ayf-colorPaletteGreenBackground2: #375845;
    --ayf-colorPaletteGreenBorder1: #375845;
    --ayf-colorPaletteDarkOrangeBackground2: #634A28;
    --ayf-colorPaletteDarkOrangeBorder1: #634A28;
    --ayf-colorPaletteYellowBackground2: #634A28;
    --ayf-colorPaletteYellowBorder1: #634A28;
    --ayf-colorPaletteBerryBackground1: #3a1136;
    --ayf-colorPaletteBerryBackground2: #6d2064;
    --ayf-colorPaletteBerryForeground1: #da7ed0;
    --ayf-colorPaletteBerryForeground2: #edbbe7;
    --ayf-colorPaletteBerryForeground3: #d161c4;
    --ayf-colorPaletteBerryBorderActive: #da7ed0;
    --ayf-colorPaletteBerryBorder1: #c239b3;
    --ayf-colorPaletteBerryBorder2: #d161c4;
    --ayf-colorPaletteLightGreenBackground2: #375845;
    --ayf-colorPaletteLightGreenBorder1: #375845;
    --ayf-colorPaletteMarigoldBackground2: #634A28;
    --ayf-colorPaletteMarigoldBorder1: #634A28;
    --ayf-colorPaletteRedForegroundInverted: #C35047;
    --ayf-colorPaletteGreenForegroundInverted: #3F8C63;
    --ayf-colorPaletteYellowForegroundInverted: #A56D0F;
    --ayf-colorPaletteDarkRedBackground2: #733E38;
    --ayf-colorPaletteCranberryBackground2: #733E38;
    --ayf-colorPalettePumpkinBackground2: #634A28;
    --ayf-colorPalettePeachBackground2: #634A28;
    --ayf-colorPaletteGoldBackground2: #634A28;
    --ayf-colorPaletteBrassBackground2: #634A28;
    --ayf-colorPaletteBrownBackground2: #50301a;
    --ayf-colorPaletteBrownForeground2: #ddc3b0;
    --ayf-colorPaletteBrownBorderActive: #bb8f6f;
    --ayf-colorPaletteForestBackground2: #375845;
    --ayf-colorPaletteSeafoamBackground2: #375845;
    --ayf-colorPaletteDarkGreenBackground2: #375845;
    --ayf-colorPaletteLightTealBackground2: #00666d;
    --ayf-colorPaletteLightTealForeground2: #a6e9ed;
    --ayf-colorPaletteLightTealBorderActive: #58d3db;
    --ayf-colorPaletteTealBackground2: #02494c;
    --ayf-colorPaletteTealForeground2: #9bd9db;
    --ayf-colorPaletteTealBorderActive: #4cb4b7;
    --ayf-colorPaletteSteelBackground2: #38516D;
    --ayf-colorPaletteBlueBackground2: #38516D;
    --ayf-colorPaletteRoyalBlueBackground2: #38516D;
    --ayf-colorPaletteCornflowerBackground2: #38516D;
    --ayf-colorPaletteNavyBackground2: #38516D;
    --ayf-colorPaletteLavenderBackground2: #3f3682;
    --ayf-colorPaletteLavenderForeground2: #d2ccf8;
    --ayf-colorPaletteLavenderBorderActive: #a79cf1;
    --ayf-colorPalettePurpleBackground2: #341a51;
    --ayf-colorPalettePurpleForeground2: #c6b1de;
    --ayf-colorPalettePurpleBorderActive: #9470bd;
    --ayf-colorPaletteGrapeBackground2: #4c0d55;
    --ayf-colorPaletteGrapeForeground2: #d9a7e0;
    --ayf-colorPaletteGrapeBorderActive: #b55fc1;
    --ayf-colorPaletteLilacBackground2: #63276d;
    --ayf-colorPaletteLilacForeground2: #e6bfed;
    --ayf-colorPaletteLilacBorderActive: #cf87da;
    --ayf-colorPalettePinkBackground2: #80215d;
    --ayf-colorPalettePinkForeground2: #f7c0e3;
    --ayf-colorPalettePinkBorderActive: #ef85c8;
    --ayf-colorPaletteMagentaBackground2: #6b0043;
    --ayf-colorPaletteMagentaForeground2: #eca5d1;
    --ayf-colorPaletteMagentaBorderActive: #d957a8;
    --ayf-colorPalettePlumBackground2: #5a003b;
    --ayf-colorPalettePlumForeground2: #d696c0;
    --ayf-colorPalettePlumBorderActive: #ad4589;
    --ayf-colorPaletteBeigeBackground2: #444241;
    --ayf-colorPaletteBeigeForeground2: #d7d4d4;
    --ayf-colorPaletteBeigeBorderActive: #afabaa;
    --ayf-colorPaletteMinkBackground2: #343231;
    --ayf-colorPaletteMinkForeground2: #cecccb;
    --ayf-colorPaletteMinkBorderActive: #9e9b99;
    --ayf-colorPalettePlatinumBackground2: #3b4447;
    --ayf-colorPalettePlatinumForeground2: #cdd6d8;
    --ayf-colorPalettePlatinumBorderActive: #a0adb2;
    --ayf-colorPaletteAnchorBackground2: #202427;
    --ayf-colorPaletteAnchorForeground2: #bcc3c7;
    --ayf-colorPaletteAnchorBorderActive: #808a90;
    --ayf-colorStatusSuccessBackground2: #375845;
    --ayf-colorStatusSuccessForegroundInverted: #3F8C63;
    --ayf-colorStatusSuccessBorder1: #375845;
    --ayf-colorStatusWarningBackground2: #634A28;
    --ayf-colorStatusWarningForegroundInverted: #A56D0F;
    --ayf-colorStatusWarningBorder1: #634A28;
    --ayf-colorStatusDangerBackground2: #733E38;
    --ayf-colorStatusDangerForegroundInverted: #C35047;
    --ayf-colorStatusDangerBorder1: #733E38;
}
}
[data-theme="light"] {
  --ayf-colorNeutralForeground5: #616160;
  --ayf-colorNeutralForeground5Hover: #242423;
  --ayf-colorNeutralForeground5Pressed: #242423;
  --ayf-colorNeutralForeground5Selected: #242423;
  --ayf-colorNeutralForeground2Link: #424241;
  --ayf-colorNeutralForeground2LinkHover: #242423;
  --ayf-colorNeutralForeground2LinkPressed: #242423;
  --ayf-colorNeutralForeground2LinkSelected: #242423;
  --ayf-colorNeutralForegroundInverted: #ffffff;
  --ayf-colorNeutralForegroundInvertedHover: #ffffff;
  --ayf-colorNeutralForegroundInvertedPressed: #ffffff;
  --ayf-colorNeutralForegroundInvertedSelected: #ffffff;
  --ayf-colorNeutralForegroundInverted2: #ffffff;
  --ayf-colorBrandForegroundInvertedHover: #FFFFFF;
  --ayf-colorNeutralBackground1Hover: #F5F5F3;
  --ayf-colorNeutralBackground1Pressed: #E0E0DE;
  --ayf-colorNeutralBackground1Selected: #EBEBE9;
  --ayf-colorNeutralBackground2Hover: #F0F0EE;
  --ayf-colorNeutralBackground2Pressed: #DBDBD9;
  --ayf-colorNeutralBackground2Selected: #E6E6E4;
  --ayf-colorNeutralBackground3Hover: #EBEBE9;
  --ayf-colorNeutralBackground3Pressed: #D6D6D4;
  --ayf-colorNeutralBackground3Selected: #E0E0DE;
  --ayf-colorNeutralBackground4: #F0F0EE;
  --ayf-colorNeutralBackground4Hover: #FAFAF8;
  --ayf-colorNeutralBackground4Pressed: #F5F5F3;
  --ayf-colorNeutralBackground4Selected: #ffffff;
  --ayf-colorNeutralBackground5: #EBEBE9;
  --ayf-colorNeutralBackground5Hover: #F5F5F3;
  --ayf-colorNeutralBackground5Pressed: #F0F0EE;
  --ayf-colorNeutralBackground5Selected: #FAFAF8;
  --ayf-colorNeutralBackground6: #E6E6E4;
  --ayf-colorNeutralBackground7Hover: #EBEBE9;
  --ayf-colorNeutralBackground7Pressed: #D6D6D4;
  --ayf-colorNeutralBackground8: #FCFCFA;
  --ayf-colorNeutralBackgroundInverted: #292928;
  --ayf-colorNeutralBackgroundInvertedHover: #3D3D3C;
  --ayf-colorNeutralBackgroundInvertedPressed: #1F1F1E;
  --ayf-colorNeutralBackgroundInvertedSelected: #383837;
  --ayf-colorNeutralBackgroundStatic: #333332;
  --ayf-colorNeutralBackgroundAlpha: rgba(255, 255, 255, 0.5);
  --ayf-colorNeutralBackgroundAlpha2: rgba(255, 255, 255, 0.8);
  --ayf-colorSubtleBackgroundLightAlphaHover: rgba(255, 255, 255, 0.7);
  --ayf-colorSubtleBackgroundLightAlphaPressed: rgba(255, 255, 255, 0.5);
  --ayf-colorNeutralBackgroundDisabled: #F0F0EE;
  --ayf-colorNeutralBackgroundDisabled2: #ffffff;
  --ayf-colorNeutralStencil1: #E6E6E4;
  --ayf-colorNeutralStencil2: #FAFAF8;
  --ayf-colorNeutralStencil1Alpha: rgba(17, 17, 17, 0.1);
  --ayf-colorNeutralStencil2Alpha: rgba(17, 17, 17, 0.05);
  --ayf-colorScrollbarOverlay: rgba(17, 17, 17, 0.5);
  --ayf-colorBrandBackground2: #F3F3F1;
  --ayf-colorBrandBackground2Pressed: #E3E2E1;
  --ayf-colorBrandBackground4Static: #242423;
  --ayf-colorBrandBackgroundInvertedHover: #F3F3F1;
  --ayf-colorNeutralCardBackground: #FAFAF8;
  --ayf-colorNeutralCardBackgroundHover: #ffffff;
  --ayf-colorNeutralCardBackgroundPressed: #F5F5F3;
  --ayf-colorNeutralCardBackgroundSelected: #EBEBE9;
  --ayf-colorNeutralCardBackgroundDisabled: #F0F0EE;
  --ayf-colorNeutralStrokeAccessibleHover: #575756;
  --ayf-colorNeutralStrokeAccessiblePressed: #4D4D4C;
  --ayf-colorNeutralStroke1: #D1D1CF;
  --ayf-colorNeutralStroke1Hover: #C7C7C5;
  --ayf-colorNeutralStroke1Pressed: #B3B3B1;
  --ayf-colorNeutralStroke1Selected: #BDBDBB;
  --ayf-colorNeutralStroke2: #E0E0DE;
  --ayf-colorNeutralStroke3: #F0F0EE;
  --ayf-colorNeutralStroke4: #EBEBE9;
  --ayf-colorNeutralStroke4Hover: #E0E0DE;
  --ayf-colorNeutralStroke4Pressed: #D6D6D4;
  --ayf-colorNeutralStroke4Selected: #EBEBE9;
  --ayf-colorNeutralStrokeSubtle: #E0E0DE;
  --ayf-colorNeutralStrokeOnBrand: #ffffff;
  --ayf-colorBrandStroke2: #DDDDDD;
  --ayf-colorBrandStroke2Contrast: #DDDDDD;
  --ayf-colorNeutralStrokeDisabled: #E0E0DE;
  --ayf-colorNeutralStrokeDisabled2: #EBEBE9;
  --ayf-colorNeutralStrokeAlpha: rgba(17, 17, 17, 0.05);
  --ayf-colorStrokeFocus1: #FFFFFF;
  --ayf-colorNeutralShadowAmbient: rgba(17, 17, 17, 0.12);
  --ayf-colorNeutralShadowKey: rgba(17, 17, 17, 0.14);
  --ayf-colorNeutralShadowAmbientLighter: rgba(17, 17, 17, 0.06);
  --ayf-colorNeutralShadowKeyLighter: rgba(17, 17, 17, 0.07);
  --ayf-colorNeutralShadowAmbientDarker: rgba(17, 17, 17, 0.20);
  --ayf-colorNeutralShadowKeyDarker: rgba(17, 17, 17, 0.24);
  --ayf-colorPaletteRedBackground2: #EEC0BA;
  --ayf-colorPaletteRedBorder1: #EEC0BA;
  --ayf-colorPaletteGreenBackground2: #B9D8C6;
  --ayf-colorPaletteGreenBorder1: #B9D8C6;
  --ayf-colorPaletteDarkOrangeBackground2: #E3CBA7;
  --ayf-colorPaletteDarkOrangeBorder1: #E3CBA7;
  --ayf-colorPaletteYellowBackground2: #E3CBA7;
  --ayf-colorPaletteYellowBorder1: #E3CBA7;
  --ayf-colorPaletteBerryBackground1: #fdf5fc;
  --ayf-colorPaletteBerryBackground2: #edbbe7;
  --ayf-colorPaletteBerryForeground1: #af33a1;
  --ayf-colorPaletteBerryForeground2: #6d2064;
  --ayf-colorPaletteBerryForeground3: #c239b3;
  --ayf-colorPaletteBerryBorderActive: #c239b3;
  --ayf-colorPaletteBerryBorder1: #edbbe7;
  --ayf-colorPaletteBerryBorder2: #c239b3;
  --ayf-colorPaletteLightGreenBackground2: #B9D8C6;
  --ayf-colorPaletteLightGreenBorder1: #B9D8C6;
  --ayf-colorPaletteMarigoldBackground2: #E3CBA7;
  --ayf-colorPaletteMarigoldBorder1: #E3CBA7;
  --ayf-colorPaletteRedForegroundInverted: #F18A7F;
  --ayf-colorPaletteGreenForegroundInverted: #7CBB96;
  --ayf-colorPaletteYellowForegroundInverted: #D3A05F;
  --ayf-colorPaletteDarkRedBackground2: #EEC0BA;
  --ayf-colorPaletteCranberryBackground2: #EEC0BA;
  --ayf-colorPalettePumpkinBackground2: #E3CBA7;
  --ayf-colorPalettePeachBackground2: #E3CBA7;
  --ayf-colorPaletteGoldBackground2: #E3CBA7;
  --ayf-colorPaletteBrassBackground2: #E3CBA7;
  --ayf-colorPaletteBrownBackground2: #ddc3b0;
  --ayf-colorPaletteBrownForeground2: #50301a;
  --ayf-colorPaletteBrownBorderActive: #8e562e;
  --ayf-colorPaletteForestBackground2: #B9D8C6;
  --ayf-colorPaletteSeafoamBackground2: #B9D8C6;
  --ayf-colorPaletteDarkGreenBackground2: #B9D8C6;
  --ayf-colorPaletteLightTealBackground2: #a6e9ed;
  --ayf-colorPaletteLightTealForeground2: #00666d;
  --ayf-colorPaletteLightTealBorderActive: #00b7c3;
  --ayf-colorPaletteTealBackground2: #9bd9db;
  --ayf-colorPaletteTealForeground2: #02494c;
  --ayf-colorPaletteTealBorderActive: #038387;
  --ayf-colorPaletteSteelBackground2: #BBD1EB;
  --ayf-colorPaletteBlueBackground2: #BBD1EB;
  --ayf-colorPaletteRoyalBlueBackground2: #BBD1EB;
  --ayf-colorPaletteCornflowerBackground2: #BBD1EB;
  --ayf-colorPaletteNavyBackground2: #BBD1EB;
  --ayf-colorPaletteLavenderBackground2: #d2ccf8;
  --ayf-colorPaletteLavenderForeground2: #3f3682;
  --ayf-colorPaletteLavenderBorderActive: #7160e8;
  --ayf-colorPalettePurpleBackground2: #c6b1de;
  --ayf-colorPalettePurpleForeground2: #341a51;
  --ayf-colorPalettePurpleBorderActive: #5c2e91;
  --ayf-colorPaletteGrapeBackground2: #d9a7e0;
  --ayf-colorPaletteGrapeForeground2: #4c0d55;
  --ayf-colorPaletteGrapeBorderActive: #881798;
  --ayf-colorPaletteLilacBackground2: #e6bfed;
  --ayf-colorPaletteLilacForeground2: #63276d;
  --ayf-colorPaletteLilacBorderActive: #b146c2;
  --ayf-colorPalettePinkBackground2: #f7c0e3;
  --ayf-colorPalettePinkForeground2: #80215d;
  --ayf-colorPalettePinkBorderActive: #e43ba6;
  --ayf-colorPaletteMagentaBackground2: #eca5d1;
  --ayf-colorPaletteMagentaForeground2: #6b0043;
  --ayf-colorPaletteMagentaBorderActive: #bf0077;
  --ayf-colorPalettePlumBackground2: #d696c0;
  --ayf-colorPalettePlumForeground2: #43002b;
  --ayf-colorPalettePlumBorderActive: #77004d;
  --ayf-colorPaletteBeigeBackground2: #d7d4d4;
  --ayf-colorPaletteBeigeForeground2: #444241;
  --ayf-colorPaletteBeigeBorderActive: #7a7574;
  --ayf-colorPaletteMinkBackground2: #cecccb;
  --ayf-colorPaletteMinkForeground2: #343231;
  --ayf-colorPaletteMinkBorderActive: #5d5a58;
  --ayf-colorPalettePlatinumBackground2: #cdd6d8;
  --ayf-colorPalettePlatinumForeground2: #3b4447;
  --ayf-colorPalettePlatinumBorderActive: #69797e;
  --ayf-colorPaletteAnchorBackground2: #bcc3c7;
  --ayf-colorPaletteAnchorForeground2: #202427;
  --ayf-colorPaletteAnchorBorderActive: #394146;
  --ayf-colorStatusSuccessBackground2: #B9D8C6;
  --ayf-colorStatusSuccessForegroundInverted: #7CBB96;
  --ayf-colorStatusSuccessBorder1: #B9D8C6;
  --ayf-colorStatusWarningBackground2: #E3CBA7;
  --ayf-colorStatusWarningForegroundInverted: #D3A05F;
  --ayf-colorStatusWarningBorder1: #E3CBA7;
  --ayf-colorStatusDangerBackground2: #EEC0BA;
  --ayf-colorStatusDangerForegroundInverted: #F18A7F;
  --ayf-colorStatusDangerBorder1: #EEC0BA;
}

/* ---- dist/ayves-type.css ---- */
/* AYVES design system 3. Generated by scripts/build.mjs from tokens/*.tokens.json. Do not edit. */

.ay-type-display-xl { font-family: var(--ay-font-sans); font-size: var(--ay-type-display-xl-size); line-height: var(--ay-type-display-xl-line); font-weight: var(--ay-type-display-xl-weight); letter-spacing: var(--ay-type-display-xl-tracking); font-stretch: 106%; }
.ay-type-display-l { font-family: var(--ay-font-sans); font-size: var(--ay-type-display-l-size); line-height: var(--ay-type-display-l-line); font-weight: var(--ay-type-display-l-weight); letter-spacing: var(--ay-type-display-l-tracking); font-stretch: 106%; }
.ay-type-display-m { font-family: var(--ay-font-sans); font-size: var(--ay-type-display-m-size); line-height: var(--ay-type-display-m-line); font-weight: var(--ay-type-display-m-weight); letter-spacing: var(--ay-type-display-m-tracking); font-stretch: 104%; }
.ay-type-headline-l { font-family: var(--ay-font-sans); font-size: var(--ay-type-headline-l-size); line-height: var(--ay-type-headline-l-line); font-weight: var(--ay-type-headline-l-weight); letter-spacing: var(--ay-type-headline-l-tracking); }
.ay-type-headline-m { font-family: var(--ay-font-sans); font-size: var(--ay-type-headline-m-size); line-height: var(--ay-type-headline-m-line); font-weight: var(--ay-type-headline-m-weight); letter-spacing: var(--ay-type-headline-m-tracking); }
.ay-type-headline-s { font-family: var(--ay-font-sans); font-size: var(--ay-type-headline-s-size); line-height: var(--ay-type-headline-s-line); font-weight: var(--ay-type-headline-s-weight); letter-spacing: var(--ay-type-headline-s-tracking); }
.ay-type-title-l { font-family: var(--ay-font-sans); font-size: var(--ay-type-title-l-size); line-height: var(--ay-type-title-l-line); font-weight: var(--ay-type-title-l-weight); letter-spacing: var(--ay-type-title-l-tracking); }
.ay-type-title-m { font-family: var(--ay-font-sans); font-size: var(--ay-type-title-m-size); line-height: var(--ay-type-title-m-line); font-weight: var(--ay-type-title-m-weight); letter-spacing: var(--ay-type-title-m-tracking); }
.ay-type-title-s { font-family: var(--ay-font-sans); font-size: var(--ay-type-title-s-size); line-height: var(--ay-type-title-s-line); font-weight: var(--ay-type-title-s-weight); letter-spacing: var(--ay-type-title-s-tracking); }
.ay-type-body-l { font-family: var(--ay-font-sans); font-size: var(--ay-type-body-l-size); line-height: var(--ay-type-body-l-line); font-weight: var(--ay-type-body-l-weight); letter-spacing: var(--ay-type-body-l-tracking); }
.ay-type-body-m { font-family: var(--ay-font-sans); font-size: var(--ay-type-body-m-size); line-height: var(--ay-type-body-m-line); font-weight: var(--ay-type-body-m-weight); letter-spacing: var(--ay-type-body-m-tracking); }
.ay-type-body-s { font-family: var(--ay-font-sans); font-size: var(--ay-type-body-s-size); line-height: var(--ay-type-body-s-line); font-weight: var(--ay-type-body-s-weight); letter-spacing: var(--ay-type-body-s-tracking); }
.ay-type-label-l { font-family: var(--ay-font-sans); font-size: var(--ay-type-label-l-size); line-height: var(--ay-type-label-l-line); font-weight: var(--ay-type-label-l-weight); letter-spacing: var(--ay-type-label-l-tracking); }
.ay-type-label-m { font-family: var(--ay-font-sans); font-size: var(--ay-type-label-m-size); line-height: var(--ay-type-label-m-line); font-weight: var(--ay-type-label-m-weight); letter-spacing: var(--ay-type-label-m-tracking); }
.ay-type-label-s { font-family: var(--ay-font-sans); font-size: var(--ay-type-label-s-size); line-height: var(--ay-type-label-s-line); font-weight: var(--ay-type-label-s-weight); letter-spacing: var(--ay-type-label-s-tracking); }
.ay-type-caption { font-family: var(--ay-font-sans); font-size: var(--ay-type-caption-size); line-height: var(--ay-type-caption-line); font-weight: var(--ay-type-caption-weight); letter-spacing: var(--ay-type-caption-tracking); }
.ay-type-data-xl { font-family: var(--ay-font-mono); font-size: var(--ay-type-data-xl-size); line-height: var(--ay-type-data-xl-line); font-weight: var(--ay-type-data-xl-weight); letter-spacing: var(--ay-type-data-xl-tracking); font-variant-numeric: tabular-nums slashed-zero; }
.ay-type-data-l { font-family: var(--ay-font-mono); font-size: var(--ay-type-data-l-size); line-height: var(--ay-type-data-l-line); font-weight: var(--ay-type-data-l-weight); letter-spacing: var(--ay-type-data-l-tracking); font-variant-numeric: tabular-nums slashed-zero; }
.ay-type-data-m { font-family: var(--ay-font-mono); font-size: var(--ay-type-data-m-size); line-height: var(--ay-type-data-m-line); font-weight: var(--ay-type-data-m-weight); letter-spacing: var(--ay-type-data-m-tracking); font-variant-numeric: tabular-nums slashed-zero; }
.ay-type-data-s { font-family: var(--ay-font-mono); font-size: var(--ay-type-data-s-size); line-height: var(--ay-type-data-s-line); font-weight: var(--ay-type-data-s-weight); letter-spacing: var(--ay-type-data-s-tracking); font-variant-numeric: tabular-nums slashed-zero; }
.ay-type-data-xs { font-family: var(--ay-font-mono); font-size: var(--ay-type-data-xs-size); line-height: var(--ay-type-data-xs-line); font-weight: var(--ay-type-data-xs-weight); letter-spacing: var(--ay-type-data-xs-tracking); font-variant-numeric: tabular-nums slashed-zero; }
.ay-type-overline { font-family: var(--ay-font-mono); font-size: var(--ay-type-overline-size); line-height: var(--ay-type-overline-line); font-weight: var(--ay-type-overline-weight); letter-spacing: var(--ay-type-overline-tracking); text-transform: uppercase; font-variant-numeric: tabular-nums slashed-zero; }

/* ---- css/base.css ---- */
/* ==========================================================================
   AYVES design system 3 · base
   Low-specificity defaults (:where) so they never fight a component library.
   Load after ayves-tokens.css. Put class="ay" on <html> or a wrapper to opt in.
   ========================================================================== */

:where(.ay), :where(.ay) *, :where(.ay) *::before, :where(.ay) *::after { box-sizing: border-box; }

:where(.ay) {
  font-family: var(--ay-font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ay-text-secondary);
  background: var(--ay-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  -webkit-text-size-adjust: 100%;
}
:where(.ay) body { margin: 0; }

:where(.ay) :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: var(--ay-text-primary);
  font-weight: 400;
  text-wrap: balance;
}
:where(.ay) p { margin: 0; text-wrap: pretty; }
:where(.ay) :is(strong, b) { font-weight: 600; color: var(--ay-text-primary); }
:where(.ay) a { color: var(--ay-text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--ay-line-strong); transition: text-decoration-color var(--ay-duration-quick) var(--ay-ease-standard); }
:where(.ay) a:hover { text-decoration-color: currentColor; }
:where(.ay) :is(code, kbd, samp, .ay-mono) { font-family: var(--ay-font-mono); font-variant-numeric: tabular-nums slashed-zero; }
:where(.ay) .ay-num { font-variant-numeric: tabular-nums; }
:where(.ay) img, :where(.ay) svg { display: block; max-width: 100%; }
:where(.ay) button, :where(.ay) input, :where(.ay) select, :where(.ay) textarea { font: inherit; color: inherit; }
:where(.ay) hr { border: 0; height: 1px; background: var(--ay-line-hairline); margin: var(--ay-space-24) 0; }

:where(.ay) ::selection { background: var(--ay-text-primary); color: var(--ay-bg-page); }

/* Keyboard focus: always visible, never on mouse click. */
:where(.ay) :focus-visible {
  outline: 2px solid var(--ay-line-focus);
  outline-offset: 2px;
}
:where(.ay) :focus:not(:focus-visible) { outline: none; }

/* Smooth corners where the browser supports them (squircle). */
@supports (corner-shape: squircle) {
  :where(.ay) .ay-smooth, :where(.ay) [class*="ay-card"], :where(.ay) .ay-pane, :where(.ay) .ay-sheet, :where(.ay) .ay-dialog, :where(.ay) .ay-device { corner-shape: superellipse(1.6); }
}

/* Icons: 1,25 em by default; components set their own size with a class. */
:where(ayves-icon) { display: inline-block; flex: none; width: 1.25em; height: 1.25em; line-height: 0; vertical-align: middle; }
:where(ayves-icon) > svg { display: block; width: 100%; height: 100%; }

/* Screen-reader text */
.ay-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Scrollbars that stay out of the way */
:where(.ay) { scrollbar-color: var(--ay-line-strong) transparent; scrollbar-width: thin; }

/* ---- css/layout.css ---- */
/* ==========================================================================
   AYVES design system 3 · layout
   Window sizes: compact < 600, medium < 840, expanded < 1200, large < 1600, extra large.
   ========================================================================== */

.ay-container {
  width: 100%;
  max-width: calc(var(--ay-size-container) + 2 * var(--ay-gutter, 24px));
  margin-inline: auto;
  /* The gutter also clears the notch and the home indicator of a phone held sideways. */
  padding-left: max(var(--ay-gutter, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ay-gutter, 24px), env(safe-area-inset-right, 0px));
}
@media (max-width: 599px) { :root { --ay-gutter: 16px; } }
@media (min-width: 1200px) { :root { --ay-gutter: 32px; } }

.ay-measure { max-width: var(--ay-size-measure); }

.ay-stack { display: flex; flex-direction: column; gap: var(--ay-gap, var(--ay-space-16)); }
.ay-row { display: flex; align-items: center; gap: var(--ay-gap, var(--ay-space-12)); }
.ay-row--between { justify-content: space-between; }
.ay-row--wrap { flex-wrap: wrap; }
.ay-grow { flex: 1 1 auto; min-width: 0; }

.ay-grid { display: grid; gap: var(--ay-gap, var(--ay-space-24)); grid-template-columns: repeat(var(--ay-cols, 12), minmax(0, 1fr)); }
@media (max-width: 839px) { .ay-grid { --ay-cols: 8; } }
@media (max-width: 599px) { .ay-grid { --ay-cols: 4; } }
.ay-span-full { grid-column: 1 / -1; }

/* One section padding for the website: 112 px on large windows, shrinking smoothly to 64 px on phones. */
.ay-section { padding-block: clamp(64px, 5vw + 40px, 112px); }
.ay-section--tight { padding-block: clamp(40px, 3vw + 28px, 80px); }

/* ---------- Pane grids: two or three panes side by side ------------------- */
/* Equal columns (--3 for three), --wide (3 to 2), --main (8 to 5, with stacks of panes in each column) or --aside
   (a column of 320 to 380 px). Below 1.000 px the panes fall into one column; the panes of a stack then take
   their place from --ay-order, so the one that matters most comes first. */
.ay-panes { display: grid; grid-template-columns: repeat(var(--ay-panes, 2), minmax(0, 1fr)); gap: var(--ay-size-pane-gap); align-items: start; }
.ay-panes--3 { --ay-panes: 3; }
.ay-panes--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ay-panes--main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ay-panes--aside { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
.ay-panes__stack { display: flex; flex-direction: column; gap: var(--ay-size-pane-gap); min-width: 0; }
/* Two panes side by side from bp-expanded (840); one pane on medium and compact windows. */
@media (max-width: 839px) {
  .ay-panes, .ay-panes--wide, .ay-panes--main, .ay-panes--aside { grid-template-columns: minmax(0, 1fr); }
  .ay-panes__stack { display: contents; }
  .ay-panes__stack > * { order: var(--ay-order, 0); }
}

/* ---------- Platform shell: canvas, sidebar, panes ---------------------- */
.ay-shell {
  min-height: 100dvh;
  background: var(--ay-bg-canvas);
  display: grid;
  grid-template-columns: var(--ay-size-sidebar) minmax(0, 1fr);
  gap: var(--ay-size-pane-gap);
  padding: var(--ay-size-pane-gap);
  color: var(--ay-text-secondary);
}
.ay-shell__main { display: grid; gap: var(--ay-size-pane-gap); grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.ay-shell__main--split { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
@media (max-width: 1199px) {
  .ay-shell { grid-template-columns: var(--ay-size-rail) minmax(0, 1fr); }
  .ay-shell__main--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .ay-shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; padding-bottom: 84px; }
}

/* ---------- Spacing utilities: margin above an element, from the space scale ---------- */
/* They win over the margins components set (the one place the package uses !important), so a list or a table that
   resets its own margin still takes the space asked for. Steps of 40 px and more shrink on phones. */
.ay-mt-0 { margin-top: 0 !important; }
.ay-mt-8 { margin-top: var(--ay-space-8) !important; }
.ay-mt-16 { margin-top: var(--ay-space-16) !important; }
.ay-mt-24 { margin-top: var(--ay-space-24) !important; }
.ay-mt-32 { margin-top: var(--ay-space-32) !important; }
.ay-mt-40 { margin-top: var(--ay-space-40) !important; }
.ay-mt-48 { margin-top: var(--ay-space-48) !important; }
.ay-mt-56 { margin-top: var(--ay-space-56) !important; }
.ay-mt-64 { margin-top: var(--ay-space-64) !important; }
@media (max-width: 599px) {
  .ay-mt-40 { margin-top: var(--ay-space-24) !important; }
  .ay-mt-48, .ay-mt-56 { margin-top: var(--ay-space-32) !important; }
  .ay-mt-64 { margin-top: var(--ay-space-40) !important; }
}

/* ---------- Website page patterns ------------------------------------------------- */
/* Split: text in five columns beside a picture in seven; one column below 900 px. __sticky keeps the text in view. */
.ay-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ay-split--center { align-items: center; }
.ay-split__sticky { position: sticky; top: calc(var(--ay-size-header-compact) + 40px); }
@media (max-width: 899px) { .ay-split { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ay-split__sticky { position: static; } }

/* Section head: the heading and up to two sentences under it. */
.ay-section-head { max-width: 760px; }
.ay-section-head h2 { margin: 0; color: var(--ay-text-primary); }
.ay-section-head p { max-width: 58ch; margin-top: 20px; color: var(--ay-text-secondary); }
.ay-section-head p + p { margin-top: 12px; }

/* Key numbers in a row (--_n across): the number, what it counts, and its source in Plex Mono (.ay-cite). */
.ay-numbers { display: grid; grid-template-columns: repeat(var(--_n, 3), minmax(0, 1fr)); gap: 24px 32px; }
.ay-numbers__item { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--ay-line-hairline); }
.ay-numbers__value { color: var(--ay-text-primary); font: var(--ay-type-data-l-weight) var(--ay-type-data-l-size) / var(--ay-type-data-l-line) var(--ay-font-mono); letter-spacing: var(--ay-type-data-l-tracking); font-variant-numeric: tabular-nums; }
.ay-numbers__label { color: var(--ay-text-secondary); font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); }
@media (max-width: 899px) { .ay-numbers { grid-template-columns: minmax(0, 1fr); gap: 0; } .ay-numbers__item { padding-block: 16px 18px; } }

/* A source line under a section, a table or a chart, in Plex Mono. */
.ay-source-line { margin-top: 16px; color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-xs-size) / 1.45 var(--ay-font-mono); }

/* The date line: a short statement of state or date in Plex Mono, after an ink square. */
.ay-dateline { display: flex; align-items: center; gap: 12px; color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-s-size) / 1.45 var(--ay-font-mono); }
.ay-dateline::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ay-text-primary); }

/* Numbered steps in a row (--_n across), split by hairlines; two across below 1.100 px, one on phones. */
.ay-steps { display: grid; grid-template-columns: repeat(var(--_n, 4), minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.ay-steps > li { padding-top: 20px; border-top: 1px solid var(--ay-line-hairline); }
.ay-steps__n { display: block; color: var(--ay-text-primary); font: 500 var(--ay-type-data-m-size) / 1 var(--ay-font-mono); }
.ay-steps h3 { margin: 18px 0 8px; color: var(--ay-text-primary); font: var(--ay-type-title-m-weight) var(--ay-type-title-m-size) / var(--ay-type-title-m-line) var(--ay-font-sans); text-wrap: balance; }
.ay-steps p { color: var(--ay-text-secondary); font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); }
@media (max-width: 1099px) { .ay-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 599px) {
  .ay-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ay-steps > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 18px 0 22px; }
  .ay-steps__n { grid-row: 1 / span 2; padding-top: 3px; font-size: 18px; }
  .ay-steps h3 { margin: 0 0 6px; }
}

/* Routes: rows that link to other pages, each with its name, a state in Plex Mono, a sentence and an arrow
   that moves 4 px on hover. .ay-more is a single route link under a section. */
.ay-routes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ay-line-hairline); }
.ay-route { display: grid; grid-template-columns: minmax(200px, 4fr) minmax(0, 7fr) 24px; gap: 8px 32px; align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--ay-line-hairline); color: var(--ay-text-secondary); text-decoration: none; }
.ay-route__name { display: flex; flex-direction: column; gap: 4px; }
.ay-route__name > b { color: var(--ay-text-primary); font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / 1.3 var(--ay-font-sans); letter-spacing: var(--ay-type-title-l-tracking); }
.ay-route__name > .ay-cite { white-space: nowrap; }
.ay-route__text { font: 400 var(--ay-type-body-m-size) / var(--ay-type-body-m-line) var(--ay-font-sans); }
.ay-route > ayves-icon { width: 20px; height: 20px; align-self: center; color: var(--ay-text-primary); transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy); }
.ay-route:hover > ayves-icon { transform: translateX(4px); }
.ay-route:hover .ay-route__name > b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 599px) { .ay-route { grid-template-columns: minmax(0, 1fr) 20px; padding: 20px 0; } .ay-route__text { grid-column: 1; } .ay-route > ayves-icon { grid-row: 1; grid-column: 2; } }
.ay-more { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ay-size-tap); color: var(--ay-text-primary); font: 500 15px / 1.3 var(--ay-font-sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--ay-line-strong); }
.ay-more > ayves-icon { width: 18px; height: 18px; transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy); }
.ay-more:hover { text-decoration-color: currentColor; }
.ay-more:hover > ayves-icon { transform: translateX(4px); }

/* Terms: a definition list with hairlines, the term in a third of the width. */
.ay-terms { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--ay-line-hairline); }
.ay-terms > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--ay-line-hairline); }
.ay-terms dt { color: var(--ay-text-primary); font: 500 var(--ay-type-body-m-size) / 1.45 var(--ay-font-sans); }
.ay-terms dd { margin: 0; color: var(--ay-text-secondary); }
@media (max-width: 599px) { .ay-terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; } }

/* Portrait placeholder: 4 by 5, square, on the band, until the black and white portrait is taken. */
.ay-portrait { display: grid; place-items: end start; aspect-ratio: 4 / 5; padding: 10px; background: var(--ay-bg-band); box-shadow: inset 0 0 0 1px var(--ay-line-hairline); color: var(--ay-text-tertiary); font: 400 11px / 1.35 var(--ay-font-mono); }

/* ---- css/components.css ---- */
/* ==========================================================================
   AYVES design system 3 · components
   Every value comes from a token (--ay-*). Things people hold are rounded;
   information (cells, status marks, tables, chart marks) is square.
   ========================================================================== */

/* ---------- Buttons ------------------------------------------------------ */
.ay-btn {
  --_h: var(--ay-size-control-md);
  --_px: 18px;
  --_bg: var(--ay-bg-tonal);
  --_bg-hover: var(--ay-bg-tonal-hover);
  --_bg-press: var(--ay-bg-tonal-pressed);
  --_fg: var(--ay-text-primary);
  --_ring: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--_h);
  min-width: var(--_h);
  padding: 0 var(--_px);
  border: 0;
  border-radius: var(--ay-radius-full);
  background: var(--_bg);
  box-shadow: inset 0 0 0 1px var(--_ring);
  color: var(--_fg);
  font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / var(--ay-type-label-m-line) var(--ay-font-sans);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--ay-duration-quick) var(--ay-ease-standard),
    box-shadow var(--ay-duration-quick) var(--ay-ease-standard),
    color var(--ay-duration-quick) var(--ay-ease-standard),
    transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy);
}
.ay-btn:hover { background: var(--_bg-hover); }
.ay-btn:active { background: var(--_bg-press); transform: scale(var(--ay-press-scale)); transition-duration: var(--ay-duration-instant); }
.ay-btn:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: 2px; }
.ay-btn:disabled, .ay-btn[aria-disabled="true"] { opacity: 0.38; pointer-events: none; }
.ay-btn > svg, .ay-btn > ayves-icon { width: 18px; height: 18px; flex: none; margin-inline: -2px; }

.ay-btn--primary { --_bg: var(--ay-fill-primary); --_bg-hover: var(--ay-fill-primary-hover); --_bg-press: var(--ay-fill-primary-pressed); --_fg: var(--ay-text-on-primary); }
.ay-btn--outline { --_bg: transparent; --_ring: var(--ay-line-strong); }
.ay-btn--text { --_bg: transparent; --_px: 12px; }
.ay-btn--glass { --_bg: var(--ay-bg-glass); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); --_ring: var(--ay-line-hairline); }
.ay-btn--danger { --_bg: var(--ay-status-critical-soft); --_bg-hover: var(--ay-status-critical-soft); --_fg: var(--ay-status-critical-on-soft); }
.ay-btn--sm { --_h: var(--ay-size-control-sm); --_px: 14px; font-size: 13px; }
.ay-btn--lg { --_h: var(--ay-size-control-lg); --_px: 24px; font-size: var(--ay-type-label-l-size); }
.ay-btn--block { width: 100%; }

.ay-iconbtn {
  --_s: var(--ay-size-control-md);
  display: inline-grid; place-items: center;
  width: var(--_s); height: var(--_s);
  padding: 0; border: 0; border-radius: var(--ay-radius-full);
  background: transparent; color: var(--ay-fill-icon);
  cursor: pointer;
  transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), color var(--ay-duration-quick) var(--ay-ease-standard), transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy);
}
.ay-iconbtn:hover { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-iconbtn:active { background: var(--ay-bg-tonal-pressed); transform: scale(var(--ay-press-scale-icon)); transition-duration: var(--ay-duration-instant); }
.ay-iconbtn[aria-pressed="true"], .ay-iconbtn.is-selected { background: var(--ay-bg-selected); color: var(--ay-text-primary); }
.ay-iconbtn > svg, .ay-iconbtn > ayves-icon { width: 20px; height: 20px; }
.ay-iconbtn--sm { --_s: var(--ay-size-control-sm); }
@media (max-width: 599px) { .ay-iconbtn:not(.ay-iconbtn--sm) { --_s: var(--ay-size-tap); } .ay-segmented__item { height: calc(var(--ay-size-tap) - 6px); } }
/* Touch screens (phones and tablets): everything tappable is at least 44 px. */
@media (any-pointer: coarse) {
  .ay-iconbtn { --_s: var(--ay-size-tap); }
  .ay-btn:not(.ay-btn--lg) { --_h: var(--ay-size-tap); }
  .ay-segmented__item { height: calc(var(--ay-size-tap) - 6px); }
  .ay-chip { height: var(--ay-size-tap); }
  .ay-nav__item { height: var(--ay-size-tap); }
}
.ay-iconbtn--tonal { background: var(--ay-bg-tonal); }
.ay-iconbtn--primary { background: var(--ay-fill-primary); color: var(--ay-text-on-primary); }
.ay-iconbtn--primary:hover { background: var(--ay-fill-primary-hover); color: var(--ay-text-on-primary); }
.ay-iconbtn--primary:active { background: var(--ay-fill-primary-pressed); }

/* ---------- Segmented control -------------------------------------------- */
.ay-segmented {
  position: relative;
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-tonal);
  isolation: isolate;
}
.ay-segmented__item {
  white-space: nowrap;
  position: relative; z-index: 1;
  height: calc(var(--ay-size-control-md) - 6px);
  padding: 0 16px;
  border: 0; border-radius: var(--ay-radius-full);
  background: transparent;
  color: var(--ay-text-secondary);
  font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1 var(--ay-font-sans);
  cursor: pointer;
  transition: color var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-segmented__item:hover { color: var(--ay-text-primary); }
.ay-segmented__item[aria-selected="true"], .ay-segmented__item[aria-checked="true"] { color: var(--ay-text-primary); }
.ay-segmented__thumb {
  position: absolute; z-index: 0; top: 3px; left: 0;
  height: calc(100% - 6px);
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-surface-raised);
  box-shadow: var(--ay-shadow-1);
  transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy), width var(--ay-spring-snappy-duration) var(--ay-spring-snappy);
}
[data-theme="dark"] .ay-segmented__thumb { background: var(--ay-neutral-29); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .ay-segmented__thumb { background: var(--ay-neutral-29); } }
.ay-segmented--ink .ay-segmented__thumb { background: var(--ay-fill-primary); box-shadow: none; }
.ay-segmented--ink .ay-segmented__item[aria-selected="true"], .ay-segmented--ink .ay-segmented__item[aria-checked="true"] { color: var(--ay-text-on-primary); }
/* --block fills the width at every size; --fill does so on phones only, where four or five choices would not fit
   side by side. The items share the width by the length of their words, so long labels never wrap. */
.ay-segmented--block { display: flex; width: 100%; }
.ay-segmented--block > .ay-segmented__item { flex: 1 1 auto; padding: 0 8px; }
@media (max-width: 599px) {
  .ay-segmented--fill { display: flex; width: 100%; }
  .ay-segmented--fill > .ay-segmented__item { flex: 1 1 auto; padding: 0 8px; }
}

/* ---------- Chips ------------------------------------------------------- */
.ay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 0; border-radius: var(--ay-radius-full);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ay-line-strong);
  color: var(--ay-text-secondary);
  font: var(--ay-type-label-m-weight) 13px / 1 var(--ay-font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), color var(--ay-duration-quick) var(--ay-ease-standard), box-shadow var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-chip:hover { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-chip[aria-pressed="true"], .ay-chip.is-selected { background: var(--ay-fill-primary); color: var(--ay-text-on-primary); box-shadow: none; }
.ay-chip--static { cursor: default; }
.ay-chip--static:hover { background: transparent; }
.ay-chip > svg, .ay-chip > ayves-icon { width: 16px; height: 16px; }

/* ---------- Status mark: a square, a word. Never colour alone. ----------- */
.ay-status {
  --_c: var(--ay-text-tertiary);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ay-text-primary);
  font: 500 var(--ay-type-label-m-size) / 1.2 var(--ay-font-sans);
  white-space: nowrap;
}
.ay-status::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  box-shadow: inset 0 0 0 1.5px var(--_c);
  background: var(--_c);
}
.ay-status[data-status="critical"] { --_c: var(--ay-status-critical-mark); }
.ay-status[data-status="attention"] { --_c: var(--ay-status-attention-mark); }
.ay-status[data-status="attention"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--_c), inset 4.5px 0 0 0 var(--_c); }
.ay-status[data-status="clear"] { --_c: var(--ay-status-clear-mark); }
.ay-status[data-status="clear"]::before { background: transparent; }
.ay-status[data-status="info"] { --_c: var(--ay-status-info-mark); }
.ay-status[data-status="info"]::before { box-sizing: border-box; padding: 3px; background: var(--_c); background-clip: content-box; }
/* Monitor: the attention colour, an outline whose lower edge is filled. Unrateable: grey, an outline with a bar across. */
.ay-status[data-status="monitor"] { --_c: var(--ay-status-monitor-mark); }
.ay-status[data-status="monitor"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--_c), inset 0 -3.5px 0 0 var(--_c); }
.ay-status[data-status="unrateable"] { --_c: var(--ay-status-unrateable-mark); }
.ay-status[data-status="unrateable"]::before { box-sizing: border-box; padding: 3.75px 2.25px; background: var(--_c); background-clip: content-box; }
.ay-status[data-status="neutral"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ay-chart-3); }
.ay-status--ink[data-status]::before { --_c: var(--ay-text-primary); }
.ay-status--chip { height: 28px; padding: 0 10px 0 9px; border-radius: var(--ay-radius-full); background: var(--ay-bg-tonal); }
.ay-status--chip[data-status="critical"] { background: var(--ay-status-critical-soft); color: var(--ay-status-critical-on-soft); }
.ay-status--chip[data-status="attention"] { background: var(--ay-status-attention-soft); color: var(--ay-status-attention-on-soft); }
.ay-status--chip[data-status="clear"] { background: var(--ay-status-clear-soft); color: var(--ay-status-clear-on-soft); }
.ay-status--chip[data-status="info"] { background: var(--ay-status-info-soft); color: var(--ay-status-info-on-soft); }
.ay-status--chip[data-status="monitor"] { background: var(--ay-status-monitor-soft); color: var(--ay-status-monitor-on-soft); }
.ay-status--chip[data-status="unrateable"] { background: var(--ay-status-unrateable-soft); color: var(--ay-status-unrateable-on-soft); }
/* A status may wrap where it is a label in a narrow place (--wrap, and always inside a number tile's label): the
   square stays beside the first line. Inside a label it takes the label's type and colour. */
.ay-status--wrap, .ay-stat__label > .ay-status { max-width: 100%; align-items: flex-start; white-space: normal; }
.ay-status--wrap::before, .ay-stat__label > .ay-status::before { margin-top: 4px; }
.ay-stat__label > .ay-status { color: inherit; font: inherit; }

.ay-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-tonal);
  color: var(--ay-text-primary);
  font: 500 11.5px / 1 var(--ay-font-mono);
  font-variant-numeric: tabular-nums;
}
.ay-badge--ink { background: var(--ay-fill-primary); color: var(--ay-text-on-primary); }
.ay-badge--critical { background: var(--ay-status-critical-mark); color: #fff; }

/* ---------- Cards, panes, surfaces -------------------------------------- */
.ay-card {
  position: relative;
  border-radius: var(--ay-radius-lg);
  background: var(--ay-bg-surface);
  box-shadow: var(--ay-shadow-1);
  padding: var(--ay-card-pad, 24px);
  color: var(--ay-text-secondary);
}
.ay-card--flat { box-shadow: var(--ay-shadow-0); }
.ay-card--band { background: var(--ay-bg-band); box-shadow: none; }
.ay-card--sunken { background: var(--ay-bg-surface-sunken); box-shadow: var(--ay-shadow-0); }
.ay-card--interactive {
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ay-spring-smooth-duration) var(--ay-spring-smooth), box-shadow var(--ay-duration-standard) var(--ay-ease-standard);
}
.ay-card--interactive:hover { transform: translateY(calc(-1 * var(--ay-lift))); box-shadow: var(--ay-shadow-2); }
.ay-card--interactive:active { transform: scale(var(--ay-press-scale-card)); transition-duration: var(--ay-duration-quick); }
.ay-card__title { margin: 0 0 6px; color: var(--ay-text-primary); font: var(--ay-type-title-m-weight) var(--ay-type-title-m-size) / var(--ay-type-title-m-line) var(--ay-font-sans); letter-spacing: var(--ay-type-title-m-tracking); }
.ay-card__meta { color: var(--ay-text-tertiary); font: 500 var(--ay-type-label-s-size) / var(--ay-type-label-s-line) var(--ay-font-sans); letter-spacing: var(--ay-type-label-s-tracking); }
.ay-evidence .ay-card__meta, .ay-card__meta.is-source { font: 400 var(--ay-type-data-xs-size) / var(--ay-type-data-xs-line) var(--ay-font-mono); letter-spacing: 0; }

.ay-pane {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  border-radius: var(--ay-radius-xl);
  background: var(--ay-bg-surface);
  box-shadow: var(--ay-shadow-0);
  overflow: clip;
}
.ay-pane__header {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 14px 16px 10px 24px;
}
.ay-pane__title { flex: 1; min-width: 0; margin: 0; color: var(--ay-text-primary); font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / var(--ay-type-title-l-line) var(--ay-font-sans); letter-spacing: var(--ay-type-title-l-tracking); }
.ay-pane__body { padding: 8px 24px 24px; }
.ay-pane__body--flush { padding: 0; }
.ay-pane__meta { color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.3 var(--ay-font-mono); white-space: nowrap; }

/* ---------- Number tile ------------------------------------------------- */
.ay-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ay-stat__label { color: var(--ay-text-tertiary); font: 500 var(--ay-type-label-m-size) / 1.3 var(--ay-font-sans); }
.ay-stat__value { color: var(--ay-text-primary); font: var(--ay-type-data-l-weight) var(--ay-type-data-l-size) / var(--ay-type-data-l-line) var(--ay-font-mono); letter-spacing: var(--ay-type-data-l-tracking); font-variant-numeric: tabular-nums; }
.ay-stat__value--m { font-size: var(--ay-type-data-m-size); line-height: var(--ay-type-data-m-line); letter-spacing: var(--ay-type-data-m-tracking); }
.ay-stat__note { color: var(--ay-text-tertiary); font: 400 var(--ay-type-caption-size) / var(--ay-type-caption-line) var(--ay-font-sans); }
/* A unit inside a big number (EUR, m, %, MW): smaller and in the sans, so the number carries the weight. */
.ay-stat__unit { color: var(--ay-text-secondary); font: var(--ay-weight-medium) var(--ay-type-title-m-size) / 1 var(--ay-font-sans); letter-spacing: 0; }
/* A number with its sparkline beside it, both on the baseline. */
.ay-stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ay-stat__row > .ay-stat__value { line-height: 1; }
.ay-stat__spark { flex: none; width: 84px; margin-bottom: -6px; }

/* ---------- Number strip: numbers in one pane, split by hairlines ---------- */
/* The hairlines are the 1 px gaps of the grid, so the strip wraps cleanly at any count: four or six across,
   six fall to three below 1.200 px, and every strip to two on phones. Items may be links or buttons. */
.ay-stats { --ay-stats-cols: 4; display: grid; grid-template-columns: repeat(var(--ay-stats-cols), minmax(0, 1fr)); gap: 1px; background: var(--ay-line-hairline); }
.ay-stats--3 { --ay-stats-cols: 3; }
.ay-stats--6 { --ay-stats-cols: 6; }
.ay-stats__item { position: relative; gap: 6px; padding: 20px var(--ay-pane-pad, 24px) 24px; background: var(--ay-bg-surface); color: inherit; text-decoration: none; transition: background-color var(--ay-duration-instant) var(--ay-ease-standard); }
button.ay-stats__item { margin: 0; border: 0; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:is(a, button).ay-stats__item:hover, :is(a, button).ay-stats__item:active { background: var(--ay-bg-surface-sunken); }
.ay-stats__item:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: -2px; }
.ay-stats .ay-stat__value { margin-top: 4px; }
.ay-stats .ay-stat__row > .ay-stat__value { margin-top: 0; }
.ay-stats--6 .ay-stat__value { font-size: var(--ay-type-data-m-size); line-height: var(--ay-type-data-m-line); letter-spacing: var(--ay-type-data-m-tracking); }
@media (max-width: 1199px) { .ay-stats--6 { --ay-stats-cols: 3; } }
@media (max-width: 599px) {
  .ay-stats { --ay-stats-cols: 2; }
  .ay-stats__item { padding: 16px var(--ay-pane-pad, 16px) 20px; }
  .ay-stats .ay-stat__value { font-size: var(--ay-type-data-m-size); line-height: var(--ay-type-data-m-line); }
}

/* ---------- Key numbers: a grid of numbers with hairlines between the cells ---------- */
/* Two across; four once its container (.ay-cq) is 600 px wide. --strip turns it into one row that scrolls
   sideways on phones. A hairline closes it off from what comes before. */
.ay-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--ay-line-hairline); }
.ay-kv:not(:first-child) { border-top: 1px solid var(--ay-line-hairline); }
.ay-kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px var(--ay-pane-pad, 24px) 20px; background: var(--ay-bg-surface); }
.ay-kv dt { color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / 1.3 var(--ay-font-sans); }
.ay-kv dd { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-data-m-weight) 22px / 1.15 var(--ay-font-mono); letter-spacing: var(--ay-type-data-m-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ay-kv dd small { display: block; margin-top: 4px; color: var(--ay-text-tertiary); font: var(--ay-type-caption-weight) var(--ay-type-caption-size) / 1.35 var(--ay-font-sans); letter-spacing: 0; white-space: normal; }
@container (min-width: 600px) { .ay-kv { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .ay-kv--strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(148px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ay-kv--strip > div { scroll-snap-align: start; padding-bottom: 16px; }
}

/* ---------- Facts with their source: label, value and where it came from ---------- */
/* Three columns, the source right-aligned in Plex Mono (.ay-cite); one column below 560 px of its own width. */
.ay-facts { margin: 0; container-type: inline-size; }
.ay-facts__row { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 12px 0; }
.ay-facts__row + .ay-facts__row { border-top: 1px solid var(--ay-line-hairline); }
.ay-facts dt { color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1.4 var(--ay-font-sans); }
.ay-facts dd { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-body-s-weight) var(--ay-type-body-m-size) / 1.45 var(--ay-font-sans); }
.ay-facts dd.ay-mono { font-size: var(--ay-type-data-s-size); }
.ay-facts dd.ay-cite { justify-self: end; color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.45 var(--ay-font-mono); text-align: right; text-wrap: balance; }
@container (max-width: 560px) {
  .ay-facts__row { grid-template-columns: minmax(0, 1fr); }
  .ay-facts dd.ay-cite { justify-self: start; text-align: left; }
}

/* A source, a document or a register line in Plex Mono, in running text or beside a value. */
.ay-cite { color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.45 var(--ay-font-mono); }

/* A worked calculation: the figures in Plex Mono, the words between them in the sans. */
.ay-formula { display: grid; gap: 6px; margin: 0; padding: 16px 20px; border-radius: var(--ay-radius-lg); background: var(--ay-bg-band); color: var(--ay-text-primary); font: var(--ay-type-data-s-weight) var(--ay-type-data-s-size) / 1.6 var(--ay-font-mono); }
.ay-formula > span { color: var(--ay-text-tertiary); font-family: var(--ay-font-sans); }

/* Planned: a product or a screen that does not exist yet says when it is planned. */
.ay-planned { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: var(--ay-radius-full); box-shadow: inset 0 0 0 1px var(--ay-line-strong); color: var(--ay-text-primary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / 1 var(--ay-font-sans); white-space: nowrap; }
.ay-planned .ay-mono { color: var(--ay-text-secondary); }

/* Level and quartile marks: a few cells and their word, for a table cell. */
.ay-level, .ay-quartile { display: inline-flex; align-items: center; gap: 8px; color: var(--ay-text-primary); white-space: nowrap; }
.ay-level { font: var(--ay-type-data-s-weight) var(--ay-type-data-xs-size) / 1 var(--ay-font-mono); }
.ay-quartile { font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1 var(--ay-font-sans); }
:is(.ay-level, .ay-quartile) > ayves-cells { display: inline-block; flex: none; width: max-content; }

/* Counts by status: a status and its number on each row, rows split by hairlines. Rows may be links or buttons. */
.ay-counts { display: flex; flex-direction: column; }
.ay-counts__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--ay-size-control-md); color: var(--ay-text-primary); text-decoration: none; }
:is(a, button).ay-counts__row { width: 100%; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--ay-duration-instant) var(--ay-ease-standard); -webkit-tap-highlight-color: transparent; }
:is(a, button).ay-counts__row:hover { background: var(--ay-bg-tonal); }
:is(a, button).ay-counts__row:active { background: var(--ay-bg-tonal-pressed); }
.ay-counts__row + .ay-counts__row { border-top: 1px solid var(--ay-line-hairline); }
.ay-counts__n { color: var(--ay-text-primary); font: var(--ay-type-data-m-weight) var(--ay-type-data-s-size) / 1 var(--ay-font-mono); font-variant-numeric: tabular-nums; }
@media (any-pointer: coarse) { .ay-counts__row { min-height: var(--ay-size-tap); } }

/* ---------- Form fields ------------------------------------------------- */
.ay-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ay-field__label { color: var(--ay-text-primary); font: 500 var(--ay-type-label-m-size) / 1.3 var(--ay-font-sans); }
.ay-field__help { color: var(--ay-text-tertiary); font: 400 var(--ay-type-caption-size) / var(--ay-type-caption-line) var(--ay-font-sans); }
.ay-field__error { color: var(--ay-status-critical-text); font: 500 var(--ay-type-caption-size) / var(--ay-type-caption-line) var(--ay-font-sans); }

.ay-input, .ay-select, .ay-textarea {
  width: 100%;
  min-height: var(--ay-size-tap);
  padding: 0 14px;
  border: 0;
  border-radius: var(--ay-radius-md);
  background: var(--ay-bg-surface);
  box-shadow: inset 0 0 0 1px var(--ay-line-control);
  color: var(--ay-text-primary);
  font: 400 15px / 1.4 var(--ay-font-sans);
  transition: box-shadow var(--ay-duration-quick) var(--ay-ease-standard), background-color var(--ay-duration-quick) var(--ay-ease-standard);
  appearance: none;
}
.ay-input::placeholder, .ay-textarea::placeholder { color: var(--ay-text-tertiary); }
.ay-input:hover, .ay-select:hover, .ay-textarea:hover { box-shadow: inset 0 0 0 1px var(--ay-text-tertiary); }
.ay-input:focus, .ay-select:focus, .ay-textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ay-line-focus); }
.ay-input[aria-invalid="true"], .ay-textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--ay-status-critical-mark); }
.ay-input:disabled, .ay-select:disabled { opacity: 0.5; }
.ay-textarea { padding: 12px 14px; min-height: 112px; resize: vertical; }
.ay-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E6E' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}

.ay-search {
  position: relative; display: flex; align-items: center;
  height: var(--ay-size-control-md);
  padding: 0 8px 0 14px; gap: 10px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-tonal);
  color: var(--ay-text-tertiary);
  transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), box-shadow var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-search:hover { background: var(--ay-bg-tonal-hover); }
.ay-search:focus-within { background: var(--ay-bg-surface); box-shadow: inset 0 0 0 2px var(--ay-line-focus); }
.ay-search > svg, .ay-search > ayves-icon { width: 18px; height: 18px; flex: none; }
.ay-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ay-text-primary); font: 400 14.5px / 1 var(--ay-font-sans); outline: none; }
.ay-search input::placeholder { color: var(--ay-text-tertiary); }
/* Search launcher: the search field drawn as a button that opens the command palette, with the shortcut beside it. */
.ay-search--launcher { flex: 0 1 420px; min-width: 0; height: var(--ay-size-control-lg); padding: 0 8px 0 16px; border: 0; background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-0); color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1 var(--ay-font-sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ay-search--launcher:hover { background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-1); }
.ay-search--launcher:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: 2px; }
.ay-search__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (any-pointer: coarse) { .ay-search--launcher { height: var(--ay-size-tap); } }
.ay-kbd {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px;
  border-radius: var(--ay-radius-xs);
  background: var(--ay-bg-surface);
  box-shadow: var(--ay-shadow-0);
  color: var(--ay-text-tertiary);
  font: 500 11px / 1 var(--ay-font-mono);
}

/* Checkbox, radio, switch: native inputs, drawn in the system */
.ay-check, .ay-radio {
  appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px;
  border-radius: var(--ay-radius-xs);
  background: var(--ay-bg-surface);
  box-shadow: inset 0 0 0 1.5px var(--ay-line-control);
  display: inline-grid; place-items: center;
  cursor: pointer;
  transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), box-shadow var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-radio { border-radius: 50%; }
.ay-check::after {
  content: ""; width: 14px; height: 14px; background: var(--ay-text-on-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0); transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy);
}
.ay-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ay-text-on-primary); transform: scale(0); transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy); }
.ay-check:checked, .ay-radio:checked { background: var(--ay-fill-primary); box-shadow: none; }
.ay-check:checked::after, .ay-radio:checked::after { transform: scale(1); }
.ay-check:indeterminate { background: var(--ay-fill-primary); box-shadow: none; }
.ay-check:indeterminate::after { -webkit-mask: none; mask: none; width: 10px; height: 2px; transform: none; }

.ay-switch {
  appearance: none; flex: none; margin: 0; position: relative;
  width: 46px; height: 28px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-tonal-pressed);
  box-shadow: inset 0 0 0 1px var(--ay-line-hairline);
  cursor: pointer;
  transition: background-color var(--ay-duration-standard) var(--ay-ease-standard);
}
.ay-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgb(17 17 17 / 0.06), 0 2px 6px rgb(17 17 17 / 0.18);
  transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy), width var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-switch:active::after { width: 28px; }
.ay-switch:checked { background: var(--ay-fill-primary); }
.ay-switch:checked::after { transform: translateX(18px); }
[data-theme="dark"] .ay-switch:checked::after { background: var(--ay-neutral-7); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .ay-switch:checked::after { background: var(--ay-neutral-7); } }
.ay-switch:checked:active::after { transform: translateX(14px); }

.ay-choice { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ay-size-tap); color: var(--ay-text-primary); font: 400 15px / 1.35 var(--ay-font-sans); cursor: pointer; }

/* ---------- Tabs: words with an ink rule that slides --------------------- */
.ay-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--ay-line-hairline); overflow-x: auto; scrollbar-width: none; }
.ay-tabs__item {
  position: relative; flex: none;
  height: 44px; padding: 0 12px;
  border: 0; background: transparent;
  color: var(--ay-text-tertiary);
  font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1 var(--ay-font-sans);
  cursor: pointer;
  transition: color var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-tabs__item:hover { color: var(--ay-text-primary); }
.ay-tabs__item[aria-selected="true"] { color: var(--ay-text-primary); }
.ay-tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--ay-text-primary); transition: transform var(--ay-spring-snappy-duration) var(--ay-spring-snappy), width var(--ay-spring-snappy-duration) var(--ay-spring-snappy); }

/* ---------- Table ------------------------------------------------------- */
.ay-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); color: var(--ay-text-secondary); }
.ay-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 16px; text-align: left;
  background: var(--ay-bg-surface);
  border-bottom: 1px solid var(--ay-line-hairline);
  color: var(--ay-text-tertiary);
  font: 500 var(--ay-type-label-s-size) / var(--ay-type-label-s-line) var(--ay-font-sans);
  letter-spacing: var(--ay-type-label-s-tracking);
  white-space: nowrap;
}
.ay-table td { padding: 12px 16px; border-bottom: 1px solid var(--ay-line-hairline); vertical-align: middle; }
.ay-table tbody tr { transition: background-color var(--ay-duration-instant) var(--ay-ease-standard); }
.ay-table tbody tr:hover { background: var(--ay-bg-tonal); }
.ay-table tbody tr:last-child td { border-bottom: 0; }
.ay-table th.is-num { text-align: right; font-family: var(--ay-font-sans); }
.ay-table td.is-num { text-align: right; font-family: var(--ay-font-mono); font-variant-numeric: tabular-nums; color: var(--ay-text-primary); white-space: nowrap; }
.ay-table .is-key { color: var(--ay-text-primary); font-weight: 500; }
.ay-table--compact td { padding-block: 8px; }
/* Stacked table: on phones each row becomes a block, each cell a line with its column name (data-label). */
@media (max-width: 599px) {
  .ay-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ay-table--stack, .ay-table--stack tbody, .ay-table--stack tr, .ay-table--stack td { display: block; width: 100%; }
  .ay-table--stack tr { padding: 12px 0; border-bottom: 1px solid var(--ay-line-hairline); }
  .ay-table--stack tbody tr:last-child { border-bottom: 0; }
  .ay-table--stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  .ay-table--stack td::before { content: attr(data-label); flex: none; color: var(--ay-text-tertiary); font: 400 var(--ay-type-body-s-size) / 1.4 var(--ay-font-sans); text-align: left; }
  .ay-table--stack td.is-key { display: block; padding-bottom: 6px; text-align: left; font-size: var(--ay-type-title-m-size); }
  .ay-table--stack td.is-key::before { content: none; }
  .ay-table--stack tbody tr:hover { background: transparent; }
}

/* ---------- Lists: inset grouped, as on a phone --------------------------- */
.ay-list { margin: 0; padding: 0; list-style: none; border-radius: var(--ay-radius-lg); background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-0); overflow: clip; }
.ay-list__row {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 16px;
  color: var(--ay-text-primary);
  text-decoration: none;
  font: 400 15px / 1.35 var(--ay-font-sans);
  transition: background-color var(--ay-duration-instant) var(--ay-ease-standard);
}
/* A row may be a link, a button or a label: it keeps the row's type and colour and none of the browser's box. */
:is(button, a, label).ay-list__row { width: 100%; margin: 0; border: 0; background: transparent; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ay-list__row + .ay-list__row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--ay-line-hairline); }
.ay-list__row--icon + .ay-list__row::before, .ay-list__row--icon + .ay-list__row--icon::before { left: 54px; }
:is(a, button, label).ay-list__row:hover, .ay-list__row.is-link:hover { background: var(--ay-bg-tonal); cursor: pointer; }
:is(a, button, label).ay-list__row:active, .ay-list__row.is-link:active { background: var(--ay-bg-tonal-pressed); }
/* The chosen row (the open alert, the selected result): stronger than the hover, and tertiary text steps up to stay at 4,5:1. */
:is(a, button, label, div, li).ay-list__row:is([aria-current="true"], [aria-current="page"], [aria-selected="true"], .is-selected) { background: var(--ay-bg-selected); }
.ay-list__row:is([aria-current="true"], [aria-current="page"], [aria-selected="true"], .is-selected) :is(.ay-list__sub, .ay-list__meta, .ay-ids) { color: var(--ay-text-secondary); }
.ay-list__row:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: -2px; border-radius: var(--ay-radius-sm); }
.ay-list__row > svg, .ay-list__row > ayves-icon { width: 22px; height: 22px; color: var(--ay-fill-icon); flex: none; }
.ay-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: break-word; }
.ay-list__title { color: var(--ay-text-primary); font: var(--ay-type-label-l-weight) var(--ay-type-label-l-size) / 1.35 var(--ay-font-sans); }
.ay-list__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.4 var(--ay-font-sans); }
.ay-list__sub .ay-status { gap: 6px; color: var(--ay-text-secondary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / 1.3 var(--ay-font-sans); }
.ay-list__meta { flex: none; color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.2 var(--ay-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ay-list__end { display: flex; flex: none; align-items: center; gap: 12px; }
.ay-list__end .ay-status { font-size: var(--ay-type-label-s-size); }
.ay-list__value { color: var(--ay-text-tertiary); font: 400 14px / 1 var(--ay-font-sans); }
.ay-list__chev, .ay-list__row > .ay-list__chev { width: 16px; height: 16px; color: var(--ay-text-disabled); flex: none; }
.ay-list-title { margin: 24px 16px 8px; color: var(--ay-text-tertiary); font: 500 13px / 1.3 var(--ay-font-sans); }

/* Flush list: rows inside a pane, without a surface of their own. Rows run to the pane's edges with the pane's
   padding (--ay-pane-pad, 24 px; the platform sets 16 px on phones); --glyph indents the hairline past a glyph tile. */
.ay-list--flush { border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.ay-list--flush .ay-list__row { gap: 16px; min-height: 64px; padding: 12px var(--ay-pane-pad, 24px); }
.ay-list--flush .ay-list__row + .ay-list__row::before { left: var(--ay-pane-pad, 24px); right: var(--ay-pane-pad, 24px); }
.ay-pane > .ay-list--flush:last-child { padding-bottom: 12px; }
.ay-list--glyph .ay-list__row + .ay-list__row::before { left: calc(var(--ay-pane-pad, 24px) + var(--ay-glyph-size, 36px) + 16px); }
.ay-list__group { margin: 0; padding: 16px var(--ay-pane-pad, 24px) 4px; color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / var(--ay-type-label-s-line) var(--ay-font-sans); }

/* Glyph tile: an icon on a small square tile at the start of a row. --ink for the item that is next. */
.ay-glyph { flex: none; display: grid; place-items: center; width: var(--ay-glyph-size, 36px); height: var(--ay-glyph-size, 36px); border-radius: var(--ay-radius-sm); background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-glyph > ayves-icon, .ay-glyph > svg { width: var(--ay-size-icon-md); height: var(--ay-size-icon-md); }
.ay-glyph--ink { background: var(--ay-fill-primary); color: var(--ay-text-on-primary); }

/* Calendar day: the day's number over its weekday, in the glyph's place. */
.ay-day { flex: none; display: flex; flex-direction: column; gap: 2px; width: var(--ay-glyph-size, 36px); }
.ay-day__num { color: var(--ay-text-primary); font: var(--ay-type-data-m-weight) 22px / 1 var(--ay-font-mono); letter-spacing: var(--ay-type-data-m-tracking); font-variant-numeric: tabular-nums; }
.ay-day__dow { color: var(--ay-text-tertiary); font: var(--ay-type-caption-weight) var(--ay-type-caption-size) / 1.2 var(--ay-font-sans); }

/* Unread: a small ink square at the end of a row, with role="img" and a label. */
.ay-unread { flex: none; width: 8px; height: 8px; background: var(--ay-text-primary); }

/* ---------- Navigation: sidebar, rail, tab bar -------------------------- */
.ay-nav { display: flex; flex-direction: column; gap: 2px; }
.ay-nav__group { margin: 18px 12px 6px; color: var(--ay-text-tertiary); font: 500 12px / 1.3 var(--ay-font-sans); }
.ay-nav__item {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px;
  border-radius: var(--ay-radius-sm);
  color: var(--ay-text-secondary);
  text-decoration: none;
  font: 500 14px / 1 var(--ay-font-sans);
  transition: background-color var(--ay-duration-instant) var(--ay-ease-standard), color var(--ay-duration-instant) var(--ay-ease-standard);
}
.ay-nav__item:hover { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-nav__item[aria-current="page"], .ay-nav__item.is-active { background: var(--ay-bg-selected); color: var(--ay-text-primary); font-weight: 600; }
.ay-nav__item > svg, .ay-nav__item > ayves-icon { width: 20px; height: 20px; flex: none; color: var(--ay-fill-icon); }
.ay-nav__item[aria-current="page"] > svg, .ay-nav__item[aria-current="page"] > ayves-icon { color: var(--ay-text-primary); }
.ay-nav__count { margin-left: auto; color: var(--ay-text-tertiary); font: 400 12px / 1 var(--ay-font-mono); }
.ay-nav__item[aria-current="page"] .ay-nav__count, .ay-nav__item.is-active .ay-nav__count { color: var(--ay-text-secondary); }
/* Account row at the foot of the sidebar: avatar, name, organisation, and a link to the person's settings. */
.ay-account { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 8px 12px; border-radius: var(--ay-radius-md); color: var(--ay-text-primary); text-decoration: none; transition: background-color var(--ay-duration-instant) var(--ay-ease-standard); }
a.ay-account:hover { background: var(--ay-bg-tonal); }
.ay-account[aria-current="page"] { background: var(--ay-bg-selected); }
.ay-account:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: 2px; }
.ay-account .ay-avatar { --_s: 36px; }
.ay-account > ayves-icon { flex: none; width: var(--ay-size-icon-sm); height: var(--ay-size-icon-sm); color: var(--ay-text-tertiary); }
.ay-account__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1.25 var(--ay-font-sans); }
.ay-account__org { overflow: hidden; color: var(--ay-text-secondary); font: var(--ay-type-caption-weight) var(--ay-type-caption-size) / var(--ay-type-caption-line) var(--ay-font-sans); white-space: nowrap; text-overflow: ellipsis; }

.ay-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ay-rail__item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 4px 0 6px; color: var(--ay-text-secondary); text-decoration: none; font: 500 11.5px / 1.2 var(--ay-font-sans); }
.ay-rail__icon { display: grid; place-items: center; width: 56px; height: 32px; border-radius: var(--ay-radius-full); transition: background-color var(--ay-duration-quick) var(--ay-ease-standard); }
.ay-rail__icon > svg, .ay-rail__icon > ayves-icon { width: 20px; height: 20px; }
.ay-rail__item:hover .ay-rail__icon { background: var(--ay-bg-tonal); }
.ay-rail__item[aria-current="page"] { color: var(--ay-text-primary); }
.ay-rail__item[aria-current="page"] .ay-rail__icon { background: var(--ay-bg-selected); }

.ay-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ay-z-header);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--ay-bg-glass);
  backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  box-shadow: 0 -1px 0 var(--ay-line-hairline);
}
.ay-tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--ay-text-tertiary); text-decoration: none; font: 500 10.5px / 1 var(--ay-font-sans); }
.ay-tabbar__item > svg, .ay-tabbar__item > ayves-icon { width: 24px; height: 24px; }
.ay-tabbar__item[aria-current="page"] { color: var(--ay-text-primary); }

/* ---------- Website header: frosted, compacts on scroll ------------------ */
.ay-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--ay-z-header);
  height: var(--ay-size-header);
  background: transparent;
  transition: height var(--ay-spring-smooth-duration) var(--ay-spring-smooth), background-color var(--ay-duration-standard) var(--ay-ease-standard), box-shadow var(--ay-duration-standard) var(--ay-ease-standard);
}
.ay-header.is-scrolled {
  height: var(--ay-size-header-compact);
  background: var(--ay-bg-glass);
  backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  box-shadow: 0 1px 0 var(--ay-line-hairline);
}
.ay-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.ay-header__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ay-header__link { padding: 8px 12px; border-radius: var(--ay-radius-full); color: var(--ay-text-secondary); text-decoration: none; font: 500 14px / 1 var(--ay-font-sans); transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), color var(--ay-duration-quick) var(--ay-ease-standard); }
.ay-header__link:hover { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
/* The current page is a tonal pill. Up to six links fit from 1.080 px; below that they fold into the menu sheet
   (.ay-sheet__nav), and the primary button (.ay-header__cta) moves into the sheet with them. */
.ay-header__link[aria-current="page"] { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-header .ay-lockup { font-size: 14px; }
.ay-header .ay-lockup ayves-bird { height: 24px; }
.ay-header__cta { margin-left: 8px; }
.ay-header__menu { display: none; }
@media (max-width: 1079px) {
  .ay-header__nav, .ay-header__cta { display: none; }
  .ay-header__menu { display: inline-grid; margin-left: auto; }
}

/* Lockup: the bird and the wordmark */
.ay-lockup { display: inline-flex; align-items: center; gap: 0.62em; color: var(--ay-text-primary); text-decoration: none; font-size: 15px; }
.ay-lockup ayves-bird, .ay-lockup svg { height: 1.6em; width: auto; }
.ay-wordmark { font: 400 1em / 1 var(--ay-font-sans); font-stretch: 100%; letter-spacing: 0.42em; margin-right: -0.42em; text-transform: uppercase; color: var(--ay-text-primary); }

/* ---------- Floating toolbar, composer ---------------------------------- */
.ay-toolbar {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-glass);
  backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate));
  box-shadow: var(--ay-shadow-3);
}
.ay-toolbar__sep { width: 1px; height: 20px; margin: 0 4px; background: var(--ay-line-hairline); }
/* --float: the page's actions, fixed at the bottom and centred on the content area (right of --ay-content-left,
   the width of the sidebar or rail). Hidden on phones, where the actions sit in the page. Toasts rise above it. */
.ay-toolbar--float { position: fixed; z-index: var(--ay-z-header); bottom: 20px; left: calc(var(--ay-content-left, 0px) + (100vw - var(--ay-content-left, 0px)) / 2); transform: translateX(-50%); max-width: calc(100vw - var(--ay-content-left, 0px) - 48px); }
.ay-toolbar--float .ay-btn { --_h: var(--ay-size-control-md); }
.ay-toolbar--float .ay-btn--text { --_px: 12px; }
.ay-toolbar--float .ay-kbd { margin-left: 4px; }
@media (max-width: 599px) { .ay-toolbar--float { display: none; } }

/* ---------- Top bar: sticky over the canvas, its controls in clusters ---------- */
/* With data-ay-header the bar gets .is-scrolled after 8 px and each cluster turns to a glass pill. --glass turns the
   whole bar to glass instead and fades in its title between the back button and the actions (a bar over a pane that
   scrolls, as on an iPad); the page sets .is-scrolled once its large title has gone under the bar. */
.ay-topbar { position: sticky; top: 0; z-index: var(--ay-z-sticky); display: flex; align-items: center; gap: 12px; min-height: var(--ay-size-header); padding: 4px 0 4px 4px; transition: background-color var(--ay-duration-standard) var(--ay-ease-standard), box-shadow var(--ay-duration-standard) var(--ay-ease-standard); }
.ay-topbar__spacer { flex: 1; }
.ay-cluster { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--ay-radius-full); transition: background-color var(--ay-duration-standard) var(--ay-ease-standard), box-shadow var(--ay-duration-standard) var(--ay-ease-standard); }
.ay-topbar.is-scrolled .ay-cluster { background: var(--ay-bg-glass); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); box-shadow: var(--ay-shadow-2); }
.ay-topbar.is-scrolled .ay-search--launcher { box-shadow: var(--ay-shadow-2); }
.ay-topbar__title { flex: 1 1 0; min-width: 0; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; color: var(--ay-text-primary); font: var(--ay-type-title-s-weight) var(--ay-type-title-m-size) / 1 var(--ay-font-sans); opacity: 0; pointer-events: none; transition: opacity var(--ay-duration-quick) var(--ay-ease-standard); }
.ay-topbar.is-scrolled .ay-topbar__title { opacity: 1; }
.ay-topbar--glass.is-scrolled { background: var(--ay-bg-glass); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); box-shadow: 0 1px 0 var(--ay-line-hairline); }
.ay-topbar--glass.is-scrolled .ay-cluster { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.ay-topbar--glass.is-scrolled .ay-search--launcher { box-shadow: var(--ay-shadow-1); }

/* Sticky bar: a view switch that stays under the top bar while the page scrolls (data-ay-sticky), on glass once stuck. */
.ay-stickybar { position: sticky; z-index: 3; top: var(--ay-sticky-top, 0px); padding: 8px 12px 12px; transition: background-color var(--ay-duration-standard) var(--ay-ease-standard), box-shadow var(--ay-duration-standard) var(--ay-ease-standard); }
.ay-stickybar.is-stuck { background: var(--ay-bg-glass); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); box-shadow: 0 1px 0 var(--ay-line-hairline); }

.ay-composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--ay-radius-xl);
  background: var(--ay-bg-surface);
  box-shadow: var(--ay-shadow-2);
}
.ay-composer textarea { flex: 1; min-height: 40px; max-height: 160px; padding: 10px 0; border: 0; background: transparent; resize: none; color: var(--ay-text-primary); font: 400 15px / 1.45 var(--ay-font-sans); outline: none; }
.ay-composer textarea::placeholder { color: var(--ay-text-tertiary); }

/* ---------- Menus, popovers, tooltips ----------------------------------- */
.ay-menu {
  min-width: 220px; padding: 6px;
  border-radius: var(--ay-radius-md);
  background: var(--ay-bg-surface-raised);
  box-shadow: var(--ay-shadow-3);
  transform-origin: var(--ay-origin, top left);
  animation: ay-pop-in var(--ay-spring-snappy-duration) var(--ay-spring-snappy) both;
}
.ay-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--ay-radius-sm);
  background: transparent; color: var(--ay-text-primary);
  font: 400 14px / 1 var(--ay-font-sans); text-align: left;
  cursor: pointer;
}
.ay-menu__item:hover, .ay-menu__item:focus-visible { background: var(--ay-bg-tonal); outline: none; }
.ay-menu__item > svg, .ay-menu__item > ayves-icon { width: 18px; height: 18px; color: var(--ay-fill-icon); }
.ay-menu__item kbd { margin-left: auto; color: var(--ay-text-tertiary); font: 400 12px / 1 var(--ay-font-mono); }
.ay-menu__sep { height: 1px; margin: 6px 4px; background: var(--ay-line-hairline); }

.ay-popover {
  min-width: 240px; max-width: min(360px, calc(100vw - 32px)); padding: 16px;
  border-radius: var(--ay-radius-xl);
  background: var(--ay-bg-surface-raised); color: var(--ay-text-primary);
  box-shadow: var(--ay-shadow-3);
  transform-origin: var(--ay-origin, top left);
  animation: ay-pop-in var(--ay-spring-snappy-duration) var(--ay-spring-snappy) both;
}
.ay-popover[hidden] { display: none; }

.ay-tooltip {
  position: absolute; z-index: var(--ay-z-tooltip);
  padding: 6px 10px;
  border-radius: var(--ay-radius-xs);
  background: var(--ay-bg-inverse); color: var(--ay-text-inverse);
  font: 500 12.5px / 1.3 var(--ay-font-sans);
  pointer-events: none;
  animation: ay-fade-in var(--ay-duration-quick) var(--ay-ease-standard) both;
}

/* ---------- Sheets and dialogs (native <dialog>) ------------------------ */
.ay-sheet, .ay-dialog {
  border: 0; padding: 0;
  color: var(--ay-text-secondary);
  background: var(--ay-bg-surface-raised);
  box-shadow: var(--ay-shadow-4);
  overflow: clip;
}
.ay-dialog { width: min(560px, calc(100vw - 32px)); border-radius: var(--ay-radius-2xl); }
.ay-sheet {
  position: fixed; inset: var(--ay-size-pane-gap) var(--ay-size-pane-gap) var(--ay-size-pane-gap) auto;
  margin: 0; width: min(480px, calc(100vw - 2 * var(--ay-size-pane-gap))); height: auto; max-height: none;
  border-radius: var(--ay-radius-xl);
}
.ay-sheet::backdrop, .ay-dialog::backdrop { background: var(--ay-bg-scrim); backdrop-filter: blur(2px); }
.ay-sheet[open] { animation: ay-sheet-in var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; }
.ay-dialog[open] { animation: ay-dialog-in var(--ay-spring-snappy-duration) var(--ay-spring-snappy) both; }
.ay-sheet[open]::backdrop, .ay-dialog[open]::backdrop { animation: ay-fade-in var(--ay-duration-standard) var(--ay-ease-standard) both; }
.ay-sheet__header, .ay-dialog__header { display: flex; align-items: center; gap: 12px; padding: 20px 16px 8px 24px; }
.ay-sheet__title, .ay-dialog__title { flex: 1; margin: 0; color: var(--ay-text-primary); font: var(--ay-type-headline-s-weight) var(--ay-type-headline-s-size) / var(--ay-type-headline-s-line) var(--ay-font-sans); letter-spacing: var(--ay-type-headline-s-tracking); }
.ay-sheet__body, .ay-dialog__body { padding: 8px 24px 24px; }
.ay-sheet[open] { display: flex; flex-direction: column; }
.ay-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ay-sheet__body > :where(* + *) { margin-top: 20px; }
.ay-sheet__body--flush { padding: 0 0 16px; }
/* The footer holds the sheet's actions, the primary last; on phones they stack full width, the primary at the bottom. */
.ay-sheet__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px max(24px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ay-line-hairline); }
@media (max-width: 599px) { .ay-sheet__footer { flex-direction: column-reverse; } .ay-sheet__footer .ay-btn { width: 100%; } }
.ay-sheet__lead { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-body-m-weight) var(--ay-type-body-m-size) / var(--ay-type-body-m-line) var(--ay-font-sans); }
.ay-sheet__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 0; padding: 16px 0; border-block: 1px solid var(--ay-line-hairline); }
.ay-sheet__facts dt { color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1.4 var(--ay-font-sans); }
.ay-sheet__facts dd { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.4 var(--ay-font-sans); }
/* Choices: radio or check rows in a fieldset, split by hairlines. */
.ay-choices { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; }
.ay-choices legend { margin-bottom: 4px; padding: 0; color: var(--ay-text-primary); font: var(--ay-type-label-m-weight) var(--ay-type-label-m-size) / 1.3 var(--ay-font-sans); }
.ay-choices .ay-choice + .ay-choice { border-top: 1px solid var(--ay-line-hairline); }
/* A pane copied into a sheet (the inbox on narrow windows) drops its own surface: the sheet is the surface. */
.ay-sheet [data-ay-detail] { border-radius: 0; background: transparent; box-shadow: none; }
.ay-sheet [data-ay-detail] > .ay-pane__body { padding-top: 8px; }
.ay-sheet__nav { display: flex; flex-direction: column; }
.ay-sheet__nav a { display: flex; align-items: center; justify-content: space-between; min-height: var(--ay-size-tap); padding: 12px 0; border-bottom: 1px solid var(--ay-line-hairline); color: var(--ay-text-primary); text-decoration: none; font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / 1.2 var(--ay-font-sans); }
.ay-sheet__nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; background: var(--ay-text-primary); }
.ay-sheet__body > .ay-sheet__nav + .ay-btn { margin-top: 24px; }
.ay-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 24px 24px; }
@media (max-width: 599px) {
  /* On phones sheets and dialogs rise from the bottom, carry a grabber and close with a swipe down. */
  .ay-sheet, .ay-dialog { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; margin: 0; border-radius: var(--ay-radius-xl) var(--ay-radius-xl) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); touch-action: pan-x; }
  .ay-sheet[open], .ay-dialog[open] { animation: ay-sheet-up var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; }
  .ay-sheet::before, .ay-dialog::before { content: ""; display: block; width: 36px; height: 5px; margin: 8px auto 0; border-radius: var(--ay-radius-full); background: var(--ay-line-strong); }
  .ay-dialog__actions { flex-direction: column-reverse; align-items: stretch; }
  .ay-sheet.is-dragging, .ay-dialog.is-dragging { animation: none; transition: none; }
}

/* ---------- Toast and banner ------------------------------------------- */
.ay-toast-region { position: fixed; left: var(--ay-toast-x, 50%); bottom: calc(var(--ay-toast-lift, 0px) + 24px + env(safe-area-inset-bottom, 0px)); z-index: var(--ay-z-toast); display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
/* Toasts rise above a floating toolbar, centred on the content area, and above the tab bar on phones. */
@media (min-width: 600px) { body:has(.ay-toolbar--float) .ay-toast-region { --ay-toast-x: calc(var(--ay-content-left, 0px) + (100vw - var(--ay-content-left, 0px)) / 2); --ay-toast-lift: calc(var(--ay-size-control-lg) + 12px); } }
@media (max-width: 599px) {
  .ay-toast-region { width: calc(100% - 32px); }
  .ay-toast { max-width: 100%; }
  body:has(.ay-tabbar:not(.ay-tabbar--contained)) .ay-toast-region { --ay-toast-lift: 72px; }
}
.ay-toast {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 8px 8px 20px;
  border-radius: var(--ay-radius-full);
  background: var(--ay-bg-inverse); color: var(--ay-text-inverse);
  box-shadow: var(--ay-shadow-3);
  font: 500 14px / 1.3 var(--ay-font-sans);
  pointer-events: auto;
  animation: ay-toast-in var(--ay-spring-snappy-duration) var(--ay-spring-snappy) both;
}
.ay-toast .ay-btn { --_bg: transparent; --_fg: var(--ay-text-inverse); }
.ay-toast .ay-btn { --_bg-hover: color-mix(in srgb, var(--ay-text-inverse) 14%, transparent); }
.ay-toast.is-leaving { animation: ay-toast-out var(--ay-duration-standard) var(--ay-ease-accelerate) both; }

.ay-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--ay-radius-lg); background: var(--ay-bg-band); color: var(--ay-text-primary); font: 400 14px / 1.5 var(--ay-font-sans); }
.ay-banner > svg, .ay-banner > ayves-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ay-banner[data-status="critical"] { background: var(--ay-status-critical-soft); color: var(--ay-status-critical-on-soft); }
.ay-banner[data-status="attention"] { background: var(--ay-status-attention-soft); color: var(--ay-status-attention-on-soft); }
.ay-banner[data-status="clear"] { background: var(--ay-status-clear-soft); color: var(--ay-status-clear-on-soft); }
.ay-banner[data-status="info"] { background: var(--ay-status-info-soft); color: var(--ay-status-info-on-soft); }
.ay-banner[data-status="monitor"] { background: var(--ay-status-monitor-soft); color: var(--ay-status-monitor-on-soft); }
.ay-banner[data-status="unrateable"] { background: var(--ay-status-unrateable-soft); color: var(--ay-status-unrateable-on-soft); }

/* ---------- Command palette: search and commands from any screen (Ctrl K or Cmd K) ---------- */
/* AYVES.palette() builds it: a modal <dialog class="ay-dialog ay-palette"> on a page, or, with { within },
   .ay-palette--contained inside a device frame. A combobox with a listbox: arrow keys move, Enter opens, Esc closes. */
.ay-palette { width: min(640px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 48px)); margin: 12vh auto auto; border-radius: var(--ay-radius-xl); }
.ay-palette[open], .ay-palette--contained { display: flex; flex-direction: column; }
.ay-palette__field { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--ay-line-hairline); color: var(--ay-text-tertiary); }
.ay-palette__field > ayves-icon { width: var(--ay-size-icon-md); height: var(--ay-size-icon-md); }
.ay-palette__input { flex: 1; min-width: 0; height: 100%; min-height: 60px; border: 0; background: transparent; color: var(--ay-text-primary); font: var(--ay-type-body-l-weight) var(--ay-type-body-l-size) / 1.2 var(--ay-font-sans); outline: none; }
.ay-palette .ay-palette__input:focus-visible { outline: none; }
.ay-palette__input::placeholder { color: var(--ay-text-tertiary); }
.ay-palette__esc { position: relative; border: 0; cursor: pointer; }
.ay-palette__esc::after { content: ""; position: absolute; inset: -8px; }
.ay-palette__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.ay-palette__group { padding: 12px 12px 6px; color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / 1.3 var(--ay-font-sans); }
.ay-palette__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 8px 12px; border: 0; border-radius: var(--ay-radius-md); background: transparent; color: var(--ay-text-primary); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ay-palette__item[aria-selected="true"] { background: var(--ay-bg-selected); }
.ay-palette__item .ay-glyph { --ay-glyph-size: 32px; }
.ay-palette__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ay-palette__label { font: var(--ay-type-label-l-weight) var(--ay-type-label-l-size) / 1.3 var(--ay-font-sans); }
.ay-palette__sub { overflow: hidden; color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.3 var(--ay-font-sans); white-space: nowrap; text-overflow: ellipsis; }
.ay-palette__item[aria-selected="true"] .ay-palette__sub { color: var(--ay-text-secondary); }
.ay-palette__item .ay-status { flex: none; font-size: var(--ay-type-label-s-size); }
.ay-palette__empty { padding: 32px 16px; color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); text-align: center; }
.ay-palette__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 20px; border-top: 1px solid var(--ay-line-hairline); color: var(--ay-text-tertiary); font: var(--ay-type-caption-weight) var(--ay-type-caption-size) / 1.3 var(--ay-font-sans); }
.ay-palette__foot > span { display: inline-flex; align-items: center; gap: 6px; }
.ay-palette__foot > span:last-child:not(:first-child) { margin-left: auto; }
@media (max-width: 599px) {
  .ay-palette { margin-top: 8px; max-height: calc(100dvh - 16px); }
  .ay-palette__foot > span:last-child:not(:first-child) { display: none; }
}

/* ---------- Overlays inside a device frame or an app box ---------------------------- */
/* A picture of the platform cannot use <dialog> or the page's toast region: they would cover the whole page.
   .ay-overlay fills the nearest positioned box; sheets, the palette and toasts are drawn inside it.
   --ay-overlay-top keeps them under a status bar. */
.ay-overlay { position: absolute; inset: 0; z-index: var(--ay-z-overlay); pointer-events: none; }
.ay-scrim { position: absolute; inset: 0; background: var(--ay-bg-scrim); pointer-events: auto; }
.ay-scrim--light { background: var(--ay-bg-tonal-hover); }
.ay-sheet.ay-sheet--contained { position: absolute; inset: calc(var(--ay-overlay-top, 0px) + var(--ay-size-pane-gap)) var(--ay-size-pane-gap) var(--ay-size-pane-gap) auto; display: flex; flex-direction: column; width: 480px; max-width: calc(100% - 2 * var(--ay-size-pane-gap)); max-height: none; margin: 0; padding: 0; border-radius: var(--ay-radius-xl); pointer-events: auto; touch-action: auto; animation: none; }
.ay-sheet.ay-sheet--contained::before { content: none; }
.ay-palette.ay-palette--contained { position: absolute; left: 50%; top: calc(var(--ay-overlay-top, 0px) + 72px); width: min(600px, calc(100% - 48px)); max-height: calc(100% - var(--ay-overlay-top, 0px) - 144px); margin: 0 0 0 max(-300px, calc(-50% + 24px)); border-radius: var(--ay-radius-xl); background: var(--ay-bg-surface-raised); box-shadow: var(--ay-shadow-4); color: var(--ay-text-secondary); overflow: clip; pointer-events: auto; }
.ay-toast-region.ay-toast-region--contained { position: absolute; z-index: var(--ay-z-toast); left: 50%; bottom: 32px; width: max-content; max-width: calc(100% - 48px); }

/* ---------- Inbox: the list on the left, the open item on the right ----------------------- */
/* data-ay-inbox="sheet-id": a row ([data-ay-item]) opens its detail ([data-ay-detail]) beside the list; below
   1.100 px the detail column goes and the row opens the detail in that sheet instead. Each item says why the
   person sees it (.ay-why). */
.ay-inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: var(--ay-size-pane-gap); align-items: start; }
.ay-inbox__list { position: sticky; top: calc(var(--ay-size-header) + 4px); }
.ay-inbox .ay-list__row { align-items: flex-start; }
.ay-inbox .ay-list__title { font-weight: var(--ay-weight-medium); }
.ay-inbox .is-unread .ay-list__title { font-weight: var(--ay-weight-semibold); }
.ay-inbox__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.ay-inbox__tags .ay-status { font-size: var(--ay-type-label-s-size); }
.ay-inbox__kind { color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / var(--ay-type-label-s-line) var(--ay-font-sans); }
.ay-list__row[aria-current="true"] .ay-inbox__kind { color: var(--ay-text-secondary); }
[data-ay-detail][hidden] { display: none; }
.ay-why { margin-top: 20px; padding: 16px 20px; border-radius: var(--ay-radius-lg); background: var(--ay-bg-band); }
.ay-why > :first-child { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-title-s-weight) var(--ay-type-title-s-size) / var(--ay-type-title-s-line) var(--ay-font-sans); }
.ay-why p { margin: 4px 0 0; color: var(--ay-text-secondary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.55 var(--ay-font-sans); }
/* List and detail side by side from bp-expanded (840); below it the detail opens as a sheet. */
@media (max-width: 839px) {
  .ay-inbox { grid-template-columns: minmax(0, 1fr); }
  .ay-inbox__list { position: static; }
  .ay-inbox__detail { display: none; }
}

/* ---------- Search results page ---------------------------------------------------- */
/* The query in a large field, filters as chips with counts, results grouped by kind in a flush list with their
   register identifiers in Plex Mono (.ay-ids) and the matched words in <mark>. */
.ay-querybar { display: flex; align-items: center; gap: 12px; }
.ay-querybar .ay-search { flex: 1; max-width: 720px; height: var(--ay-size-control-lg); background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-1); }
.ay-querybar .ay-search input { font-size: var(--ay-type-body-l-size); }
.ay-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-filters .ay-chip .ay-mono { color: inherit; opacity: 0.72; }
.ay-result.ay-list__row { align-items: flex-start; }
.ay-result .ay-list__sub { display: block; }
/* The matched words: weight and an underline, no fill, so they read on a selected row too. */
.ay-result mark { background: transparent; color: var(--ay-text-primary); font-weight: var(--ay-weight-semibold); text-decoration: underline; text-underline-offset: 4px; }
.ay-ids { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.45 var(--ay-font-mono); }
.ay-empty { padding: 32px var(--ay-pane-pad, 24px); color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); }
@media (max-width: 599px) { .ay-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; } }

/* ---------- Stage: screens that push in from the right and pop back ------------------- */
/* An app box keeps its screens (.ay-stage__page) in a clipped stage. AYVES.moveScreen() moves between two of them on
   spring-smooth with the View Transitions API, or the Web Animations API where it is missing; AYVES.edgeSwipe()
   lets a finger pull the screen back from the left edge. Reduced motion swaps them at once. */
.ay-stage { position: relative; overflow: hidden; isolation: isolate; }
.ay-stage__page { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ay-stage__page::-webkit-scrollbar { display: none; }
.ay-stage__page[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.ay-stage__page.is-shadowed { box-shadow: var(--ay-shadow-4); }
:root[data-ay-nav] { view-transition-name: none; }
:root[data-ay-nav] .ay-stage { view-transition-name: ay-stage; }
:root[data-ay-nav] .ay-topbar { view-transition-name: ay-topbar; }
:root[data-ay-nav]::view-transition-group(ay-stage) { overflow: clip; border-radius: var(--ay-nav-radius, 0); animation-duration: var(--ay-spring-smooth-duration); }
:root[data-ay-nav]::view-transition-old(ay-stage), :root[data-ay-nav]::view-transition-new(ay-stage) { mix-blend-mode: normal; height: 100%; }
:root[data-ay-nav="push"]::view-transition-new(ay-stage) { animation: ay-push-in var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; box-shadow: var(--ay-shadow-4); }
:root[data-ay-nav="push"]::view-transition-old(ay-stage) { animation: ay-push-out var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; }
:root[data-ay-nav="pop"]::view-transition-old(ay-stage) { animation: ay-pop-out var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; z-index: 1; box-shadow: var(--ay-shadow-4); }
:root[data-ay-nav="pop"]::view-transition-new(ay-stage) { animation: ay-pop-back var(--ay-spring-smooth-duration) var(--ay-spring-smooth) both; }
:root[data-ay-nav="fade"]::view-transition-old(ay-stage) { animation: ay-fade-out var(--ay-duration-standard) var(--ay-ease-standard) both; }
:root[data-ay-nav="fade"]::view-transition-new(ay-stage) { animation: ay-fade-in var(--ay-duration-standard) var(--ay-ease-standard) both; }
:root[data-ay-nav]::view-transition-group(ay-topbar), :root[data-ay-nav]::view-transition-old(ay-topbar), :root[data-ay-nav]::view-transition-new(ay-topbar) { animation-duration: var(--ay-duration-standard); animation-timing-function: var(--ay-ease-standard); }

/* ---------- Avatar ------------------------------------------------------ */
.ay-avatar { display: inline-grid; place-items: center; flex: none; width: var(--_s, 32px); height: var(--_s, 32px); border-radius: 50%; background: var(--ay-bg-tonal-hover); color: var(--ay-text-primary); font: 600 calc(var(--_s, 32px) * 0.38) / 1 var(--ay-font-sans); overflow: hidden; }
.ay-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ay-avatar--lg { --_s: 48px; }

/* ---------- Evidence card: a finding and the passage it came from -------- */
.ay-evidence { display: flex; flex-direction: column; gap: 14px; }
.ay-evidence__finding { color: var(--ay-text-primary); font: var(--ay-type-title-m-weight) var(--ay-type-title-m-size) / var(--ay-type-title-m-line) var(--ay-font-sans); }
.ay-evidence__sources { display: flex; flex-wrap: wrap; gap: 6px; }
.ay-source {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; max-width: 100%; padding: 5px 10px;
  text-align: left; line-height: 1.3;
  border: 0; border-radius: var(--ay-radius-full);
  background: var(--ay-bg-tonal);
  color: var(--ay-text-secondary);
  font: 400 var(--ay-type-data-xs-size) / 1.3 var(--ay-font-mono);
  cursor: pointer;
  transition: background-color var(--ay-duration-quick) var(--ay-ease-standard), color var(--ay-duration-quick) var(--ay-ease-standard);
}
.ay-source:hover { background: var(--ay-bg-tonal-hover); color: var(--ay-text-primary); }
.ay-source[aria-expanded="true"] { background: var(--ay-fill-primary); color: var(--ay-text-on-primary); }
.ay-source::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; opacity: 0.7; }
.ay-passage {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--ay-spring-smooth-duration) var(--ay-spring-smooth);
}
.ay-passage.is-open { grid-template-rows: 1fr; }
.ay-passage__inner { overflow: hidden; }
.ay-passage__quote { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--ay-radius-md); background: var(--ay-bg-surface-sunken); box-shadow: var(--ay-shadow-0); color: var(--ay-text-primary); font: 400 14px / 1.55 var(--ay-font-sans); }
.ay-passage__quote mark { background: rgb(17 17 17 / 0.1); color: inherit; padding: 0 2px; }
[data-theme="dark"] .ay-passage__quote mark { background: var(--ay-bg-tonal-pressed); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .ay-passage__quote mark { background: var(--ay-bg-tonal-pressed); } }
.ay-passage__cite { margin-top: 8px; color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-xs-size) / 1.5 var(--ay-font-mono); }

/* ---------- Engagement ladder: steps as cells --------------------------- */
.ay-ladder { display: grid; grid-template-columns: repeat(var(--_n, 6), minmax(0, 1fr)); gap: 0; counter-reset: step; }
.ay-ladder__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 12px; color: var(--ay-text-tertiary); font: 500 12.5px / 1.35 var(--ay-font-sans); }
.ay-ladder__step::before { content: ""; width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px var(--ay-chart-3); background: var(--ay-bg-surface); position: relative; z-index: 1; }
.ay-ladder__step::after { content: ""; position: absolute; top: 6.25px; left: 14px; right: 0; height: 1.5px; background: var(--ay-chart-3); }
.ay-ladder__step:last-child::after { display: none; }
.ay-ladder__step.is-done { color: var(--ay-text-secondary); }
.ay-ladder__step.is-done::before { background: var(--ay-chart-2); box-shadow: none; }
.ay-ladder__step.is-done::after { background: var(--ay-chart-2); }
.ay-ladder__step.is-current { color: var(--ay-text-primary); font-weight: 600; }
.ay-ladder__step.is-current::before { background: var(--ay-text-primary); box-shadow: 0 0 0 4px var(--ay-bg-selected); }
.ay-ladder__date { color: var(--ay-text-tertiary); font: 400 11.5px / 1.3 var(--ay-font-mono); }
/* Sizes: --lg for a case page, --xl for the website. They are written with :where() so the vertical layout
   below can still set its own spacing. */
:where(.ay-ladder--lg) > .ay-ladder__step { gap: 8px; font-size: var(--ay-type-label-m-size); }
/* Vertical ladder: for narrow places. Set .ay-ladder--vertical, or put the ladder in .ay-cq and it turns
   vertical when that container is under 480 px; on phones it always runs down the screen. */
.ay-cq { container-type: inline-size; }
.ay-ladder--vertical { grid-template-columns: minmax(0, 1fr); }
.ay-ladder--vertical .ay-ladder__step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 0 0 16px; }
.ay-ladder--vertical .ay-ladder__step::before { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
.ay-ladder--vertical .ay-ladder__step::after { top: 17px; bottom: 0; left: 6.25px; right: auto; width: 1.5px; height: auto; }
.ay-ladder--vertical .ay-ladder__step:last-child { padding-bottom: 0; }
.ay-ladder--vertical .ay-ladder__date { grid-column: 3; grid-row: 1; text-align: right; }
@container (max-width: 479px) {
  .ay-ladder { grid-template-columns: minmax(0, 1fr); }
  .ay-ladder__step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 0 0 16px; }
  .ay-ladder__step::before { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
  .ay-ladder__step::after { top: 17px; bottom: 0; left: 6.25px; right: auto; width: 1.5px; height: auto; }
  .ay-ladder__step:last-child { padding-bottom: 0; }
  .ay-ladder__date { grid-column: 3; grid-row: 1; text-align: right; }
}
@media (max-width: 599px) {
  .ay-ladder { grid-template-columns: minmax(0, 1fr); }
  .ay-ladder__step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 0 0 16px; }
  .ay-ladder__step::before { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
  .ay-ladder__step::after { top: 17px; bottom: 0; left: 6.25px; right: auto; width: 1.5px; height: auto; }
  .ay-ladder__step:last-child { padding-bottom: 0; }
  .ay-ladder__date { grid-column: 3; grid-row: 1; text-align: right; }
}

/* Website size (--xl): larger steps, a sentence under each, and a vertical ladder below 900 px. */
:where(.ay-ladder--xl) > .ay-ladder__step { gap: 12px; padding-right: 24px; color: var(--ay-text-tertiary); font: 500 15px / 1.35 var(--ay-font-sans); }
.ay-ladder--xl > .ay-ladder__step:is(.is-done, .is-current) { color: var(--ay-text-primary); }
.ay-ladder--xl .ay-ladder__date { font-size: 12px; }
@media (max-width: 899px) {
  .ay-ladder.ay-ladder--xl { grid-template-columns: minmax(0, 1fr); }
  .ay-ladder--xl > .ay-ladder__step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 4px; align-items: baseline; padding: 0 0 22px; }
  .ay-ladder--xl > .ay-ladder__step::before { grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .ay-ladder--xl > .ay-ladder__step::after { top: 18px; bottom: 0; left: 6.25px; right: auto; width: 1.5px; height: auto; }
  .ay-ladder--xl > .ay-ladder__step:last-child { padding-bottom: 0; }
  .ay-ladder--xl .ay-ladder__date { grid-column: 3; grid-row: 1; text-align: right; }
  .ay-ladder--xl .ay-ladder__text { grid-column: 2 / -1; }
}

/* The ladder's slots: the label, a date, and a line of text under each step (who acts, or what the step means). */
.ay-ladder__label { min-width: 0; }
.ay-ladder__text { color: var(--ay-text-tertiary); font: var(--ay-type-caption-weight) var(--ay-type-caption-size) / 1.35 var(--ay-font-sans); }
.ay-ladder__step.is-current .ay-ladder__text { color: var(--ay-text-secondary); font-weight: var(--ay-weight-regular); }
@container (max-width: 479px) { .ay-ladder__text { grid-column: 2 / -1; } }
@media (max-width: 599px) { .ay-ladder__text { grid-column: 2 / -1; } }
.ay-ladder--vertical .ay-ladder__text { grid-column: 2 / -1; }
.ay-ladder--xl .ay-ladder__text { color: var(--ay-text-secondary); font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); }
.ay-ladder--xl .ay-ladder__step.is-current .ay-ladder__text { font-weight: 400; }

/* ---------- Next step: a band with a date tile ------------------------------- */
/* After a ladder it keeps 24 px of air. --surface puts it on a pane surface, as the case band under a company's name. */
.ay-next { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 16px 20px; border-radius: var(--ay-radius-lg); background: var(--ay-bg-band); }
.ay-ladder + .ay-next { margin-top: 24px; }
.ay-next__date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: var(--ay-radius-md); background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-1); }
.ay-next__month { color: var(--ay-text-tertiary); font: var(--ay-type-label-s-weight) var(--ay-type-label-s-size) / 1 var(--ay-font-sans); }
.ay-next__day { color: var(--ay-text-primary); font: var(--ay-type-data-m-weight) var(--ay-type-data-m-size) / 1 var(--ay-font-mono); letter-spacing: var(--ay-type-data-m-tracking); }
.ay-next__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.ay-next__title { color: var(--ay-text-primary); font: var(--ay-type-title-s-weight) var(--ay-type-title-s-size) / 1.4 var(--ay-font-sans); }
.ay-next__detail { margin: 0; color: var(--ay-text-secondary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); }
.ay-next__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-next--surface { background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-0); }
.ay-next--surface .ay-next__date { background: var(--ay-bg-band); box-shadow: none; }
@media (max-width: 599px) {
  .ay-next { padding: 16px; }
  .ay-next__text { flex-basis: 180px; }
  .ay-next__actions { width: 100%; }
  .ay-next__actions .ay-btn { flex: 1; }
}

/* ---------- Criteria: what closes a case, each with its status ---------------- */
.ay-criteria { margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.ay-criterion { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 16px 0; }
.ay-criterion + .ay-criterion { border-top: 1px solid var(--ay-line-hairline); }
.ay-criterion__name { color: var(--ay-text-primary); font: var(--ay-type-title-s-weight) var(--ay-type-title-s-size) / 1.4 var(--ay-font-sans); }
.ay-criterion__text { margin: 0; color: var(--ay-text-secondary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); }
.ay-criterion .ay-status { font-size: var(--ay-type-label-s-size); }
@container (max-width: 520px) {
  .ay-criterion { grid-template-columns: minmax(0, 1fr) auto; }
  .ay-criterion__text { grid-column: 1 / -1; }
}

/* ---------- Timeline: dated items whose glyphs are joined by a line --------------- */
/* The date sits on the right; below 480 px of the timeline's own width it moves above the item. */
.ay-timeline { margin: 0; padding: 0 0 8px; list-style: none; container-type: inline-size; }
.ay-timeline__item { position: relative; display: grid; grid-template-columns: var(--ay-glyph-size, 36px) minmax(0, 1fr) auto; column-gap: 16px; padding: 12px var(--ay-pane-pad, 24px); }
.ay-timeline__item::before { content: ""; position: absolute; left: calc(var(--ay-pane-pad, 24px) + var(--ay-glyph-size, 36px) / 2 - 0.5px); top: 0; bottom: 0; width: 1px; background: var(--ay-line-strong); }
.ay-timeline__item:first-child::before { top: calc(12px + var(--ay-glyph-size, 36px) / 2); }
.ay-timeline__item:last-child::before { bottom: calc(100% - 12px - var(--ay-glyph-size, 36px) / 2); }
.ay-timeline__item:only-child::before { display: none; }
.ay-timeline__item > .ay-glyph { position: relative; z-index: 1; grid-row: 1 / span 2; background: var(--ay-bg-surface-sunken); box-shadow: var(--ay-shadow-0); }
.ay-timeline__item > .ay-glyph--ink { background: var(--ay-fill-primary); box-shadow: none; }
.ay-timeline__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 6px; }
.ay-timeline__kind { color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-label-s-size) / 1.3 var(--ay-font-sans); }
.ay-timeline__title { color: var(--ay-text-primary); font: var(--ay-type-label-l-weight) var(--ay-type-label-l-size) / 1.4 var(--ay-font-sans); }
.ay-timeline__detail { margin: 0; color: var(--ay-text-secondary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); }
.ay-timeline__when { padding-top: 8px; color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1.3 var(--ay-font-mono); white-space: nowrap; text-align: right; }
.ay-timeline__item.is-next .ay-timeline__when { color: var(--ay-text-primary); }
@container (max-width: 480px) {
  .ay-timeline__item { grid-template-columns: var(--ay-glyph-size, 36px) minmax(0, 1fr); }
  .ay-timeline__when { grid-column: 2; grid-row: 1; padding-top: 2px; text-align: left; }
  .ay-timeline__body { grid-column: 2; grid-row: 2; padding-top: 2px; }
}

/* ---------- Message thread: bubbles, the person's own in ink --------------------- */
.ay-thread { display: flex; flex-direction: column; gap: 16px; padding: 8px var(--ay-pane-pad, 24px) 16px; }
.ay-thread__day { align-self: center; color: var(--ay-text-tertiary); font: var(--ay-type-data-xs-weight) var(--ay-type-data-xs-size) / 1 var(--ay-font-mono); }
.ay-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 88%; }
.ay-msg--me { align-self: flex-end; align-items: flex-end; }
.ay-msg__meta { display: flex; gap: 8px; color: var(--ay-text-tertiary); font: var(--ay-type-label-m-weight) var(--ay-type-caption-size) / 1.3 var(--ay-font-sans); }
.ay-msg__meta time { font-family: var(--ay-font-mono); font-weight: var(--ay-weight-regular); }
.ay-msg__bubble { margin: 0; padding: 12px 16px; border-radius: var(--ay-radius-lg) var(--ay-radius-lg) var(--ay-radius-lg) var(--ay-radius-xs); background: var(--ay-bg-tonal); color: var(--ay-text-primary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.5 var(--ay-font-sans); white-space: pre-line; }
.ay-msg--me .ay-msg__bubble { border-radius: var(--ay-radius-lg) var(--ay-radius-lg) var(--ay-radius-xs) var(--ay-radius-lg); background: var(--ay-fill-primary); color: var(--ay-text-on-primary); }
/* A message that just arrived rises in as a toast does, from its own corner. */
.ay-msg.is-new { animation: ay-toast-in var(--ay-spring-snappy-duration) var(--ay-spring-snappy) both; transform-origin: bottom left; }
.ay-msg--me.is-new { transform-origin: bottom right; }
/* Typing: three cells that breathe while a reply is written. Give it role="img" and a label. */
.ay-typing { display: inline-flex; gap: 4px; padding: 16px; border-radius: var(--ay-radius-lg) var(--ay-radius-lg) var(--ay-radius-lg) var(--ay-radius-xs); background: var(--ay-bg-tonal); }
.ay-typing > i { width: 6px; height: 6px; background: var(--ay-text-tertiary); animation: ay-breathe var(--ay-duration-breath) var(--ay-ease-standard) infinite; }
.ay-typing > i:nth-child(2) { animation-delay: calc(var(--ay-duration-stagger) * 4); }
.ay-typing > i:nth-child(3) { animation-delay: calc(var(--ay-duration-stagger) * 8); }

/* ---------- Skeleton: cells that breathe, never a shimmer gradient ------- */
.ay-skeleton { border-radius: var(--ay-radius-xs); background: var(--ay-bg-tonal-hover); animation: ay-breathe var(--ay-duration-breath) var(--ay-ease-standard) infinite; }

/* ---------- Device frames for product pictures on the website ----------- */
/* Each frame knows the size of its screen in points (--ay-screen-w by --ay-screen-h): a current iPad at 1.180 by
   820 (--portrait turns it upright), an iPhone at 390 by 845, a laptop at 1.200 by 750. The screen takes that shape;
   the screen kit below draws the live screen at that size and scales it into the frame. */
.ay-device { --ay-screen-w: 1200; --ay-screen-h: 900; position: relative; border-radius: var(--ay-radius-2xl); background: var(--ay-neutral-3); padding: 12px; box-shadow: 0 0 0 1px rgb(17 17 17 / 0.08), 0 40px 80px -30px rgb(17 17 17 / 0.45), 0 18px 36px -18px rgb(17 17 17 / 0.3); }
.ay-device__screen { position: relative; overflow: hidden; border-radius: calc(var(--ay-radius-2xl) - 12px); background: var(--ay-bg-canvas); aspect-ratio: var(--ay-screen-w) / var(--ay-screen-h); }
.ay-device--tablet { --ay-screen-w: 1180; --ay-screen-h: 820; }
.ay-device--tablet.ay-device--portrait { --ay-screen-w: 820; --ay-screen-h: 1180; }
.ay-device--phone { --ay-screen-w: 390; --ay-screen-h: 845; width: 320px; border-radius: 52px; padding: 11px; }
.ay-device--phone .ay-device__screen { border-radius: 42px; }
.ay-device--laptop { --ay-screen-w: 1200; --ay-screen-h: 750; border-radius: 22px 22px 6px 6px; padding: 10px 10px 18px; }
.ay-device--laptop .ay-device__screen { border-radius: 10px; }

/* ---------- Screen kit: a live screen inside a device frame ------------------------ */
/* .ay-screen is built at the frame's size and scaled to it with --s (data-ay-screen sets it from the frame's width).
   Inside it the type sizes that grow with the window follow the screen's width instead (see the tokens), so the
   picture looks the same in every window. The parts below draw a phone or tablet screen that stays inside its frame. */
.ay-screen { position: relative; width: calc(var(--ay-screen-w) * 1px); height: calc(var(--ay-screen-h) * 1px); overflow: hidden; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.ay-screen--phone { display: flex; flex-direction: column; background: var(--ay-bg-page); }
/* The status bar: the time on the left, the battery on the right, in Plex Mono as every number is. */
.ay-screen__status { display: flex; flex: none; align-items: center; gap: 12px; height: 24px; padding: 0 24px; color: var(--ay-text-primary); font: var(--ay-weight-medium) var(--ay-type-data-xs-size) / 1 var(--ay-font-mono); font-variant-numeric: tabular-nums; }
.ay-screen__status > :last-child:not(:first-child) { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ay-screen__battery { display: inline-block; width: 18px; height: 10px; box-shadow: inset 0 0 0 1.5px var(--ay-text-primary); }
.ay-screen--phone .ay-screen__status { height: 50px; padding: 14px 30px 0; font-size: 15px; }
/* The home indicator at the foot of the screen. */
.ay-screen__home { position: absolute; z-index: var(--ay-z-toast); left: 50%; bottom: 8px; width: min(300px, 36%); height: 5px; border-radius: var(--ay-radius-full); background: var(--ay-text-primary); opacity: 0.8; transform: translateX(-50%); pointer-events: none; }
/* A phone screen: the large title with a line under it, an inset list, a source, and the tab bar kept in the frame. */
.ay-screen--phone .ay-largetitle { padding: 10px 20px 6px; }
.ay-screen__sub { padding: 0 20px 14px; color: var(--ay-text-tertiary); font: var(--ay-type-body-s-weight) var(--ay-type-body-s-size) / 1.45 var(--ay-font-sans); }
.ay-screen__part { padding: 0 20px 16px; }
.ay-screen--phone > .ay-list { margin: 0 16px; }
.ay-screen--phone > .ay-list .ay-list__row { align-items: flex-start; padding: 14px 16px; }
.ay-screen--phone > .ay-cite { margin: 14px 20px 0; }
.ay-tabbar.ay-tabbar--contained { position: absolute; z-index: 1; padding: 8px 8px 30px; }

/* ---------- Large title that gives way to the bar on scroll (phones) ----- */
.ay-largetitle { padding: 8px 20px 12px; color: var(--ay-text-primary); font: var(--ay-type-headline-l-weight) var(--ay-type-headline-l-size) / var(--ay-type-headline-l-line) var(--ay-font-sans); letter-spacing: var(--ay-type-headline-l-tracking); }
.ay-appbar { position: sticky; top: 0; z-index: var(--ay-z-sticky); display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px; transition: background-color var(--ay-duration-standard) var(--ay-ease-standard), box-shadow var(--ay-duration-standard) var(--ay-ease-standard); }
.ay-appbar__title { flex: 1; text-align: center; color: var(--ay-text-primary); font: 600 16px / 1 var(--ay-font-sans); opacity: 0; transition: opacity var(--ay-duration-quick) var(--ay-ease-standard); }
.ay-appbar.is-scrolled { background: var(--ay-bg-glass); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); box-shadow: 0 1px 0 var(--ay-line-hairline); }
.ay-appbar.is-scrolled .ay-appbar__title { opacity: 1; }

/* ---------- Cell meter (styling for <ayves-cells>) ---------------------- */
ayves-cells { display: block; color: var(--ay-text-primary); }

/* ---------- Chart frame: a title, the chart, the source -------------------- */
/* The chart itself is <ayves-chart> (ECharts). The frame carries the words, so a chart cut out
   of the page still says what it shows and where the numbers come from. */
.ay-chart { display: grid; gap: var(--ay-space-16); margin: 0; min-width: 0; align-content: start; }
.ay-chart:has(> .ay-chart__source:last-child) { grid-template-rows: auto 1fr auto; }
.ay-chart__head { display: grid; gap: var(--ay-space-4); max-width: var(--ay-size-measure); align-content: start; }
.ay-chart__title { margin: 0; color: var(--ay-text-primary); font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / var(--ay-type-title-l-line) var(--ay-font-sans); letter-spacing: var(--ay-type-title-l-tracking); text-wrap: balance; }
.ay-chart__sub { margin: 0; color: var(--ay-text-secondary); font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); text-wrap: pretty; }
.ay-chart__source { align-self: end; margin: 0; padding-top: var(--ay-space-8); border-top: 1px solid var(--ay-line-hairline); color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-xs-size) / var(--ay-type-data-xs-line) var(--ay-font-mono); }
.ay-chart__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ay-space-24); align-items: start; }
@media (min-width: 840px) { .ay-chart__body:has(> .ay-chart__aside) { grid-template-columns: minmax(0, 1fr) 260px; } }
.ay-chart__aside { display: grid; gap: var(--ay-space-12); padding: var(--ay-space-20); border-radius: var(--ay-radius-lg); background: var(--ay-bg-band); }
.ay-chart__aside .ay-stat__value { font-size: var(--ay-type-data-l-size); line-height: var(--ay-type-data-l-line); }
.ay-chart--card { padding: var(--ay-space-24); border-radius: var(--ay-radius-xl); background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-0); }
/* Controls beside the title (a segmented switch, a sample marker): the head takes the room, the controls wrap
   under it when it runs out, and take the full width on phones. */
.ay-chart__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ay-space-8) var(--ay-space-16); }
.ay-chart__top > .ay-chart__head { flex: 1 1 320px; }
.ay-chart__top > .ay-sample { flex: none; }
.ay-chart__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ay-space-8); }
/* A key in HTML for colours the chart does not label itself: a square in each colour (--_c) and its name. */
.ay-chart__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--ay-text-secondary); font: 500 13px / 1.3 var(--ay-font-sans); }
.ay-chart__key > li { display: inline-flex; align-items: center; gap: 8px; }
.ay-chart__key i { flex: none; width: 9px; height: 9px; background: var(--_c, var(--ay-chart-1)); }
@media (max-width: 599px) {
  .ay-chart__controls { flex: 1 1 100%; }
  .ay-chart__controls > .ay-segmented { display: flex; width: 100%; }
  .ay-chart__controls > .ay-segmented > .ay-segmented__item { flex: 1 1 auto; padding: 0 var(--ay-space-8); }
}
@media (max-width: 599px) { .ay-chart--card { padding: var(--ay-space-16); border-radius: var(--ay-radius-lg); } }
ayves-chart { display: block; min-width: 0; }
ayves-chart:not(:defined) { min-height: 120px; }
ayves-chart > script { display: none; }
@media (max-width: 599px) { .ay-card { padding: var(--ay-card-pad-compact, 20px); } }

/* ---------- Sample marker: says that the data in a picture is illustrative ---------- */
.ay-sample { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--ay-radius-full); background: var(--ay-bg-tonal); box-shadow: inset 0 0 0 1px var(--ay-line-hairline); color: var(--ay-text-secondary); font: 500 11.5px / 1 var(--ay-font-sans); letter-spacing: 0.01em; white-space: nowrap; }

/* ======================================================================== 3.1 */

/* ---------- Code: inline and block, IBM Plex Mono on the sunken surface ---------- */
.ay-code-inline, .ay-prose :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: var(--ay-radius-xs);
  background: var(--ay-bg-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--ay-line-hairline);
  color: var(--ay-text-primary);
  font: 400 0.9em / 1 var(--ay-font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  overflow-wrap: anywhere;
}
.ay-code { position: relative; margin: 0; min-width: 0; border-radius: var(--ay-radius-md); background: var(--ay-bg-surface-sunken); box-shadow: inset 0 0 0 1px var(--ay-line-hairline); }
.ay-code__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--ay-line-hairline); color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-xs-size) / 1.4 var(--ay-font-mono); }
.ay-code__head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-code pre, .ay-prose pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: var(--ay-text-primary); font: 400 13px / 1.6 var(--ay-font-mono); font-variant-numeric: tabular-nums slashed-zero; tab-size: 2; }
.ay-code pre code, .ay-prose pre code { padding: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; }
.ay-code--wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ay-code > .ay-iconbtn[data-ay-copy] { position: absolute; top: 4px; right: 4px; }

/* ---------- Document text: a filing or report with its own headings, lists and tables ---------- */
.ay-prose { max-width: var(--ay-size-measure); color: var(--ay-text-secondary); font: 400 var(--ay-type-body-m-size) / var(--ay-type-body-m-line) var(--ay-font-sans); overflow-wrap: break-word; }
.ay-prose > * { margin: 0; }
.ay-prose > * + * { margin-top: 12px; }
.ay-prose :is(h1, h2, h3, h4, h5, h6) { margin: 0; color: var(--ay-text-primary); text-wrap: balance; }
.ay-prose > :is(h1, h2, h3, h4, h5, h6) + * { margin-top: 8px; }
.ay-prose h1 { margin-top: 32px; font: 400 var(--ay-type-headline-s-size) / var(--ay-type-headline-s-line) var(--ay-font-sans); letter-spacing: var(--ay-type-headline-s-tracking); }
.ay-prose h2 { margin-top: 28px; font: 500 var(--ay-type-title-l-size) / var(--ay-type-title-l-line) var(--ay-font-sans); }
.ay-prose h3 { margin-top: 24px; font: 600 var(--ay-type-title-m-size) / var(--ay-type-title-m-line) var(--ay-font-sans); }
.ay-prose :is(h4, h5, h6) { margin-top: 20px; font: 600 var(--ay-type-title-s-size) / var(--ay-type-title-s-line) var(--ay-font-sans); }
.ay-prose > :first-child { margin-top: 0; }
.ay-prose :is(strong, b) { color: var(--ay-text-primary); font-weight: var(--ay-weight-semibold); }
.ay-prose a { color: var(--ay-text-primary); text-decoration: underline; text-decoration-color: var(--ay-line-strong); text-underline-offset: 3px; }
.ay-prose :is(ul, ol) { padding-left: 1.5em; }
.ay-prose ul { list-style: square; }
.ay-prose li + li, .ay-prose li > :is(ul, ol) { margin-top: 4px; }
.ay-prose li::marker { color: var(--ay-text-tertiary); font-family: var(--ay-font-mono); font-size: 0.9em; }
.ay-prose blockquote { padding: 12px 16px; border-radius: var(--ay-radius-md); background: var(--ay-bg-surface-sunken); color: var(--ay-text-primary); }
.ay-prose hr { height: 0; border: 0; border-top: 1px solid var(--ay-line-hairline); margin-block: 24px; }
.ay-prose mark { padding: 0 2px; background: var(--ay-bg-tonal-pressed); color: inherit; }
.ay-prose :is(sup, sub) { font-family: var(--ay-font-mono); font-size: 0.72em; }
.ay-prose figcaption, .ay-prose caption { color: var(--ay-text-tertiary); font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); text-align: left; caption-side: bottom; padding-top: 8px; }
/* Tables in a filing are information: square, open, an ink-weight rule under the header. Wide ones scroll inside. */
.ay-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font: 400 var(--ay-type-body-s-size) / var(--ay-type-body-s-line) var(--ay-font-sans); }
.ay-prose th { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ay-line-strong); color: var(--ay-text-tertiary); font-weight: 500; text-align: left; vertical-align: bottom; }
.ay-prose td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ay-line-hairline); vertical-align: top; }
.ay-prose :is(td, th):last-child { padding-right: 0; }
.ay-prose :is(td, th).is-num { text-align: right; white-space: nowrap; }
.ay-prose td.is-num { color: var(--ay-text-primary); font-family: var(--ay-font-mono); font-variant-numeric: tabular-nums; }
.ay-prose--filing { max-width: none; }

/* ---------- Paging: where the reader is, and Previous and Next ---------- */
.ay-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 0; }
.ay-pager__count { margin: 0; color: var(--ay-text-tertiary); font: 500 var(--ay-type-label-m-size) / 1.3 var(--ay-font-sans); }
.ay-pager__count b { color: var(--ay-text-primary); font: 400 var(--ay-type-data-xs-size) / 1 var(--ay-font-mono); font-variant-numeric: tabular-nums; }
.ay-pager__nav { display: flex; align-items: center; gap: 8px; }
.ay-pager__size { display: flex; align-items: center; gap: 8px; color: var(--ay-text-tertiary); font: 500 var(--ay-type-label-m-size) / 1 var(--ay-font-sans); }

/* ---------- Tables: sortable headers, row selection and bulk actions ---------- */
.ay-table__sort {
  all: unset; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 4px;
  margin: -6px -8px; padding: 6px 8px; border-radius: var(--ay-radius-xs);
  color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer;
}
.ay-table__sort:hover { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.ay-table__sort:focus-visible { outline: 2px solid var(--ay-line-focus); outline-offset: 2px; }
.ay-table__sort > ayves-icon { width: 16px; height: 16px; flex: none; opacity: 0.5; }
th[aria-sort="ascending"] .ay-table__sort, th[aria-sort="descending"] .ay-table__sort { color: var(--ay-text-primary); }
th[aria-sort="ascending"] .ay-table__sort > ayves-icon, th[aria-sort="descending"] .ay-table__sort > ayves-icon { opacity: 1; }
th.is-num .ay-table__sort { flex-direction: row-reverse; }
.ay-table :is(th, td).ay-table__pick { width: 44px; padding-right: 0; }
.ay-table__pick > label { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px; cursor: pointer; }
.ay-table tbody tr[aria-selected="true"], .ay-table tbody tr[aria-selected="true"]:hover { background: var(--ay-bg-selected); }
/* Bulk bar: the floating toolbar while rows are selected, with the count and the actions that apply to them. */
.ay-bulkbar[hidden] { display: none !important; }
.ay-bulkbar__count { padding: 0 8px 0 12px; color: var(--ay-text-primary); font: 500 var(--ay-type-label-m-size) / 1 var(--ay-font-sans); white-space: nowrap; }
@media (max-width: 599px) { .ay-bulkbar.ay-toolbar--float { display: inline-flex; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); } }

/* ---------- Timestamp: a moment the system records, in Plex Mono ---------- */
.ay-timestamp { color: var(--ay-text-tertiary); font: 400 var(--ay-type-data-xs-size) / 1.4 var(--ay-font-mono); font-variant-numeric: tabular-nums slashed-zero; white-space: nowrap; }

/* ---- css/client.css ---- */
/* ==========================================================================
   AYVES design system 3 · customer theming
   The lockup with a customer's logo or name, and the one surface that carries the customer's
   container colour. The colours themselves come from elements/ayves-client.js (applyClient),
   which overrides a handful of role tokens inside [data-client]. Nothing here sets a colour of
   its own: without a customer theme every rule falls back to the AYVES tokens.
   ========================================================================== */

/* Lockup: bird, wordmark, then a hairline and the customer.
   <a class="ay-lockup" href="/"><ayves-bird></ayves-bird><span class="ay-wordmark">AYVES</span>
     <span class="ay-lockup__client" data-ay-client-slot></span></a>
   The slot stays empty (and takes no room) until a customer theme fills it. */
.ay-lockup__client { display: none; }
.ay-lockup--client .ay-lockup__client {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-width: 0; max-width: 10em;
  margin-left: 0.2em; padding-left: 0.82em;
  border-left: 1px solid var(--ay-line-strong);
  height: 1.6em;
}
.ay-lockup--client { min-width: 0; max-width: 100%; }
.ay-lockup__for { color: var(--ay-text-tertiary); font: 400 0.93em / 1 var(--ay-font-sans); }
.ay-lockup__client-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ay-text-primary); font: 600 0.93em / 1.2 var(--ay-font-sans); letter-spacing: 0;
}

/* The customer's logo: one and a half times the wordmark's height, never wider than eight of its letters. */
.ay-client-logo { display: block; height: 1.5em; width: auto; max-width: 8em; object-fit: contain; object-position: left center; }
.ay-client-logo--mono {
  height: 1.5em; width: calc(1.5em * var(--_ratio, 3)); max-width: 8em;
  background: var(--ay-text-secondary);
  -webkit-mask: var(--_logo) left center / contain no-repeat;
  mask: var(--_logo) left center / contain no-repeat;
}
/* A separate dark-theme logo, when the customer gave one. The nearest data-theme decides, through an inherited
   switch, so a dark pane inside a light page shows the dark logo. */
:root, [data-theme="light"] { --_ay-logo-light: block; --_ay-logo-dark: none; }
[data-theme="dark"] { --_ay-logo-light: none; --_ay-logo-dark: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --_ay-logo-light: none; --_ay-logo-dark: block; } }
.ay-client-logo--light { display: var(--_ay-logo-light, block); }
.ay-client-logo--dark { display: var(--_ay-logo-dark, none); }

/* The customer band: the one surface in the customer's container colour. Use it once per screen at most,
   for the greeting on the desk and on the sign-in page. Without a customer theme it is a quiet tonal band. */
.ay-client-band {
  display: flex; align-items: center; gap: var(--ay-space-16); flex-wrap: wrap;
  padding: var(--ay-space-20) var(--ay-space-24);
  border-radius: var(--ay-radius-lg);
  background: var(--ay-client-container, var(--ay-bg-tonal));
  color: var(--ay-client-on-container, var(--ay-text-primary));
}
.ay-client-band > * { min-width: 0; }
.ay-client-band__text { flex: 1 1 16em; }
.ay-client-band__title { margin: 0; font: 600 var(--ay-type-title-m-size, 18px) / 1.3 var(--ay-font-sans); text-wrap: balance; }
.ay-client-band__meta { margin: 4px 0 0; font: 400 var(--ay-type-body-s-size, 14px) / 1.45 var(--ay-font-sans); opacity: 0.8; }
.ay-client-band .ay-client-logo { height: 28px; max-width: 120px; }

/* The swatch a settings page shows for a customer colour. */
.ay-client-swatch {
  display: inline-block; width: 20px; height: 20px; border-radius: var(--ay-radius-xs);
  background: var(--_c, var(--ay-client-mark, var(--ay-fill-primary)));
  box-shadow: inset 0 0 0 1px var(--ay-line-hairline);
  vertical-align: middle;
}

/* ---- css/motion.css ---- */
/* ==========================================================================
   AYVES design system 3 · motion
   Motion answers what a person does: pressing, opening, switching, expanding.
   On their own, only the bird and one scene per page move.
   ========================================================================== */

@keyframes ay-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ay-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ay-pop-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ay-dialog-in { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ay-sheet-in { from { opacity: 0.4; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes ay-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ay-toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ay-toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes ay-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes ay-push-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ay-push-out { from { transform: none; opacity: 1; } to { transform: translateX(-30%); opacity: 0.55; } }
@keyframes ay-pop-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes ay-pop-back { from { transform: translateX(-30%); opacity: 0.55; } to { transform: none; opacity: 1; } }
@keyframes ay-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* One planned reveal per page. Mark the container, not every section. Items wait twice
   duration-stagger (80 ms) apart, which suits the gentle spring. Hidden only once the script runs
   (it sets .ay-js on <html>), so the content shows if the bundle never loads. */
.ay-js [data-ay-reveal] > * { opacity: 0; }
[data-ay-reveal].is-revealed > * {
  animation: ay-rise var(--ay-spring-gentle-duration) var(--ay-spring-gentle) both;
  animation-delay: calc(var(--ay-i, 0) * var(--ay-duration-stagger) * 2);
}

/* Rows that enter or leave a list: the row's height opens or closes on spring-smooth while it fades.
   Put the row's content inside one child; AYVES.enterRow(row) and AYVES.leaveRow(row) run it. */
.ay-row-motion { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows var(--ay-spring-smooth-duration) var(--ay-spring-smooth), opacity var(--ay-duration-quick) var(--ay-ease-standard); }
.ay-row-motion > * { min-height: 0; overflow: hidden; }
.ay-row-motion.is-entering { grid-template-rows: 0fr; opacity: 0; }
.ay-row-motion.is-leaving { grid-template-rows: 0fr; opacity: 0; transition-delay: var(--ay-duration-quick), 0s; }

/* Content swaps with the View Transitions API, where supported (AYVES.swap) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--ay-duration-standard); animation-timing-function: var(--ay-ease-standard); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  [data-ay-reveal] > *, .ay-js [data-ay-reveal] > * { opacity: 1; }
  [data-ay-reveal].is-revealed > * { animation-delay: 0s !important; }
  /* Things that open still fade in briefly, so the change is visible without movement. */
  .ay-sheet[open], .ay-dialog[open], .ay-toast, .ay-menu, .ay-popover { animation: ay-fade-in var(--ay-duration-quick) var(--ay-ease-standard) both !important; }
  .ay-cluster, .ay-topbar, .ay-topbar__title, .ay-stickybar { transition: none !important; }
  .ay-route > ayves-icon, .ay-more > ayves-icon { transition: none !important; }
  .ay-row-motion { transition: none !important; }
  .ay-msg.is-new, .ay-typing > i { animation: none !important; }
  .ay-btn:active, .ay-iconbtn:active, .ay-card--interactive:hover, .ay-card--interactive:active { transform: none; }
}
