/* design.css: GENERATED by tools/build.mjs (dart-sass 1.105.1 (Sass Compiler) [Dart]) from the pinned design system in design/ (design/UPSTREAM.md). Do not edit.
   A definition file: tokens, themes and the root components. Literal values are allowed here and nowhere else (GOVERNANCE).
   design/icons.svg  sha256 ae8120dccab33c741747748e91f91b16cd764bd74bdced524b147deb5a325078
   design/system/_base.scss  sha256 492237a0a310645dd487686f9e12cdea2af1b59b25144014f2b3261338d79cfa
   design/system/_breakpoints.scss  sha256 699fe0afe96bd23f3bdc74404f9aab32e3384458e3ce7b304bf109b40eb3f070
   design/system/_dataviz.scss  sha256 3742299e33231d8f7e98995fe03a82c30962958a3008f73e60cab8f87423ab24
   design/system/_docs.scss  sha256 ae5eeaeae884008bb849aa2d6850e1912424fadc2861104c3c1384825545e46d
   design/system/_fonts.scss  sha256 8d95e4223529664ddc4ea2dc609f5b3ba7c5853af1c035ed0df79ed524bea91f
   design/system/_icons.scss  sha256 f38255cccd5aea360b957883e38c8377c4113eac8cb7714d6a74006862c562de
   design/system/_themes.scss  sha256 338e6daf2f73f044e71b8f8e4c00883da1fa2ca27d59c07f65de27f038da88b5
   design/system/_tokens.generated.scss  sha256 d51e5fbe7a0c20da65ab99fa0d7ef375676bc6fdabd2f3aa312f77e0b70ffee6
   design/system/_tokens.scss  sha256 1fa45d078773521c95e25c3334579e61e698d0cb0cf24370c960f51259bcbfa3
   design/system/_utilities.scss  sha256 fa2f5181d27957cc11297033064fcc9c07bcc210446dfc8a36d6499df1e8e600
   design/system/components/_accordion.scss  sha256 4d700f7570eb94fc52ed4e7f76a477bb66085043c9f79c42d5f6df29dd34052c
   design/system/components/_app-shell.scss  sha256 b8b70a79a81ca7518c894a56f386b32f7428144e76e05418bab637fde3a89852
   design/system/components/_attribute-list.scss  sha256 2e138c68631d22735e9bb88e1105d3d7a47a94e4e83c9ef2029ac06694abc085
   design/system/components/_avatar-group.scss  sha256 56c990e74e1fdac3f2596f0c667765dfd10518a1825a26a66d2c012034bafb4f
   design/system/components/_avatar.scss  sha256 7ba6e34f034603b540703d2fe5c684e8a978fc0515b393058afa7e9bd4b82f8a
   design/system/components/_badge.scss  sha256 0e0b83a4be4f30d6617d440b31b3c4a95acadafb531b74a9a64b0288e6895de1
   design/system/components/_breadcrumb.scss  sha256 6fcf757cee1c6af802d9910f04e4967ed24230ac76b963b5e5945d30d68a261e
   design/system/components/_broadcast.scss  sha256 9d9aa582bdc37353b35f89dd17891c172caee35ce4ed9627b8a9f0a43514967e
   design/system/components/_button-group.scss  sha256 10f118f68c6535252ed4f94a766bcbe64627da1cf1fa34bd469612e08ad010f5
   design/system/components/_button.scss  sha256 a5c92433100aa24d19c803f8ca3a94733449e541f4f22044a74853ec5f7a9dbc
   design/system/components/_capability.scss  sha256 1bcda68d7a80dd4ca47cc6ce78b75b15cea1cf95976204c1269063db8b43869f
   design/system/components/_card.scss  sha256 96e85030be6238195d27fe033df9ea3a2f1f0b7a2eeb13cff5f0469b9bed867e
   design/system/components/_character-count.scss  sha256 5d598a38727252764cfad7167d65e6b36ac56e6060d3695814eab120c5f9529a
   design/system/components/_checkbox.scss  sha256 943c7db8a57928e0d4298ca01ebb236c0cfcfd88b192df5770c791e1f9fc8374
   design/system/components/_collapse.scss  sha256 d78815feebb01ae4ea55b87a942dc98ad56de677fb0e4c1d071da2461eb78afd
   design/system/components/_combobox.scss  sha256 426f4f0820b75ac092feec268e7f281832fb2be1fc1a5ffa30c880f62d63f48b
   design/system/components/_dashboard-panel.scss  sha256 3f8d010e913b2868aa373ed18eed5f5501711393a2c9e4b19d326603fd5eac8b
   design/system/components/_date-picker.scss  sha256 eb119e1ff6171a824a5e6b8d69dd5fbe3545a44e771b76abd016969101893ec0
   design/system/components/_drawer.scss  sha256 dcc1d7f4bb80f5824c9b256ec26a1e621f885a1270c6c2e5f8fdd1aae4b0a651
   design/system/components/_dropdown.scss  sha256 1b09b2fb4162d3d4310509e574ade2b4c642493672150161fffe3b88664fa4a0
   design/system/components/_empty-state.scss  sha256 c0308c9a6c716e1f3b9e82537abc6cbdc5eda9b923a222ded30167e5c1013aad
   design/system/components/_filter.scss  sha256 4f57d2d06605fc202c8799f9489333bb81577c67a50cf430e0055d3d669b135d
   design/system/components/_form-combobox.scss  sha256 af301658eddb189a8063f606bb141b4c7febb90f3f4c40df8185c229d8f5bafb
   design/system/components/_form-fields.scss  sha256 32a47fd7c18727026bb0247389568cb595e5e76511a82abef34948946450c3df
   design/system/components/_form-steps.scss  sha256 34df186d8d79fb31a012ea55521a96923b0b4c5da8a1d892ce5db193a217e45f
   design/system/components/_form.scss  sha256 451418a6a966beb018a8868a785283807510c6b37157add110f17241d62e7d4c
   design/system/components/_input-group.scss  sha256 70772641fb574405a30d544652a938ffae2ae257a6fd5f7076edd961808333e8
   design/system/components/_link.scss  sha256 816d74cbfed1f97fb8f8b17d9fc9d1b9602041590af14bc11c82a2dc97f1d66f
   design/system/components/_modal.scss  sha256 26c2c097b475ceba45567c05dd17f29562ec7d39ac8da94981d4bd653815d9c0
   design/system/components/_page-tabs.scss  sha256 bdba0d5f64892d054e7d140b09139e7a4bcdf492d03166b08e28d06c37ed5607
   design/system/components/_pagination.scss  sha256 af8eb9e0174a75ec58bbe7ee3cda91a5878f8b67e98bd0ae874bb6cf42008f6b
   design/system/components/_password-input.scss  sha256 088ed90cc8d9a377e97696082030eeb0aeff8495bff6ad9617540d296aef4c1b
   design/system/components/_path.scss  sha256 2c12cf4a61e6b7a76e2ec6253ae7597b97286f2f0ff2bc0cb2ffece92294e53d
   design/system/components/_popover.scss  sha256 42ff508831c5506b59081f2b0f342d7f40e219fa42359a1203fcdbfe015276c9
   design/system/components/_progress.scss  sha256 a2535b7189ccdcb63161e6856549893cd73bbae48dcea0e8ec8787e460b8097e
   design/system/components/_radio.scss  sha256 a1cd1c769123a83811bb25663aeae67b2189b16939ac50609959e0b5bfc4ccde
   design/system/components/_searchbar.scss  sha256 67eff2e9a9d550370ca0fe2032f3a8a92e29fbca79e9c342ef1f228cb8541586
   design/system/components/_segmented.scss  sha256 766063b07cc06c8e89c2c16de264f884ca4c72b9916d6b73220087f9510ae5a9
   design/system/components/_select.scss  sha256 4c7ffc4f0c151f9c29a7954624a3df8dc441b8a532db8e175b1646f6d26aca28
   design/system/components/_skeleton.scss  sha256 8f57b997dcad303dc5d23bc36eb67ca79233e8a4a147e337178e3a6b2027d031
   design/system/components/_sorting.scss  sha256 a2e36f15445fb51afd95f814d4af5998dff278aa1e0bc87c9f71843222d29654
   design/system/components/_spinner.scss  sha256 d49f717d31608feff0d45bfbc60dd98bd9d5d48d520dada7042ed04d0c97fb30
   design/system/components/_stepper.scss  sha256 90a2acaf9c69d0c1fa9b79d19b4bf6a7d18aaf9c41502c9876c0948cb05ec024
   design/system/components/_table.scss  sha256 071be29547c645fa2691ef0c3b5df0b99f49dd462a8a6684dcf266229b3ba0a8
   design/system/components/_tag.scss  sha256 e0d1784b201342ae4f1f15abc4ac832d4c5207a4b1c1a55fd35e7eb774d6d775
   design/system/components/_textarea.scss  sha256 efb3c7247a9de91d10ce38a6638d2200afe6d5a33d5c962e4dce613be0e0f42a
   design/system/components/_toast.scss  sha256 0f7fdec32a6cef497048f81263817b40ec847c52f13d1b2493a0f156d1c60414
   design/system/components/_token.scss  sha256 61538696dd513370c39649f9b53218dfbb9153fddd86868af62accfe3c348e95
   design/system/components/_tooltip.scss  sha256 8c69d73d5daa733c7ea09cc159bbb7a31d3e6d0f654502f98e5da6caf1c498e3
   design/system/components/_tree.scss  sha256 22ad75896ad7440ca242ddda1d1f16ab8d3d919ebec58c10f72629a829f46cfa
   design/system/main.scss  sha256 4dbad7f23570658402d378129f3f7c3f729c58470825fa6d289bd04c81e79b65
   styles/design.scss  sha256 4670d8223438b7f2c5260f22bfc5021a2b6c4dc50db22d1dd5f8170b8bee88ed
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2") format("woff2");
}

:root,
:root.light {
  color-scheme: light;
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-none: 0px;
  --radius-2xs: 0.125rem;
  --radius-xs: 0.25rem;
  --radius-md: 0.5rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --icon-sm: 12px;
  --icon-md: 16px;
  --icon-lg: 24px;
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  --motion-duration-fast: 100ms;
  --motion-duration-base: 200ms;
  --motion-duration-feedback: 500ms;
  --motion-duration-move: 600ms;
  --motion-duration-pulse: 1000ms;
  --motion-duration-spin: 800ms;
  --motion-duration-toast: 5000ms;
  --motion-delay-tooltip: 500ms;
  --motion-delay-spinner: 100ms;
  --motion-ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  --focus-ring: 0 0 0 1px var(--bg), 0 0 0 3px var(--accent);
  --sidebar-w: 236px;
  --drawer-w: 400px;
  --popover-w: 280px;
  --modal-w-sm: 400px;
  --modal-w-md: 600px;
  --modal-w-lg: 800px;
  --space-0: 0px;
  --space-px: 1px;
  --space-1: 0.125rem;
  --space-2: 0.25rem;
  --space-2-5: 0.375rem;
  --space-3: 0.5rem;
  --space-4: 0.75rem;
  --space-5: 1rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 3.5rem;
  --space-11: 4rem;
  --space-12: 5rem;
  --space-13: 6rem;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-semibold: 500;
  --weight-bold: 600;
  --bg: #fff;
  --bg-deep: #f7f7f5;
  --scrim: rgba(5, 5, 6, 0.24);
  --panel: #fff;
  --panel-hi: #f7f7f5;
  --card: #fff;
  --card-hi: #f7f7f5;
  --border: #dcdbd9;
  --border-hi: #c1bfbe;
  --text: #3a383d;
  --muted: #646163;
  --disabled: #8a8888;
  --ok: #306440;
  --err: #a32c12;
  --warn: #894b16;
  --info: #2f5ca0;
  --tier: #5c47a6;
  --accent: hsl(215 90% 49%);
  --accent-text: hsl(215 90% 49%);
  --accent-hi: hsl(215 90% 43%);
  --accent-press: hsl(215 90% 40%);
  --accent-soft: hsl(215 90% 49% / 16%);
  --on-accent: #ffffff;
  --gfrom: var(--accent);
  --gvia: var(--accent);
  --gto: var(--accent);
  --edge: rgba(0, 0, 0, 0);
  --shadow-sm: 0 0 2px 0 rgba(5, 5, 6, 0.16), 0 1px 4px 0 rgba(5, 5, 6, 0.16);
  --shadow-md: 0 0 1px 0 rgba(5, 5, 6, 0.16), 0 0 2px 0 rgba(5, 5, 6, 0.16), 0 2px 8px 0 rgba(5, 5, 6, 0.16);
  --shadow: 0 0 2px 0 rgba(5, 5, 6, 0.16), 0 0 2px 0 rgba(5, 5, 6, 0.16), 0 4px 12px 0 rgba(5, 5, 6, 0.16);
  --glow-a: rgba(0, 0, 0, 0);
  --glow-b: rgba(0, 0, 0, 0);
  --neutral-bg: #dcdbd9;
  --ok-bg: #c3e6cd;
  --err-bg: #fdd4cd;
  --warn-bg: #f5d9a8;
  --info-bg: #cbe2f9;
  --tier-bg: #e1d8f9;
  --control-bg: #fff;
  --control-bg-disabled: #f7f7f5;
  --control-border: #8a8888;
  --control-border-hover: #646163;
  --control-border-disabled: #dcdbd9;
  --control-placeholder: #747273;
  --action-hover: rgba(5, 5, 6, 0.06);
  --action-active: rgba(5, 5, 6, 0.16);
  --neutral: #4d4b4e;
  --btn-bg: #fff;
  --btn-bg-hover: #ecebea;
  --btn-bg-active: #dcdbd9;
  --btn-border: #c1bfbe;
  --btn-border-hover: #8a8888;
  --btn-border-active: #646163;
  --btn-fg: #3a383d;
  --btn-disabled-bg: #f7f7f5;
  --btn-disabled-fg: #747273;
  --btn-disabled-border: #dcdbd9;
  --btn-danger-fg: #dd2b0e;
  --btn-danger-fg-hover: #a32c12;
  --btn-danger-bg-hover: #fcf1ef;
  --btn-danger-bg-active: #fdd4cd;
  --fb-neutral-bg: #ecebea;
  --fb-neutral-border: #c1bfbe;
  --fb-info-bg: #e9f3fc;
  --fb-info-border: #9dc7f1;
  --fb-ok-bg: #ecf4ee;
  --fb-ok-border: #91d4a8;
  --fb-warn-bg: #fdf1dd;
  --fb-warn-border: #e9be74;
  --fb-err-bg: #fcf1ef;
  --fb-err-border: #dd2b0e;
  --strong-bg: #3a383d;
  --strong-fg: #fff;
  --strong-link: #63a6e9;
  --popover-bg: #fff;
  --popover-border: #c1bfbe;
  --selected-bg: #ecebea;
  --nav-fg: #646163;
  --nav-fg-hover: #18171d;
  --nav-hover-bg: #dcdbd9;
  --nav-selected-fg: #18171d;
  --nav-selected-bg: #dcdbd9;
  --row-hover: #e9f3fc;
  --track: #c1bfbe;
  --skeleton-bg: #dcdbd9;
  --skeleton-shimmer: #ecebea;
  --token-bg: #dcdbd9;
  --token-fg: #3a383d;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root.dark {
  color-scheme: dark;
  --bg: #18171d;
  --bg-deep: #28272d;
  --scrim: rgba(0, 0, 0, 0.64);
  --panel: #18171d;
  --panel-hi: #28272d;
  --card: #3a383d;
  --card-hi: #28272d;
  --border: #4d4b4e;
  --border-hi: #646163;
  --text: #ecebea;
  --muted: #c1bfbe;
  --ok: #91d4a8;
  --err: #fcb5aa;
  --warn: #e9be74;
  --info: #9dc7f1;
  --tier: #ac93e6;
  --accent: hsl(215 90% 58%);
  --accent-text: hsl(215 90% 70%);
  --accent-hi: hsl(215 90% 72%);
  --accent-press: hsl(215 90% 64%);
  --accent-soft: hsl(215 90% 58% / 16%);
  --on-accent: #18171d;
  --shadow-sm: 0 0 2px 0 rgba(5, 5, 6, 0.4), 0 1px 4px 0 rgba(5, 5, 6, 0.4);
  --shadow-md: 0 0 1px 0 rgba(5, 5, 6, 0.4), 0 0 2px 0 rgba(5, 5, 6, 0.4), 0 2px 8px 0 rgba(5, 5, 6, 0.4);
  --shadow: 0 0 2px 0 rgba(5, 5, 6, 0.4), 0 0 2px 0 rgba(5, 5, 6, 0.4), 0 4px 12px 0 rgba(5, 5, 6, 0.4);
  --neutral-bg: #3a383d;
  --ok-bg: #225131;
  --err-bg: #812713;
  --warn-bg: #693c14;
  --info-bg: #284779;
  --tier-bg: #342d59;
  --control-bg: rgba(5, 5, 6, 0.4);
  --control-bg-disabled: rgba(255, 255, 255, 0.04);
  --control-border: #747273;
  --control-border-hover: #a5a3a3;
  --control-border-disabled: #3a383d;
  --control-placeholder: #8a8888;
  --action-hover: rgba(255, 255, 255, 0.16);
  --action-active: rgba(255, 255, 255, 0.08);
  --neutral: #c1bfbe;
  --btn-bg: rgba(137, 136, 141, 0.4);
  --btn-bg-hover: rgba(137, 136, 141, 0.64);
  --btn-bg-active: rgba(137, 136, 141, 0.32);
  --btn-border: rgba(0, 0, 0, 0);
  --btn-border-hover: rgba(0, 0, 0, 0);
  --btn-border-active: rgba(0, 0, 0, 0);
  --btn-fg: #ecebea;
  --btn-disabled-bg: rgba(137, 136, 141, 0.16);
  --btn-disabled-fg: #8a8888;
  --btn-disabled-border: rgba(0, 0, 0, 0);
  --btn-danger-fg: #fdd4cd;
  --btn-danger-fg-hover: #fcf1ef;
  --btn-danger-bg-hover: rgba(236, 89, 65, 0.64);
  --btn-danger-bg-active: rgba(236, 89, 65, 0.32);
  --fb-neutral-bg: #28272d;
  --fb-neutral-border: #646163;
  --fb-info-bg: #1d283e;
  --fb-info-border: #2f68b4;
  --fb-ok-bg: #1e3e28;
  --fb-ok-border: #2f7549;
  --fb-warn-bg: #532e16;
  --fb-warn-border: #995715;
  --fb-err-bg: #582014;
  --fb-err-border: #f6806d;
  --popover-bg: #28272d;
  --popover-border: #4d4b4e;
  --selected-bg: #3a383d;
  --nav-fg: #c1bfbe;
  --nav-fg-hover: #fff;
  --nav-hover-bg: #28272d;
  --nav-selected-fg: #fff;
  --nav-selected-bg: #28272d;
  --row-hover: #1d283e;
  --track: #4d4b4e;
  --skeleton-bg: #3a383d;
  --skeleton-shimmer: #4d4b4e;
  --token-bg: #3a383d;
  --token-fg: #ecebea;
}

:root[data-theme=ocean]:not(.dark) {
  --accent: hsl(215 90% 49%);
  --accent-soft: hsl(215 90% 49% / 16%);
  --on-accent: #fff;
}

:root[data-theme=midnight] {
  --accent: hsl(262 83% 64%);
  --accent-text: hsl(262 83% 64%);
  --accent-hi: hsl(262 88% 72%);
  --accent-press: hsl(262 80% 56%);
  --accent-soft: hsl(262 83% 64% / 16%);
  --on-accent: #fff;
}

:root[data-theme=aurora] {
  --accent: hsl(175 78% 46%);
  --accent-text: hsl(175 78% 46%);
  --accent-hi: hsl(175 82% 54%);
  --accent-press: hsl(175 78% 40%);
  --accent-soft: hsl(175 78% 46% / 16%);
  --on-accent: hsl(180 100% 8%);
}

:root[data-theme=forest] {
  --accent: hsl(152 68% 46%);
  --accent-text: hsl(152 68% 46%);
  --accent-hi: hsl(152 72% 54%);
  --accent-press: hsl(152 68% 40%);
  --accent-soft: hsl(152 68% 46% / 16%);
  --on-accent: hsl(155 100% 8%);
}

:root,
:root.light {
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --lh-tight: 1.25;
  --lh-body: 1.25rem;
  --tracking-label: 0.06em;
  --code-bg: #f7f7f5;
  --code-border: #dcdbd9;
  --code-fg: #3a383d;
  --syn-key: hsl(210 70% 36%);
  --syn-str: hsl(150 60% 25%);
  --syn-num: hsl(22 85% 33%);
  --syn-kw: hsl(275 50% 42%);
  --syn-com: hsl(222 8% 40%);
  --syn-cmd: hsl(40 95% 27%);
  --syn-opt: hsl(262 55% 42%);
  --code-dark-bg: #28272d;
  --code-dark-border: #3a383d;
  --code-dark-fg: #dcdbd9;
  --syn-d-key: hsl(205 60% 70%);
  --syn-d-str: hsl(145 40% 65%);
  --syn-d-num: hsl(28 70% 66%);
  --syn-d-kw: hsl(280 50% 74%);
  --syn-d-com: hsl(228 9% 64%);
  --syn-d-cmd: hsl(48 90% 68%);
  --syn-d-opt: hsl(262 80% 80%);
  --method-get: var(--ok);
  --method-post: hsl(215 90% 40%);
  --method-put: var(--warn);
  --method-delete: var(--err);
  --docs-sidebar-w: 256px;
  --docs-toc-w: 200px;
  --docs-content-w: 680px;
  --docs-panel-w: 460px;
  --docs-nav-h: 56px;
}

:root.dark {
  --code-bg: #28272d;
  --code-border: #4d4b4e;
  --code-fg: #ecebea;
  --syn-key: hsl(205 60% 70%);
  --syn-str: hsl(145 40% 65%);
  --syn-num: hsl(28 70% 66%);
  --syn-kw: hsl(280 50% 74%);
  --syn-com: hsl(228 9% 60%);
  --syn-cmd: hsl(48 90% 68%);
  --syn-opt: hsl(262 80% 80%);
  --method-post: var(--accent);
}

:root,
:root.light {
  --viz-cat-1: #617ae2;
  --viz-cat-2: #c95d2e;
  --viz-cat-3: #0090b1;
  --viz-cat-4: #cf4d81;
  --viz-cat-5: #619025;
  --viz-cat-6: #9475db;
  --viz-cat-7: #ec5941;
  --viz-cat-8: #8a8888;
}

:root.dark {
  --viz-cat-1: #7992f5;
  --viz-cat-2: #e07e41;
  --viz-cat-3: #0090b1;
  --viz-cat-4: #e86e9a;
  --viz-cat-5: #619025;
  --viz-cat-6: #9475db;
  --viz-cat-7: #ec5941;
  --viz-cat-8: #8a8888;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

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

a:hover {
  color: var(--accent-hi);
  text-decoration: underline;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: var(--text-xs);
}

::selection {
  background: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

* {
  scrollbar-color: var(--border-hi) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
  background-clip: content-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.icon {
  --icon-size: var(--icon-md);
  display: inline-block;
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: currentColor;
  vertical-align: middle;
}

.icon-sm {
  --icon-size: var(--icon-sm);
}

.icon-lg {
  --icon-size: var(--icon-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--space-7);
  padding: 0 var(--space-4);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-body);
  cursor: pointer;
  transition: background var(--motion-duration-base) var(--motion-ease-out), border-color var(--motion-duration-base) var(--motion-ease-out), color var(--motion-duration-base) var(--motion-ease-out);
}

.btn:hover {
  border-color: var(--btn-border-hover);
  background: var(--btn-bg-hover);
}

.btn:active {
  border-color: var(--btn-border-active);
  background: var(--btn-bg-active);
}

.btn[disabled],
.btn[disabled]:hover,
.btn[disabled]:active {
  border-color: var(--btn-disabled-border);
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
  cursor: not-allowed;
}

.btn.sm {
  min-height: var(--space-6);
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

.btn-accent,
.btn-accent-flat {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover,
.btn-accent-flat:hover {
  border-color: var(--accent-hi);
  background: var(--accent-hi);
}

.btn-accent:active,
.btn-accent-flat:active {
  border-color: var(--accent-press);
  background: var(--accent-press);
}

.btn-accent[disabled],
.btn-accent[disabled]:hover,
.btn-accent-flat[disabled],
.btn-accent-flat[disabled]:hover {
  border-color: var(--btn-disabled-border);
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  border-color: transparent;
  background: var(--action-hover);
}

.btn-ghost:active {
  border-color: transparent;
  background: var(--action-active);
}

.btn-ghost[disabled],
.btn-ghost[disabled]:hover {
  border-color: transparent;
  background: transparent;
}

.btn-danger {
  border-color: var(--btn-danger-fg);
  color: var(--btn-danger-fg);
}

.btn-danger:hover {
  border-color: var(--btn-danger-fg-hover);
  background: var(--btn-danger-bg-hover);
  color: var(--btn-danger-fg-hover);
}

.btn-danger:active {
  border-color: var(--btn-danger-fg-hover);
  background: var(--btn-danger-bg-active);
  color: var(--btn-danger-fg-hover);
}

.tog {
  min-height: var(--space-6);
  padding: 0 var(--space-4);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.tog:hover {
  border-color: var(--btn-border-hover);
  background: var(--action-hover);
}

.tog[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card-hd {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card-title {
  font-weight: var(--weight-bold);
}

.card-sub {
  color: var(--muted);
  font-size: var(--text-xs);
}

.stats {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-5);
  min-width: 96px;
}

.stat-n {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.stat-k {
  color: var(--muted);
  font-size: var(--text-xs);
}

.input,
.select,
.textarea {
  background: var(--control-bg);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-4);
  font: inherit;
  line-height: var(--lh-body);
  width: 100%;
}

.input:hover:not([disabled]),
.select:hover:not(:disabled),
.textarea:hover:not(:disabled) {
  border-color: var(--control-border-hover);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--control-placeholder);
}

.input[disabled] {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  color: var(--disabled);
  cursor: not-allowed;
}

.textarea {
  min-height: 92px;
  resize: vertical;
  font-family: var(--mono);
  font-size: var(--text-xs);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.label {
  color: var(--text);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.hint {
  color: var(--muted);
  font-size: var(--text-xs);
}

.error {
  color: var(--err);
  font-size: var(--text-xs);
}

.filters {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.filters .input {
  flex: 1;
}

.search {
  position: relative;
  flex: 1;
}

.search .input {
  padding-left: var(--space-7);
}

.search::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.switch input {
  accent-color: var(--accent);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.check-input {
  --check-size: var(--icon-md);
  flex: none;
  appearance: none;
  position: relative;
  width: var(--check-size);
  height: var(--check-size);
  margin: 0;

  margin-block-start: calc((1lh - var(--check-size)) / 2);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-xs);
  background: var(--control-bg);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), border-color var(--motion-duration-fast) var(--motion-ease-default);
}

.check-input:hover:not(:disabled) {
  border-color: var(--control-border-hover);
}

.check-input::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}

.check-input:checked,
.check-input:indeterminate {
  border-color: var(--accent);
  background: var(--accent);
}

.check-input:checked::before {
  width: calc(var(--check-size) * 0.3125);
  height: calc(var(--check-size) * 0.5625);
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: translateY(-8%) rotate(45deg);
  opacity: 1;
}

.check-input:indeterminate::before {
  width: calc(var(--check-size) * 0.5);
  height: 0;
  border-top: 2px solid var(--on-accent);
  opacity: 1;
}

.check-input[aria-invalid=true] {
  border-color: var(--err);
}

.check-input[aria-invalid=true]:checked,
.check-input[aria-invalid=true]:indeterminate {
  background: var(--err);
}

.check-input:disabled {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  cursor: not-allowed;
}

.check-input:checked:disabled,
.check-input:indeterminate:disabled {
  border-color: var(--btn-disabled-fg);
  background: var(--btn-disabled-fg);
}

.check-label {
  cursor: pointer;
}

.check-input:disabled + .check-label {
  color: var(--disabled);
  cursor: not-allowed;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-legend {
  padding: 0;
  margin-block-end: var(--space-3);
  font-weight: var(--weight-bold);
}

@media (forced-colors: active) {
  .check-input:checked,
  .check-input:indeterminate {
    border-color: Highlight;
    background: Highlight;
    forced-color-adjust: none;
  }
  .check-input:checked::before,
  .check-input:indeterminate::before {
    border-color: HighlightText;
  }
}

.radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.radio-input {
  --radio-size: var(--icon-md);
  flex: none;
  appearance: none;
  position: relative;
  width: var(--radio-size);
  height: var(--radio-size);
  margin: 0;
  margin-block-start: calc((1lh - var(--radio-size)) / 2);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-full);
  background: var(--control-bg);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), border-color var(--motion-duration-fast) var(--motion-ease-default);
}

.radio-input:hover:not(:disabled) {
  border-color: var(--control-border-hover);
}

.radio-input::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(var(--radio-size) * 0.5);
  height: calc(var(--radio-size) * 0.5);
  border-radius: var(--radius-full);
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--motion-duration-fast) var(--motion-ease-out);
}

.radio-input:checked {
  border-color: var(--accent);
}

.radio-input:checked::before {
  transform: scale(1);
}

.radio-input[aria-invalid=true] {
  border-color: var(--err);
}

.radio-input[aria-invalid=true]::before {
  background: var(--err);
}

.radio-input:disabled {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  cursor: not-allowed;
}

.radio-input:checked:disabled {
  border-color: var(--btn-disabled-fg);
}

.radio-input:checked:disabled::before {
  background: var(--btn-disabled-fg);
}

.radio-label {
  cursor: pointer;
}

.radio-input:disabled + .radio-label {
  color: var(--disabled);
  cursor: not-allowed;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-legend {
  padding: 0;
  margin-block-end: var(--space-3);
  font-weight: var(--weight-bold);
}

@media (forced-colors: active) {
  .radio-input:checked {
    border-color: Highlight;
  }
  .radio-input::before {
    background: Highlight;
    forced-color-adjust: none;
  }
}

.textarea {
  --textarea-rows: 4;
  --textarea-max-rows: 12;
  transition: border-color var(--motion-duration-base) var(--motion-ease-default), background var(--motion-duration-base) var(--motion-ease-default);
}

.textarea.sm,
.textarea.lg {
  min-height: calc(var(--textarea-rows) * 1lh + 2 * var(--space-3));
}

.textarea.sm {
  --textarea-rows: 2;
}

.textarea.lg {
  --textarea-rows: 8;
}

.textarea:hover:not(:disabled, [readonly]) {
  border-color: var(--control-border-hover);
}

.textarea:focus-visible {
  border-color: var(--accent);
}

.textarea::placeholder {
  color: var(--control-placeholder);
}

.textarea.auto {
  field-sizing: content;
  min-height: calc(2lh + 2 * var(--space-3));
  max-height: calc(var(--textarea-max-rows) * 1lh + 2 * var(--space-3));
  resize: none;
}

.textarea.no-resize {
  resize: none;
}

.textarea[readonly] {
  background: var(--bg-deep);
}

.textarea:disabled {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  color: var(--disabled);
  cursor: not-allowed;
}

.textarea[aria-invalid=true] {
  border-color: var(--err);
}

.textarea[aria-invalid=true]:focus-visible {
  border-color: var(--err);
}

.char-count {
  align-self: flex-end;
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.char-count.recommended {
  color: var(--accent-text);
}

.char-count.over {
  color: var(--err);
  font-weight: var(--weight-bold);
}

.select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.select-wrap > .select {
  appearance: none;

  padding-inline-end: var(--space-9);
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color var(--motion-duration-base) var(--motion-ease-default);
}

.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: var(--space-5);
  top: 50%;
  width: var(--space-2);
  height: var(--space-2);
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.select-wrap:has(> .select:disabled)::after {
  opacity: 0.55;
}

.select:hover:not(:disabled) {
  border-color: var(--control-border-hover);
}

.select:focus-visible {
  border-color: var(--accent);
}

.select:disabled {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  color: var(--disabled);
  cursor: not-allowed;
}

.select[aria-invalid=true],
.select[aria-invalid=true]:focus-visible {
  border-color: var(--err);
}

.select option {
  background: var(--control-bg);
  color: var(--text);
}

.select option:disabled {
  color: var(--muted);
}

.spinner {
  --spinner-size: var(--icon-md);
  display: inline-block;
  flex: none;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border: max(2px, var(--spinner-size) / 8) solid var(--track);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  vertical-align: middle;

  opacity: 0;
  animation: spinner-show 0s linear var(--motion-delay-spinner) forwards, spinner-turn var(--motion-duration-spin) linear infinite;
}

.spinner.md {
  --spinner-size: var(--icon-lg);
}

.spinner.lg {
  --spinner-size: var(--space-7);
}

.spinner.xl {
  --spinner-size: var(--space-11);
}

.spinner.on-accent {
  border-color: color-mix(in srgb, var(--on-accent) 35%, transparent);
  border-top-color: var(--on-accent);
}

@keyframes spinner-show {
  to {
    opacity: 1;
  }
}
@keyframes spinner-turn {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 0s, var(--motion-duration-spin) !important;
    animation-iteration-count: 1, infinite !important;
  }
}
@media (forced-colors: active) {
  .spinner {
    border-color: GrayText;
    border-top-color: Highlight;
  }
}

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 1em;
  border-radius: var(--radius-xs);
  background: var(--skeleton-bg);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-shimmer), transparent);
  transform: translateX(-100%);
  animation: skeleton-pulse var(--motion-duration-pulse) linear infinite;
}

@keyframes skeleton-pulse {
  to {
    transform: translateX(100%);
  }
}

.skeleton-text {
  height: 1em;
  margin-block-end: var(--space-3);
  border-radius: var(--radius-xs);
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-block {
  height: var(--space-11);
  border-radius: var(--radius-md);
}

.skeleton-circle {
  width: var(--space-7);
  height: var(--space-7);
  border-radius: var(--radius-full);
}

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

.tooltip-host {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  z-index: var(--z-tooltip);

  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(512px, 100vw - var(--space-7));
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--strong-bg);
  border-radius: var(--radius);
  background: var(--strong-bg);
  color: var(--strong-fg);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-duration-fast) var(--motion-ease-default), visibility 0s linear var(--motion-duration-fast);
}

.tooltip::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-2));
}

.tooltip-host:hover > .tooltip,
.tooltip-host:focus-within > .tooltip,
.tooltip[data-open=true] {
  opacity: 1;
  visibility: visible;
  transition-delay: var(--motion-delay-tooltip);
}

.tooltip[data-open=false] {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

.tooltip.tooltip-bottom {
  top: calc(100% + var(--space-2));
  bottom: auto;
}

.tooltip.tooltip-left,
.tooltip.tooltip-right {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.tooltip.tooltip-left {
  left: auto;
  right: calc(100% + var(--space-2));
}

.tooltip.tooltip-right {
  left: calc(100% + var(--space-2));
}

.toast-region {
  position: fixed;
  z-index: var(--z-toast);
  right: var(--space-5);
  bottom: var(--space-5);
  left: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  pointer-events: none;
}
@media (min-width: 768px) {
  .toast-region {
    right: auto;
    align-items: flex-start;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--strong-bg);
  border-radius: var(--radius);
  background: var(--strong-bg);
  color: var(--strong-fg);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in var(--motion-duration-base) var(--motion-ease-out);
}

.toast-ok {
  border-inline-start: var(--space-2) solid var(--fb-ok-border);
}

.toast-err {
  border-inline-start: var(--space-2) solid var(--fb-err-border);
}

.toast-warn {
  border-inline-start: var(--space-2) solid var(--fb-warn-border);
}

.toast-msg {
  min-width: 0;
  overflow-wrap: anywhere;
}

.toast-action,
.toast-close {
  flex: none;
  padding: var(--space-1) var(--space-3);
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--strong-link);
  font: inherit;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.toast-action:hover,
.toast-close:hover {
  background: color-mix(in srgb, var(--strong-fg) 16%, transparent);
}

.toast-close {
  color: var(--strong-fg);
}

.toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-duration-base) var(--motion-ease-out), transform var(--motion-duration-base) var(--motion-ease-out);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.breadcrumb {
  font-size: var(--text-xs);
  color: var(--muted);
}

.breadcrumb.md {
  font-size: var(--text-base);
}

.breadcrumb.bordered {
  padding-block-end: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  content: "/"/"";
  color: var(--border-hi);
}

.breadcrumb-item a,
.breadcrumb-more {
  max-width: 128px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-item a:hover {
  color: var(--accent-hi);
}

.breadcrumb-item:last-child a,
.breadcrumb-item [aria-current=page] {
  max-width: none;
  color: var(--text);
  font-weight: var(--weight-bold);
}

.breadcrumb-item [aria-current=page]:hover {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb-more {
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.breadcrumb-more:hover {
  background: var(--action-hover);
  color: var(--text);
}

.pagination {
  margin-block-start: var(--space-6);
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--space-7);
  height: var(--space-7);
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.page-link:hover {
  background: var(--panel-hi);
  color: var(--text);
  text-decoration: none;
}

.page-link[aria-current=page] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: var(--weight-bold);
}

.page-link[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-gap {
  min-width: var(--space-7);
  text-align: center;
  color: var(--muted);
}

.pagination-keyset .pagination-list {
  gap: var(--space-5);
}

.pagination-keyset .page-link {
  border-color: var(--border-hi);
}

.drawer-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--motion-duration-base);
}

.drawer-root[data-open=true] {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--motion-duration-base) var(--motion-ease-default);
}

.drawer-root[data-open=true] .drawer-scrim {
  opacity: 1;
}

.drawer {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  border-inline-start: 1px solid var(--popover-border);
  border-start-start-radius: var(--radius-xl);
  border-end-start-radius: var(--radius-xl);
  background: var(--popover-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}
@media (min-width: 576px) {
  .drawer {
    width: var(--drawer-w);
  }
}

.drawer-root[data-open=true] .drawer {
  transform: none;
}

.drawer-header,
.drawer-footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.drawer-header {
  justify-content: space-between;
  border-block-end: 1px solid var(--border);
  background: var(--popover-bg);
}

.drawer-footer {
  justify-content: flex-end;
  border-block-start: 1px solid var(--border);
}

.drawer-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: var(--text-lg);
  line-height: var(--lh-tight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.drawer-close:hover {
  background: var(--action-hover);
  color: var(--text);
}

.drawer-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  padding: var(--space-5);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-close:focus-visible {
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer-scrim,
  .drawer-root {
    transition: none;
  }
}
@media (forced-colors: active) {
  .drawer {
    border: 1px solid CanvasText;
  }
}

.tree,
.tree-group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-item {

  outline: 0;
  box-shadow: none;
}

.tree-item[aria-expanded=false] > .tree-group {
  display: none;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-3);
  padding-inline-start: calc(var(--tree-level, 0) * var(--space-5) + var(--space-3));
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.tree-row:hover {
  background: var(--action-hover);
}

.tree-item:focus-visible > .tree-row {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.tree-item[aria-selected=true] > .tree-row {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
  font-weight: var(--weight-bold);
}

.tree-item[aria-selected=true]:focus-visible > .tree-row {
  box-shadow: inset 2px 0 0 var(--accent), var(--focus-ring);
}

.tree-item[aria-disabled=true] > .tree-row {
  opacity: 0.5;
  cursor: not-allowed;
}

.tree-item[aria-disabled=true] > .tree-row:hover {
  background: transparent;
}

.tree-chevron {
  flex: none;
  position: relative;
  width: var(--icon-md);
  height: var(--icon-md);
}

.tree-item[aria-expanded] > .tree-row > .tree-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--space-2);
  height: var(--space-2);
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}

.tree-item[aria-expanded=true] > .tree-row > .tree-chevron::before {
  transform: rotate(45deg);
}

.tree-icon {
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--muted);
}

.tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-desc {
  flex: none;
  color: var(--muted);
  font-size: var(--text-xs);
}

.tree-lines .tree-group {
  margin-inline-start: calc(var(--space-3) + var(--icon-md) / 2);
  border-inline-start: 1px solid var(--border);
}

.tree-lines .tree-row {
  padding-inline-start: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  .tree-row,
  .tree-item[aria-expanded] > .tree-row > .tree-chevron::before {
    transition: none;
  }
}
@media (forced-colors: active) {
  .tree-item[aria-selected=true] > .tree-row {
    outline: 2px solid Highlight;
    outline-offset: -2px;
    forced-color-adjust: none;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.dropdown-toggle::after {
  content: "";
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  border: solid currentcolor;
  border-width: 0 2px 2px 0;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}

.dropdown-toggle[aria-expanded=true]::after {
  transform: translateY(25%) rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  z-index: var(--z-dropdown);
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: 0;
  display: none;
  flex-direction: column;
  min-width: max(100%, var(--space-13) * 2);
  max-height: calc(var(--space-13) * 3);
  padding: var(--space-2);
  overflow-y: auto;
  border: 1px solid var(--popover-border);
  border-radius: var(--radius);
  background: var(--popover-bg);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.dropdown-toggle[aria-expanded=true] ~ .dropdown-menu,
.dropdown-menu[data-open=true] {
  display: flex;
}

.dropdown-menu-end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.dropdown-menu-top {
  inset-block-start: auto;
  inset-block-end: calc(100% + var(--space-2));
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.dropdown-item::before {
  content: "";
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  background: transparent;
}

.dropdown-item:hover,
.dropdown-item[data-active] {
  background: var(--action-hover);
}

.dropdown-item[aria-selected=true] {
  background: var(--selected-bg);
}

.dropdown-item[aria-checked=true]::before,
.dropdown-item[aria-selected=true]::before {
  box-sizing: border-box;
  width: var(--space-2);
  height: var(--space-4);
  margin-inline: calc((var(--icon-md) - var(--space-2)) / 2);
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  background: transparent;
  transform: translateY(-15%) rotate(45deg);
}

.dropdown-item[aria-checked=true],
.dropdown-item[aria-selected=true] {
  font-weight: var(--weight-bold);
}

.dropdown-item-danger {
  color: var(--err);
}

.dropdown-item-danger:hover,
.dropdown-item-danger[data-active] {
  background: var(--btn-danger-bg-hover);
}

.dropdown-item[aria-disabled=true] {
  color: var(--disabled);
  cursor: not-allowed;
}

.dropdown-item[aria-disabled=true]:hover {
  background: transparent;
}

.dropdown-item:focus-visible {
  outline-offset: -2px;
}

.dropdown-divider {
  flex: none;
  height: 0;
  margin: var(--space-2) calc(var(--space-2) * -1);
  border: 0;
  border-block-start: 1px solid var(--border);
}

.dropdown-header {
  padding: var(--space-3) var(--space-3) var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.dropdown-search {
  position: sticky;
  inset-block-start: calc(var(--space-2) * -1);
  z-index: 1;
  flex: none;
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) var(--space-2);
  padding: var(--space-3);
  border-block-end: 1px solid var(--border);
  background: var(--popover-bg);
}

.dropdown-empty {
  padding: var(--space-4) var(--space-3);
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-toggle::after,
  .dropdown-item {
    transition: none;
  }
}
@media (forced-colors: active) {
  .dropdown-menu {
    border-color: CanvasText;
  }
  .dropdown-item:hover,
  .dropdown-item[data-active] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .dropdown-item[aria-checked=true]::before,
  .dropdown-item[aria-selected=true]::before {
    border-color: CanvasText;
  }
}

.avatar {
  --avatar-size: var(--space-7);
  --avatar-radius: var(--radius-full);
  flex: none;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--avatar-size);
  height: var(--avatar-size);
  overflow: hidden;
  border: 1px solid var(--border-hi);
  border-radius: var(--avatar-radius);
  background: var(--panel-hi);
  color: var(--text);

  font-size: calc(var(--avatar-size) * 0.4);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-16 {
  --avatar-size: var(--icon-md);
}

.avatar-24 {
  --avatar-size: var(--icon-lg);
}

.avatar-32 {
  --avatar-size: var(--space-7);
}

.avatar-48 {
  --avatar-size: var(--space-9);
}

.avatar-64 {
  --avatar-size: var(--space-11);
}

.avatar-square {
  --avatar-radius: var(--radius-md);
}

.avatar-square.avatar-16,
.avatar-square.avatar-24 {
  --avatar-radius: var(--radius-xs);
}

.avatar-square.avatar-64 {
  --avatar-radius: var(--radius-lg);
}

.avatar-16 {
  border-color: transparent;
}

a.avatar,
button.avatar,
.avatar[tabindex] {
  cursor: pointer;
}

a.avatar:hover,
button.avatar:hover,
.avatar[tabindex]:hover {
  border-color: var(--accent);
}

@media (forced-colors: active) {
  .avatar {
    border-color: CanvasText;
  }
}

.badge {
  --badge-c: var(--neutral);
  --badge-bg: var(--neutral-bg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--space-6);
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-c);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-icon {
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--badge-c);
}

.badge-neutral {
  --badge-c: var(--neutral);
  --badge-bg: var(--neutral-bg);
}

.badge-info {
  --badge-c: var(--info);
  --badge-bg: var(--info-bg);
}

.badge-success {
  --badge-c: var(--ok);
  --badge-bg: var(--ok-bg);
}

.badge-warning {
  --badge-c: var(--warn);
  --badge-bg: var(--warn-bg);
}

.badge-danger {
  --badge-c: var(--err);
  --badge-bg: var(--err-bg);
}

.badge-tier {
  --badge-c: var(--tier);
  --badge-bg: var(--tier-bg);
}

.badge-sm {
  min-height: calc(var(--space-5) + var(--space-2));
  padding: 0 var(--space-2-5);
}

.badge-sm .badge-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.badge:not(:has(.badge-label)):has(> .badge-icon:only-child) {
  padding: 0;
  justify-content: center;
  width: var(--space-6);
}

.badge-sm:not(:has(.badge-label)):has(> .badge-icon:only-child) {
  width: calc(var(--space-5) + var(--space-2));
}

a.badge {
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

a.badge:hover {
  box-shadow: inset 0 0 0 1px var(--badge-c);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  a.badge {
    transition: none;
  }
}
@media (forced-colors: active) {
  .badge {
    border-color: CanvasText;
  }
}

.progress {
  --progress: 0%;
  --progress-c: var(--accent);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--track);
}

.progress-bar {
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--progress-c);
  transition: width var(--motion-duration-base) var(--motion-ease-default);
}

.progress-sm {
  height: var(--space-2);
}

.progress-lg {
  height: var(--space-5);
}

.progress-ok {
  --progress-c: var(--ok);
}

.progress-warn {
  --progress-c: var(--warn);
}

.progress-err {
  --progress-c: var(--err);
}

.progress-info {
  --progress-c: var(--info);
}

.progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-end: var(--space-2);
  font-size: var(--text-sm);
}

.progress-label > :last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-indeterminate .progress-bar {
  width: 33%;
  animation: progress-sweep var(--motion-duration-pulse) ease-in-out infinite;
}

@keyframes progress-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }
  .progress-indeterminate .progress-bar {
    width: 100%;
    opacity: 0.4;
    animation: none;
  }
}
@media (forced-colors: active) {
  .progress {
    border: 1px solid CanvasText;
  }
  .progress-bar {
    background: Highlight;
    forced-color-adjust: none;
  }
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-block-start: 1px solid var(--border);
}

.accordion-header {
  margin: 0;
  font: inherit;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--space-8);
  padding: var(--space-3) var(--space-5);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: var(--weight-bold);
  text-align: start;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.accordion-trigger:hover {
  background: var(--action-hover);
}

.accordion-trigger:disabled,
.accordion-trigger[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
}

.accordion-trigger:disabled:hover,
.accordion-trigger[aria-disabled=true]:hover {
  background: transparent;
}

.accordion-trigger:focus-visible {
  outline-offset: -2px;
  border-radius: 0;
}

.accordion-trigger::before {
  content: "";
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  margin-inline: var(--space-2);
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}

.accordion-trigger[aria-expanded=true]::before {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--motion-duration-base) var(--motion-ease-default), visibility 0s linear var(--motion-duration-base);
}

.accordion-item:has(> .accordion-header > .accordion-trigger[aria-expanded=true]) > .accordion-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.accordion-panel-inner > * {
  margin-inline: var(--space-5);
}

.accordion-panel-inner > :first-child {
  margin-block-start: var(--space-2);
}

.accordion-panel-inner > :last-child {
  margin-block-end: var(--space-5);
}

@media (prefers-reduced-motion: reduce) {
  .accordion-trigger,
  .accordion-trigger::before,
  .accordion-panel {
    transition: none;
  }
}
@media (forced-colors: active) {
  .accordion {
    border-color: CanvasText;
  }
  .accordion-trigger::before {
    border-color: CanvasText;
  }
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
}

.segmented-fill {
  display: flex;
}

.segmented-fill > .segment {
  flex: 1;
}

.segment {
  position: relative;
  display: flex;
  min-width: 0;
}

.segment + .segment {
  border-inline-start: 1px solid var(--border-hi);
}

.segment-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
}

.segment-label {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--space-7);
  padding: 0 var(--space-5);
  color: var(--muted);
  white-space: nowrap;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.segment:first-child .segment-label {
  border-start-start-radius: calc(var(--radius-md) - 1px);
  border-end-start-radius: calc(var(--radius-md) - 1px);
}

.segment:last-child .segment-label {
  border-start-end-radius: calc(var(--radius-md) - 1px);
  border-end-end-radius: calc(var(--radius-md) - 1px);
}

.segment-input:hover:not(:disabled):not(:checked) + .segment-label {
  background: var(--panel-hi);
  color: var(--text);
}

.segment-input:checked + .segment-label {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: var(--weight-bold);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.segment-input:focus-visible {
  box-shadow: none;
  outline: 0;
}

.segment-input:focus-visible + .segment-label {
  outline: 2px solid transparent;
  outline-offset: -2px;
  box-shadow: var(--focus-ring);
  position: relative;
  z-index: 1;
}

.segment-input:checked:focus-visible + .segment-label {
  box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring);
}

.segment-input:disabled {
  cursor: not-allowed;
}

.segment-input:disabled + .segment-label {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .segment-label {
    transition: none;
  }
}
@media (forced-colors: active) {
  .segmented {
    border-color: CanvasText;
  }
  .segment-input:checked + .segment-label {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

.path {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.path-stage {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: var(--space-13);
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-5);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.path-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: calc(var(--space-2) * -1);
  inset-block-start: 50%;
  z-index: 1;
  width: var(--space-4);
  height: var(--space-4);
  border: solid var(--border-hi);
  border-width: 1px 1px 0 0;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

.path-stage:not(:last-child) {
  border-inline-end: 1px solid var(--border-hi);
}

.path-label {
  font-weight: var(--weight-bold);
}

.path-count,
.path-metric {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.path-count {
  color: var(--muted);
}

.path-metric {
  color: var(--text);
  font-weight: var(--weight-bold);
}

.path-stage:hover:not([aria-disabled=true]) {
  background: var(--action-hover);
  color: var(--text);
}

.path-stage[aria-selected=true] {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 0 calc(var(--space-1) * -1) 0 var(--accent);
}

.path-stage[aria-selected=true] .path-label {
  font-weight: var(--weight-bold);
}

.path-stage[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
}

.path-stage:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.path-stage[aria-selected=true]:focus-visible {
  box-shadow: inset 0 calc(var(--space-1) * -1) 0 var(--accent);
}

.path-panel {
  padding-block-start: var(--space-5);
}

@media (prefers-reduced-motion: reduce) {
  .path-stage {
    transition: none;
  }
}
@media (forced-colors: active) {
  .path,
  .path-stage:not(:last-child) {
    border-color: CanvasText;
  }
  .path-stage[aria-selected=true] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

.collapse {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--motion-duration-base) var(--motion-ease-default), visibility 0s linear var(--motion-duration-base);
}

.collapse[data-open=true] {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.collapse-inner {
  min-height: 0;
  overflow: hidden;
}

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

.attrs {
  --attrs-key-w: calc(var(--space-13) * 1.5);
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.attrs-pair {
  display: grid;
  grid-template-columns: var(--attrs-key-w) minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: baseline;
}

.attrs dt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.attrs dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.attrs dd.truncate {
  overflow-wrap: normal;
}

.attrs-icon {
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
}

.attrs-null {
  color: var(--muted);
  font-style: italic;
}

.attrs-stack .attrs-pair {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

@media (forced-colors: active) {
  .attrs dt {
    color: CanvasText;
  }
}

.popover-host {
  position: relative;
  display: inline-block;
}

.popover {
  position: absolute;
  z-index: var(--z-dropdown);
  inset-block-start: calc(100% + var(--space-3));
  inset-inline-start: 0;
  display: none;
  box-sizing: border-box;
  width: var(--popover-w);
  max-width: calc(100vw - var(--space-7));
  padding: var(--space-4);
  border: 1px solid var(--popover-border);
  border-radius: var(--radius-lg);
  background: var(--popover-bg);
  color: var(--text);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.popover[data-open=true],
[aria-expanded=true] + .popover {
  display: block;
}

.popover-top {
  inset-block-start: auto;
  inset-block-end: calc(100% + var(--space-3));
}

.popover-end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.popover-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
}

.popover-body {
  color: var(--text);
}

.popover-body > :first-child {
  margin-block-start: 0;
}

.popover-body > :last-child {
  margin-block-end: 0;
}

.popover-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
  margin-block-start: var(--space-4);
}

@media (forced-colors: active) {
  .popover {
    border-color: CanvasText;
  }
}

.broadcast {
  --broadcast-c: var(--info);
  --broadcast-bg: var(--fb-info-bg);
  --broadcast-edge: var(--fb-info-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border-block-end: 1px solid var(--broadcast-edge);
  background: var(--broadcast-bg);
  color: var(--text);
}

.broadcast-info {
  --broadcast-c: var(--info);
  --broadcast-bg: var(--fb-info-bg);
  --broadcast-edge: var(--fb-info-border);
}

.broadcast-ok {
  --broadcast-c: var(--ok);
  --broadcast-bg: var(--fb-ok-bg);
  --broadcast-edge: var(--fb-ok-border);
}

.broadcast-warn {
  --broadcast-c: var(--warn);
  --broadcast-bg: var(--fb-warn-bg);
  --broadcast-edge: var(--fb-warn-border);
}

.broadcast-err {
  --broadcast-c: var(--err);
  --broadcast-bg: var(--fb-err-bg);
  --broadcast-edge: var(--fb-err-border);
}

.broadcast-tier {
  --broadcast-c: var(--tier);
  --broadcast-bg: var(--tier-bg);
  --broadcast-edge: var(--tier);
}

.broadcast-msg {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.45;
}

.broadcast-close {
  flex: none;
  padding: var(--space-1) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.broadcast-close:hover {
  background: var(--action-hover);
}

.broadcast-notice-region {
  position: fixed;
  z-index: var(--z-toast);
  inset-block-end: var(--space-5);
  inset-inline-end: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(var(--space-13) * 4, 100vw - var(--space-7));
}

.broadcast-notice {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--broadcast-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.broadcast-notice .broadcast-close {
  align-self: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  .broadcast-close {
    transition: none;
  }
}
@media (forced-colors: active) {
  .broadcast,
  .broadcast-notice {
    border-color: CanvasText;
  }
}

.combobox-block {
  display: block;
}

.combobox-block > .combobox-toggle {
  width: 100%;
}

.combobox-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-sizing: border-box;
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--motion-duration-base) var(--motion-ease-default);
}

.combobox-toggle::after {
  content: "";
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  border: solid currentcolor;
  border-width: 0 2px 2px 0;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}

.combobox-toggle[aria-expanded=true]::after {
  transform: translateY(25%) rotate(-135deg);
}

.combobox-toggle[aria-expanded=true] ~ .dropdown-menu {
  display: flex;
}

.combobox-toggle:hover:not(:disabled) {
  border-color: var(--control-border-hover);
}

.combobox-toggle:focus-visible,
.combobox-toggle[aria-expanded=true] {
  border-color: var(--accent);
}

.combobox-toggle[aria-invalid=true] {
  border-color: var(--err);
}

.combobox-toggle:disabled {
  border-color: var(--control-border-disabled);
  background: var(--control-bg-disabled);
  color: var(--disabled);
  cursor: not-allowed;
}

.combobox-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combobox-value:empty::before,
.combobox-placeholder {
  color: var(--muted);
}

.combobox-value:empty::before {
  content: attr(data-placeholder);
}

.combobox-match > .dropdown-menu {
  width: 100%;
}

.combobox-actions,
.combobox-footer {
  display: flex;
  flex: none;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
}

.combobox-actions {
  border-block-end: 1px solid var(--border);
}

.combobox-footer {
  position: sticky;
  inset-block-end: calc(var(--space-2) * -1);
  margin: var(--space-2) calc(var(--space-2) * -1) calc(var(--space-2) * -1);
  border-block-start: 1px solid var(--border);
  background: var(--popover-bg);
}

.combobox-action {
  padding: var(--space-1) var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.combobox-action:hover {
  text-decoration: underline;
}

.combobox-action[aria-disabled=true] {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .combobox-toggle,
  .combobox-toggle::after {
    transition: none;
  }
}
@media (forced-colors: active) {
  .combobox-toggle {
    border-color: CanvasText;
  }
  .combobox-toggle[aria-invalid=true] {
    border-color: Mark;
  }
}

.fcombo {
  position: relative;
}

.fcombo > .dropdown-menu {
  inset-inline-end: 0;
}

.fcombo > .input[aria-expanded=true] {
  border-color: var(--accent);
}

.fcombo .dropdown-item::before {
  display: none;
}

.fcombo-match {
  font-weight: var(--weight-bold);
}

.btn-group {
  display: inline-flex;
  max-width: 100%;
  vertical-align: middle;
}

.btn-group-vertical {
  flex-direction: column;
}

.btn-group > .btn,
.btn-group > .dropdown > .btn {
  border-radius: 0;
}

.btn-group > .btn:not(:first-child),
.btn-group > .dropdown:not(:first-child) {
  margin-inline-start: calc(var(--space-px) * -1);
}

.btn-group-vertical > .btn:not(:first-child),
.btn-group-vertical > .dropdown:not(:first-child) {
  margin-inline-start: 0;
  margin-block-start: calc(var(--space-px) * -1);
}

.btn-group > .btn:first-child,
.btn-group > .dropdown:first-child > .btn {
  border-start-start-radius: var(--radius);
  border-end-start-radius: var(--radius);
}

.btn-group > .btn:last-child,
.btn-group > .dropdown:last-child > .btn {
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
}

.btn-group-vertical > .btn:first-child {
  border-start-start-radius: var(--radius);
  border-start-end-radius: var(--radius);
  border-end-start-radius: 0;
}

.btn-group-vertical > .btn:last-child {
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
  border-start-end-radius: 0;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus-visible,
.btn-group > .btn[aria-pressed=true] {
  position: relative;
  z-index: 1;
}

.btn-group > .btn[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: var(--weight-bold);
}

@media (forced-colors: active) {
  .btn-group > .btn[aria-pressed=true] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

.sort-dir {
  justify-content: center;
  min-width: var(--space-7);
}

.sort-arrow {
  position: relative;
  flex: none;
  width: var(--space-px);
  height: var(--icon-md);
  background: currentcolor;
  transition: transform var(--motion-duration-base) var(--motion-ease-default);
}

.sort-arrow::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  width: var(--space-2);
  height: var(--space-2);
  border: solid currentcolor;
  border-width: 1px 1px 0 0;
  transform: translate(-50%, 0) rotate(-45deg);
}

.sort-dir[data-dir=desc] .sort-arrow {
  transform: rotate(180deg);
}

.sort-dir:disabled .sort-arrow {
  opacity: 0.5;
}

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

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group > .input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.input-group > .input:not(:first-child) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.input-group > .input:not(:last-child) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.input-group > :not(:first-child) {
  margin-inline-start: calc(var(--space-px) * -1);
}

.input-group > .input:focus-visible,
.input-group > .input:hover {
  position: relative;
  z-index: 1;
}

.input-group-addon {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 0 var(--space-4);
  border: 1px solid var(--control-border);
  background: var(--control-bg-disabled);
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.input-group-addon:first-child {
  border-start-start-radius: var(--radius-sm);
  border-end-start-radius: var(--radius-sm);
}

.input-group-addon:last-child {
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}

.input-group-btn {
  flex: none;
  border-radius: 0;
}

.input-group-btn:first-child {
  border-start-start-radius: var(--radius-sm);
  border-end-start-radius: var(--radius-sm);
}

.input-group-btn:last-child {
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}

.input-group-btn:hover {
  position: relative;
  z-index: 1;
}

.input-group > .input[readonly] {
  background: var(--bg-deep);
  cursor: text;
  font-family: var(--mono);
}

.input-group:has(> .input[aria-invalid=true]) > .input,
.input-group:has(> .input[aria-invalid=true]) > .input-group-addon {
  border-color: var(--err);
}

@media (forced-colors: active) {
  .input-group-addon {
    border-color: CanvasText;
  }
}

.password {
  position: relative;
}

.password > .input {
  padding-inline-end: var(--space-9);
}

.password-toggle {
  position: absolute;
  inset-block: var(--space-1);
  inset-inline-end: var(--space-1);
  display: grid;
  place-items: center;
  width: var(--space-7);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.password-toggle:hover:not(:disabled) {
  background: var(--action-hover);
  color: var(--text);
}

.password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.password-eye {
  position: relative;
  width: var(--icon-md);
  height: var(--icon-sm);
  border: 1.5px solid currentcolor;
  border-radius: 50%;
}

.password-eye::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: currentcolor;
  transform: translate(-50%, -50%);
}

.password-eye::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(var(--icon-md) + var(--space-2));
  height: 0;
  border-block-start: 2px solid currentcolor;
  transform: translate(-50%, -50%) rotate(-35deg) scaleX(0);
  transition: transform var(--motion-duration-fast) var(--motion-ease-default);
}

.password-toggle[data-revealed=true] .password-eye::after {
  transform: translate(-50%, -50%) rotate(-35deg) scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .password-toggle,
  .password-eye::after {
    transition: none;
  }
}
@media (forced-colors: active) {
  .password-toggle {
    color: ButtonText;
  }
}

.char-count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.char-count-row > .char-count {
  margin-inline-start: auto;
}

.char-count.near {
  color: var(--text);
  font-weight: var(--weight-bold);
}

.char-count.recommended-info {
  color: var(--info);
}

@media (forced-colors: active) {
  .char-count.over {
    text-decoration: underline;
  }
}

.datepicker {
  position: relative;
}

.datepicker-range {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.datepicker-field {
  position: relative;
}

.datepicker-field > .input {
  padding-inline-end: var(--space-9);
}

.datepicker-toggle,
.datepicker-clear {
  position: absolute;
  inset-block: var(--space-1);
  display: grid;
  place-items: center;
  width: var(--space-7);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.datepicker-toggle {
  inset-inline-end: var(--space-1);
}

.datepicker-clear {
  inset-inline-end: var(--space-8);
}

.datepicker-toggle:hover,
.datepicker-clear:hover {
  background: var(--action-hover);
  color: var(--text);
}

.datepicker-icon {
  box-sizing: border-box;
  width: var(--icon-md);
  height: var(--icon-md);
  border: 1.5px solid currentcolor;
  border-block-start-width: 4px;
  border-radius: var(--radius-xs);
}

.datepicker-panel {
  position: absolute;
  z-index: var(--z-dropdown);
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: 0;
  display: none;
  box-sizing: border-box;
  width: var(--popover-w);
  max-width: calc(100vw - var(--space-7));
  padding: var(--space-2);
  border: 1px solid var(--popover-border);
  border-radius: var(--radius-lg);
  background: var(--popover-bg);
  box-shadow: var(--shadow-md);
}

.datepicker-panel[data-open=true],
.datepicker-toggle[aria-expanded=true] ~ .datepicker-panel {
  display: block;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2);
}

.calendar-title {
  font-weight: var(--weight-bold);
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.calendar-nav:hover {
  background: var(--action-hover);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}

.calendar-row {
  display: contents;
}

.calendar-weekday {
  display: grid;
  place-items: center;
  height: var(--space-7);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.calendar-day {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: var(--space-8);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.calendar-day:hover:not([aria-disabled=true], [aria-selected=true]) {
  background: var(--action-hover);
}

.calendar-day[data-outside] {
  color: var(--muted);
}

.calendar-day[aria-current=date] {
  border-color: var(--accent);
  font-weight: var(--weight-bold);
}

.calendar-day[aria-selected=true] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: var(--weight-bold);
}

.calendar-day[data-in-range] {
  border-radius: 0;
  background: var(--accent-soft);
}

.calendar-day[data-range-start] {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.calendar-day[data-range-end] {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.calendar-day[aria-disabled=true] {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .datepicker-toggle,
  .datepicker-clear,
  .calendar-day {
    transition: none;
  }
}
@media (forced-colors: active) {
  .datepicker-panel {
    border-color: CanvasText;
  }
  .calendar-day[aria-selected=true] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .calendar-day[data-in-range] {
    outline: 1px solid Highlight;
  }
}

.searchbar {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
}

.searchbar-field {
  --searchbar-glyph: var(--space-4);
  position: relative;
  flex: 1;
  min-width: 0;
}

.searchbar-input {
  width: 100%;
  padding-inline: var(--space-7) var(--space-8);
}

.searchbar-field::before,
.searchbar-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.searchbar-field::before {
  box-sizing: border-box;
  inset-block-start: calc(50% - var(--searchbar-glyph) / 2 - var(--space-1));
  inset-inline-start: var(--space-4);
  width: var(--searchbar-glyph);
  height: var(--searchbar-glyph);
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-full);
}

.searchbar-field::after {
  inset-block-start: calc(50% - var(--searchbar-glyph) / 2 - var(--space-1) + var(--searchbar-glyph) * 0.85);
  inset-inline-start: calc(var(--space-4) + var(--searchbar-glyph) * 0.85);
  width: var(--space-2);
  height: 0;
  border-block-start: 2px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: 0 0;
}

.searchbar-clear {
  color: var(--muted);
}

.searchbar-field::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: var(--space-4);
  width: var(--space-3);
  height: var(--space-3);
  border: 1.5px solid currentcolor;
  border-radius: var(--radius-full);
  transform: translateY(-65%);
  pointer-events: none;
}

.searchbar-field::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: calc(var(--space-4) + var(--space-3) - var(--space-px));
  width: var(--space-2);
  height: 0;
  border-block-start: 2px solid var(--muted);
  transform: translateY(var(--space-2)) rotate(45deg);
  transform-origin: 0 0;
  pointer-events: none;
}

.searchbar-clear {
  position: absolute;
  inset-block: var(--space-1);
  inset-inline-end: var(--space-1);
  display: none;
  place-items: center;
  width: var(--space-7);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.searchbar-clear:hover {
  background: var(--action-hover);
  color: var(--text);
}

.searchbar-field:has(.searchbar-input:not(:placeholder-shown)) .searchbar-clear {
  display: grid;
}

.searchbar-x {
  position: relative;
  width: var(--icon-md);
  height: var(--icon-md);
}

.searchbar-x::before,
.searchbar-x::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: var(--icon-md);
  height: 0;
  border-block-start: 2px solid currentcolor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.searchbar-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.searchbar-busy {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: var(--space-3);
  transform: translateY(-50%);
}

.searchbar-field:has(.searchbar-busy:not([hidden])) .searchbar-clear {
  display: none;
}

.searchbar-submit {
  flex: none;
}

.searchbar-input::-webkit-search-cancel-button {
  appearance: none;
}

@media (forced-colors: active) {
  .searchbar-field::before {
    border-color: CanvasText;
  }
  .searchbar-field::after {
    border-color: CanvasText;
  }
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.token {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--space-6);
  padding: 0 var(--space-2) 0 var(--space-3);
  border: 1px solid var(--token-bg);
  border-radius: var(--radius-xs);
  background: var(--token-bg);
  color: var(--token-fg);
  font-size: var(--text-sm);
  line-height: 1;
}

.token > .avatar {
  margin-inline-start: calc(var(--space-1) * -1);
}

.token-label {
  min-width: 0;
  max-width: calc(var(--space-13) * 2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.token-label {
  color: inherit;
  text-decoration: none;
}

a.token-label:hover {
  text-decoration: underline;
}

.token-remove {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--icon-md);
  height: var(--icon-md);
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.token-remove:hover {
  background: var(--border-hi);
  color: var(--text);
}

.token-x {
  position: relative;
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.token-x::before,
.token-x::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  width: 100%;
  height: 0;
  border-block-start: 2px solid currentcolor;
  transform: rotate(45deg);
}

.token-x::after {
  transform: rotate(-45deg);
}

.token-view {
  padding-inline-end: var(--space-3);
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .token-remove {
    transition: none;
  }
}
@media (forced-colors: active) {
  .token {
    border-color: CanvasText;
  }
  .token-remove:hover {
    outline: 1px solid Highlight;
  }
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--space-8);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: var(--control-bg);
  transition: border-color var(--motion-duration-base) var(--motion-ease-default);
}

.filter:hover {
  border-color: var(--control-border-hover);
}

.filter:focus-within {
  border-color: var(--accent);
}

.filter-chip {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  background: var(--panel-hi);
  font-size: var(--text-sm);
  line-height: 1;
}

.filter-chip[aria-invalid=true] {
  border-color: var(--err);
}

.filter-key,
.filter-op,
.filter-value {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
}

.filter-key {
  font-weight: var(--weight-bold);
}

.filter-op {
  color: var(--muted);
  border-inline: 1px solid var(--border);
}

.filter-value {
  max-width: calc(var(--space-13) * 2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-remove {
  display: grid;
  place-items: center;
  width: var(--space-6);
  border: 0;
  border-inline-start: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-remove:hover {
  background: var(--border-hi);
  color: var(--text);
}

.filter-chip:focus-within {
  border-color: var(--accent);
}

.filter-input {
  flex: 1;
  min-width: calc(var(--space-13) + var(--space-9));
  padding: var(--space-2);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.filter-input::placeholder {
  color: var(--muted);
}

.filter-input:focus-visible {
  box-shadow: none;
  outline: 0;
}

.filter-clear {
  flex: none;
  padding: var(--space-1) var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.filter-clear:hover {
  color: var(--text);
  text-decoration: underline;
}

.filter-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.filter-row > .filter {
  flex: 1;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .filter {
    transition: none;
  }
}
@media (forced-colors: active) {
  .filter,
  .filter-chip {
    border-color: CanvasText;
  }
  .filter:focus-within {
    outline: 2px solid Highlight;
  }
}

.formsteps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: calc(var(--space-13) * 5);
}

.formsteps-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
}

.formsteps-count {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.formsteps-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.formsteps-name {
  margin-block-end: var(--space-3);
  padding: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.formsteps-name:focus-visible {
  border-radius: var(--radius-sm);
}

.formsteps-footer {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--border);
}

.formsteps-footer .btn[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
}

.formsteps-note {
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: end;
}

.tag {
  --tag-fill: var(--tag-color, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--space-6);
  padding: 0 var(--space-3);
  border: 1px solid var(--tag-fill);
  border-radius: var(--radius-full);

  background: color-mix(in srgb, var(--tag-fill) 22%, var(--card));
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

@supports (color: color(from red srgb r g b)) {
  .tag {
    --tag-ink: color(from var(--tag-fill) srgb
      clamp(0, calc((0.46 - (r * 0.2126 + g * 0.7152 + b * 0.0722)) * 1000), 1)
      clamp(0, calc((0.46 - (r * 0.2126 + g * 0.7152 + b * 0.0722)) * 1000), 1)
      clamp(0, calc((0.46 - (r * 0.2126 + g * 0.7152 + b * 0.0722)) * 1000), 1));
    background: var(--tag-fill);
    color: var(--tag-ink);
  }
}
.tag-sm {
  min-height: var(--space-5);
  padding: 0 var(--space-2);
}

.tag-scoped {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--tag-fill);
}

.tag-key,
.tag-val {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  padding: 0 var(--space-3);
}

.tag-key {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-val {
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  text-overflow: ellipsis;
}

.tag-sm .tag-key,
.tag-sm .tag-val {
  padding: 0 var(--space-2);
}

a.tag,
button.tag {
  cursor: pointer;
  font-family: inherit;
}

a.tag:hover,
button.tag:hover {
  filter: brightness(1.1);
}

.tag-close {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--icon-md);
  height: var(--icon-md);
  margin-inline-end: calc(var(--space-1) * -1);
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.tag-close:hover {
  background: color-mix(in srgb, currentcolor 22%, transparent);
}

@media (forced-colors: active) {
  .tag {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: none;
  }
}

.avatar-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 100%;
}

.avatar-group > .avatar {
  box-shadow: 0 0 0 var(--space-1) var(--bg);
}

.avatar-group > .avatar + .avatar {
  margin-inline-start: calc(var(--avatar-size) * -0.25);
}

.avatar-more {
  background: var(--panel);
  color: var(--muted);
  font-size: calc(var(--avatar-size) * 0.34);
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

button.avatar-more {
  cursor: pointer;
}

button.avatar-more:hover {
  color: var(--text);
  border-color: var(--accent);
}

.card .avatar-group > .avatar {
  box-shadow: 0 0 0 var(--space-1) var(--card);
}

@media (forced-colors: active) {
  .avatar-group > .avatar {
    box-shadow: 0 0 0 var(--space-1) Canvas;
  }
}

.link,
.link-ui,
.link-meta,
.link-mono {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: var(--space-px);
  text-underline-offset: var(--space-1);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color var(--motion-duration-fast) var(--motion-ease-default);
}

.link:hover,
.link-ui:hover,
.link-meta:hover,
.link-mono:hover {
  color: var(--accent-hi);
  text-decoration-thickness: 2px;
}

.link-ui,
.link-meta {
  text-decoration-color: transparent;
}

.link-ui:hover,
.link-ui:focus-visible,
.link-meta:hover,
.link-meta:focus-visible {
  text-decoration-color: currentcolor;
}

.link-meta {
  color: var(--muted);
}

.link-meta:hover {
  color: var(--text);
}

.link-mono {
  font-family: var(--mono);
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.link-external::after {
  content: "↗";
  display: inline-block;
  margin-inline-start: var(--space-1);
  font-size: 0.85em;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .link,
  .link-ui,
  .link-meta,
  .link-mono {
    transition: none;
  }
}
@media (forced-colors: active) {
  .link,
  .link-ui,
  .link-meta,
  .link-mono {
    color: LinkText;
  }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  max-width: calc(var(--space-13) * 4);
  margin-inline: auto;
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.empty-art {
  width: 100%;
  height: calc(var(--space-13) * 1.5);
  background: center/contain no-repeat;
}

.empty-art:empty {
  display: none;
}

.empty-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
}

.empty-text {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-body);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  margin-block-start: var(--space-3);
}

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

.shell-skip {
  position: absolute;
  inset-inline-start: var(--space-3);
  inset-block-start: calc(var(--space-9) * -1);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
}

.shell-skip:focus {
  inset-block-start: var(--space-3);
  color: var(--on-accent);
  text-decoration: none;
}

.shell-side {
  position: sticky;
  inset-block-start: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100vh;
  height: 100dvh;
  padding: var(--space-5) var(--space-4);
  overflow-y: auto;
  border-inline-end: 1px solid var(--border);
  background: var(--bg-deep);
}

.shell-side-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.shell-side-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2-5) var(--space-3) var(--space-3);
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.shell-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.shell-toggle {
  display: none;
}

.shell-nav,
.shell-nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-nav {
  gap: var(--space-4);
}

.shell-nav-list {
  gap: var(--space-1);
}

.shell-nav-title {
  display: block;
  padding: 0 var(--space-3) var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.shell-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  color: var(--nav-fg);
  font-weight: var(--weight-semibold);
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default), box-shadow var(--motion-duration-fast) var(--motion-ease-default);
}

.shell-nav-item:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-fg-hover);
  text-decoration: none;
}

.shell-nav-item[aria-current=page] {
  background: var(--accent-soft);
  color: var(--nav-selected-fg);
  font-weight: var(--weight-bold);
  box-shadow: inset var(--space-1) 0 0 var(--accent);
}

.shell-nav-icon {
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
}

.shell-nav-item[aria-disabled=true] {
  background: transparent;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  cursor: not-allowed;
  box-shadow: none;
}

.shell-nav-soon {
  margin-inline-start: auto;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.shell-nav-spacer {
  margin-block-start: auto;
}

.shell-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.shell-top {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-block-end: 1px solid var(--border);
  background: var(--panel);
}

.shell-top .select {
  width: auto;
  min-width: 0;
}

.shell-top .btn,
.shell-top .muted {
  white-space: nowrap;
}

.shell-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
  max-width: calc(var(--space-13) * 13);
  padding: var(--space-6) var(--space-6) var(--space-9);
}

.shell-main:focus {
  outline: none;
}

@media (max-width: 767.98px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .shell-side {
    position: static;
    height: auto;
    overflow-y: visible;
    border-inline-end: 0;
    border-block-end: 1px solid var(--border);
  }
  .shell-toggle {
    display: inline-flex;
  }
  .shell-side-body {
    display: none;
  }
  .shell-side[data-open=true] .shell-side-body {
    display: flex;
  }
  .shell-top {
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-5);
  }
  .shell-main {
    padding: var(--space-5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shell-nav-item {
    transition: none;
  }
}
@media (forced-colors: active) {
  .shell-side,
  .shell-top {
    border-color: CanvasText;
  }
  .shell-nav-item[aria-current=page] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .shell-nav-item[aria-disabled=true] {
    color: GrayText;
  }
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.table-wrap:focus-visible {
  border-radius: 0;
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.table-sticky {
  max-height: var(--table-max-h, 24rem);
  overflow-y: auto;
}

.table-sticky .table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--card);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  padding: var(--space-3);
  border-block-end: 1px solid var(--border-hi);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-align: start;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td,
.table tbody th {
  padding: var(--space-4) var(--space-3);
  border-block-end: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody th {
  color: var(--text);
  font-size: inherit;
  font-weight: var(--weight-bold);
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
}

.table tbody tr:last-child > * {
  border-block-end: 0;
}

.table tbody tr {
  transition: background var(--motion-duration-fast) var(--motion-ease-default);
}

.table tbody tr:hover > * {
  background: var(--row-hover);
}

.table th[aria-sort] {
  padding: 0;
}

.table th[aria-sort] > button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.table th[aria-sort] > button:hover {
  color: var(--text);
}

.table th[aria-sort=ascending],
.table th[aria-sort=descending] {
  color: var(--text);
}

.table-num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.table-mono {
  font-family: var(--mono);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.table-select {
  width: var(--space-7);
  padding-inline-end: 0;
}

.table-actions {
  text-align: end;
  white-space: nowrap;
}

.table-actions > * + * {
  margin-inline-start: var(--space-2);
}

.table tbody tr[aria-selected=true] > * {
  background: var(--accent-soft);
}

.table tbody tr[aria-selected=true] > :first-child {
  box-shadow: inset var(--space-1) 0 0 var(--accent);
}

.table-condensed th,
.table-condensed td,
.table-condensed tbody th {
  padding: var(--space-2) var(--space-3);
}

.table tbody tr:has(> .table-empty):hover > * {
  background: transparent;
}

.table-empty {
  padding: var(--space-6) var(--space-4);
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .table tbody tr {
    transition: none;
  }
}
@media (forced-colors: active) {
  .table th {
    border-color: CanvasText;
  }
  .table td,
  .table tbody th {
    border-color: GrayText;
  }
  .table tbody tr[aria-selected=true] > * {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

.pagetabs {
  display: flex;
  gap: var(--space-1);
  max-width: 100%;
  overflow-x: auto;
  border-block-end: 1px solid var(--border);
}

.pagetab {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  margin-block-end: calc(var(--space-px) * -1);
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-block-end: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: var(--weight-bold);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--motion-duration-fast) var(--motion-ease-default), border-color var(--motion-duration-fast) var(--motion-ease-default);
}

.pagetab:hover:not([aria-disabled=true]) {
  color: var(--text);
  text-decoration: none;
}

.pagetab[aria-selected=true],
.pagetab[aria-current=page] {
  border-block-end-color: var(--accent);
  color: var(--text);
}

.pagetab[aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagetab-count {
  padding: 0 var(--space-2-5);
  border-radius: var(--radius-full);
  background: var(--panel-hi);
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-body);
}

.pagetab[aria-selected=true] .pagetab-count,
.pagetab[aria-current=page] .pagetab-count {
  color: var(--text);
}

.pagetab:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.pagetabs-panel {
  padding-block-start: var(--space-5);
}

@media (prefers-reduced-motion: reduce) {
  .pagetab {
    transition: none;
  }
}
@media (forced-colors: active) {
  .pagetabs {
    border-color: CanvasText;
  }
  .pagetab[aria-selected=true],
  .pagetab[aria-current=page] {
    border-block-end-color: Highlight;
    color: Highlight;
    forced-color-adjust: none;
  }
}

.capability-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-12) * 2.75), 1fr));
}

.capability {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--motion-duration-base) var(--motion-ease-default), background var(--motion-duration-base) var(--motion-ease-default), box-shadow var(--motion-duration-base) var(--motion-ease-default), transform var(--motion-duration-base) var(--motion-ease-default);
}

.capability:hover:not([aria-disabled=true], :disabled) {
  border-color: var(--accent);
  background: var(--card-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(calc(var(--space-px) * -1));
}

.capability-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.capability-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.capability-title {
  font-weight: var(--weight-bold);
}

.capability-text {
  color: var(--muted);
  font-size: var(--text-sm);
}

.capability-status {
  flex: none;
  align-self: flex-start;
}

.capability[aria-pressed=true],
.capability[aria-checked=true] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.capability[aria-pressed=true]::after,
.capability[aria-checked=true]::after {
  content: "";
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  width: var(--space-2-5);
  height: var(--space-3);
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.capability[aria-pressed=true] .capability-status,
.capability[aria-checked=true] .capability-status {
  margin-inline-end: var(--space-5);
}

.capability[aria-disabled=true],
.capability:disabled {
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .capability {
    transition: none;
  }
  .capability:hover:not([aria-disabled=true], :disabled) {
    transform: none;
  }
}
@media (forced-colors: active) {
  .capability {
    border-color: CanvasText;
  }
  .capability[aria-pressed=true],
  .capability[aria-checked=true] {
    border-width: 2px;
    border-color: Highlight;
    background: Canvas;
  }
  .capability[aria-pressed=true]::after,
  .capability[aria-checked=true]::after {
    border-color: Highlight;
  }
  .capability[aria-disabled=true],
  .capability:disabled {
    border-color: GrayText;
    color: GrayText;
  }
}

.stepper {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block-end: var(--space-5);
  color: var(--muted);
}

.stepper-step:last-child {
  padding-block-end: 0;
}

.stepper-marker {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-full);
  background: var(--card);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-bold);
}

.stepper-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  padding-block-start: var(--space-2);
}

.stepper-label {
  font-weight: var(--weight-bold);
}

.stepper-desc {
  font-size: var(--text-sm);
}

.stepper-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block: calc(var(--space-7) + var(--space-2)) var(--space-2);
  inset-inline-start: calc(var(--space-7) / 2);
  width: var(--space-px);
  background: var(--border-hi);
}

.stepper-step[aria-current=step] {
  color: var(--text);
}

.stepper-step[aria-current=step] .stepper-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.stepper-step[aria-current=step] .stepper-label {
  font-weight: var(--weight-bold);
}

.stepper-step[data-state=done] {
  color: var(--text);
}

.stepper-step[data-state=done] .stepper-marker {
  border-color: var(--ok);
  color: transparent;
}

.stepper-step[data-state=done] .stepper-marker::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: var(--space-2-5);
  height: var(--space-4);
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -62%) rotate(45deg);
}

.stepper-step[data-state=done]:not(:last-child)::before {
  background: var(--ok);
}

.stepper-horizontal {
  flex-direction: row;
  max-width: 100%;
  overflow-x: auto;
}

.stepper-horizontal .stepper-step {
  flex: 1 0 auto;
  align-items: center;
  padding-block-end: 0;
}

.stepper-horizontal .stepper-step:last-child {
  flex: 0 0 auto;
}

.stepper-horizontal .stepper-text {
  padding-block-start: 0;
  white-space: nowrap;
}

.stepper-horizontal .stepper-step:not(:last-child)::before {
  content: none;
}

.stepper-horizontal .stepper-step:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: var(--space-5);
  height: var(--space-px);
  margin-inline: var(--space-3);
  background: var(--border-hi);
}

.stepper-horizontal .stepper-step[data-state=done]:not(:last-child)::after {
  background: var(--ok);
}

@media (forced-colors: active) {
  .stepper-marker {
    border-color: CanvasText;
  }
  .stepper-step[aria-current=step] .stepper-marker {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .stepper-step[data-state=done] .stepper-marker::after {
    border-color: CanvasText;
  }
  .stepper-step::before,
  .stepper-step::after {
    background: CanvasText !important;
  }
}

.modal {
  --modal-w: var(--modal-w-md);
  z-index: var(--z-modal);
  flex-direction: column;
  width: min(var(--modal-w), 100vw - var(--space-5) * 2);
  max-width: none;
  max-height: calc(100vh - var(--space-6) * 2);
  max-height: calc(100dvh - var(--space-6) * 2);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--popover-border);
  border-radius: var(--radius-xl);
  background: var(--popover-bg);
  color: var(--text);
  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(var(--space-3));
  transition: opacity var(--motion-duration-base) var(--motion-ease-default), transform var(--motion-duration-base) var(--motion-ease-default), overlay var(--motion-duration-base) allow-discrete, display var(--motion-duration-base) allow-discrete;
}

.modal[open] {
  display: flex;
  opacity: 1;
  transform: none;
}

@starting-style {
  .modal[open] {
    opacity: 0;
    transform: translateY(var(--space-3));
  }
}
.modal-sm {
  --modal-w: var(--modal-w-sm);
}

.modal-lg {
  --modal-w: var(--modal-w-lg);
}

.modal::backdrop {
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--motion-duration-base) var(--motion-ease-default), overlay var(--motion-duration-base) allow-discrete, display var(--motion-duration-base) allow-discrete;
}

.modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .modal[open]::backdrop {
    opacity: 0;
  }
}

body:has(.modal[open]) {
  overflow: hidden;
}

.modal-header,
.modal-footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.modal-header {
  justify-content: space-between;
  border-block-end: 1px solid var(--border);
}

.modal-footer {
  justify-content: flex-end;
  border-block-start: 1px solid var(--border);
}

.modal-title {
  min-width: 0;
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

.modal-title:focus {
  outline: none;
}

.modal-close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  transition: background var(--motion-duration-fast) var(--motion-ease-default), color var(--motion-duration-fast) var(--motion-ease-default);
}

.modal-close:hover {
  background: var(--action-hover);
  color: var(--text);
}

.modal-close:focus-visible {
  outline-offset: -2px;
}

.modal-body {
  flex: 1;
  min-height: 0;
  padding: var(--space-5);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal::backdrop,
  .modal-close {
    transition: none;
  }
}
@media (forced-colors: active) {
  .modal {
    border-color: CanvasText;
  }
  .modal-header,
  .modal-footer {
    border-color: CanvasText;
  }
}

.dashpanel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.dashpanel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-3);
  align-items: center;
}

.dashpanel-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.dashpanel-title {
  min-width: 0;
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

.dashpanel-sub {
  grid-column: 1/-1;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.dashpanel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashpanel-info {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--space-5);
  height: var(--space-5);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.dashpanel-info:hover,
.dashpanel-info[aria-expanded=true] {
  border-color: var(--accent);
  color: var(--accent-text);
}

.dashpanel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.dashpanel-body {
  flex: 1;
  min-height: calc(var(--space-12) * 2);
  min-width: 0;
}

.dashpanel-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border-radius: inherit;
}

.dashpanel[aria-busy=true] .dashpanel-body {
  visibility: hidden;
}

.dashpanel[aria-busy=true] .dashpanel-loading {
  display: flex;
}

.dashpanel-loading-text {
  color: var(--muted);
  font-size: var(--text-sm);
  opacity: 0;
  animation: dashpanel-late 0s linear calc(var(--motion-duration-feedback) * 4) forwards;
}

@keyframes dashpanel-late {
  to {
    opacity: 1;
  }
}

.dashpanel-error {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-inline-start: var(--space-1) solid var(--err);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.dashpanel-error[hidden] {
  display: none;
}

.dashpanel[aria-busy=true] .dashpanel-error {
  display: none;
}

@media (forced-colors: active) {
  .dashpanel {
    border-color: CanvasText;
  }
  .dashpanel-error {
    border-color: CanvasText;
    border-inline-start-color: Highlight;
  }
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
}

.field-label {
  color: var(--text);
  font-weight: var(--weight-bold);
}

.field-optional,
.field-required {
  color: var(--muted);
  font-weight: 400;
}

.field-desc,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.field-error {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  margin: 0;
  color: var(--err);
  font-size: var(--text-sm);
}

.field-error[hidden] {
  display: none;
}

.field-error::before {
  content: "!";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--icon-md);
  height: var(--icon-md);
  border-radius: var(--radius-full);
  background: var(--err);
  color: var(--bg);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.field-error[data-source=server] {
  font-weight: var(--weight-bold);
}

.field-block :is(.input, .select, .textarea):user-invalid,
.field-block :is(.input, .select, .textarea)[aria-invalid=true] {
  border-color: var(--err);
}

.field-block :is(.input, .select, .textarea):user-invalid:focus,
.field-block :is(.input, .select, .textarea)[aria-invalid=true]:focus {
  border-color: var(--err);
}

.field-w-xs {
  width: 100%;
  max-width: var(--space-12);
}

.field-w-s {
  width: 100%;
  max-width: calc(var(--space-12) * 2);
}

.field-w-m {
  width: 100%;
  max-width: calc(var(--space-12) * 3);
}

.field-w-l {
  width: 100%;
  max-width: calc(var(--space-12) * 4);
}

.field-w-xl {
  width: 100%;
  max-width: calc(var(--space-12) * 7);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  max-width: 100%;
}
@media (min-width: 576px) {
  .field-inline {
    grid-template-columns: calc(var(--space-12) * 2) minmax(0, 1fr);
    column-gap: var(--space-5);
    align-items: start;
  }
  .field-inline > .field-label {
    padding-block-start: var(--space-3);
  }
  .field-inline > :not(.field-label) {
    grid-column: 2;
  }
}

.fieldgroup {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldgroup-legend {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-weight: var(--weight-bold);
}

.fieldgroup-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.fieldgroup-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-5);
}

@media (forced-colors: active) {
  .field-error::before {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .field-block :is(.input, .select, .textarea):user-invalid,
  .field-block :is(.input, .select, .textarea)[aria-invalid=true] {
    border-color: Highlight;
  }
}

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

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spacer {
  flex: 1 1 auto;
}

.wrap {
  flex-wrap: wrap;
}

.mono {
  font-family: var(--mono);
  font-size: var(--text-xs);
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent-text);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break {
  word-break: break-word;
}

.scroll-y {
  overflow-y: auto;
}

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

.fill {
  flex: 1 1 auto;
  min-height: 0;
}
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
