/* plus-jakarta-sans-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAa0ABQAAAAADOwAAAZHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbbhwoP0hWQVJtP01WQVJGBmA/U1RBVIEcAGQvXBEICoMkgmcLFgAwhEwBNgIkAyYEIAWGXAdiDAcbOgtRlHLSRcD8TEzkdoghPRuspKefbVnJIM5yRfA8vZv9uTNJSCZY21Scrigr6qyJ/C3sE1OFKuVP3e+lxUTbYio1zb/kFdk2bufY2BlhWERRBrcDUBhB5GEpd2Cy+MDxqf9zLPX+XVsk5r+s50d6IpWLatqbdT6f2MAikiOKQocbjya2QT0DqPDX4R0jQBgAUAiCRhDA0EkvYeLk9X3I2bEWI8jBAihIANm+kUWQBgggWChcBBdFhXlAUgOCAgBA0AgKjUJ8HKvjddFCKSgAVklEBYAeEJgCQJH0qB3B+neDg4sAA4hAD0AVIEAA0IACJGeaUjMIIIhBUE/zNABjTQMBwEVRcwcYBUCObLERABAgjAA1M/ZSa9hSi4OlpsnZ2KBOVUsAZlRGl1W0NZ6gSwhQPIAFs7YFL0QS91vRQgdgx2VDAnIegKpQvwAJIoLgooBAGtCJcHizg0TDiz8vhPgIcVXaDJu37ZyDAIjFy4AAiC1JAA0olJwN6nFAACQk/zfQVUuA3t5ELKMT9hpBSRj+HBSggYCIAIEkUoC4PCIQIWHGA8+IStxf0PW15ntP22gc+Wo+BLyQAHECQiAVd+c3Ba8gZ4NOACBaLOhsbIMkAXEmuHsSAvkf4oJaAogH6nEQAzoBIEihUAwAA0AACAObAGcANYAAABaqgMmpWAhiiVyrvNyqFV8tMQ5Iyq6r9Lf7W82i8ILl2cv8zbfdJ5lnPzSnvt/XXPfRR/5pH3xA+u5uS0798EPJ3Fft33w36Wc+8E/7aIB/9fvvb1pE9erNXLB9mkw//cSg8Cnx03VGXDvZnRzKqV9Xkhn7eRHb3wVjHpg19nkZpX9bBU+vnHegrsuQcbW9Bi7oO33h+8SU0Tly/MbeYUuG1cftVz6oNxrW0qH1iezq446fkDFo/rgvTkqt7zmteFzncZ0uxXti09FFF2z+C7CODpjUudOE5NSeb3bv/mbPKcmOEzpWQ3VBgBAuj/AOY3qMm7UvgA8qo3+qvAUBBAX0wADQG4AG+jCKaSxkBe/zvcTG8jRpRZgqhCog4sd++cOo7J+/RdvaaMoc78Ri/PNPSclx6fDvG1Kt3qQFi1rq+5EaavTtt9TVvfvucYsA5wc4oESU+E1ikF9TkrOkIsIH5Fawx7SBNLnMcWlM3skBluCmQNs7GeyFvYVDamsqwhxx18n/+WdxzDgOLU1AqbUlb3m+KOT9+ONvY/7XlrdLS//5v7nN97XHj0VzJpJvz4spq0V7ioXDuv2YrSxtF/KZmvbWfKtorXSh8dfvgGu+ev/nFSaXM6jyuCE/f/EpmuP7Rqu8R98vP/+tXUdrOgKlZP9Q/s+fRF9+3CHZd4EugfPv158me9X7v/6aSMCxMJmIr//65bNXngl7+uiPP5oKx+y27D8trp+psUzMacpm80XlnYeMAct0LynxhNYgaP3dtn8/LBAi+ksr+7NvjjtJV+UXrz0uLXV1x08AZRN1S2A8EaVE5afk/dfGjz//+fdHn36Xdttz2d9/z+bawZ8/slNN1aYtq+ZPGzNuPGdwOsfYflwmHCkPgs5DcKizvdpS/3gEUMW9/lvQvWp1bGTW1fpngC/uSVYAfH3TeSusL8TtlHUD4KAAEHjahk4YpuffGwEBN/dUmpHqdHyJ3Ap8O3UlQ4gCNrMRwLBBKiskL6a+RoBi/9XGlgc8L4/CUejQxaiIyqmomdhktOhfgDbDfaNDb4+yKIPd6IgmzDa0CByijWFmL2dlSRKagTIWXeIU9HDphoZiJeBTjAefHMxDhVSRFUgVcOkW3EGMahYVMFjWHhMluB2wAcbHYqF1LpsDF9C6s+CI2fDgh4wSuFEyGadjXAmIk3CugIRibLIti9ZtC8S4VSqfikGqPaoI122XyRYLBmsOmdiiTpqK1OklUQzpMcZmQRQV4M4oJCMkfRQXK+qvjifUcQd1bRdetW/LWjacYxvcttnVjWg5h0q4xw6rZyejSpZVZ78LzC4uyDNRQ4bymHSTMyM+SZ7D75mg/7YTlmNz7W8T00h0VEiGKB+F7iWYZFvSTiA4LVxttm2ATt5EoUWLJbY4EnLGrfsvEROlHtzlKn3H9VUT5tU/2dt3/EBv7foYzV/W4upyj04woO/gh6Vwwt3WGQAA) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* plus-jakarta-sans-vietnamese-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-vietnamese-wght-normal-qRpaaN48.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* plus-jakarta-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-latin-ext-wght-normal-DmpS2jIq.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* plus-jakarta-sans-latin-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-latin-wght-normal-eXO_dkmS.woff2) format('woff2-variations');
  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;
}/* plus-jakarta-sans-cyrillic-ext-wght-italic */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAboABQAAAAADegAAAZ6AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbbhwoP0hWQVJuP01WQVJGBmA/U1RBVIEYAGQvXBEICoMsgmkLFgAwhG4BNgIkAyYEIAWIMAdiDAcbLwwjEWaE9C9Ef3HAk6GPziCXq1Eh8E8EQUAcETD4qqY9zL9qXW0igea1HkEOnqd3sz93JoEY0i51HktNfM3s64mq5XBNC2hcZDFJgRXiiJ/wPjQQQg4ZcuSBeSDYPKAHgP9wzN5fdNuaD/QEzgeaLAeyyvR5jqXev2uLxPy3aMCpdVEUFUa1+MDujSKbosGaNqsCGs2sNoGaLSZJ7mpbs8+H6RVGAA8AUAiCRhDAoYA61MDQpFmENy3ftYUwBoAPAWTj6h1bsAABBAOFhWChyGQAqCAPQQEAIGgEhUYhm2houiKKJKkZAFHISACUATFQMAUbMEcwhhcCWAjQgPZG9nJjCAAaUID87vw57R+XLxd/J4J6kAcB6KEHBAALRbz3qeBJ71u3dhcAAngIEN+tlSIs6O8AhpokJ2KCOlrN839jvOwNtbKEEukDHoKA4srPmjo+lYMIJW81wn7AjMqqJHIKgMpUXwFJNIJgoYAYFlCA2rt23S7RsH7X8k0SQIgSp4QWBpjGItYhAOLyJCAA4kkFoAElITkR1L1WRlh+rTOi5kHrqI8mRSf/EgEUAoACNBBDI0AMg2lAlCgaCJGklwt5SFTyVp/wsP5f/qf+g/5qveSDmQiYSIAoCiFGEOu6F8WTICeCTgKIFgOkcDNFBQI4EUH8WtkCNQ/EvuYsceBatu0jAoADQAzwgNXAiUBcygMGyocYFwaCGCbLSM8w8kSXSoRdM8mWI3Y2uoudOd6shaEFhWuvuUUOet05+tVZziVvvOEe89prHPhg5ryjX39dDnokw73yRg58zT3mmVcmuhe++uqauZFZW4LcpXPdWRtd/Drjzr1PDX+h8JsX2P/iIWsouJR+eELk7P1yzhVfTi+6bdL82/YnY+E1O3jsqdf+zW8Pt3U3zKmb0Df7m5FZ6yo6uhZW1k+pr3Ze/Pu1zkXVNPeDpX5j5b+mn5n97tjMtRXVqVZPYZIYPrs4WM4+YNNpa484jY4D6vsK4/0LRxYsKS3tWjC8sLx/pBBVhABBLF7npZbSZumINYA/UAv1F+W2EEBQQBkOAFXABBroe23XspXP+E2SPaR/kAMVRHAgJEkMDRYUTDKlTBZYajbrG3moFwz7awBCnuzrDd+4bb4S/P/BnwcdGpBKsf9JkZo60Fv9Tfu/PDhvCfFKTDMcDAZIJHKZFOcZcIASYpD4Rg7oy1/5fSVSCF4V/wN2KTbgQH4/aB2HkzVSThPwJDgBXoghltk00WJA32KXud+rU0QWj/F+whnr36/piExM4Wy+XtPjRWFN+uH31zfibQ8Sd7PHPwd57zeM6H4Il/qN/UmaTDZLwnkn4v/9+zo+mKHx+++HAy0Op9OHgeD3i2CWc0jT181a2PfyIy/yt1urrw6Z8uDMH+H9t5ub2lV7TXhNNrH//cdtf7VN/PXamZwt7Qm4B3lCzD/O/2MtlfX69j3YfF8OL66biGtHwr2dz8hM+H8wXdSuVAoEz1js+a1pru4IuBAuQQunNUgdoQ2ycPkhB4olkbahuRy+JBybiMEgJjGI+Oc3Pv9it6u+O45bn8t59dvl/hGJO7OjKBFft3n1gmn9/X2cwPEcysZDDvJCGbFYYTPCCouzTXMPRQCVWrmqfvf40kjHb5bWXwK8d1NFJsCHV5yyyO/0o+ZS4zIUARQAAj/jsAtN+X939NBfchyobquvOEAd629GrgY+Q51PE3AOVyOAwyqCLMJECJenESBDstGIYQOPqhl1CnmqhgpPFVDTJx/ToEZupkmb7GOACplkC9Mk6R5E44lDgzy+pEkmL8YGWH4hg2RzOy0SnEmbdA6mQ5IVdIkxhR4OAwwRpolhPMoYIUo2o1ikrjaFVGCQfUyUXJtBaJYlb63Ia+MI8yNVdGM5KtT4wXNcebBQqSHC/UBbqYWesQqlN2zWOZf6jNCwvmXoWTTOI+PRMgLS/1cmYkyIMLiXSIGFF2LgDjmvDpdQiZ0WaFxqt1osmjQ8RPLDHDTEqI3poDVxbAkQileKR7hD3yntoUksmvhCdQ+ce3fep902Odc69abSHc8h+eP3OaVN0yR0J8Bq8lX4vHDwrYCDpEzVs0kBbrdfeU4pjrf6bZSODYiIhADkX2KR1SNWM+D/6a+uYNkOUPAvCi1aDDElIMFA74r/pxioqLZ4tKa3RvXPqN6wXdPXYC9fqaTVmxg/wV8doL6m6U5x2I1GAQAAAA==) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* plus-jakarta-sans-vietnamese-wght-italic */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-vietnamese-wght-italic-CPBsCcxN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* plus-jakarta-sans-latin-ext-wght-italic */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-latin-ext-wght-italic-DJWiFoht.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* plus-jakarta-sans-latin-wght-italic */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/plus-jakarta-sans-latin-wght-italic-DnD1KgkH.woff2) format('woff2-variations');
  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;
}/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-animation-delay: 0s;
      --tw-animation-direction: normal;
      --tw-animation-duration: initial;
      --tw-animation-fill-mode: none;
      --tw-animation-iteration-count: 1;
      --tw-enter-blur: 0;
      --tw-enter-opacity: 1;
      --tw-enter-rotate: 0;
      --tw-enter-scale: 1;
      --tw-enter-translate-x: 0;
      --tw-enter-translate-y: 0;
      --tw-exit-blur: 0;
      --tw-exit-opacity: 1;
      --tw-exit-rotate: 0;
      --tw-exit-scale: 1;
      --tw-exit-translate-x: 0;
      --tw-exit-translate-y: 0;
    }
  }
}

@layer theme {
  :root, :host {
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-ui);
    --default-mono-font-family: var(--font-mono);
    --font-display: "Fraunces", Georgia, serif;
    --color-accent: var(--accent);
    --color-border: var(--border);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
  }

  html {
    font-family: var(--font-ui);
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .sticky {
    position: sticky;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .shrink {
    flex-shrink: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .rounded {
    border-radius: .25rem;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .running {
    animation-play-state: running;
  }
}

@property --tw-animation-delay {
  syntax: "*";
  inherits: false;
  initial-value: 0s;
}

@property --tw-animation-direction {
  syntax: "*";
  inherits: false;
  initial-value: normal;
}

@property --tw-animation-duration {
  syntax: "*";
  inherits: false
}

@property --tw-animation-fill-mode {
  syntax: "*";
  inherits: false;
  initial-value: none;
}

@property --tw-animation-iteration-count {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

:root {
  --background: #f5f7f1;
  --foreground: #202823;
  --card: #fffdf7;
  --card-foreground: #202823;
  --primary: #b55231;
  --primary-foreground: #fffdf7;
  --secondary: #eaf0e6;
  --muted: #d9e2d5;
  --muted-foreground: #57675e;
  --accent: #f2dfd6;
  --border: #b5c2b0;
  --ring: #b5523157;
  --destructive: #a94134;
  --font-ui: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", "Avenir Next", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: .625rem;
}

@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --atlas-50: #f5f7f1;
  --atlas-100: #eaf0e6;
  --atlas-200: #d9e2d5;
  --paper: #fffdf7;
  --lichen-200: #cdd8ca;
  --lichen-300: #b5c2b0;
  --lichen-400: #8e9d88;
  --ink-900: #202823;
  --ink-700: #405149;
  --ink-500: #57675e;
  --copper-700: #8d3e25;
  --copper-600: #b55231;
  --copper-500: #c6633f;
  --copper-100: #f2dfd6;
  --green-600: #367553;
  --green-700: #285f42;
  --green-100: #deeadf;
  --amber-600: #a46e21;
  --amber-700: #7f5519;
  --amber-100: #f3ead8;
  --red-600: #a94134;
  --red-700: #8e3329;
  --red-100: #f3dfda;
  --blue-600: #3d6788;
  --blue-700: #315673;
  --blue-100: #dce7ed;
  --focus-ring: #b5523157;
  --scrim: #2028236b;
  --glass-shell: #fffdf7d1;
  --shadow-sm: 0 1px 2px #2028230d, 0 10px 26px #2028230f;
  --shadow-md: 0 2px 7px #20282312, 0 22px 54px #20282314;
  --shadow-inset: inset 0 1px 0 #fffdf7b8, inset 0 -1px 0 #2028230a;
  --ring-recording: 0 0 0 0 #b23a2e47;
  --ring-recording-wide: 0 0 0 6px #b23a2e0f;
  --color-canvas: var(--atlas-50);
  --color-surface: var(--atlas-100);
  --color-surface-raised: var(--paper);
  --color-surface-sunken: var(--atlas-200);
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-border: var(--lichen-300);
  --color-border-soft: var(--lichen-200);
  --color-border-strong: var(--lichen-400);
  --color-action-primary: var(--copper-600);
  --color-action-primary-hover: var(--copper-700);
  --color-action-primary-text: var(--paper);
  --color-accent: var(--copper-600);
  --color-accent-tint: var(--copper-100);
  --color-focus: var(--copper-600);
  --color-status-in-range: var(--green-600);
  --color-status-in-range-tint: var(--green-100);
  --color-status-in-range-text: var(--green-700);
  --color-status-borderline: var(--amber-600);
  --color-status-borderline-tint: var(--amber-100);
  --color-status-borderline-text: var(--amber-700);
  --color-status-high: var(--red-600);
  --color-status-high-tint: var(--red-100);
  --color-status-high-text: var(--red-700);
  --color-status-low: var(--blue-600);
  --color-status-low-tint: var(--blue-100);
  --color-status-low-text: var(--blue-700);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --btn-radius: var(--radius-pill);
  --btn-height-sm: 28px;
  --btn-height-md: 32px;
  --btn-height-lg: 36px;
  --btn-pad-sm: 12px;
  --btn-pad-md: 16px;
  --btn-pad-lg: 20px;
  --card-radius: var(--radius-lg);
  --card-pad: 16px;
  --field-height-md: var(--btn-height-md);
  --field-pad-x: 10px;
  --field-pad-y: 4px;
  --field-radius: var(--radius-md);
  --page-pad-x: clamp(18px, 4vw, 40px);
  --page-max-public: 1200px;
  --page-max-dashboard: 1120px;
  --page-max-app: 1040px;
  --page-max-list: 1120px;
  --page-max-reading: 760px;
  --section-gap-y: clamp(64px, 8vw, 96px);
  --rail-w: 248px;
  --rail-w-collapsed: 68px;
  --topbar-h: 56px;
  --shell-main-pad-top: 24px;
  --shell-main-pad-bottom: 56px;
  --shell-main-pad-x: clamp(20px, 4vw, 44px);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", "Avenir Next", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --motion-out: cubic-bezier(.16, 1, .3, 1);
  --motion-spring: cubic-bezier(.32, .72, 0, 1);
}

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

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

body {
  background: var(--color-canvas);
  min-height: 100dvh;
  color: var(--color-text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: balance;
  margin: 0;
  font-weight: 680;
  line-height: 1.02;
}

p {
  margin: 0;
}

a {
  color: var(--color-action-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-action-primary-hover);
}

button, input, textarea, select {
  font-family: inherit;
}

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

.tnum, .ui-stat-value, .ui-ring-value, .ui-range-bar-scale {
  font-variant-numeric: tabular-nums;
}

.center-screen {
  min-height: 100dvh;
  color: var(--color-text-secondary);
  place-items: center;
  padding: 32px 20px;
  display: grid;
}

.brand-loading {
  color: var(--color-text-muted);
  justify-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 620;
  display: inline-grid;
}

.brand-loading .brand-mark-svg {
  width: 54px;
  height: 54px;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-loading .brand-mark-svg {
    animation: brand-load-breathe 1.6s var(--motion-out) infinite;
  }
}

@keyframes brand-load-breathe {
  50% {
    transform: translateY(-2px);
  }
}

.placeholder {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  width: min(100%, 480px);
  box-shadow: var(--shadow-sm);
  margin: 48px auto;
  padding: 28px;
}

.placeholder h1 {
  margin: 0 0 8px;
}

.ui-btn {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-md);
  border-radius: var(--btn-radius);
  font-family: var(--font-ui);
  cursor: pointer;
  box-shadow: var(--shadow-inset);
  transition: transform .26s var(--motion-spring), background-color .22s var(--motion-out), border-color .22s var(--motion-out), color .22s var(--motion-out), box-shadow .26s var(--motion-out);
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  position: relative;
}

.ui-btn:hover {
  transform: translateY(-1px);
}

.ui-btn:active {
  transform: translateY(1px) scale(.98);
}

.ui-btn--primary {
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
}

.ui-btn--primary:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
}

.ui-btn--secondary {
  background: var(--color-surface-raised);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.ui-btn--secondary:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.ui-btn--ghost {
  color: var(--color-action-primary);
  background: none;
}

.ui-btn--ghost:hover {
  background: var(--color-accent-tint);
}

.ui-btn--danger {
  background: var(--color-surface-raised);
  border-color: var(--color-status-high);
  color: var(--color-status-high-text);
}

.ui-btn--danger:hover {
  background: var(--color-status-high-tint);
  color: var(--color-status-high-text);
}

.ui-btn--danger.is-solid {
  background: var(--color-status-high);
  border-color: var(--color-status-high);
  color: var(--color-action-primary-text);
}

.ui-btn--danger.is-solid:hover {
  background: var(--color-status-high-text);
  border-color: var(--color-status-high-text);
  color: var(--color-action-primary-text);
}

.ui-btn--sm {
  min-height: var(--btn-height-sm);
  padding: 0 var(--btn-pad-sm);
  font-size: 12.8px;
}

.ui-btn:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.ui-spinner {
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  width: 12px;
  height: 12px;
  animation: ui-spin 1s var(--motion-out) infinite;
  border-radius: 50%;
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .ui-spinner {
    animation: none;
  }
}

@keyframes ui-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-card, .pub-hero-copy, .pub-hero-visual, .pub-proof-row, .pub-bento-section, .pub-flow-section, .pub-loop-section, .pub-privacy-section, .pub-final-cta, .legal-document, .dash > *, .chat, .bm > *, .bm-detail > *, .intg > *, .prod > *, .rad > *, .rad-detail > *, .proto > *, .set > *, .invite > * {
    animation: ui-rise .68s var(--motion-out) both;
  }

  .pub-hero-visual, .pub-proof-row, .dash > :nth-child(2), .bm > :nth-child(2), .intg > :nth-child(2), .prod > :nth-child(2), .rad > :nth-child(2), .proto > :nth-child(2), .set > :nth-child(2) {
    animation-delay: 70ms;
  }

  .dash > :nth-child(3), .bm > :nth-child(3), .intg > :nth-child(3), .prod > :nth-child(3), .rad > :nth-child(3), .proto > :nth-child(3), .set > :nth-child(3) {
    animation-delay: .12s;
  }
}

.ui-card {
  padding: var(--card-pad);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.ui-eyebrow {
  font-family: var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.ui-section-header {
  gap: 8px;
  display: grid;
}

.ui-section-header h1, .ui-section-header h2 {
  font-family: var(--font-display);
  font-weight: 720;
}

.ui-accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 620;
}

.ui-section-header p {
  max-width: 60ch;
  color: var(--color-text-secondary);
}

.page-head {
  margin-bottom: 4px;
}

.ui-status-pill {
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 9px;
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.4;
  display: inline-flex;
}

.ui-status-pill:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

.ui-status-pill--in-range {
  background: var(--color-status-in-range-tint);
  color: var(--color-status-in-range-text);
}

.ui-status-pill--borderline {
  background: var(--color-status-borderline-tint);
  color: var(--color-status-borderline-text);
}

.ui-status-pill--high {
  background: var(--color-status-high-tint);
  color: var(--color-status-high-text);
}

.ui-status-pill--low {
  background: var(--color-status-low-tint);
  color: var(--color-status-low-text);
}

.ui-status-pill--neutral {
  background: var(--color-surface-sunken);
  color: var(--color-text-secondary);
}

.ui-range-bar {
  gap: 8px;
  display: grid;
}

.ui-range-bar-track {
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  height: 8px;
  position: relative;
}

.ui-range-bar-band {
  border-radius: var(--radius-pill);
  background: var(--color-status-in-range-tint);
  position: absolute;
  top: 0;
  bottom: 0;
}

.ui-range-bar-dot {
  border: 2px solid var(--color-surface-raised);
  width: 14px;
  height: 14px;
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  margin-left: -7px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ui-range-bar-dot--in-range {
  background: var(--color-status-in-range);
}

.ui-range-bar-dot--low {
  background: var(--color-status-low);
}

.ui-range-bar-dot--high {
  background: var(--color-status-high);
}

.ui-range-bar-scale {
  color: var(--color-text-muted);
  justify-content: space-between;
  font-size: 12px;
  display: flex;
}

.ui-ring {
  width: 128px;
  height: 128px;
  position: relative;
}

.ui-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ui-ring-track {
  stroke: var(--color-surface-sunken);
}

.ui-ring-fill {
  transition: stroke-dashoffset .6s;
}

.ui-ring-fill--in-range {
  stroke: var(--color-status-in-range);
}

.ui-ring-fill--borderline {
  stroke: var(--color-status-borderline);
}

.ui-ring-fill--low {
  stroke: var(--color-status-low);
}

.ui-ring-fill--high {
  stroke: var(--color-status-high);
}

.ui-ring-fill--accent {
  stroke: var(--color-action-primary);
}

.ui-ring-center {
  text-align: center;
  place-content: center;
  justify-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.ui-ring-value {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.ui-ring-unit {
  color: var(--color-text-muted);
  font-size: 13px;
}

.ui-ring-label {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: 12px;
}

.ui-stat {
  gap: 3px;
  display: grid;
}

.ui-stat-value {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.ui-stat-value small {
  font-family: var(--font-ui);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.ui-stat-label {
  font-family: var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.ui-stat-note {
  color: var(--color-text-muted);
  font-size: 13px;
}

.ui-empty {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  display: flex;
}

.ui-empty--center {
  text-align: center;
  align-items: center;
}

.ui-empty-header {
  align-items: inherit;
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.ui-empty-icon {
  background: var(--color-accent-tint);
  width: 40px;
  height: 40px;
  color: var(--color-action-primary);
  border-radius: 50%;
  place-items: center;
  margin-bottom: 2px;
  display: grid;
}

.ui-empty-title {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
}

.ui-empty-text {
  max-width: 46ch;
  color: var(--color-text-muted);
  font-size: 14px;
}

.ui-empty-content {
  align-items: inherit;
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.ui-sparkline {
  width: 100%;
  height: auto;
  display: block;
}

.ui-sparkline-grid {
  stroke: var(--color-border-soft);
  stroke-width: 1px;
}

.ui-sparkline-area {
  fill: var(--color-accent-tint);
  opacity: .5;
}

.ui-sparkline-line {
  fill: none;
  stroke: var(--color-action-primary);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-sparkline-dot {
  fill: var(--color-action-primary);
}

.ui-icon {
  color: currentColor;
  flex: none;
  width: 20px;
  height: 20px;
}

.shell {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  background: var(--color-canvas);
  min-height: 100dvh;
  display: grid;
}

.shell[data-rail="collapsed"] {
  --rail-w: var(--rail-w-collapsed);
}

.shell-topbar {
  display: none;
}

.brand {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--color-text);
  white-space: nowrap;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 14px;
  font-size: 19px;
  font-weight: 620;
  display: flex;
}

.brand-mark-svg {
  flex: none;
  width: 38px;
  height: 38px;
  overflow: visible;
}

.brand-mark-paper {
  fill: var(--color-surface-raised);
  stroke: var(--color-border);
  stroke-width: 2px;
}

.brand-mark-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark-line--strong {
  stroke: var(--color-border);
  stroke-width: 3px;
}

.brand-mark-line--soft {
  stroke: var(--color-border-soft);
  stroke-width: 3px;
}

.brand-mark-fold {
  fill: var(--color-accent-tint);
  stroke: var(--color-border);
  stroke-width: 2px;
}

.brand-mark-letter {
  fill: var(--color-text);
  font-family: var(--font-display);
  dominant-baseline: auto;
  font-size: 54px;
  font-weight: 560;
}

.brand-mark-dot {
  fill: var(--color-accent);
}

.brand-word {
  line-height: 1;
}

.brand--mark-only {
  justify-content: center;
  padding: 0;
}

.shell-rail {
  z-index: 20;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-soft);
  flex-direction: column;
  height: 100dvh;
  display: flex;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.shell-nav {
  flex-direction: column;
  flex: auto;
  padding: 4px 12px;
  display: flex;
}

.shell-nav-group {
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
  display: flex;
}

.shell-nav-group:first-child {
  margin-top: 4px;
}

.shell-nav-kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 640;
}

.shell-nav a {
  border-radius: var(--radius-md);
  min-height: 42px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: background-color .18s var(--motion-out), color .18s var(--motion-out);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 560;
  display: flex;
  position: relative;
}

.shell-nav a:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.shell-nav a[data-status="active"], .shell-nav a[aria-current="page"] {
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-weight: 620;
}

.shell-nav a[data-status="active"]:before, .shell-nav a[aria-current="page"]:before {
  content: "";
  background: var(--color-accent);
  border-radius: 2px;
  width: 3px;
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
}

.shell-nav-icon, .shell-nav .ui-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.shell-nav-label {
  text-overflow: ellipsis;
  overflow: hidden;
}

.shell-rail-foot {
  border-top: 1px solid var(--color-border-soft);
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 10px 12px 16px;
  display: flex;
}

.shell-rail-toggle {
  border-radius: var(--radius-md);
  min-height: 38px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color .18s var(--motion-out), color .18s var(--motion-out);
  background: none;
  border: 0;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 560;
  display: flex;
}

.shell-rail-toggle:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.shell-user {
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 6px;
  display: flex;
}

.shell-user-avatar {
  background: var(--color-surface-sunken);
  width: 34px;
  height: 34px;
  color: var(--color-action-primary);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 14px;
  font-weight: 620;
  display: grid;
}

.shell-user-meta {
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  display: flex;
}

.shell-user-meta strong {
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 560;
  overflow: hidden;
}

.shell-user-meta span {
  color: var(--color-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.shell-user-signout {
  border-radius: var(--radius-md);
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color .18s var(--motion-out), color .18s var(--motion-out);
  background: none;
  border: 0;
  flex: none;
  place-items: center;
  margin-left: auto;
  display: grid;
}

.shell-user-signout:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.shell-user-signout .ui-icon {
  width: 18px;
  height: 18px;
}

.shell-scrim {
  display: none;
}

.shell-main {
  min-width: 0;
  padding: var(--shell-main-pad-top) var(--shell-main-pad-x) var(--shell-main-pad-bottom);
}

.shell-main > * {
  margin-inline: auto;
}

@media (min-width: 821px) {
  .shell[data-rail="collapsed"] .brand {
    justify-content: center;
    padding-inline: 0;
  }

  .shell[data-rail="collapsed"] .brand-word, .shell[data-rail="collapsed"] .shell-nav-kicker, .shell[data-rail="collapsed"] .shell-nav-label, .shell[data-rail="collapsed"] .shell-user-meta {
    display: none;
  }

  .shell[data-rail="collapsed"] .shell-nav a, .shell[data-rail="collapsed"] .shell-rail-toggle {
    justify-content: center;
    padding-inline: 0;
  }

  .shell[data-rail="collapsed"] .shell-nav-group {
    border-top: 1px solid var(--color-border-soft);
    margin-top: 12px;
    padding-top: 12px;
  }

  .shell[data-rail="collapsed"] .shell-nav-group:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .shell[data-rail="collapsed"] .shell-user {
    flex-direction: column;
    gap: 8px;
  }

  .shell[data-rail="collapsed"] .shell-user-signout {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell-topbar {
    z-index: 30;
    height: var(--topbar-h);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-soft);
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    display: flex;
    position: fixed;
    inset: 0 0 auto;
  }

  .shell-topbar .brand {
    padding: 0;
  }

  .shell-topbar-menu {
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: 0;
    flex: none;
    place-items: center;
    display: grid;
  }

  .shell-topbar-menu:hover {
    background: var(--color-surface-sunken);
  }

  .shell-rail {
    z-index: 40;
    width: min(300px, 84vw);
    box-shadow: var(--shadow-md);
    transition: transform .25s var(--motion-out);
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
  }

  .shell[data-drawer="open"] .shell-rail {
    transform: translateX(0);
  }

  .shell-rail .brand {
    padding-top: 16px;
  }

  .shell-rail-toggle {
    display: none;
  }

  .shell-scrim {
    z-index: 35;
    background: var(--scrim);
    cursor: pointer;
    border: 0;
    padding: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .shell-main {
    --shell-main-pad-top: calc(var(--topbar-h) + 18px);
    --shell-main-pad-bottom: 44px;
    --shell-main-pad-x: 18px;
  }
}

@media (max-width: 520px) {
  .shell-main {
    --shell-main-pad-x: 14px;
  }
}

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

.auth-card {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  background: var(--color-surface-raised);
  width: min(100%, 400px);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  padding: 30px;
}

.auth-card .brand {
  margin-bottom: 6px;
  padding: 0;
  font-size: 26px;
}

.auth-card .brand-mark-svg {
  width: 42px;
  height: 42px;
}

.auth-card h1 {
  margin: 6px 0 4px;
  font-size: 29px;
  font-weight: 740;
  line-height: 1.1;
}

.auth-card .sub {
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.auth-form {
  gap: 14px;
  display: grid;
}

.auth-form label {
  color: var(--color-text-secondary);
  gap: 6px;
  font-size: 13.5px;
  font-weight: 560;
  display: grid;
}

.auth-form input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  height: 44px;
  color: var(--color-text);
  font: inherit;
  padding: 0 13px;
  font-size: 16px;
}

.auth-form input:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--color-action-primary);
}

.auth-form input[readonly] {
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
}

.auth-form button[type="submit"] {
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
  height: 46px;
  color: var(--color-action-primary-text);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-inset);
  transition: transform .26s var(--motion-spring), background-color .22s var(--motion-out);
  border: 0;
  margin-top: 4px;
  font-weight: 680;
}

.auth-form button[type="submit"]:hover {
  background: var(--color-action-primary-hover);
  transform: translateY(-1px);
}

.auth-form button[type="submit"]:active {
  transform: translateY(1px) scale(.98);
}

.auth-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: default;
}

.auth-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 14px;
}

.auth-notice {
  color: var(--color-status-normal-text);
  margin: 0;
  font-size: 14px;
}

.auth-forgot {
  text-align: right;
  margin: -4px 0 0;
  font-size: 13px;
}

.auth-toggle {
  color: var(--color-text-muted);
  margin-top: 16px;
  font-size: 14px;
}

.link-button {
  color: var(--color-action-primary);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 560;
}

.link-button:hover {
  color: var(--color-action-primary-hover);
  text-decoration: underline;
}

.bm, .intg, .prod, .rad, .proto, .set {
  width: min(100%, var(--page-max-app));
  max-width: var(--page-max-app);
}

.rad-header h1 {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--color-text);
  font-weight: 500;
}

.rad-header-sub {
  color: var(--color-text-muted);
}

.prod-input, .prod-textarea, .proto-note, .set-field input, .set-input, .rad-field input, .rad-field select, .rad-field textarea {
  min-height: var(--field-height-md);
  padding: var(--field-pad-y) var(--field-pad-x);
  border-color: var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.prod-input:focus, .prod-textarea:focus, .proto-note:focus, .set-field input:focus, .set-input:focus, .rad-field input:focus, .rad-field select:focus, .rad-field textarea:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--color-action-primary);
}

.dash-card {
  padding: var(--card-pad);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.bm-card, .rad-card {
  box-shadow: var(--shadow-sm);
}

.dash-card-kicker {
  font-family: var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.dash-cta {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-md);
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  cursor: pointer;
  box-shadow: var(--shadow-inset);
  transition: transform .26s var(--motion-spring), background-color .22s var(--motion-out), box-shadow .26s var(--motion-out);
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  display: inline-flex;
  position: relative;
}

.dash-cta:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  transform: translateY(-1px);
}

.dash-cta:active {
  transform: translateY(1px) scale(.98);
}

.dash-cta:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.dash-empty {
  justify-items: start;
  gap: 8px;
  padding: 12px 0;
  display: grid;
}

.dash-empty-title {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
}

.dash-empty-sub {
  max-width: 46ch;
  color: var(--color-text-muted);
  font-size: 14px;
}

.dash-skeleton {
  gap: 16px;
  display: grid;
}

.dash-skeleton-block {
  border-radius: var(--card-radius);
  background: linear-gradient(100deg, var(--color-surface) 30%, var(--color-surface-sunken) 50%, var(--color-surface) 70%);
  height: 120px;
  animation: dash-shimmer 1.4s var(--motion-out) infinite;
  background-size: 200% 100%;
}

@keyframes dash-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-skeleton-block {
    animation: none;
  }
}

.bm-chip, .prod-tab {
  border-radius: var(--radius-md);
}

.bm-chip.is-active, .prod-tab.is-active {
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
}

.chat {
  height: calc(100svh - var(--shell-main-pad-top) - var(--shell-main-pad-bottom));
  background: none;
  gap: 0;
  min-height: 320px;
  margin: 0 -8px;
  display: flex;
}

.chat-loading {
  color: var(--color-text-muted);
  padding: 8px;
}

.chat > .brand-loading, .chat-scroll > .brand-loading {
  margin: auto;
}

.chat-error-card {
  max-width: 420px;
  margin: 24px;
}

.chat-rail {
  border-right: 1px solid var(--color-border);
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  width: 240px;
  padding: 4px 12px 4px 4px;
  display: flex;
  overflow-y: auto;
}

.chat-new {
  width: 100%;
}

.chat-tracks {
  align-content: start;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.chat-tracks-empty {
  color: var(--color-text-muted);
  padding: 8px;
  font-size: 13px;
}

.chat-track {
  border-radius: var(--radius-sm);
  display: grid;
  position: relative;
}

.chat-track.is-active {
  background: var(--color-accent-tint);
}

.chat-track-main {
  border-radius: var(--radius-sm);
  min-width: 0;
  font: inherit;
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  display: flex;
}

.chat-track.is-active .chat-track-main {
  color: var(--color-action-primary);
  font-weight: 600;
}

.chat-track:hover:not(.is-active) {
  background: var(--color-surface-sunken);
}

.chat-track-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.chat-track-count {
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-size: 11px;
}

.chat-track-actions {
  gap: 2px;
  padding: 0 6px 6px;
  display: none;
}

.chat-track:hover .chat-track-actions, .chat-track:focus-within .chat-track-actions {
  display: flex;
}

@media (hover: none) {
  .chat-track-actions {
    display: flex;
  }
}

.chat-track-action {
  font: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}

.chat-track-action:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.chat-track-action.is-danger {
  color: var(--color-status-high-text);
  font-weight: 650;
}

.chat-track-rename {
  border: 1px solid var(--color-focus);
  border-radius: var(--radius-sm);
  height: 32px;
  font: inherit;
  background: var(--color-surface-raised);
  color: var(--color-text);
  margin: 4px;
  padding: 0 8px;
  font-size: 14px;
}

.chat-main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.chat-scroll {
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 8px 20px 16px;
  display: flex;
  overflow-y: auto;
}

.chat-empty {
  text-align: center;
  gap: 6px;
  max-width: 40ch;
  margin: auto;
  display: grid;
}

.chat-empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.chat-empty-sub {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.chat-msg {
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 65ch;
}

.chat-msg.is-grouped {
  margin-top: -6px;
}

.chat-msg.is-user {
  background: var(--color-text);
  max-width: 48ch;
  color: var(--color-surface-raised);
  white-space: pre-wrap;
  border-radius: 16px 16px 4px;
  align-self: flex-end;
  padding: 10px 14px;
  font-size: 15px;
}

.chat-msg.is-assistant {
  color: var(--color-text);
  align-self: flex-start;
  font-size: 15px;
  line-height: 1.65;
}

.chat-group-time {
  color: var(--color-text-muted);
  align-self: flex-start;
  margin-top: -8px;
  font-size: 11.5px;
}

.chat-group-time.is-user {
  align-self: flex-end;
}

.chat-md > :first-child {
  margin-top: 0;
}

.chat-md > :last-child {
  margin-bottom: 0;
}

.chat-md p {
  margin: 0 0 10px;
}

.chat-md h1, .chat-md h2, .chat-md h3 {
  margin: 14px 0 6px;
  line-height: 1.3;
}

.chat-md h1 {
  font-size: 18px;
}

.chat-md h2 {
  font-size: 16.5px;
}

.chat-md h3 {
  font-size: 15.5px;
}

.chat-md ul, .chat-md ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.chat-md li {
  margin: 3px 0;
}

.chat-md code {
  background: var(--color-surface-sunken);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13.5px;
}

.chat-md pre {
  background: var(--color-text);
  color: var(--color-surface-raised);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  overflow-x: auto;
}

.chat-md pre code {
  color: inherit;
  background: none;
  padding: 0;
}

.chat-md blockquote {
  border-left: 3px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  margin: 0 0 10px;
  padding: 2px 0 2px 12px;
}

.chat-md a {
  color: var(--color-action-primary);
}

.chat-md table {
  border-collapse: collapse;
  max-width: 100%;
  margin: 0 0 10px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.chat-md th, .chat-md td {
  border: 1px solid var(--color-border);
  text-align: left;
  padding: 5px 10px;
}

.chat-reasoning {
  color: var(--color-text-muted);
  margin: 0 0 8px;
  font-size: 13px;
}

.chat-reasoning summary {
  cursor: pointer;
  font-weight: 600;
}

.chat-reasoning p {
  white-space: pre-wrap;
  margin: 6px 0 0;
}

.chat-image {
  border-radius: 10px;
  max-width: 320px;
  display: block;
}

.chat-tool-note {
  color: var(--color-text-muted);
  margin: 0 0 8px;
  font-size: 12.5px;
}

.chat-context-chip {
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-surface-raised);
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-block;
}

.chat-typing {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.chat-turn-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 14px;
}

.chat-confirm {
  border: 1px solid var(--color-status-borderline);
  border-radius: var(--radius-md);
  background: var(--color-status-borderline-tint);
  gap: 8px;
  max-width: 52ch;
  padding: 14px 16px;
  display: grid;
}

.chat-confirm.is-resolved {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.chat-confirm-kicker {
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-status-borderline-text);
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
}

.chat-confirm.is-resolved .chat-confirm-kicker {
  color: var(--color-text-muted);
}

.chat-confirm-preview {
  color: var(--color-text);
  white-space: pre-wrap;
  margin: 0;
  font-size: 14px;
}

.chat-confirm-actions {
  gap: 8px;
  display: flex;
}

.chat-confirm-state {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.chat-deepjob {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  align-items: center;
  gap: 8px;
  max-width: 52ch;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
}

.chat-deepjob-dot {
  background: var(--color-border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.chat-deepjob.is-running .chat-deepjob-dot, .chat-deepjob.is-queued .chat-deepjob-dot {
  background: var(--color-status-borderline);
}

.chat-deepjob.is-done .chat-deepjob-dot {
  background: var(--color-status-in-range);
}

.chat-deepjob.is-error .chat-deepjob-dot {
  background: var(--color-status-high);
}

.chat-composer {
  border-top: 1px solid var(--color-border);
  align-items: flex-end;
  gap: 8px;
  padding: 12px 20px 4px;
  display: flex;
  position: relative;
}

.chat-input {
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 44px;
  max-height: 160px;
  font: inherit;
  background: var(--color-surface-raised);
  color: var(--color-text);
  flex: 1;
  padding: 10px 14px;
  font-size: 16px;
}

.chat-input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: -1px;
  border-color: #0000;
}

.chat-mic {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  cursor: pointer;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.chat-mic.is-recording {
  border-color: var(--color-status-high);
  background: var(--color-status-high-tint);
  color: var(--color-status-high-text);
  animation: 1.2s ease-in-out infinite chat-pulse;
}

@keyframes chat-pulse {
  0%, 100% {
    box-shadow: var(--ring-recording);
  }

  50% {
    box-shadow: var(--ring-recording-wide);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-mic.is-recording {
    animation: none;
  }
}

.chat-mic:disabled {
  opacity: .5;
  cursor: default;
}

.chat-send {
  flex-shrink: 0;
  height: 44px;
}

.chat-composer-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 13px;
  position: absolute;
  top: -26px;
  left: 20px;
}

@media (max-width: 860px) {
  .chat {
    height: auto;
    min-height: calc(100svh - var(--shell-main-pad-top) - var(--shell-main-pad-bottom));
    flex-direction: column;
  }

  .chat-rail {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    max-height: 148px;
    padding: 0 0 10px;
  }

  .chat-scroll {
    padding: 12px 4px;
  }

  .chat-composer {
    padding: 10px 4px 4px;
  }
}

.chat-msg.is-streaming .chat-md > :last-child:after, .chat-msg.is-streaming > .chat-tool-note:last-child:after {
  content: "";
  vertical-align: text-bottom;
  background: var(--color-text-muted);
  border-radius: 2px;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  animation: 1s steps(2, start) infinite chat-caret-pulse;
  display: inline-block;
}

@keyframes chat-caret-pulse {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-msg.is-streaming .chat-md > :last-child:after, .chat-msg.is-streaming > .chat-tool-note:last-child:after {
    opacity: .5;
    animation: none;
  }
}

.bm {
  max-width: var(--page-max-list);
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  display: grid;
}

.bm-card {
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.bm-upload-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  display: flex;
}

.bm-file-input, .rad-file-input {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.bm-upload-hint {
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0;
  font-size: 13px;
}

.bm-upload-status, .rad-status-line {
  color: var(--color-text-secondary);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  display: flex;
}

.bm-upload-error, .rad-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}

.bm-upload-failed, .rad-failed {
  justify-items: start;
  gap: 8px;
  display: grid;
}

.bm-review {
  justify-items: start;
  gap: 12px;
  display: grid;
}

.bm-review-summary {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
}

.bm-review-scroll {
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
}

.bm-row-dup {
  color: var(--color-text-muted);
}

.bm-dup-tag {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
}

.bm-review-saved {
  gap: 4px;
  display: grid;
}

.bm-review-saved-title {
  color: var(--color-status-in-range-text);
  margin: 0;
  font-weight: 650;
}

.bm-review-saved-sub {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
}

.bm-reports {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.bm-reports-note {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.bm-report-row {
  border-bottom: 1px solid var(--color-border-soft);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  display: flex;
}

.bm-report-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bm-report-row:first-child {
  padding-top: 0;
}

.bm-report-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 32ch;
  font-weight: 550;
  overflow: hidden;
}

.bm-report-status {
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--color-surface-sunken);
  color: var(--color-text-secondary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.bm-report-failed {
  background: var(--color-status-high-tint);
  color: var(--color-status-high-text);
}

.bm-report-parsed {
  background: var(--color-status-borderline-tint);
  color: var(--color-status-borderline-text);
}

.bm-report-error {
  color: var(--color-status-high-text);
  font-size: 13px;
}

.bm-filters {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.bm-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 550;
}

.bm-chip:hover {
  border-color: var(--color-action-primary);
}

.bm-chip.is-active {
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
  color: var(--color-action-primary-text);
}

.bm-group {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  display: grid;
}

.bm-group-title {
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 6px 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.bm-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.bm-row {
  border: 1px solid var(--color-border-soft);
  border-left: 3px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  color: inherit;
  box-shadow: var(--shadow-sm);
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px) minmax(110px, 180px) auto auto;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s;
  display: grid;
}

.bm-row:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.bm-row[data-status="optimal"], .bm-row[data-status="sufficient"] {
  border-left-color: var(--color-status-in-range);
}

.bm-row[data-status="out_of_range"] {
  border-left-color: var(--color-status-high);
}

.bm-row-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
}

.bm-row-value {
  font-variant-numeric: tabular-nums;
  min-width: 0;
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.bm-row-range {
  align-items: center;
  min-width: 0;
  display: flex;
}

.bm-row-range .ui-range-bar {
  gap: 0;
  width: 100%;
}

.bm-row-range .ui-range-bar-scale {
  display: none;
}

.bm-row-range .ui-range-bar-track {
  height: 6px;
}

.bm-row-range-empty {
  color: var(--color-text-muted);
  font-size: 13px;
}

.bm-row-pill {
  flex-shrink: 0;
}

.bm-row-date {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-size: 13px;
}

@media (max-width: 640px) {
  .bm-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .bm-row-range, .bm-row-date {
    display: none;
  }
}

.bm-back, .rad-back {
  color: var(--color-action-primary);
  justify-self: start;
  font-size: 14px;
  text-decoration: none;
}

.bm-back:hover, .rad-back:hover, .rad-pdf-link:hover {
  text-decoration: underline;
}

.bm-detail-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  display: flex;
}

.bm-detail-header h1 {
  letter-spacing: 0;
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.bm-detail-meta {
  color: var(--color-text-muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.bm-detail-latest {
  justify-items: end;
  gap: 6px;
  display: grid;
}

.bm-detail-value {
  letter-spacing: 0;
  font-size: 26px;
  font-weight: 650;
}

.bm-detail-unit {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
}

.bm-detail-latest-sub {
  align-items: center;
  gap: 8px;
  display: flex;
}

.bm-tier {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.bm-detail-date {
  color: var(--color-text-muted);
  font-size: 12px;
}

.bm-detail-desc {
  color: var(--color-text-secondary);
  max-width: 70ch;
  margin: 0;
  font-size: 14px;
}

.bm-trend {
  color: var(--color-text-secondary);
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  display: flex;
}

.bm-trend-item {
  align-items: baseline;
  gap: 6px;
  display: inline-flex;
}

.bm-trend-delta {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  font-weight: 650;
}

.bm-trend-arrow {
  color: var(--color-text-muted);
  margin-right: 3px;
  font-weight: 700;
}

.bm-trend-label {
  color: var(--color-text-muted);
}

.bm-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.bm-chart-frame {
  min-width: 560px;
  position: relative;
}

.bm-chart {
  width: 100%;
  height: auto;
  display: block;
}

.bm-chart-tick {
  fill: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.bm-chart-band-ref {
  fill: var(--color-text-muted);
  opacity: .1;
}

.bm-chart-band-optimal {
  fill: var(--color-status-in-range);
  opacity: .14;
}

.bm-chart-band-label {
  font-size: 11px;
  font-weight: 600;
}

.bm-chart-band-label--ref {
  fill: var(--color-text-muted);
}

.bm-chart-band-label--optimal {
  fill: var(--color-status-in-range-text);
}

.bm-chart-grid {
  stroke: var(--color-border-soft);
}

.bm-chart-axis {
  stroke: var(--color-border);
}

.bm-chart-crosshair {
  stroke: var(--color-border-strong);
}

.bm-chart-line {
  fill: none;
  stroke: var(--color-accent);
}

.bm-chart-point {
  fill: var(--color-accent);
  stroke: var(--color-surface-raised);
  stroke-width: 2px;
}

.bm-chart-point--low {
  fill: var(--color-status-low);
}

.bm-chart-point--high {
  fill: var(--color-status-high);
}

.bm-chart-endlabel {
  fill: var(--color-text);
  font-size: 12px;
  font-weight: 650;
}

.bm-chart-note {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.bm-chart svg, .bm-chart g:focus {
  outline: none;
}

.bm-chart g:focus-visible circle[data-testid="bm-chart-point"] {
  stroke: var(--color-text);
}

.bm-chart-tooltip {
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  gap: 1px;
  padding: 8px 10px;
  font-size: 12px;
  display: grid;
  position: absolute;
  transform: translate(-50%, -115%);
}

.bm-chart-tooltip-value {
  font-size: 14px;
  font-weight: 700;
}

.bm-chart-tooltip-date {
  color: var(--color-text-muted);
}

.bm-chart-tooltip-ok {
  color: var(--color-status-in-range-text);
  font-weight: 600;
}

.bm-chart-tooltip-out {
  color: var(--color-status-high-text);
  font-weight: 600;
}

.bm-tiles {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  display: grid;
}

.bm-tile {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface-sunken);
  gap: 2px;
  padding: 10px 12px;
  display: grid;
}

.bm-tile-label {
  color: var(--color-text-muted);
  font-size: 12px;
}

.bm-tile-value {
  letter-spacing: 0;
  font-size: 18px;
  font-weight: 650;
}

.bm-table-scroll {
  overflow-x: auto;
}

.bm-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.bm-table th {
  text-align: left;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-soft);
  padding: 6px 12px 6px 0;
  font-size: 12px;
  font-weight: 700;
}

.bm-table td {
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text-secondary);
  padding: 8px 12px 8px 0;
}

.bm-table tr:last-child td {
  border-bottom: 0;
}

.bm-table-value {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  font-weight: 600;
}

.bm-table-out {
  color: var(--color-status-high-text);
  font-weight: 600;
}

.intg {
  max-width: var(--page-max-app);
  gap: 16px;
  display: grid;
}

.intg-banner {
  border-radius: var(--radius-md);
  border: 1px solid #0000;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 550;
}

.intg-banner-success {
  background: var(--color-status-in-range-tint);
  border-color: var(--color-status-in-range);
  color: var(--color-status-in-range-text);
}

.intg-banner-error {
  background: var(--color-status-high-tint);
  border-color: var(--color-status-high);
  color: var(--color-status-high-text);
}

.intg-banner-info {
  background: var(--color-status-low-tint);
  border-color: var(--color-status-low);
  color: var(--color-status-low-text);
}

.intg-card {
  gap: 8px;
}

.intg-card-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.intg-card-heading {
  align-items: center;
  gap: 10px;
  display: flex;
}

.intg-card-title {
  margin: 0;
  font-size: 18px;
}

.intg-brand-logo {
  width: auto;
  display: block;
}

.intg-brand-logo-whoop {
  height: 14px;
}

.intg-brand-logo-oura {
  height: 22px;
}

.intg-card-desc {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
}

.intg-card-meta {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
}

.intg-actions {
  justify-items: start;
  gap: 10px;
  margin-top: 4px;
  display: grid;
}

.intg-action-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.intg-note {
  color: var(--color-status-in-range-text);
  margin: 0;
  font-size: 13px;
}

.intg-mcp-url {
  border-radius: var(--radius-sm);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--color-text);
  padding: 10px 12px;
  font-size: 13px;
  display: block;
}

.intg-mcp-link {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.intg-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 13px;
}

.intg-confirm {
  border: 1px solid var(--color-status-high);
  border-radius: var(--radius-md);
  background: var(--color-status-high-tint);
  justify-items: start;
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.intg-confirm-text {
  color: var(--color-status-high-text);
  max-width: 52ch;
  margin: 0;
  font-size: 14px;
}

.prod {
  max-width: var(--page-max-list);
  gap: 16px;
  display: grid;
}

.prod-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.prod-input {
  padding: var(--field-pad-y) var(--field-pad-x);
  border: 1px solid var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-raised);
  font: inherit;
  color: var(--color-text);
  font-size: 14px;
}

.prod-input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.prod-search {
  flex: 1;
  min-width: 220px;
}

.prod-undo {
  border: 1px solid var(--color-status-low);
  border-radius: var(--radius-md);
  background: var(--color-status-low-tint);
  color: var(--color-status-low-text);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
}

.prod-undo-btn {
  font: inherit;
  color: var(--color-status-low-text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}

.prod-undo-btn:disabled {
  opacity: .6;
  cursor: default;
}

.prod-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 13px;
}

.prod-stale {
  border: 1px solid var(--color-status-borderline);
  border-radius: var(--radius-md);
  background: var(--color-status-borderline-tint);
  justify-items: start;
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.prod-stale-text {
  color: var(--color-status-borderline-text);
  max-width: 56ch;
  margin: 0;
  font-size: 14px;
}

.prod-editor {
  gap: 12px;
  display: grid;
}

.prod-field {
  gap: 6px;
  display: grid;
}

.prod-label {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.prod-desc-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.prod-tabs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  gap: 2px;
  padding: 2px;
  display: inline-flex;
}

.prod-tab {
  border-radius: var(--radius-pill);
  font: inherit;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

.prod-tab.is-active {
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.prod-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: var(--field-pad-y) var(--field-pad-x);
  border: 1px solid var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-raised);
  font: inherit;
  color: var(--color-text);
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.prod-textarea:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.prod-md {
  padding: var(--field-pad-y) var(--field-pad-x);
  border: 1px solid var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-sunken);
  font-size: 14px;
}

.prod-md-empty {
  color: var(--color-text-muted);
  margin: 0;
}

.prod-import {
  justify-items: start;
  gap: 8px;
  display: grid;
}

.prod-file-input {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.prod-import-hint {
  color: var(--color-text-muted);
  font-size: 13px;
}

.prod-import-status {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 13px;
}

.prod-label-thumb {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  max-width: 140px;
  max-height: 140px;
}

.prod-list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.prod-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  display: flex;
}

.prod-card-title {
  -webkit-line-clamp: 2;
  min-height: 2.6em;
  color: var(--color-text);
  -webkit-box-orient: vertical;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.prod-card-chip-slot {
  align-items: center;
  min-height: 22px;
  display: flex;
}

.prod-row-brand {
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 650;
}

.prod-card-foot {
  border-top: 1px solid var(--color-border-soft);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
}

.prod-row-meta {
  color: var(--color-text-muted);
  white-space: nowrap;
  font-size: 13px;
}

.prod-row-actions {
  gap: 8px;
  display: flex;
}

.rad {
  max-width: var(--page-max-app);
  gap: 18px;
  display: grid;
}

.rad-header h1 {
  letter-spacing: 0;
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.rad-header-sub {
  color: var(--color-text-muted);
  margin: 6px 0 0;
  font-size: 13px;
}

.rad-card {
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.rad-upload-form {
  justify-items: start;
  gap: 10px;
  display: grid;
}

.rad-upload-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.rad-upload-hint {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0;
  font-size: 13px;
}

.rad-review {
  justify-items: start;
  gap: 14px;
  width: 100%;
  display: grid;
}

.rad-review-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.rad-review-hint {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
}

.rad-dup-warning {
  border: 1px solid var(--color-status-borderline);
  border-radius: var(--radius-md);
  background: var(--color-status-borderline-tint);
  color: var(--color-status-borderline-text);
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
}

.rad-dup-warning a {
  color: var(--color-status-borderline-text);
}

.rad-form-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
  display: grid;
}

.rad-field {
  color: var(--color-text-secondary);
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.rad-field input, .rad-field select, .rad-field textarea {
  font: inherit;
  color: var(--color-text);
  padding: var(--field-pad-y) var(--field-pad-x);
  border: 1px solid var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-raised);
  font-size: 14px;
  font-weight: 400;
}

.rad-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.rad-field-wide {
  width: 100%;
}

.rad-confirm-error {
  border: 1px solid var(--color-status-high);
  border-radius: var(--radius-md);
  background: var(--color-status-high-tint);
  justify-items: start;
  gap: 8px;
  padding: 10px 14px;
  display: grid;
}

.rad-confirm-error p {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}

.rad-saved {
  gap: 4px;
  display: grid;
}

.rad-saved-title {
  color: var(--color-status-in-range-text);
  margin: 0;
  font-weight: 650;
}

.rad-saved-sub {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
}

.rad-list {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.rad-row {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: border-color .12s, box-shadow .12s;
  display: grid;
}

.rad-row:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.rad-row-main {
  color: inherit;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
  display: grid;
}

.rad-row-main:hover .rad-row-title {
  color: var(--color-action-primary);
}

.rad-row-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.rad-row-meta {
  color: var(--color-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.rad-row-date {
  color: var(--color-text-muted);
  white-space: nowrap;
  font-size: 13px;
}

.rad-status {
  justify-self: end;
}

@media (max-width: 720px) {
  .rad-row {
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rad-row-date {
    grid-column: 1;
  }

  .rad-status {
    grid-area: 1 / 2;
  }
}

.rad-review-nudge {
  border: 1px solid var(--color-status-borderline);
  border-radius: var(--radius-md);
  background: var(--color-status-borderline-tint);
  color: var(--color-status-borderline-text);
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
}

.rad-meta {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  display: grid;
}

.rad-meta-item dt {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.rad-meta-item dd {
  color: var(--color-text);
  margin: 2px 0 0;
  font-size: 14px;
}

.rad-pdf-link {
  color: var(--color-action-primary);
  place-self: start;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.rad-body-text {
  color: var(--color-text);
  white-space: pre-wrap;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.rad-body-missing {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.rad-danger-zone {
  justify-items: start;
  display: grid;
}

.rad-delete-confirm {
  border: 1px solid var(--color-status-high);
  border-radius: var(--radius-md);
  background: var(--color-status-high-tint);
  justify-items: start;
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.rad-delete-confirm p {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}

.rad-delete-actions {
  gap: 10px;
  display: flex;
}

.proto {
  max-width: var(--page-max-reading);
  gap: 16px;
  display: grid;
}

.proto-card {
  gap: 8px;
}

.proto-title {
  margin: 0;
  font-size: 18px;
}

.proto-meta {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
}

.proto-summary {
  max-width: 68ch;
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.proto-adherence {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
}

.proto-today {
  color: var(--color-status-in-range-text);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.proto-actions {
  justify-items: start;
  gap: 10px;
  margin-top: 4px;
  display: grid;
}

.proto-action-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.ui-btn.is-current {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 1px;
}

.proto-note {
  padding: var(--field-pad-y) var(--field-pad-x);
  border: 1px solid var(--color-border);
  border-radius: var(--field-radius);
  background: var(--color-surface-raised);
  font: inherit;
  color: var(--color-text);
  width: min(100%, 420px);
  font-size: 14px;
}

.proto-note:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.proto-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 13px;
}

.set {
  max-width: var(--page-max-app);
  gap: 16px;
  display: grid;
}

.set-card {
  padding: calc(var(--card-pad) + 4px);
  gap: 14px;
}

.set-card.is-danger {
  border: 1px solid var(--color-status-high);
}

.set-sub {
  max-width: 100%;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 14px;
}

.set-basics {
  max-width: 100%;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px;
}

.set-profile-form {
  gap: 16px;
  display: grid;
}

.set-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  display: grid;
}

.set-profile-grid {
  gap: 14px 12px;
}

.set-field {
  color: var(--color-text-secondary);
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.set-field input, .set-input {
  min-height: var(--field-height-md);
  border-radius: var(--field-radius);
  border: 1px solid var(--color-border);
  padding: 0 var(--field-pad-x);
  font: inherit;
  background: var(--color-surface-raised);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
}

.set-input {
  width: min(100%, 320px);
}

.set-field input:focus, .set-input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.set-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.set-actions .dash-cta {
  min-height: var(--btn-height-sm);
  padding: 0 var(--btn-pad-sm);
  margin-top: 0;
  font-size: 13px;
}

.set-profile-footer {
  padding-top: 4px;
}

.set-note {
  color: var(--color-status-in-range-text);
  margin: 0;
  font-size: 13px;
}

.set-error {
  color: var(--color-status-high-text);
  margin: 0;
  font-size: 13px;
}

.set-reveal {
  border: 1px solid var(--color-status-borderline);
  border-radius: var(--radius-md);
  background: var(--color-status-borderline-tint);
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.set-reveal-warn {
  color: var(--color-status-borderline-text);
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.set-token {
  border-radius: var(--radius-sm);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--color-text);
  padding: 10px 12px;
  font-size: 13px;
  display: block;
}

.set-keys {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.set-key-row {
  border-top: 1px solid var(--color-border-soft);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.set-key-main {
  gap: 2px;
  display: grid;
}

.set-key-name {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}

.set-key-prefix {
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  font-size: 13px;
}

.set-key-meta {
  color: var(--color-text-muted);
  font-size: 12px;
}

.set-revoked {
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.set-confirm {
  border: 1px solid var(--color-status-high);
  border-radius: var(--radius-md);
  background: var(--color-status-high-tint);
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.set-confirm-text {
  color: var(--color-text);
  margin: 0;
  font-size: 14px;
}

.ui-section-header-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  display: flex;
}

.ui-section-header-actions {
  flex: none;
}

@media (max-width: 640px) {
  .ui-section-header-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.dash {
  width: min(100%, var(--page-max-dashboard));
  max-width: var(--page-max-dashboard);
  gap: 26px;
  display: grid;
  container: dash / inline-size;
}

.dash .page-head h1 {
  font-size: 56px;
  line-height: .98;
}

.dash .page-head .ui-eyebrow {
  color: var(--color-action-primary);
}

.dash-header-chat {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-md);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text);
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 540;
  display: inline-flex;
}

.dash-header-chat:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}

.dash-header-chat .ui-icon {
  width: 18px;
  height: 18px;
}

.dash-hero {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--card-radius);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
  gap: 10px;
  padding: 26px 30px;
  display: grid;
}

.dash-hero[data-status="in-range"] {
  border-left-color: var(--color-status-in-range);
}

.dash-hero[data-status="borderline"] {
  border-left-color: var(--color-status-borderline);
}

.dash-hero[data-status="low"] {
  border-left-color: var(--color-status-low);
}

.dash-hero-eyebrow {
  font-family: var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.dash-hero-headline {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  display: flex;
}

.dash-hero-score {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--color-text);
  font-size: 86px;
  font-weight: 500;
  line-height: .85;
}

.dash-hero-narrative {
  max-width: 62ch;
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
}

.dash-command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "next next body"
                       "labs agenda body"
                       "protocol agenda radiology"
                       "life chat chat";
  gap: 18px;
  display: grid;
}

.dash-command-grid > div {
  min-width: 0;
  display: flex;
}

.dash-command-grid > div > * {
  flex: 1;
}

.dash-next-area {
  grid-area: next;
}

.dash-body-area {
  grid-area: body;
  align-self: start;
}

.dash-labs-area {
  grid-area: labs;
}

.dash-agenda-area {
  grid-area: agenda;
}

.dash-protocol-area {
  grid-area: protocol;
}

.dash-radiology-area {
  grid-area: radiology;
  align-self: start;
}

.dash-life-area {
  grid-area: life;
}

.dash-chat-area {
  grid-area: chat;
}

.dash-command-grid .dash-card {
  flex-direction: column;
  gap: 14px;
  height: 100%;
  display: flex;
}

.dash-card-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.dash-card-head .dash-card-kicker, .dash-card-head .ui-icon {
  margin: 0;
}

.dash-card-head .ui-icon {
  color: var(--color-text-muted);
}

.dash-count-pill {
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 560;
}

.dash-card-foot {
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
}

.dash-action {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-accent-tint);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
}

.dash-action:hover {
  color: var(--color-text);
  border-color: var(--color-action-primary);
}

.dash-action-icon {
  background: var(--color-action-primary);
  width: 46px;
  height: 46px;
  color: var(--color-action-primary-text);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.dash-action-body {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.dash-eyebrow {
  font-family: var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-action-primary);
  font-size: 11.5px;
  font-weight: 600;
}

.dash-action-title {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 19px;
  font-weight: 500;
}

.dash-action-desc {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.dash-action-button {
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-action-primary);
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 560;
  display: inline-flex;
}

.dash-body-grid {
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  display: flex;
}

.dash-recovery-focus {
  flex: none;
}

.dash-tiles {
  flex: 1;
  gap: 14px;
  min-width: 160px;
  display: grid;
}

.dash-trend {
  border-top: 1px solid var(--color-border-soft);
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  padding-top: 14px;
  display: flex;
}

.dash-trend-spark {
  flex: 1;
  min-width: 0;
  max-height: 48px;
}

.dash-trend-delta {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  flex: none;
  font-size: 12.5px;
  font-weight: 560;
}

.dash-trend-delta.is-up {
  color: var(--color-status-in-range-text);
}

.dash-trend-delta.is-down {
  color: var(--color-status-high-text);
}

.dash-labs-list {
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dash-labs-row {
  gap: 6px;
  display: grid;
}

.dash-labs-row-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.dash-labs-name {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 540;
}

.dash-labs-value {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 560;
}

.dash-labs-value small {
  color: var(--color-text-muted);
  font-weight: 500;
}

.dash-quiet-link {
  color: var(--color-action-primary);
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 540;
  display: inline-flex;
}

.dash-quiet-link .ui-icon {
  width: 16px;
  height: 16px;
}

.dash-agenda {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dash-agenda-item {
  align-items: flex-start;
  gap: 11px;
  display: flex;
}

.dash-chip {
  border-radius: var(--radius-pill);
  letter-spacing: .02em;
  background: var(--color-surface-sunken);
  color: var(--color-text-secondary);
  flex: none;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}

.dash-chip-trend_alert {
  background: var(--color-status-borderline-tint);
  color: var(--color-status-borderline-text);
}

.dash-chip-protocol {
  background: var(--color-accent-tint);
  color: var(--color-action-primary);
}

.dash-agenda-copy {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.dash-agenda-title {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 540;
}

.dash-agenda-detail {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.dash-agenda-detail.is-overdue {
  color: var(--color-status-high-text);
}

.dash-checklist {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dash-checklist li {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.dash-checklist li span {
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  width: 15px;
  height: 15px;
}

.dash-checklist li span.is-active {
  border-color: var(--color-action-primary);
  background: var(--color-accent-tint);
}

.dash-checklist strong {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.dash-checklist small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.dash-life-body {
  gap: 12px;
  display: grid;
}

.dash-life-sources {
  color: var(--color-text);
  gap: 2px;
  margin: 0;
  font-size: 14px;
  display: grid;
}

.dash-life-sources span {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.dash-chat {
  color: var(--color-text);
  background: var(--color-surface-sunken);
  text-decoration: none;
}

.dash-chat:hover {
  color: var(--color-text);
  border-color: var(--color-action-primary);
}

.dash-chat-prompt {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 500;
}

.dash-chat-hint {
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.dash-chat-suggestions {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.dash-chat-suggestions span {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  padding: 5px 11px;
  font-size: 12.5px;
}

@media (max-width: 1024px) {
  .dash-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "next body"
                         "labs body"
                         "agenda protocol"
                         "radiology life"
                         "chat chat";
  }
}

@media (max-width: 640px) {
  .dash-command-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "next"
                         "body"
                         "labs"
                         "agenda"
                         "protocol"
                         "radiology"
                         "life"
                         "chat";
  }

  .dash-action {
    flex-wrap: wrap;
  }
}

@container dash (max-width: 1020px) {
  .dash-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "next body"
                         "labs body"
                         "agenda protocol"
                         "radiology life"
                         "chat chat";
  }
}

@container dash (max-width: 640px) {
  .ui-section-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dash .page-head h1 {
    font-size: 42px;
  }

  .dash-command-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "next"
                         "body"
                         "labs"
                         "agenda"
                         "protocol"
                         "radiology"
                         "life"
                         "chat";
  }

  .dash-hero {
    padding: var(--card-pad);
  }

  .dash-hero-score {
    font-size: 64px;
  }

  .dash-action {
    padding: var(--card-pad);
    flex-wrap: wrap;
  }

  .dash-action-button {
    justify-content: center;
    width: 100%;
  }
}

.pub-page {
  width: 100%;
  max-width: var(--page-max-public);
  padding: 0 var(--page-pad-x) 80px;
  color: var(--color-text);
  margin: 0 auto;
  overflow-x: clip;
}

.pub-header {
  z-index: 10;
  width: min(calc(100% - 16px), var(--page-max-public));
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  background: var(--glass-shell);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 14px auto 0;
  padding: 8px 8px 8px 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.pub-brand {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--color-text);
  align-items: center;
  font-size: 21px;
  font-weight: 780;
  display: inline-flex;
}

.pub-brand .brand {
  font-size: inherit;
  font-weight: inherit;
  gap: 9px;
  padding: 0;
}

.pub-brand .brand-mark-svg {
  width: 32px;
  height: 32px;
}

.pub-nav {
  align-items: center;
  gap: 22px;
  display: flex;
}

.pub-nav a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 640;
}

.pub-nav a:hover {
  color: var(--color-text);
}

.pub-nav .pub-sign-in {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-md);
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-inset);
  transition: transform var(--motion-spring), background var(--duration-fast) var(--motion-out), color var(--duration-fast) var(--motion-out);
  align-items: center;
  font-weight: 700;
  display: inline-flex;
}

.pub-nav .pub-sign-in:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  transform: translateY(-1px);
}

.pub-header-menu, .pub-scrim, .pub-drawer {
  display: none;
}

@media (max-width: 820px) {
  .pub-nav {
    display: none;
  }

  .pub-header-menu {
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: 0;
    flex: none;
    place-items: center;
    display: grid;
  }

  .pub-header-menu:hover {
    background: var(--color-surface-sunken);
  }

  .pub-scrim {
    z-index: 35;
    background: var(--scrim);
    cursor: pointer;
    border: 0;
    padding: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .pub-drawer {
    z-index: 40;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border-soft);
    width: min(280px, 84vw);
    box-shadow: var(--shadow-md);
    transition: transform .25s var(--motion-out);
    flex-direction: column;
    padding: 72px 22px 24px;
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
  }

  .pub-drawer[data-state="open"] {
    transform: translateX(0);
  }

  .pub-drawer a {
    border-bottom: 1px solid var(--color-border-soft);
    color: var(--color-text);
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 620;
  }

  .pub-drawer-sign-in {
    min-height: var(--btn-height-md);
    border-radius: var(--radius-pill);
    background: var(--color-action-primary);
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    font-weight: 700;
    display: inline-flex;
    color: var(--color-action-primary-text) !important;
    border-bottom: 0 !important;
  }
}

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

.pub-hero {
  grid-template-columns: minmax(0, .96fr) minmax(460px, 1.04fr);
  align-items: center;
  gap: 44px;
  padding: 40px 0 28px;
  display: grid;
}

.pub-hero-copy {
  gap: 22px;
  display: grid;
}

.pub-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 60px;
  font-weight: 780;
  line-height: 1.02;
}

.pub-accent {
  color: var(--color-accent);
  font-style: italic;
}

.pub-eyebrow {
  font-family: var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-action-primary);
  font-size: 12px;
  font-weight: 760;
}

.pub-hero-copy > .pub-eyebrow {
  margin-bottom: -12px;
}

.pub-hero-copy > p {
  max-width: 46ch;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.5;
}

.pub-actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.pub-primary, .pub-secondary {
  min-height: var(--btn-height-lg);
  padding: 0 var(--btn-pad-lg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-inset);
  transition: transform var(--motion-spring), background var(--duration-fast) var(--motion-out), border-color var(--duration-fast) var(--motion-out), color var(--duration-fast) var(--motion-out);
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 720;
  display: inline-flex;
}

.pub-primary {
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
}

.pub-primary:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  transform: translateY(-1px);
}

.pub-secondary {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.pub-secondary:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
  transform: translateY(-1px);
}

.pub-primary:active, .pub-secondary:active, .pub-final-button:active {
  transform: translateY(1px) scale(.99);
}

.pub-primary .ui-icon, .pub-secondary .ui-icon, .pub-final-button .ui-icon {
  width: 17px;
  height: 17px;
  transition: transform var(--duration-fast) var(--motion-out);
}

.pub-primary:hover .ui-icon, .pub-secondary:hover .ui-icon, .pub-final-button:hover .ui-icon {
  transform: translateX(2px);
}

.pub-proof-row {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  width: min(100%, 920px);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
  padding: 12px;
  display: flex;
}

.pub-proof-row span {
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  min-height: 32px;
  color: var(--color-text-secondary);
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 640;
  display: inline-flex;
}

.pub-proof-row .pub-icon {
  width: 17px;
  height: 17px;
  color: var(--color-action-primary);
}

.pub-hero-visual {
  display: grid;
}

.pub-hero-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  margin: 0;
  overflow: hidden;
}

.pub-hero-frame-bar {
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border-soft);
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  display: flex;
}

.pub-hero-frame-bar span {
  background: var(--color-border-strong);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.pub-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.pub-bento-section, .pub-flow-section, .pub-privacy-section, .pub-loop-section {
  padding: var(--section-gap-y) 0 8px;
}

.pub-bento-section {
  padding-top: 24px;
}

.pub-section-head {
  gap: 10px;
  max-width: 60ch;
  margin-bottom: 30px;
  display: grid;
}

.pub-section-head h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 38px;
  font-weight: 760;
}

.pub-section-head p {
  color: var(--color-text-secondary);
  font-size: 16px;
}

.pub-bento-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
  display: grid;
}

.pub-bento-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  display: grid;
}

.pub-bento-tile--large {
  grid-row: span 2;
  align-content: end;
  overflow: hidden;
}

.pub-bento-tile--large:first-child {
  grid-column: span 3;
}

.pub-bento-tile--large:nth-child(2) {
  grid-column: span 2;
}

.pub-bento-tile--large img {
  object-fit: cover;
  object-position: top;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
}

.pub-bento-caption {
  border-radius: var(--radius-md);
  background: var(--glass-shell);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  grid-area: 1 / 1;
  align-self: end;
  gap: 4px;
  margin: 12px;
  padding: 14px 16px;
  display: grid;
}

.pub-bento-caption h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 720;
}

.pub-bento-caption p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.pub-bento-tile--compact {
  padding: var(--card-pad);
  align-content: start;
  gap: 8px;
}

.pub-bento-tile--compact h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 720;
}

.pub-bento-tile--compact p {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pub-icon-box {
  background: var(--color-accent-tint);
  width: 38px;
  height: 38px;
  color: var(--color-action-primary);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.pub-loop-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  display: grid;
}

.pub-loop-item {
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  gap: 8px;
  display: grid;
}

.pub-loop-item h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 720;
}

.pub-loop-item p {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.pub-loop-item > .pub-icon {
  width: 24px;
  height: 24px;
  color: var(--color-action-primary);
}

.pub-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.pub-flow-card {
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  align-content: start;
  gap: 10px;
  display: grid;
}

.pub-flow-step {
  font-family: var(--font-display);
  color: var(--color-action-primary);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 760;
}

.pub-flow-card h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 740;
}

.pub-flow-card p {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.pub-flow-card ul {
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pub-flow-card li {
  border-radius: var(--radius-sm);
  background: var(--color-surface-sunken);
  color: var(--color-text-secondary);
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 620;
}

.pub-privacy-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: 44px;
  display: grid;
}

.pub-privacy-copy h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  margin-bottom: 22px;
  font-size: 38px;
  font-weight: 760;
}

.pub-privacy-list {
  gap: 18px;
  display: grid;
}

.pub-privacy-row {
  grid-template-columns: auto 1fr;
  gap: 14px;
  display: grid;
}

.pub-privacy-row > .pub-icon {
  width: 22px;
  height: 22px;
  color: var(--color-action-primary);
}

.pub-privacy-row h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 720;
}

.pub-privacy-row p {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: 13.5px;
}

.pub-privacy-diagram {
  padding: calc(var(--card-pad) + 4px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  gap: 16px;
  display: grid;
}

.pub-data-sources, .pub-data-access {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  display: flex;
}

.pub-data-sources span, .pub-data-access span {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  display: inline-flex;
}

.pub-data-sources .pub-icon, .pub-data-access .pub-icon {
  width: 15px;
  height: 15px;
  color: var(--color-action-primary);
}

.pub-data-core {
  border-radius: var(--radius-md);
  background: var(--color-accent-tint);
  justify-items: center;
  gap: 4px;
  padding: 18px;
  display: grid;
}

.pub-data-core strong {
  background: var(--color-action-primary);
  width: 44px;
  height: 44px;
  color: var(--color-action-primary-text);
  font-family: var(--font-display);
  border-radius: 50%;
  place-items: center;
  font-size: 22px;
  display: grid;
}

.pub-data-core span {
  color: var(--color-action-primary);
  font-size: 12.5px;
  font-weight: 720;
}

.pub-final-cta {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  text-align: center;
  justify-items: center;
  gap: 20px;
  margin-top: 72px;
  padding: 52px clamp(24px, 5vw, 56px);
  display: grid;
}

.pub-final-cta h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 42px;
  font-weight: 760;
}

.pub-final-cta p {
  max-width: 48ch;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.pub-final-button {
  min-height: var(--btn-height-lg);
  padding: 0 calc(var(--btn-pad-lg) + 4px);
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-inset);
  transition: transform var(--motion-spring), background var(--duration-fast) var(--motion-out), color var(--duration-fast) var(--motion-out);
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 720;
  display: inline-flex;
}

.pub-final-button:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  transform: translateY(-1px);
}

.pub-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  display: flex;
}

.pub-footer nav {
  gap: 18px;
  display: flex;
}

.pub-footer a {
  color: var(--color-text-secondary);
}

.pub-footer a:hover {
  color: var(--color-text);
}

.pub-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .pub-hero, .pub-privacy-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .pub-bento-grid, .pub-flow-grid, .pub-loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-bento-tile--large, .pub-bento-tile--large:first-child, .pub-bento-tile--large:nth-child(2) {
    aspect-ratio: 16 / 9;
    grid-area: auto / 1 / auto / -1;
  }

  .pub-bento-tile--compact:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .pub-page {
    padding-inline: calc(var(--page-pad-x) * .7);
  }

  .pub-hero {
    gap: 24px;
    padding: 30px 0 0;
  }

  .pub-hero-copy {
    gap: 18px;
  }

  .pub-hero-copy > .pub-eyebrow {
    margin-bottom: -8px;
  }

  .pub-hero h1 {
    font-size: 42px;
  }

  .pub-section-head h2, .pub-privacy-copy h2 {
    font-size: 32px;
  }

  .pub-final-cta h2 {
    font-size: 34px;
  }

  .pub-hero-copy > p {
    font-size: 16px;
  }

  .pub-bento-section {
    padding-top: 0;
  }

  .pub-bento-grid, .pub-flow-grid, .pub-loop-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-bento-tile--large, .pub-bento-tile--large:first-child, .pub-bento-tile--large:nth-child(2), .pub-bento-tile--compact:last-child {
    grid-column: 1;
  }

  .pub-proof-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pub-proof-row span {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .pub-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .pub-primary, .pub-secondary {
    min-height: var(--btn-height-md);
    padding: 0 var(--btn-pad-md);
    font-size: 14px;
  }
}

.legal-page {
  width: 100%;
  max-width: 820px;
  padding: 0 var(--page-pad-x) 72px;
  color: var(--color-text);
  margin: 0 auto;
  overflow-x: clip;
}

.legal-header {
  z-index: 10;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.legal-document {
  padding-top: 44px;
}

.legal-hero {
  border-bottom: 1px solid var(--color-border);
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  display: grid;
}

.legal-back {
  color: var(--color-action-primary);
  font-size: 13.5px;
  font-weight: 540;
}

.legal-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 48px;
  font-weight: 480;
}

.legal-hero > p {
  max-width: 58ch;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.legal-hero > span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.legal-sections {
  gap: 30px;
  display: grid;
}

.legal-section h2 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 500;
}

.legal-section p {
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-section ul {
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  display: grid;
}

@media (max-width: 560px) {
  .legal-page {
    width: 390px;
    max-width: 100vw;
    padding-inline: calc(var(--page-pad-x) * .7);
    margin-inline: 0;
  }

  .legal-header, .legal-document, .legal-hero, .legal-section, .legal-section p, .legal-section li {
    min-width: 0;
    max-width: 100%;
  }

  .legal-hero h1 {
    font-size: 38px;
  }
}

.legal-section li {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.legal-footer {
  margin-top: 48px;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
