{"version":3,"sourceRoot":null,"mappings":"AAGA,kBACE,+JAaE,uHAQA,0FAcF,6EAOA,+BACE,uFAOF,8BACE,sBAIA,oGAaF,+TAwBE,yFAKA,6CASA,yFAKE,+DASF,0GAeA,2IAGE,wGAOF,yCAIE,kRAcE,mCAWJ,oFAMA,gEAKA,iEAKA,kEAKA,6DAKA,qEAcF,gTAgBE,2HAUE,wBAGA,+CAGA,6CAKF,sGAKA,wJAQE,qFAOF,gEAGE,wBAGA,4EAMF,mFAKE,yBAMF,2GAOE,yCAGA,uCAMF,oGAME,yCAGA,uCAMF,uSAiBE,6BAMA,2BAGA,gEAIA,iEAIA,2EAKA,yCAGA,sCAGA,mDAMF,gDAIA,+CAIA,iDAIA,8CAIA,mDAOF,2FAQA,uFAOA,4EAOA,uCACE,uBAIA,yDAKF,+BACE,wBAIA,sDAKF,8BACE,mEAMA,4DAKA,+DAMA,sIAOA,4BAIA,wDAIE,4BAGA,oEAIA,8CAGA,yCAcJ,iGAUE,4LAiBE,4BAIA,gCAMJ,+EAOA,0XAkBE,wCAKA,6HAMA,4IAUF,oFAQA,yEAGE,4GASF,iIAMA,sDAmEA,4XAyBE,mDAGA,mDAGA,mDAGA,mDAGA,mDAGA,mDAGA,mDAGA,qDAGA,uDAGA,uDAGA,uDAGA,uDAGA,uDAGA,uDAGA,yDAGA,yDAGA,gCAIA,yFAKA,6CAOA,keAqBA,2IAGE,yGAcJ,6QAcE,gJASE,yBAKF,yGAKA,mEAMA,kFAME,qBAGA,oEAOF,qFAOE,iCAKF,gIAQA,0DAIE,kCAGA,gFAMA,qDAGA,4CAMF,oIAQF,uCACE,2CAMF,+BACE,2CAIA,yCAIA,yDAKF,8BACE,0CAGA,qFAIA,6CAIA,sEAMA,+DAKA,wFAOA,0IAaF,+PAeE,sEAIE,yLAgBF,4EAIE,6JAaF,iEAUA,6IAME,8HAMF,iIAMF,yDAKE,wDAWF,mEAKE,yCAKA,gCAWF,uIAQA,uGAME,0DAOF,uCACE,2BAKF,+BACE,2BAIA,yDAKF,8BACE,2BAUF,yFAQE,gDAQA,wDAOF,sDAKE,0DAQF,0EAKE,yCAKA,yEAOA,qGAaF,sDAEE,0CAGA,mCAIF,yDAEE,yCAIF,uDAEE,0CAGA,sCAUF,8HAQA,2NAaE,iCAIA,kDAIA,6EAKA,kEAIE,gCAGA,0DAMF,+CAMA,yDAMA,uFAOF,iNAaE,sCAGE,2JAaF,iEAUA,uIAME,kFAGE,+EAKF,0DAMF,qDAGE,0CAGE,yCAQN,mGAOA,uCACE,oCAMF,8BACE,+BAGE,iCAGE,8BAKF,iCAGE,sCAMJ,oCAGE,+CAWJ,oNAeE,2NAaA,oCAGE,mCAKF,iEAUA,uEAME,mEAKA,gGAIE,uDAOJ,mDAGE,yCAMF,4CAIE,6DAKA,8CAKF,0CAIE,uDAKA,6CASF,4CAIE,2DAKA,8CAKF,6CAIE,6DAKA,8CAOJ,uDAKE,0CAWF,+FAME,uBAIA,yDAMA,wFAaF,yGAOA,gHAQA,+FAME,0DAOF,uCACE,uCAMF,8BACE,0DAIE,8CAKA,sDAIE,kCAKF,iCAGE,+BAiBN,2VAqBE,+NAaA,kGAQA,qFAQA,wTAiBA,+OAeA,uBACE,gGAGA,6FAMF,gBACE,yEAIA,sEAOF,yCAIE,2CAGA,wCAMF,0BAKA,+GAOE,6DAIA,oFASF,4CAGE,wDAIA,oDAIA,0CAGA,wCAQJ,yCACE,gDAIA,+CAIA,gDAIA,iDAIA,iDAOA,6CAGA,4CAGA,0CAGA,kDAYF,4NAUE,+GAWA,uEAOA,+BAIF,wFAGA,sFAGA,wFAGA,yFAUA,2LAUE,0SAgBA,0BAIA,gHASE,gDAGA,mCAGA,sCAGA,4CAGA,yCAKF,iCAIA,oCAMF,oEAME,oDAKF,8JAUE,qCAKF,uIASA,6JAUA,uCACE,QACE,wCAGA,sCAOJ,+BACE,sCAEE,wCAIF,QACE,yCAGA,uCAOJ,8BACE,+BAEE,iCAIF,QACE,mFAIA,sEAIA,4CAGA,sEAIA,kEAKA,gBACE,gDAGA,8CAKJ,2CAYF,kLAiBE,mCAIA,sCAQA,gIAQF,kIAQE,oIAYF,0EASA,sIAUA,qBACE,gHAIA,gPAOF,+FAMA,+CAKE,mDAMF,mDAOA,kHAME,8EAMA,mCAIA,wKAYF,wFA2DA,grBA+BE,+DAIA,yFAQA,oHAQA,gIAGE,wGAWF,6EAME,kGAMA,wKAUA,mEAKA,2EAQF,mEAKA,oEAKA,qEAKA,gEAKA,uEAMA,oCA8BF,gOAkBE,gNAmBE,4FAOF,+PAmBE,gEAKA,kDAIA,iDAUF,wNAaE,0CAGA,wCAQF,wEAGA,0EAKA,kCAMA,gDAGA,6CAIA,gGAUA,+BAEE,gDAKA,oDAKA,uCAIF,4BAEE,oDAKA,sDAKA,yCAIF,+BAEE,sCAIA,sBAIF,+BAEE,gDAKA,sDAKA,qCAIF,+BAEE,kDAKA,oDAKA,0CA+BJ,4WAuBE,8RAiBE,kCAKF,yFAOA,0GAME,yEAIE,kCAUJ,gDAGE,6EAMF,+CAGE,mFAMF,iDAIA,8CAGE,yEAMF,kDAGE,oFAiBJ,8CAKA,sWAiBE,6EAGA,uFAIA,iEAKF,uGASA,uQAgBE,kCAKF,sEAKE,kGAOF,mFAOA,oLAME,oGAOF,kFAGA,sEAKE,sBAMF,kLAUE,2FAME,uCAQJ,0EAOE,sBAIF,sOAUA,uQAcE,+CAMF,4GAOA,6FAMA,6KAWE,sEAIA,iEAIA,8BAMF,8BACE,wCAGA,6EA8BF,6NAYE,+LAWE,0CAGA,+EAIA,6EAQF,yKAUA,sOAWE,iGAgBF,mDAGE,iDAIA,0CAIF,qDAGE,+CAIA,wCAIF,wCAEE,iDAIA,0CAIF,yCAEE,2CAIA,yCAIF,kDAGE,+CAIA,uCAaJ,mVAoBE,yFAQA,0GAUA,gEAKA,iEAKA,kEAKA,6DAKA,oEAYA,gIAGE,wGAOF,uFAKE,oBAYJ,qFAMA,oJAIE,4CAgDF,4BAQE,gBACE,oEAKA,gFAMF,gBACE,qEAKA,oFAMF,gBACE,oCAIF,gBACE,iEAKA,6EAMF,gBACE,wEAKA,oFAQJ,0EASA,iHASA,gEAIA,yEAWA,sSAmBE,gCAGA,kEAMF,uDACE,+BAGA,kCAUF,sEAGE,+PAeA,mGAMA,wbAcF,wEAOE,yCAKF,4QAcA,gNAYE,yGAKA,kEAUF,uTAiBE,gGAMA,kCAIA,sCAKF,+KAYE,8CAMF,sFAGE,wSAQA,oDAKF,gdA2BE,0DAMF,gBACE,kFAMF,sHAQA,kEAKA,iJASE,8CAKF,8FAOA,4OAeE,0FAUA,+cAeA,qDAQA,wBAKF,uGAOA,2GAOA,8EAQA,uCACE,kDAQF,8BACE,0CAGA,eACE,gGAoBJ,0XAsBE,gGAMA,2FAOA,0IAaE,6CAIA,0FAKA,+BAKF,gHAOA,iEAEE,+EAMF,gPAiBE,2KAYA,sBAIA,gEAIA,kEAOF,2DACE,kCAIA,0CAKF,gEAKA,iEAMA,8QAaA,6BACE,uBAGA,4CAMF,iFAMA,oEAKA,6EAIE,kDAMF,wEAIE,mDAQJ,+IAiBE,gnBAmCE,qFAKA,uKAWA,+gBAWA,gEAKA,iEAKA,gGAMA,yCAGE,+DAWJ,4HAOA,mCAKA,oIAMA,uKAOA,6CAIA,6EAIE,yEAOF,2EAIE,0EAaF,8UAeF,6CAOA,uCACE,wEAMA,0CAKF,+BACE,2CAGA,sDAGA,8CAKF,8BACE,wCAGA,qDAGA,+FAIA,0CAGA,yFAYF,oDAOA,qDAME,6EAKE,yEASF,gBACE,gDAOJ,6DAKE,0BAMF,gNAWE,qDAMA,6CAKA,kCAIA,6BAMF,0EAQA,0FAQE,+HASA,6CAMF,0DAOA,+BACE,kCAKF,8BACE,0CAIA,uCA9tHJ,uCACE,kBACE,8LAeJ,+BACE,kBACE,gEAKA,2EAMJ,8BACE,kBACE,yDAIE,qDAMF,+DAIA,uFA2kDJ,uCACE,kBACE,6LAiBJ,+BACE,kBACE,+CAIA,kEAMJ,8BACE,kBACE,yDAIE,uDAKF,wEAkJJ,uCACE,kBACE,ilBAo4BJ,8BACE,kBACE,iJAKA","sources":["dist/sections/forms-inputs.css"],"sourcesContent":["/* ── components/label/label.css ── */\n/* -- Label component -------------------------------------------- */\n\n@layer components {\n  .label {\n    font-size: 0.875rem;\n    font-weight: 500;\n    font-family: var(--font-sans);\n    line-height: 1;\n    color: var(--foreground);\n    display: block;\n    margin-bottom: 0.375rem;\n    cursor: default;\n\n    /* Required - the adjacent control carries `required`: render the star.\n       Pure CSS (no span to remember, nothing to desync); decorative only —\n       the native attribute already conveys the requirement to AT. */\n    &:has(+ input[required])::after,\n    &:has(+ textarea[required])::after {\n      content: \" \\00a0*\";\n      color: var(--destructive);\n      font-weight: 600;\n    }\n\n    /* Disabled - explicit attribute */\n    &[data-disabled] {\n      opacity: 0.7;\n      cursor: not-allowed;\n    }\n\n    /* Disabled - auto-detect via adjacent disabled control */\n    &:has(+ :disabled),\n    &:has(+ [data-disabled]) {\n      opacity: 0.7;\n      cursor: not-allowed;\n    }\n  }\n\n  /* -- Hint text (optional, required indicators) ----------- */\n  .label-hint {\n    font-weight: 400;\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-contrast: more) {\n    .label[data-disabled],\n    .label:has(+ :disabled),\n    .label:has(+ [data-disabled]) {\n      opacity: 0.85;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .label {\n      color: LinkText;\n    }\n\n    .label[data-disabled],\n    .label:has(+ :disabled),\n    .label:has(+ [data-disabled]) {\n      opacity: 1;\n      color: GrayText;\n    }\n  }\n}\n\n/* ── components/input/input.css ── */\n/* -- Input component ------------------------------------------- */\n\n@layer components {\n  .input {\n    /* border-box is load-bearing for the shared field ladder: the UA gives\n       <input> content-box, so `height` would otherwise exclude the 2px frame\n       and render 2px taller than the border-box fields (select, button-based\n       triggers). With it, every declared height IS the rendered box.\n       The unsized default IS the ladder's md step (2.25rem = 36px) - same\n       height, padding and font as [data-size=\"md\"] below, so an unlabeled\n       field and an explicit md field are the same control. */\n    box-sizing: border-box;\n    height: 2.25rem;\n    width: 100%;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    padding: 0 0.75rem;\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n    box-shadow: var(--shadow-xs);\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    &:focus {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    &::placeholder {\n      color: var(--muted-foreground);\n    }\n\n    /* -- Readonly state -------------------------------------- */\n    /* :not(:disabled) is load-bearing: a disabled input ALSO matches\n       :read-only, and this rule's specificity (class + pseudo + :not attr)\n       outranks the plain :disabled below - without the exclusion, disabled\n       controls would render with the readonly look (0.7/default). */\n    &:read-only:not([type=\"file\"], :disabled) {\n      background: var(--muted);\n      cursor: default;\n      opacity: 0.7;\n\n      &:focus {\n        border-color: var(--input);\n        box-shadow: var(--shadow-xs);\n      }\n    }\n\n    /* Disabled = legible but inert: a muted surface and muted text inside\n       the full-strength border - never an opacity fade that lets the box\n       dissolve into the page. */\n    &:disabled {\n      background-color: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n    }\n\n    /* -- Invalid state --------------------------------------- */\n    /* WHEN a field turns red: aria-invalid=\"true\" always (the page decided).\n       The browser's own verdict (:user-invalid, i.e. after the user left a\n       changed field) only counts inside a <form> - a standalone text box has\n       nothing to submit, so a half-typed value is never judged - and inside\n       form[data-validate=\"submit\"] only once the page has stamped\n       data-submitted on the form (a submit attempt): check when the person\n       is finished, not the instant they leave the box. */\n    &:is([aria-invalid=\"true\"], :user-invalid:is(form *):not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: var(--destructive);\n\n      &:focus {\n        border-color: var(--destructive);\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n\n    /* -- File input ------------------------------------------ */\n    &[type=\"file\"] {\n      padding: 0;\n      font-size: 0.875rem;\n\n      &::file-selector-button {\n        height: 100%;\n        border: none;\n        border-right: 1px solid var(--input);\n        background: var(--muted);\n        color: var(--foreground);\n        font-size: 0.875rem;\n        font-weight: 500;\n        font-family: var(--font-sans);\n        padding: 0 0.75rem;\n        margin-right: 0.75rem;\n        cursor: pointer;\n        transition: background 150ms;\n\n        &:hover {\n          background: var(--accent);\n        }\n      }\n    }\n\n    /* -- Native in-field buttons ------------------------------\n       The clear \"×\" of type=\"search\" and the calendar/clock icon of the\n       date/time types are clickable controls INSIDE the text field - without\n       this they inherit the field's text cursor and look like more text to\n       type into (the file picker's button above already points). */\n    &::-webkit-search-cancel-button,\n    &::-webkit-calendar-picker-indicator {\n      cursor: pointer;\n    }\n\n    /* -- Sizes ----------------------------------------------- */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      padding: 0 0.5rem;\n      font-size: 0.75rem;\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      padding: 0 0.625rem;\n      font-size: 0.8125rem;\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      padding: 0 0.75rem;\n      font-size: 0.875rem;\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      padding: 0 1rem;\n      font-size: 1rem;\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      padding: 0 1.25rem;\n      font-size: 1.125rem;\n    }\n  }\n\n  /* -- Input group: icons, text and buttons inside the field ---\n     The GROUP draws the field frame (border, radius, shadow, focus ring,\n     invalid / disabled / readonly surfaces); the .input inside goes\n     frameless and fills the rest. DOM order is the placement: an addon\n     before the .input sits at the start, one after it at the end - so a\n     trailing copy / show-password / clear button is just markup after the\n     input, and any addon width works without hand-tuned padding. */\n  .input-group {\n    box-sizing: border-box;\n    display: flex;\n    align-items: center;\n    width: 100%;\n    height: 2.25rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    box-shadow: var(--shadow-xs);\n    color: var(--muted-foreground);\n    font-size: 0.875rem;\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    & > .input {\n      flex: 1;\n      min-width: 0;\n      height: 100%;\n      border: none;\n      border-radius: inherit;\n      background: transparent;\n      box-shadow: none;\n      font-size: inherit;\n\n      &:focus {\n        box-shadow: none;\n      }\n      &:not(:first-child) {\n        padding-inline-start: 0.5rem;\n      }\n      &:not(:last-child) {\n        padding-inline-end: 0.5rem;\n      }\n    }\n\n    &:has(> .input:focus) {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    &:has(\n      > .input:is(\n        [aria-invalid=\"true\"],\n        :user-invalid:is(form *):not(form[data-validate=\"submit\"]:not([data-submitted]) *)\n      )\n    ) {\n      border-color: var(--destructive);\n\n      &:has(> .input:focus) {\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n\n    /* readonly: the group carries the muted surface (the input's own\n       readonly background would stop short of the addons) */\n    &:has(> .input:read-only:not(:disabled)) {\n      background: var(--muted);\n\n      & > .input {\n        background: transparent;\n      }\n      &:has(> .input:focus) {\n        border-color: var(--input);\n        box-shadow: var(--shadow-xs);\n      }\n    }\n\n    &:has(> .input:disabled) {\n      background: var(--muted);\n      box-shadow: none;\n      cursor: not-allowed;\n\n      & > .input {\n        background: transparent;\n      }\n    }\n\n    /* decorative icon (inline <svg> or lucide <i>) */\n    & > .input-group-icon {\n      flex-shrink: 0;\n      width: 1rem;\n      height: 1rem;\n      color: var(--muted-foreground);\n      pointer-events: none;\n\n      &:first-child {\n        margin-inline-start: 0.75rem;\n      }\n      &:last-child {\n        margin-inline-end: 0.75rem;\n      }\n    }\n\n    /* static text: a unit, a protocol, a domain */\n    & > .input-group-text {\n      flex-shrink: 0;\n      white-space: nowrap;\n      color: var(--muted-foreground);\n      user-select: none;\n\n      &:first-child {\n        margin-inline-start: 0.75rem;\n      }\n      &:last-child {\n        margin-inline-end: 0.75rem;\n      }\n    }\n\n    /* an in-field action: copy, show/hide, clear, open a picker */\n    & > .input-group-button {\n      flex-shrink: 0;\n      display: inline-grid;\n      place-items: center;\n      box-sizing: border-box;\n      height: calc(100% - 0.5rem);\n      aspect-ratio: 1;\n      padding: 0;\n      border: none;\n      border-radius: var(--radius-sm);\n      background: transparent;\n      color: var(--muted-foreground);\n      cursor: pointer;\n      transition:\n        background-color 150ms,\n        color 150ms;\n\n      & svg {\n        width: 1rem;\n        height: 1rem;\n      }\n      /* icon swaps (copy -> check, eye -> eye-off): the UA's [hidden] rule\n         only covers HTML elements, so a hidden <svg> needs its own */\n      & svg[hidden] {\n        display: none;\n      }\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 1px;\n      }\n      &:disabled {\n        cursor: not-allowed;\n        background: transparent;\n        color: var(--muted-foreground);\n      }\n      &:first-child {\n        margin-inline-start: 0.25rem;\n      }\n      &:last-child {\n        margin-inline-end: 0.25rem;\n      }\n      & + .input-group-button {\n        margin-inline-start: 0.125rem;\n      }\n    }\n\n    /* -- Sizes: the same ladder as .input, set on the group ------ */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      font-size: 0.75rem;\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      font-size: 0.8125rem;\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      font-size: 0.875rem;\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      font-size: 1rem;\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      font-size: 1.125rem;\n    }\n  }\n\n  /* -- Auto-growing textarea --------------------------------- */\n  textarea.input {\n    field-sizing: content;\n    min-height: 5rem;\n    padding-top: 0.5rem;\n    padding-bottom: 0.5rem;\n  }\n\n  /* -- Field description ------------------------------------- */\n  .field-description {\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n    margin: 0.375rem 0 0;\n  }\n\n  /* -- Field error ------------------------------------------- */\n  .field-error {\n    font-size: 0.8125rem;\n    color: var(--destructive);\n    margin: 0.375rem 0 0;\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .input {\n      transition: none;\n    }\n\n    .input[type=\"file\"]::file-selector-button {\n      transition: none;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .input {\n      border-width: 2px;\n    }\n\n    .input:disabled {\n      border-color: var(--muted-foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .input {\n      border-color: ButtonBorder;\n      color: ButtonText;\n      background: Field;\n    }\n\n    .input:focus {\n      outline: 2px solid Highlight;\n      outline-offset: 1px;\n    }\n\n    .input:disabled {\n      opacity: 1;\n      color: GrayText;\n      border-color: GrayText;\n    }\n\n    .input:is(\n      [aria-invalid=\"true\"],\n      :user-invalid:is(form *):not(form[data-validate=\"submit\"]:not([data-submitted]) *)\n    ) {\n      border-color: LinkText;\n    }\n\n    .field-error {\n      color: LinkText;\n    }\n\n    .input-group {\n      border-color: ButtonBorder;\n      background: Field;\n\n      & > .input:focus {\n        outline: none;\n      }\n      &:has(> .input:focus) {\n        outline: 2px solid Highlight;\n        outline-offset: 1px;\n      }\n      &:has(> .input:disabled) {\n        border-color: GrayText;\n      }\n      & > .input-group-button {\n        color: ButtonText;\n      }\n    }\n  }\n}\n\n/* ── components/otp-input/otp-input.css ── */\n/* -- OTP Input -------------------------------------------------- */\n/* One real <input> under a row of slots. The input keeps every native */\n/* behaviour (paste, one-time-code autofill, selection, form value);   */\n/* the slots are a mirror of its value.                                */\n\n@layer components {\n  .otp-input {\n    --otp-input-slot-size: 2.75rem;\n\n    position: relative;\n    display: inline-flex;\n    width: max-content;\n\n    /* The field covers the slots so clicks, drags and taps land on the real\n       control. Its own text is invisible — the slots do the drawing — but it\n       stays a normal input to the browser and to assistive technology. */\n    & > input {\n      position: absolute;\n      inset: 0;\n      width: 100%;\n      height: 100%;\n      margin: 0;\n      padding: 0;\n      border: 0;\n      background: transparent;\n      color: transparent;\n      caret-color: transparent;\n      font-size: 1rem; /* >=16px keeps iOS from zooming on focus */\n      text-align: center;\n      outline: none;\n      cursor: text;\n\n      /* the selection highlight would show through the transparent text */\n      &::selection {\n        background: transparent;\n      }\n\n      &:disabled {\n        cursor: not-allowed;\n      }\n    }\n  }\n\n  .otp-input-slots {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    pointer-events: none; /* the field beneath owns every pointer event */\n  }\n\n  .otp-input-slot {\n    /* --otp-input-slot-size is the outer size, border included */\n    box-sizing: border-box;\n    display: grid;\n    place-items: center;\n    width: var(--otp-input-slot-size);\n    height: var(--otp-input-slot-size);\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    color: var(--foreground);\n    font-family: var(--font-mono);\n    font-size: 1.125rem;\n    font-variant-numeric: tabular-nums;\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    &[data-filled] {\n      border-color: var(--ring);\n    }\n\n    /* the slot the caret sits in — the field's own caret is hidden */\n    &[data-active],\n    &[data-caret] {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 25%, transparent);\n    }\n\n    &[data-caret]::after {\n      content: \"\";\n      width: 1px;\n      height: 1.125rem;\n      background: var(--foreground);\n      animation: otp-input-caret 1s steps(2, start) infinite;\n    }\n  }\n\n  /* Gap between groups, e.g. 3-3 for a six digit code. */\n  .otp-input-separator {\n    width: 0.75rem;\n    height: 1px;\n    background: var(--border);\n    flex-shrink: 0;\n  }\n\n  /* -- Invalid ------------------------------------------------ */\n  .otp-input[data-invalid] .otp-input-slot {\n    border-color: var(--destructive);\n\n    &[data-active],\n    &[data-caret] {\n      box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 25%, transparent);\n    }\n  }\n\n  /* -- Disabled ----------------------------------------------- */\n  /* Deliberately not a blanket opacity fade: the digits must stay readable,\n     so only the surface dims while the border and text keep their contrast. */\n  .otp-input:has(> input:disabled) .otp-input-slot {\n    background: var(--muted);\n    color: var(--muted-foreground);\n    border-color: var(--border);\n  }\n\n  @keyframes otp-input-caret {\n    0% {\n      opacity: 1;\n    }\n    100% {\n      opacity: 0;\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .otp-input,\n    .otp-input *,\n    .otp-input::before,\n    .otp-input::after,\n    .otp-input *::before,\n    .otp-input *::after,\n    .otp-input-slot,\n    .otp-input-slot::before,\n    .otp-input-slot::after {\n      transition: none;\n      animation: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .otp-input-slot {\n      border-width: 2px;\n      border-color: var(--foreground);\n    }\n\n    .otp-input[data-invalid] .otp-input-slot {\n      border-color: var(--destructive);\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .otp-input-slot {\n      border-color: ButtonText;\n      color: ButtonText;\n\n      &[data-active],\n      &[data-caret] {\n        border-color: Highlight;\n      }\n    }\n\n    .otp-input[data-invalid] .otp-input-slot {\n      border-color: LinkText;\n    }\n\n    .otp-input:has(> input:disabled) .otp-input-slot {\n      border-color: GrayText;\n      color: GrayText;\n    }\n  }\n}\n\n/* ── components/textarea/textarea.css ── */\n/* -- Textarea component ----------------------------------------- */\n\n@layer components {\n  .textarea {\n    /* border-box: UA gives <textarea> content-box, which would render the\n       min-height 2px above the shared field frame (see .input) */\n    box-sizing: border-box;\n    width: 100%;\n    min-height: 5rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    padding: 0.5rem 0.75rem;\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n    box-shadow: var(--shadow-xs);\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n    resize: vertical;\n    field-sizing: content;\n    line-height: 1.5;\n\n    /* -- Rows: data-rows is the height it starts at, data-max-rows where it\n       stops growing and scrolls instead (field-sizing grows it in between).\n       1lh = one line of this textarea, + the padding and border. -------- */\n    &[data-rows=\"1\"] {\n      min-height: calc(1lh + 1rem + 2px);\n    }\n    &[data-rows=\"2\"] {\n      min-height: calc(2lh + 1rem + 2px);\n    }\n    &[data-rows=\"3\"] {\n      min-height: calc(3lh + 1rem + 2px);\n    }\n    &[data-rows=\"4\"] {\n      min-height: calc(4lh + 1rem + 2px);\n    }\n    &[data-rows=\"5\"] {\n      min-height: calc(5lh + 1rem + 2px);\n    }\n    &[data-rows=\"6\"] {\n      min-height: calc(6lh + 1rem + 2px);\n    }\n    &[data-rows=\"8\"] {\n      min-height: calc(8lh + 1rem + 2px);\n    }\n    &[data-rows=\"10\"] {\n      min-height: calc(10lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"2\"] {\n      max-height: calc(2lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"3\"] {\n      max-height: calc(3lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"4\"] {\n      max-height: calc(4lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"5\"] {\n      max-height: calc(5lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"6\"] {\n      max-height: calc(6lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"8\"] {\n      max-height: calc(8lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"10\"] {\n      max-height: calc(10lh + 1rem + 2px);\n    }\n    &[data-max-rows=\"12\"] {\n      max-height: calc(12lh + 1rem + 2px);\n    }\n    &[data-resize=\"none\"] {\n      resize: none;\n    }\n\n    &:focus {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    &::placeholder {\n      color: var(--muted-foreground);\n    }\n\n    /* Disabled = legible but inert: a muted surface and muted text inside\n       the full-strength border - never an opacity fade that lets the box\n       dissolve into the page. */\n    &:disabled {\n      background-color: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n      /* resize stays off (Chrome would still let a disabled field be dragged\n         taller), but the corner keeps a grip so it still reads as a text\n         field - two painted diagonal strokes where the native grip sits */\n      resize: none;\n      background-image:\n        linear-gradient(135deg, transparent 0 46%, var(--muted-foreground) 46% 54%, transparent 54%),\n        linear-gradient(135deg, transparent 0 46%, var(--muted-foreground) 46% 54%, transparent 54%);\n      background-repeat: no-repeat;\n      background-size:\n        0.625rem 0.625rem,\n        0.3125rem 0.3125rem;\n      background-position:\n        right 0.1875rem bottom 0.1875rem,\n        right 0.1875rem bottom 0.1875rem;\n    }\n\n    &:is([aria-invalid=\"true\"], :user-invalid:is(form *):not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: var(--destructive);\n\n      &:focus {\n        border-color: var(--destructive);\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n  }\n\n  /* -- Textarea group: a composer --------------------------------\n     The GROUP draws the frame (border, radius, focus ring, drop target);\n     the .textarea inside goes frameless and grows. Children in order: an\n     optional .file-drop-list (attachment chips, the file-input's own\n     items), the textarea, a .textarea-group-actions row (attach, send,\n     a counter). data-layout=\"inline\" puts the actions beside the text -\n     a one-line chat composer that grows upward. */\n  .textarea-group {\n    box-sizing: border-box;\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-lg);\n    background: var(--background);\n    box-shadow: var(--shadow-xs);\n    transition:\n      border-color 150ms,\n      box-shadow 150ms,\n      background-color 150ms;\n\n    & > .textarea {\n      min-height: calc(2lh + 1rem);\n      border: 0;\n      border-radius: inherit;\n      background: transparent;\n      box-shadow: none;\n      resize: none;\n      padding: 0.75rem 0.875rem 0.25rem;\n\n      &:focus {\n        box-shadow: none;\n      }\n    }\n\n    &:has(> .textarea:focus) {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    &:has(> .textarea:disabled) {\n      background: var(--muted);\n      box-shadow: none;\n    }\n\n    /* attachment chips above the text - a wrapping row of file items */\n    & > .file-drop-list {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 0.5rem;\n      padding: 0.625rem 0.625rem 0;\n\n      &:empty {\n        display: none;\n      }\n      & > .file-drop-item {\n        width: 13rem;\n        max-width: 100%;\n        box-sizing: border-box;\n      }\n    }\n\n    & > .textarea-group-actions {\n      display: flex;\n      align-items: center;\n      gap: 0.25rem;\n      padding: 0.375rem;\n\n      /* everything after the spacer sits at the end - usually send */\n      & > .textarea-group-spacer {\n        flex: 1;\n      }\n    }\n\n    & .textarea-group-count {\n      padding-inline: 0.375rem;\n      color: var(--muted-foreground);\n      font-size: 0.75rem;\n      font-variant-numeric: tabular-nums;\n    }\n\n    /* inline: [actions] text [actions] on one row, aligned to the last line */\n    &[data-layout=\"inline\"] {\n      flex-flow: row wrap;\n      align-items: flex-end;\n\n      & > .file-drop-list {\n        flex-basis: 100%;\n      }\n      & > .textarea {\n        flex: 1;\n        min-width: 0;\n        min-height: calc(1lh + 1rem);\n        padding: 0.5rem 0.25rem;\n      }\n      & > .textarea:first-child {\n        padding-inline-start: 0.875rem;\n      }\n      & > .textarea-group-actions {\n        padding: 0.3125rem;\n      }\n    }\n\n    /* a file dragged over the composer: the page sets data-dragover */\n    &[data-dragover] {\n      border-style: dashed;\n      border-color: var(--ring);\n      background: color-mix(in oklch, var(--accent) 45%, var(--background));\n    }\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .textarea,\n    .textarea-group {\n      transition: none;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .textarea,\n    .textarea-group {\n      border-width: 2px;\n    }\n    .textarea-group > .textarea {\n      border-width: 0;\n    }\n\n    .textarea:disabled {\n      border-color: var(--muted-foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .textarea-group {\n      border-color: ButtonBorder;\n    }\n    .textarea-group:has(> .textarea:focus) {\n      outline: 2px solid Highlight;\n      outline-offset: 1px;\n    }\n    .textarea-group > .textarea:focus {\n      outline: none;\n    }\n\n    .textarea {\n      border-color: ButtonBorder;\n      color: ButtonText;\n      background: Field;\n    }\n\n    .textarea:focus {\n      outline: 2px solid Highlight;\n      outline-offset: 1px;\n    }\n\n    .textarea:disabled {\n      opacity: 1;\n      background-image: none;\n      color: GrayText;\n      border-color: GrayText;\n    }\n\n    .textarea:is(\n      [aria-invalid=\"true\"],\n      :user-invalid:is(form *):not(form[data-validate=\"submit\"]:not([data-submitted]) *)\n    ) {\n      border-color: LinkText;\n    }\n  }\n}\n\n/* ── components/checkbox/checkbox.css ── */\n/* -- Checkbox component ----------------------------------------- */\n\n@layer components {\n  .checkbox {\n    appearance: none;\n    margin: 0; /* kill the UA's ~4px input margin - breaks flex/grid rhythm */\n    width: 1.125rem;\n    height: 1.125rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-sm);\n    background: var(--background);\n    cursor: pointer;\n    flex-shrink: 0;\n    position: relative;\n    transition:\n      background-color 150ms,\n      border-color 150ms;\n\n    &:checked {\n      background-color: var(--primary);\n      border-color: var(--primary);\n\n      &::after {\n        content: \"\";\n        position: absolute;\n        left: 50%;\n        top: 45%;\n        width: 6px;\n        height: 10px;\n        border: solid var(--primary-foreground);\n        border-width: 0 2px 2px 0;\n        transform: translate(-50%, -50%) rotate(45deg);\n      }\n    }\n\n    /* Per spec, an indeterminate checkbox ALSO matches :checked - both\n       ::after rules land on the element, so the dash must explicitly cancel\n       the checkmark's border (else the rotated border renders on top of it). */\n    &:indeterminate {\n      background-color: var(--primary);\n      border-color: var(--primary);\n\n      &::after {\n        content: \"\";\n        position: absolute;\n        left: 50%;\n        top: 50%;\n        width: 10px;\n        height: 2px;\n        border: none;\n        background: var(--primary-foreground);\n        transform: translate(-50%, -50%);\n      }\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n\n    /* Disabled = legible but inert: never an opacity fade (0.5 on a light\n       --border edge left a ghost you had to look for). The shape keeps its\n       full-strength edge, the surface turns muted, a chosen state keeps a\n       softened primary fill, and the label goes muted with the no-entry\n       cursor - \"a choice that exists but is unavailable right now\". */\n    &:disabled {\n      background-color: var(--muted);\n      /* a mid-grey edge: --border on the muted fill is too faint to read as a box */\n      border-color: color-mix(in oklch, var(--muted-foreground) 50%, var(--background));\n      cursor: not-allowed;\n\n      &:is(:checked, :indeterminate) {\n        background-color: color-mix(in oklch, var(--primary) 45%, var(--background));\n        border-color: transparent;\n      }\n    }\n\n    &:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: var(--destructive);\n    }\n  }\n\n  /* -- Checkbox item layout --------------------------------- */\n  .checkbox-item {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n\n    & > label {\n      font-size: 0.875rem;\n      cursor: pointer;\n      /* leading-none (shadcn parity): a 1.6 line-box centers the LINE, not\n         the glyphs - baseline then floats with the font's ascent, so text\n         rides visibly off the box midline (worst with metric-heavy\n         fallbacks). line-height:1 shrinks the box to the glyphs themselves. */\n      line-height: 1;\n    }\n  }\n\n  .checkbox-item-block {\n    display: flex;\n    align-items: flex-start;\n    gap: 0.5rem;\n\n    & > label {\n      font-size: 0.875rem;\n      cursor: pointer;\n    }\n\n    & > .checkbox {\n      margin-top: 0.125rem;\n    }\n  }\n\n  /* Gap hit area: inside an item layout the control's click target spans\n     the gap to its label (a transparent ::before, part of the input's own\n     hit box), so clicking the whitespace between control and text toggles\n     too - the label's `for` covers the text itself. Inline-end only: the\n     label always sits after the control (block layouts place it in the\n     second grid column). */\n  :is(.checkbox-item, .checkbox-item-block) > .checkbox::before {\n    content: \"\";\n    position: absolute;\n    inset-block: -0.25rem;\n    inset-inline: -0.25rem calc(-1 * 0.5rem);\n  }\n\n  /* Disabled auto-styling */\n  .checkbox-item:has(.checkbox:disabled),\n  .checkbox-item-block:has(.checkbox:disabled) {\n    cursor: not-allowed;\n\n    /* the text says \"unavailable\" too - and never offers the hand pointer\n       for a click that cannot land */\n    & label {\n      color: var(--muted-foreground);\n      cursor: not-allowed;\n    }\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .checkbox {\n      transition: none;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .checkbox {\n      border-width: 2px;\n    }\n\n    .checkbox:disabled {\n      border-color: var(--muted-foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .checkbox {\n      appearance: auto;\n    }\n  }\n}\n\n/* ── components/radio/radio.css ── */\n/* -- Radio Group component -------------------------------------- */\n\n@layer components {\n  .radio-group {\n    border: none;\n    padding: 0;\n    margin: 0;\n    display: flex;\n    flex-direction: column;\n    gap: 0.5rem;\n\n    & > legend {\n      /* top + bottom breathing room: stacked groups (e.g. a density ladder\n         demo) would otherwise jam each heading against the options above it */\n      margin-top: 0.5rem;\n      margin-bottom: 0.375rem;\n    }\n\n    /* Horizontal layout */\n    &[data-orientation=\"horizontal\"] {\n      flex-direction: row;\n      flex-wrap: wrap;\n      gap: 1rem;\n    }\n  }\n\n  .radio-item {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n\n    & > label {\n      font-size: 0.875rem;\n      font-weight: 400;\n      cursor: pointer;\n    }\n  }\n\n  /* -- With-description layout -------------------------------- */\n  .radio-item-block {\n    display: grid;\n    grid-template-columns: auto 1fr;\n    gap: 0 0.5rem;\n\n    & > .radio {\n      grid-row: 1 / 3;\n      margin-top: 0.125rem;\n    }\n\n    & > label {\n      font-size: 0.875rem;\n      font-weight: 500;\n      cursor: pointer;\n      line-height: 1.4;\n    }\n\n    & > .radio-description {\n      grid-column: 2;\n      font-size: 0.8125rem;\n      color: var(--muted-foreground);\n      line-height: 1.5;\n    }\n  }\n\n  /* -- Density --------------------------------------------------\n     data-density on the .radio-group root is a whitespace policy: the gap\n     between options (and card padding) scale at the shared 0.75 / 1 / 1.25\n     ratio; comfortable matches the unsized default. Radio size itself stays\n     fixed - this is spacing, not zoom. */\n  .radio-group:where([data-density=\"compact\"]) {\n    gap: 0.25rem;\n    &[data-orientation=\"horizontal\"] {\n      gap: 0.75rem;\n    }\n    & .radio-card {\n      padding: 0.75rem 1rem;\n    }\n  }\n  .radio-group:where([data-density=\"comfortable\"]) {\n    gap: 0.5rem;\n    &[data-orientation=\"horizontal\"] {\n      gap: 1rem;\n    }\n  }\n  .radio-group:where([data-density=\"spacious\"]) {\n    gap: 0.75rem;\n    &[data-orientation=\"horizontal\"] {\n      gap: 1.5rem;\n    }\n    & .radio-card {\n      padding: 1.25rem 1.5rem;\n    }\n  }\n\n  /* Gap hit area: inside an item layout the radio's click target spans the\n     gap to its label (a transparent ::before, part of the input's own hit\n     box), so clicking the whitespace between circle and text selects too -\n     the label's `for` covers the text itself. Inline-end only: the label\n     always sits after the radio (the block layout's second grid column). */\n  :is(.radio-item, .radio-item-block) > .radio::before {\n    content: \"\";\n    position: absolute;\n    inset-block: -0.25rem;\n    inset-inline: -0.25rem -0.5rem;\n  }\n\n  /* -- Card variant ------------------------------------------- */\n  .radio-card {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    gap: 0.25rem;\n    padding: 1rem 1.25rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    cursor: pointer;\n    transition:\n      border-color 150ms,\n      background 150ms;\n\n    &:hover {\n      background: var(--accent);\n    }\n\n    &:has(.radio:checked) {\n      border-color: var(--primary);\n    }\n\n    &:has(.radio:focus-visible) {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n\n    &:has(.radio:disabled) {\n      cursor: not-allowed;\n      background: var(--muted);\n\n      &:hover {\n        background: var(--muted);\n      }\n      & > label {\n        color: var(--muted-foreground);\n        cursor: not-allowed;\n      }\n    }\n\n    & > .radio {\n      position: absolute;\n      top: 1rem;\n      right: 1rem;\n    }\n\n    & > label {\n      font-size: 0.875rem;\n      font-weight: 500;\n      cursor: pointer;\n    }\n\n    & > .radio-description {\n      font-size: 0.8125rem;\n      color: var(--muted-foreground);\n      line-height: 1.5;\n    }\n  }\n\n  .radio {\n    appearance: none;\n    margin: 0; /* kill the UA's ~4px input margin - breaks flex/grid rhythm */\n    width: 1rem;\n    height: 1rem;\n    border: 1px solid var(--border);\n    border-radius: 50%;\n    background: var(--background);\n    cursor: pointer;\n    flex-shrink: 0;\n    position: relative;\n    transition: border-color 150ms;\n\n    &:checked {\n      border-color: var(--primary);\n\n      &::after {\n        content: \"\";\n        position: absolute;\n        top: 50%;\n        left: 50%;\n        width: 0.5rem;\n        height: 0.5rem;\n        border-radius: 50%;\n        background: var(--primary);\n        transform: translate(-50%, -50%);\n      }\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n\n    /* Disabled = legible but inert: never an opacity fade (0.5 on a light\n       --border edge left a ghost you had to look for). The shape keeps its\n       full-strength edge, the surface turns muted, a chosen state keeps a\n       softened primary fill, and the label goes muted with the no-entry\n       cursor - \"a choice that exists but is unavailable right now\". */\n    &:disabled {\n      background: var(--muted);\n      /* a mid-grey ring: --border on the muted fill is too faint to read as a shape */\n      border-color: color-mix(in oklch, var(--muted-foreground) 50%, var(--background));\n      cursor: not-allowed;\n\n      &:checked {\n        border-color: color-mix(in oklch, var(--primary) 45%, var(--background));\n\n        &::after {\n          background: color-mix(in oklch, var(--primary) 45%, var(--background));\n        }\n      }\n\n      & + label {\n        color: var(--muted-foreground);\n        cursor: not-allowed;\n      }\n    }\n\n    &[aria-invalid=\"true\"] {\n      border-color: var(--destructive);\n\n      &:checked {\n        border-color: var(--destructive);\n\n        &::after {\n          background: var(--destructive);\n        }\n      }\n    }\n  }\n\n  /* Helper text for group-level descriptions */\n  .radio-group-description {\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n    margin: -0.125rem 0 0.25rem;\n  }\n\n  /* -- Accessibility ------------------------------------------ */\n  @media (prefers-reduced-motion: reduce) {\n    .radio,\n    .radio-card {\n      transition: none;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .radio {\n      border-color: ButtonText;\n\n      &:checked {\n        border-color: Highlight;\n\n        &::after {\n          background: Highlight;\n        }\n      }\n\n      &:disabled {\n        border-color: GrayText;\n\n        &:checked::after {\n          background: GrayText;\n        }\n      }\n    }\n\n    .radio-card {\n      border-color: ButtonText;\n\n      &:has(.radio:checked) {\n        border-color: Highlight;\n      }\n    }\n  }\n}\n\n/* ── components/switch/switch.css ── */\n/* -- Switch component ------------------------------------------- */\n\n@layer components {\n  .switch {\n    appearance: none;\n    margin: 0; /* kill the UA's ~4px input margin - breaks flex/grid rhythm */\n    width: 2.25rem;\n    height: 1.25rem;\n    border-radius: 9999px;\n    background: var(--input);\n    cursor: pointer;\n    position: relative;\n    flex-shrink: 0;\n    transition: background-color 150ms;\n    border: none;\n    outline: none;\n\n    /* Thumb */\n    &::after {\n      content: \"\";\n      position: absolute;\n      top: 2px;\n      left: 2px;\n      width: calc(1.25rem - 4px);\n      height: calc(1.25rem - 4px);\n      border-radius: 50%;\n      background: var(--background);\n      transition: transform 150ms;\n      box-shadow: 0 1px 2px oklch(0 0 0 / 0.15);\n    }\n\n    &:checked {\n      background: var(--primary);\n\n      &::after {\n        transform: translateX(1rem);\n      }\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n\n    /* Disabled = legible but inert: never an opacity fade (0.5 on a light\n       --border edge left a ghost you had to look for). The shape keeps its\n       full-strength edge, the surface turns muted, a chosen state keeps a\n       softened primary fill, and the label goes muted with the no-entry\n       cursor - \"a choice that exists but is unavailable right now\". */\n    &:disabled {\n      cursor: not-allowed;\n      /* the off track keeps its full --input shade; an edge ring holds the\n         outline even where --input sits close to the page */\n      box-shadow: inset 0 0 0 1px var(--border);\n\n      &::after {\n        background: var(--muted);\n        box-shadow: 0 0 0 1px var(--border);\n      }\n\n      &:checked {\n        background: color-mix(in oklch, var(--primary) 45%, var(--background));\n        box-shadow: none;\n\n        &::after {\n          background: var(--background);\n          box-shadow: none;\n        }\n      }\n    }\n\n    &[aria-invalid=\"true\"] {\n      background: var(--destructive);\n\n      &:checked {\n        background: var(--destructive);\n      }\n    }\n\n    /* -- Sizes ----------------------------------------------- */\n    &[data-size=\"xs\"] {\n      width: 1.5rem;\n      height: 0.875rem;\n\n      &::after {\n        width: calc(0.875rem - 4px);\n        height: calc(0.875rem - 4px);\n      }\n\n      &:checked::after {\n        transform: translateX(0.625rem);\n      }\n    }\n\n    &[data-size=\"sm\"] {\n      width: 1.75rem;\n      height: 1rem;\n\n      &::after {\n        width: calc(1rem - 4px);\n        height: calc(1rem - 4px);\n      }\n\n      &:checked::after {\n        transform: translateX(0.75rem);\n      }\n    }\n\n    &[data-size=\"md\"] {\n      /* same as the default - explicit member of the scale */\n    }\n\n    &[data-size=\"lg\"] {\n      width: 2.75rem;\n      height: 1.5rem;\n\n      &::after {\n        width: calc(1.5rem - 4px);\n        height: calc(1.5rem - 4px);\n      }\n\n      &:checked::after {\n        transform: translateX(1.25rem);\n      }\n    }\n\n    &[data-size=\"xl\"] {\n      width: 3.25rem;\n      height: 1.75rem;\n\n      &::after {\n        width: calc(1.75rem - 4px);\n        height: calc(1.75rem - 4px);\n      }\n\n      &:checked::after {\n        transform: translateX(1.5rem);\n      }\n    }\n  }\n\n  /* -- Switch item layout ----------------------------------- */\n  .switch-item {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n\n    & > label {\n      font-size: 0.875rem;\n      cursor: pointer;\n    }\n  }\n\n  /* With-description layout: label + description stack beside the switch.\n     The switch spans both rows, so grid auto-placement (definite-row items\n     first) pins it to column 1 - the track template must therefore lead with\n     the auto (switch) track. `1fr auto` here once placed the text in the far\n     right track (reported: \"description renders on the far right\"). */\n  .switch-item-block {\n    display: grid;\n    grid-template-columns: auto 1fr;\n    gap: 0 0.75rem;\n    align-items: center;\n\n    & > .switch {\n      grid-row: 1 / 3;\n    }\n\n    & > label {\n      font-size: 0.875rem;\n      font-weight: 500;\n      cursor: pointer;\n    }\n\n    & > .switch-description {\n      font-size: 0.8125rem;\n      color: var(--muted-foreground);\n      line-height: 1.5;\n    }\n  }\n\n  /* Gap hit area: inside an item layout the control's click target spans\n     the gap to its label (a transparent ::before, part of the input's own\n     hit box), so clicking the whitespace between control and text toggles\n     too - the label's `for` covers the text itself. Inline-end only: the\n     label always sits after the control (block layouts place it in the\n     second grid column). */\n  :is(.switch-item) > .switch::before {\n    content: \"\";\n    position: absolute;\n    inset-block: -0.25rem;\n    inset-inline: -0.25rem calc(-1 * 0.5rem);\n  }\n\n  :is(.switch-item-block) > .switch::before {\n    content: \"\";\n    position: absolute;\n    inset-block: -0.25rem;\n    inset-inline: -0.25rem calc(-1 * 0.75rem);\n  }\n\n  /* Label disabled styling via :has() */\n  .switch-item:has(.switch:disabled),\n  .switch-item-block:has(.switch:disabled) {\n    cursor: not-allowed;\n\n    /* the words say \"unavailable\" too - no hand pointer over a label whose\n       click cannot flip the switch */\n    & > label {\n      color: var(--muted-foreground);\n      cursor: not-allowed;\n    }\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .switch,\n    .switch::after {\n      transition: none;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .switch {\n      background: ButtonFace;\n      border: 1px solid ButtonText;\n\n      &::after {\n        background: ButtonText;\n        box-shadow: none;\n      }\n\n      &:checked {\n        background: Highlight;\n        border-color: Highlight;\n\n        &::after {\n          background: HighlightText;\n        }\n      }\n\n      &:disabled {\n        border-color: GrayText;\n\n        &::after {\n          background: GrayText;\n        }\n      }\n    }\n  }\n}\n\n/* ── components/slider/slider.css ── */\n/* -- Slider component ------------------------------------------- */\n\n@layer components {\n  /* Everything runs through a few private variables so a .slider-range\n     wrapper (two thumbs) can hand its size and color down to both inputs:\n     --_track / --_thumb (set by data-size, on the slider or on the range),\n     --_c (set by data-tone) and the public --slider-color for any color.\n     --_fill resolves them once, here, on the input. */\n  .slider {\n    --slider-value: 50%;\n    --_fill: var(--_c, var(--slider-color, var(--primary)));\n    --_t: var(--_track, 0.5rem);\n    --_d: var(--_thumb, 1.25rem);\n    --_dir: to right;\n    -webkit-appearance: none;\n    appearance: none;\n    width: 100%;\n    /* the UA gives a range a 2px margin: with width 100% the track would\n       overflow its box and drift off a .slider-marks scale */\n    margin-inline: 0;\n    height: var(--_t);\n    border-radius: 9999px;\n    background: var(--secondary);\n    cursor: pointer;\n    outline: none;\n    border: none;\n    accent-color: var(--_fill);\n\n    /* Track - WebKit (filled via gradient) */\n    &::-webkit-slider-runnable-track {\n      height: var(--_t);\n      border-radius: 9999px;\n      background: linear-gradient(\n        var(--_dir),\n        var(--_fill) 0%,\n        var(--_fill) var(--slider-value),\n        var(--secondary) var(--slider-value),\n        var(--secondary) 100%\n      );\n    }\n\n    /* Track - Firefox */\n    &::-moz-range-track {\n      height: var(--_t);\n      border-radius: 9999px;\n      background: var(--secondary);\n      border: none;\n    }\n\n    /* Filled portion - Firefox */\n    &::-moz-range-progress {\n      height: var(--_t);\n      border-radius: 9999px;\n      background: var(--_fill);\n    }\n\n    /* Thumb - WebKit (re-centered on the track: (track - thumb) / 2).\n       --slider-thumb-image paints a picture (an emoji, see data-thumb) */\n    &::-webkit-slider-thumb {\n      -webkit-appearance: none;\n      width: var(--_d);\n      height: var(--_d);\n      border-radius: 50%;\n      background:\n        var(--slider-thumb-image, none) center / 100% no-repeat,\n        var(--background);\n      border: 2px solid var(--_fill);\n      margin-top: calc((var(--_t) - var(--_d)) / 2);\n      cursor: pointer;\n      transition:\n        box-shadow 150ms,\n        scale 150ms;\n    }\n\n    /* Thumb - Firefox */\n    &::-moz-range-thumb {\n      width: var(--_d);\n      height: var(--_d);\n      border-radius: 50%;\n      background:\n        var(--slider-thumb-image, none) center / 100% no-repeat,\n        var(--background);\n      border: 2px solid var(--_fill);\n      cursor: pointer;\n      transition:\n        box-shadow 150ms,\n        scale 150ms;\n    }\n\n    /* Hover */\n    &:hover:not(:disabled) {\n      &::-webkit-slider-thumb {\n        box-shadow: 0 0 0 4px color-mix(in oklch, var(--_fill) 15%, transparent);\n      }\n      &::-moz-range-thumb {\n        box-shadow: 0 0 0 4px color-mix(in oklch, var(--_fill) 15%, transparent);\n      }\n    }\n\n    /* Focus */\n    &:focus-visible {\n      &::-webkit-slider-thumb {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n      &::-moz-range-thumb {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n    }\n\n    /* Disabled */\n    &:disabled {\n      opacity: 0.5;\n      cursor: not-allowed;\n\n      &::-webkit-slider-thumb {\n        cursor: not-allowed;\n      }\n      &::-moz-range-thumb {\n        cursor: not-allowed;\n      }\n    }\n\n    /* RTL: the range runs right to left, so does the fill */\n    &:dir(rtl) {\n      --_dir: to left;\n    }\n\n    /* Vertical orientation */\n    &[data-orientation=\"vertical\"] {\n      --_dir: to top;\n      writing-mode: vertical-lr;\n      direction: rtl;\n      width: var(--_t);\n      height: 12rem;\n\n      &::-webkit-slider-runnable-track {\n        width: var(--_t);\n        height: auto;\n      }\n      &::-webkit-slider-thumb {\n        margin-top: 0;\n        margin-left: calc((var(--_t) - var(--_d)) / 2);\n      }\n    }\n\n    /* -- Emoji thumb: data-thumb=\"emoji\" (slider.js draws the emoji from\n       data-thumb-emoji into --slider-thumb-image) - no ring, no fill disc,\n       a bit larger than the plain thumb. */\n    &[data-thumb=\"emoji\"] {\n      --_d: var(--_thumb, 2rem);\n\n      &::-webkit-slider-thumb {\n        border: 0;\n        background-color: transparent;\n      }\n      &::-moz-range-thumb {\n        border: 0;\n        background-color: transparent;\n      }\n      &:active::-webkit-slider-thumb {\n        scale: 1.15;\n      }\n      &:active::-moz-range-thumb {\n        scale: 1.15;\n      }\n    }\n  }\n\n  /* -- Sizes: track thickness + thumb diameter (md == the default) ----\n     On a .slider or on a .slider-range (both inputs inherit). */\n  :is(.slider, .slider-range, .slider-marks) {\n    &[data-size=\"xs\"] {\n      --_track: 0.25rem;\n      --_thumb: 0.75rem;\n    }\n    &[data-size=\"sm\"] {\n      --_track: 0.375rem;\n      --_thumb: 1rem;\n    }\n    &[data-size=\"md\"] {\n      --_track: 0.5rem;\n      --_thumb: 1.25rem;\n    }\n    &[data-size=\"lg\"] {\n      --_track: 0.625rem;\n      --_thumb: 1.5rem;\n    }\n    &[data-size=\"xl\"] {\n      --_track: 0.75rem;\n      --_thumb: 1.75rem;\n    }\n\n    /* -- Tones: success / warning / info / destructive; any other color\n       via style=\"--slider-color: …\" */\n    &[data-tone=\"success\"] {\n      --_c: oklch(0.6 0.15 150);\n    }\n    &[data-tone=\"warning\"] {\n      --_c: oklch(0.78 0.16 75);\n    }\n    &[data-tone=\"info\"] {\n      --_c: oklch(0.6 0.16 250);\n    }\n    &[data-tone=\"destructive\"] {\n      --_c: var(--destructive);\n    }\n  }\n\n  /* -- Marks: a CSS-only tick scale under a stepped slider ------------\n     <div class=\"slider-marks\" aria-hidden=\"true\"> right after the slider\n     (or range); each child is a zero-width flex item, so space-between\n     lands the tick centres on the thumb-centre travel (inset by half a\n     thumb at each end). The tick is generated, the child's text is the\n     optional label. It follows the slider's data-size when it is the\n     slider's next sibling (or set data-size on the marks). */\n  .slider-marks {\n    display: flex;\n    justify-content: space-between;\n    padding-inline: calc(var(--_thumb, 1.25rem) / 2);\n    margin-top: 0.375rem;\n    font-size: 0.6875rem;\n    line-height: 1;\n    font-variant-numeric: tabular-nums;\n    color: var(--muted-foreground);\n\n    & > * {\n      /* zero-width: flex-basis 0 alone leaves min-width:auto, which would\n         widen the item to its label and push the tick off its step */\n      flex: 0 0 0;\n      min-width: 0;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      gap: 0.25rem;\n      white-space: nowrap;\n    }\n    & > *::before {\n      content: \"\";\n      width: 1px;\n      height: 0.375rem;\n      background: var(--border);\n    }\n    /* a tick without a label (an empty child) stays a short tick */\n    & > :empty::before {\n      height: 0.25rem;\n    }\n  }\n  :is(.slider, .slider-range)[data-size=\"xs\"] + .slider-marks:not([data-size]) {\n    --_thumb: 0.75rem;\n  }\n  :is(.slider, .slider-range)[data-size=\"sm\"] + .slider-marks:not([data-size]) {\n    --_thumb: 1rem;\n  }\n  :is(.slider, .slider-range)[data-size=\"lg\"] + .slider-marks:not([data-size]) {\n    --_thumb: 1.5rem;\n  }\n  :is(.slider, .slider-range)[data-size=\"xl\"] + .slider-marks:not([data-size]) {\n    --_thumb: 1.75rem;\n  }\n\n  /* -- Range: two thumbs on one track ---------------------------------\n     Two .slider inputs stacked in a .slider-range; only their thumbs take\n     the pointer, the wrapper paints one track with the span between the\n     thumbs filled (slider.js keeps --range-from / --range-to in sync and\n     the low value <= the high one). Each input keeps its own keyboard,\n     label and State API. */\n  .slider-range {\n    --range-from: 25%;\n    --range-to: 75%;\n    --_fill: var(--_c, var(--slider-color, var(--primary)));\n    --_dir: to right;\n    position: relative;\n    display: block;\n    width: 100%;\n    height: var(--_thumb, 1.25rem);\n\n    &::before {\n      content: \"\";\n      position: absolute;\n      inset-inline: 0;\n      top: 50%;\n      height: var(--_track, 0.5rem);\n      translate: 0 -50%;\n      border-radius: 9999px;\n      background: linear-gradient(\n        var(--_dir),\n        var(--secondary) var(--range-from),\n        var(--_fill) var(--range-from),\n        var(--_fill) var(--range-to),\n        var(--secondary) var(--range-to)\n      );\n    }\n    &:dir(rtl) {\n      --_dir: to left;\n    }\n\n    & > .slider {\n      position: absolute;\n      inset-inline: 0;\n      top: 50%;\n      translate: 0 -50%;\n      margin: 0;\n      background: none;\n      pointer-events: none;\n\n      &::-webkit-slider-runnable-track {\n        background: none;\n      }\n      &::-moz-range-track {\n        background: none;\n      }\n      &::-moz-range-progress {\n        background: none;\n      }\n      &::-webkit-slider-thumb {\n        pointer-events: auto;\n      }\n      &::-moz-range-thumb {\n        pointer-events: auto;\n      }\n    }\n    /* the thumb last moved stays on top (both can reach the same value) */\n    & > .slider[data-active] {\n      z-index: 1;\n    }\n\n    &:has(.slider:disabled) {\n      opacity: 0.5;\n    }\n  }\n\n  /* -- Field: icons, emojis and values around a slider ----------------- */\n  .slider-field {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    width: 100%;\n\n    & > :is(.slider, .slider-range) {\n      flex: 1 1 auto;\n      min-width: 0;\n    }\n  }\n  .slider-icon {\n    display: inline-grid;\n    place-items: center;\n    flex-shrink: 0;\n    width: 1.25rem;\n    height: 1.25rem;\n    font-size: 1.125rem;\n    line-height: 1;\n    color: var(--muted-foreground);\n\n    & svg {\n      width: 1.125rem;\n      height: 1.25rem;\n    }\n  }\n  .slider-value {\n    flex-shrink: 0;\n    min-width: 3.5em;\n    text-align: end;\n    font-size: 0.875rem;\n    font-variant-numeric: tabular-nums;\n    color: var(--foreground);\n  }\n  /* a scale under the track: the first and last labels align to the ends */\n  .slider-scale {\n    display: flex;\n    justify-content: space-between;\n    margin-top: 0.375rem;\n    font-size: 0.75rem;\n    font-variant-numeric: tabular-nums;\n    color: var(--muted-foreground);\n  }\n\n  /* Reduced motion */\n  @media (prefers-reduced-motion: reduce) {\n    .slider {\n      &::-webkit-slider-thumb {\n        transition: none;\n      }\n      &::-moz-range-thumb {\n        transition: none;\n      }\n    }\n  }\n\n  /* High contrast */\n  @media (prefers-contrast: more) {\n    .slider-marks {\n      color: var(--foreground);\n      & > *::before {\n        background: var(--foreground);\n      }\n    }\n    .slider {\n      &::-webkit-slider-thumb {\n        border-width: 3px;\n      }\n      &::-moz-range-thumb {\n        border-width: 3px;\n      }\n    }\n  }\n\n  /* Forced colors (Windows High Contrast Mode) */\n  @media (forced-colors: active) {\n    .slider-marks {\n      color: CanvasText;\n      & > *::before {\n        background: CanvasText;\n      }\n    }\n    .slider {\n      &::-webkit-slider-runnable-track {\n        background: ButtonFace;\n        border: 1px solid ButtonText;\n      }\n      &::-moz-range-track {\n        background: ButtonFace;\n        border: 1px solid ButtonText;\n      }\n      &::-moz-range-progress {\n        background: Highlight;\n      }\n      &::-webkit-slider-thumb {\n        background: ButtonText;\n        border-color: ButtonText;\n      }\n      &::-moz-range-thumb {\n        background: ButtonText;\n        border-color: ButtonText;\n      }\n\n      &:focus-visible {\n        &::-webkit-slider-thumb {\n          outline-color: Highlight;\n        }\n        &::-moz-range-thumb {\n          outline-color: Highlight;\n        }\n      }\n    }\n    .slider-range::before {\n      background: Highlight;\n    }\n  }\n}\n\n/* ── components/rating/rating.css ── */\n/* -- Rating component ------------------------------------------- */\n/* Star rating. Interactive form is a native radio group (no JS);   */\n/* the read-only form is a display-only fraction of five stars.     */\n\n@layer components {\n  .rating {\n    /* Local knobs — not theme tokens: there is no amber in the tweakcn\n       shape, and a rating's fill colour is a per-instance decision\n       (stars amber, hearts destructive, …). Override inline or in a\n       wrapper rule; both forms below read them. */\n    --rating-color: #f59e0b;\n    --rating-empty: var(--border);\n    --rating-size: 1.25rem;\n\n    border: none;\n    padding: 0;\n    margin: 0;\n    display: inline-flex;\n    align-items: center;\n    gap: 0.125rem;\n    line-height: 1;\n\n    &[data-size=\"sm\"] {\n      --rating-size: 1rem;\n    }\n\n    &[data-size=\"lg\"] {\n      --rating-size: 1.75rem;\n    }\n\n    /* -- Glyph: any text glyph via --rating-glyph (the read-only form reads\n       --rating-glyphs, the same glyph five times); data-glyph=\"heart\" is\n       the common one, in the destructive colour. U+FE0E keeps ♥ a text\n       glyph (an emoji heart would ignore color). */\n    &[data-glyph=\"heart\"] {\n      --rating-glyph: \"\\2665\\FE0E\";\n      --rating-glyphs: \"\\2665\\FE0E\\2665\\FE0E\\2665\\FE0E\\2665\\FE0E\\2665\\FE0E\";\n      --rating-color: var(--destructive);\n    }\n  }\n\n  /* -- Interactive form (radio group) ------------------------- */\n  .rating-item {\n    position: relative;\n    display: inline-grid;\n    place-items: center;\n    cursor: pointer;\n    border-radius: var(--radius-sm);\n    line-height: 1;\n\n    &::before {\n      content: var(--rating-glyph, \"★\");\n      font-size: var(--rating-size);\n      color: var(--rating-empty);\n      transition:\n        color 150ms,\n        scale 150ms;\n    }\n  }\n\n  /* The radio stays in the accessibility tree and keeps keyboard support —\n     it is only visually replaced by the star drawn above. */\n  .rating-input {\n    position: absolute;\n    inset: 0;\n    margin: 0;\n    opacity: 0;\n    cursor: pointer;\n  }\n\n  /* Filled: this star, and every star before the checked one. */\n  .rating-item:has(.rating-input:checked)::before,\n  .rating-item:has(~ .rating-item .rating-input:checked)::before {\n    color: var(--rating-color);\n  }\n\n  /* Hover preview wins over the current value while the pointer is on the\n     group: reset all, then fill up to the hovered star. Specificity is\n     deliberate — each rule must outrank the checked rules above.\n     A disabled group is excluded: previewing a value there would promise a\n     choice the control cannot accept. */\n  @media (hover: hover) {\n    .rating:not(:has(.rating-input:disabled)):has(.rating-item:hover) .rating-item::before {\n      color: var(--rating-empty);\n    }\n\n    .rating:not(:has(.rating-input:disabled)):has(.rating-item:hover) .rating-item:hover::before,\n    .rating:not(:has(.rating-input:disabled)):has(.rating-item:hover) .rating-item:has(~ .rating-item:hover)::before {\n      color: var(--rating-color);\n      scale: 1.1;\n    }\n  }\n\n  .rating-item:has(.rating-input:focus-visible) {\n    outline: 2px solid var(--ring);\n    outline-offset: 2px;\n  }\n\n  /* Disabled — native <fieldset disabled> propagates to every radio. */\n  .rating:has(.rating-input:disabled) {\n    opacity: 0.5;\n\n    /* the star and the radio stretched over it must agree — a hand on one and\n       \"no entry\" on the other invites a click the control cannot take */\n    & .rating-item,\n    & .rating-input {\n      cursor: not-allowed;\n    }\n  }\n\n  .rating[data-readonly] .rating-item {\n    cursor: default;\n  }\n\n  /* -- Read-only form (fractional display) -------------------- */\n  /* Two layers of five stars: empty underneath, filled on top clipped to\n     the value — so 3.5 renders a half star with no extra markup. */\n  .rating[data-readonly] {\n    position: relative;\n    display: inline-block;\n    font-size: var(--rating-size);\n    letter-spacing: 0.125rem;\n\n    &::before,\n    &::after {\n      content: var(--rating-glyphs, \"★★★★★\");\n      line-height: 1;\n    }\n\n    &::before {\n      color: var(--rating-empty);\n    }\n\n    &::after {\n      position: absolute;\n      inset-block: 0;\n      inset-inline-start: 0;\n      width: calc(var(--rating-value, 0) / 5 * 100%);\n      overflow: hidden;\n      white-space: nowrap;\n      color: var(--rating-color);\n    }\n  }\n\n  /* -- Label beside the stars --------------------------------- */\n  .rating-value {\n    font-size: 0.875rem;\n    color: var(--muted-foreground);\n    margin-inline-start: 0.5rem;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .rating,\n    .rating *,\n    .rating::before,\n    .rating::after,\n    .rating *::before,\n    .rating *::after,\n    .rating-item,\n    .rating-item *,\n    .rating-item::before,\n    .rating-item::after {\n      transition: none;\n      animation: none;\n      scale: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .rating {\n      --rating-empty: var(--muted-foreground);\n    }\n\n    .rating-item:has(.rating-input:focus-visible) {\n      outline-width: 3px;\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .rating {\n      --rating-color: Highlight;\n      --rating-empty: GrayText;\n\n      &:has(.rating-input:disabled) {\n        --rating-color: GrayText;\n      }\n    }\n\n    .rating-item:has(.rating-input:focus-visible) {\n      outline-color: Highlight;\n    }\n  }\n}\n\n/* ── components/select/select.css ── */\n/* -- Select component ------------------------------------------- */\n\n@layer components {\n  .select {\n    appearance: none;\n    /* the field standard: unsized = md step (see .input) */\n    height: 2.25rem;\n    width: 100%;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    padding: 0 2rem 0 0.75rem;\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n    box-shadow: var(--shadow-xs);\n    cursor: pointer;\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    /* Custom chevron */\n    background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n    background-repeat: no-repeat;\n    background-position: right 0.5rem center;\n    background-size: 1rem;\n\n    /* Placeholder = the empty-value option. It stays selectable (no\n       `disabled`) so it doubles as the clear/reset entry - choosing it\n       again empties the box (issue #32). While it is the selection the\n       closed control reads as a placeholder; a real value restores\n       --foreground because the base rule's color wins over this one.\n       option:checked matches the *selected* option in every engine. */\n    &:has(> option[value=\"\"]:checked) {\n      color: var(--muted-foreground);\n    }\n\n    &:focus {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* Disabled = legible but inert: a muted surface and muted text inside\n       the full-strength border - never an opacity fade that lets the box\n       dissolve into the page. */\n    &:disabled {\n      background-color: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n      opacity: 1; /* Chrome's UA sheet fades select:disabled to 0.7 on its own */\n    }\n\n    &:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: var(--destructive);\n\n      &:focus {\n        border-color: var(--destructive);\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n\n    /* -- Multiple (<select multiple>) ---------------------------\n       The browser renders a list box instead of a dropdown: every option is\n       visible (size=\"N\" rows), Ctrl/⌘-click or Shift-click / Shift+arrows\n       pick several, and the form submits every chosen value under the same\n       name. No fixed height, no chevron; chosen options get a tinted row. */\n    &[multiple] {\n      height: auto;\n      padding: 0.25rem;\n      background-image: none;\n      overflow-y: auto;\n\n      & option {\n        padding: 0.375rem 0.5rem;\n        border-radius: calc(var(--radius-md) - 2px);\n        color: var(--foreground);\n      }\n\n      & option:checked {\n        /* a gradient beats the UA's opaque selection paint in every engine */\n        background: linear-gradient(\n          color-mix(in oklch, var(--primary) 14%, transparent),\n          color-mix(in oklch, var(--primary) 14%, transparent)\n        );\n        font-weight: 500;\n      }\n\n      /* one unavailable choice in a usable list */\n      & option:disabled {\n        color: var(--muted-foreground);\n        cursor: not-allowed;\n      }\n\n      & optgroup {\n        font-size: 0.75rem;\n        font-weight: 600;\n        color: var(--muted-foreground);\n      }\n    }\n\n    /* -- Sizes ----------------------------------------------- */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      padding-left: 0.5rem;\n      font-size: 0.75rem;\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      padding-left: 0.625rem;\n      font-size: 0.8125rem;\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      padding-left: 0.75rem;\n      font-size: 0.875rem;\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      padding-left: 1rem;\n      font-size: 1rem;\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      padding-left: 1.25rem;\n      font-size: 1.125rem;\n    }\n\n    &[multiple][data-size] {\n      height: auto;\n    }\n  }\n}\n\n/* Accessibility: suppress motion for users who request it (REQUIRED for all\n   components - AGENTS.md \"Accessibility CSS\"). Near-zero duration instead of\n   `none` keeps transitionend/animationend (and discrete display flips)\n   firing so JS state machines that await them keep working. */\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .select,\n    .select *,\n    .select::before,\n    .select::after,\n    .select *::before,\n    .select *::after,\n    .select::backdrop {\n      transition-duration: 0.01ms !important;\n      animation-duration: 0.01ms !important;\n      animation-iteration-count: 1 !important;\n    }\n  }\n}\n\n/* ── components/number-input/number-input.css ── */\n/* -- Number Input component ------------------------------------- */\n\n@layer components {\n  .number-input {\n    display: inline-flex;\n    align-items: center;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    box-shadow: var(--shadow-xs);\n    overflow: hidden;\n    /* explicit border-box: the size ladder below sets an explicit container\n       height and must land on it exactly (a div is content-box by default;\n       inputs get border-box from the UA). The unsized default keeps its\n       auto height (children drive it), so this changes nothing today. */\n    box-sizing: border-box;\n    /* explicit default box height (the size ladder below does the rest): an\n       auto-height box let the UA-padding children overshoot to 44px. The\n       unsized default IS the ladder's md step - field standard, see .input */\n    height: 2.25rem;\n\n    & input {\n      border: none;\n      outline: none;\n      background: transparent;\n      height: 100%;\n      /* 4rem basis, but GROWS when the container is widened (w-full demos,\n         grid cells): a fixed width left dead space after the + button.\n         width pins the intrinsic size too - Chrome otherwise derives a\n         number input's width from the digit count of max (no max: ~170px,\n         max=\"100\": 34px), so the field width followed a validation attr. */\n      flex: 1 1 4rem;\n      width: 4rem;\n      min-width: 0;\n      text-align: center;\n      font-size: 0.875rem;\n      font-family: var(--font-sans);\n      color: var(--foreground);\n      -moz-appearance: textfield;\n\n      &::-webkit-inner-spin-button,\n      &::-webkit-outer-spin-button {\n        -webkit-appearance: none;\n        margin: 0;\n      }\n    }\n\n    & button {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      width: 2rem;\n      /* height:100% so the button can't overshoot the container's border-box\n         height (the ladder below already sets children to 100%) */\n      height: 100%;\n      border: none;\n      background: transparent;\n      color: var(--muted-foreground);\n      cursor: pointer;\n      font-size: 1rem;\n      font-family: var(--font-sans);\n      transition:\n        background 150ms,\n        color 150ms;\n      flex-shrink: 0;\n\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n\n      &:first-child {\n        border-right: 1px solid var(--input);\n      }\n\n      &:last-child {\n        border-left: 1px solid var(--input);\n      }\n    }\n\n    /* -- Unit affix: <label class=\"number-input-unit\" for=\"…\"> -----\n       A unit (°C, %, kg, €, h) sits before or after the input. It is a\n       second <label> for the input: clicking it focuses the field and the\n       unit joins the accessible name (\"Temperature °C\"). The value aligns\n       TOWARD the unit so number + unit read as one (\"19.0 °C\", \"€ 24.90\"). */\n    & .number-input-unit {\n      display: flex;\n      align-items: center;\n      align-self: stretch;\n      flex-shrink: 0;\n      padding-inline: 0.25rem;\n      color: var(--muted-foreground);\n      font-size: 0.875rem;\n      font-family: var(--font-sans);\n      white-space: nowrap;\n      cursor: text;\n\n      /* edge of the box (no stepper on that side): field padding */\n      &:first-child {\n        padding-inline-start: 0.75rem;\n      }\n      &:last-child {\n        padding-inline-end: 0.75rem;\n      }\n    }\n\n    /* NOT user-select: none - the unit is part of the value when text is\n       selected, copied or exported (\"72,5 kg\", not a bare \"72,5\") */\n\n    &:has(input:not([type=\"hidden\"]) + .number-input-unit) input {\n      text-align: end;\n    }\n    &:has(.number-input-unit + input:not([type=\"hidden\"])) input {\n      text-align: start;\n    }\n\n    /* currency fields carry grouped amounts (\"1.234.567,89\") */\n    &[data-currency] input {\n      width: 8rem;\n    }\n\n    /* stepper-less field (currency, measurements): the input reaches the box\n       edge - give it the regular field padding there */\n    & input:first-child {\n      padding-inline-start: 0.75rem;\n    }\n    & input:last-child {\n      padding-inline-end: 0.75rem;\n    }\n\n    &:focus-within {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* -- Sizes -------------------------------------------------\n       Container height + input/button/font scale together, matching the\n       input/button ladders (md = 2.25rem; the unsized default stays at the\n       historical 2.5rem, exactly like .input does). Children switch to\n       height:100% so they can't fight the container. */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      & input {\n        height: 100%;\n        width: 3rem;\n        font-size: 0.75rem;\n      }\n      & button {\n        height: 100%;\n        width: 1.5rem;\n        font-size: 0.875rem;\n      }\n      & .number-input-unit {\n        font-size: 0.75rem;\n      }\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      & input {\n        height: 100%;\n        width: 3.5rem;\n        font-size: 0.8125rem;\n      }\n      & button {\n        height: 100%;\n        width: 1.75rem;\n        font-size: 0.9375rem;\n      }\n      & .number-input-unit {\n        font-size: 0.8125rem;\n      }\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      & input {\n        height: 100%;\n        font-size: 0.875rem;\n      }\n      & button {\n        height: 100%;\n      }\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      & input {\n        height: 100%;\n        width: 4.5rem;\n        font-size: 1rem;\n      }\n      & button {\n        height: 100%;\n        width: 2.25rem;\n        font-size: 1.125rem;\n      }\n      & .number-input-unit {\n        font-size: 1rem;\n      }\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      & input {\n        height: 100%;\n        width: 5rem;\n        font-size: 1.125rem;\n      }\n      & button {\n        height: 100%;\n        width: 2.5rem;\n        font-size: 1.25rem;\n      }\n      & .number-input-unit {\n        font-size: 1.125rem;\n      }\n    }\n  }\n}\n\n/* Accessibility: suppress motion for users who request it (REQUIRED for all\n   components - AGENTS.md \"Accessibility CSS\"). Near-zero duration instead of\n   `none` keeps transitionend/animationend (and discrete display flips)\n   firing so JS state machines that await them keep working. */\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .number-input,\n    .number-input *,\n    .number-input::before,\n    .number-input::after,\n    .number-input *::before,\n    .number-input *::after,\n    .number-input::backdrop {\n      transition-duration: 0.01ms !important;\n      animation-duration: 0.01ms !important;\n      animation-iteration-count: 1 !important;\n    }\n  }\n}\n\n/* ── components/file-input/file-input.css ── */\n/* -- File Input component --------------------------------------- */\n\n@layer components {\n  .file-input {\n    /* see .input - border-box so the declared ladder height is the real box;\n       unsized default = the ladder's md step (field standard) */\n    box-sizing: border-box;\n    width: 100%;\n    /* the chosen file name is the whole point of the control's text part -\n       never let a flex/grid row squeeze it below a readable path length */\n    min-inline-size: min(100%, 24rem);\n    height: 2.25rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n    box-shadow: var(--shadow-xs);\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n    padding: 0;\n    cursor: pointer;\n\n    &::file-selector-button {\n      /* % resolves against the border-box's CONTENT height once the control is\n         border-box - 100% would leave 1px gaps above/below the divider; +2px\n         makes the button flush with the frame (its original visual) */\n      height: calc(100% + 2px);\n      border: none;\n      border-right: 1px solid var(--input);\n      background: var(--muted);\n      color: var(--foreground);\n      font-size: 0.875rem;\n      font-weight: 500;\n      font-family: var(--font-sans);\n      padding: 0 0.75rem;\n      margin-right: 0.75rem;\n      cursor: pointer;\n      transition: background 150ms;\n\n      &:hover {\n        background: var(--accent);\n      }\n    }\n\n    &:focus {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* Disabled = legible but inert: muted surface + text inside the\n       full-strength border - never an opacity fade */\n    &:disabled {\n      background-color: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n\n      &::file-selector-button {\n        color: var(--muted-foreground);\n        cursor: not-allowed;\n\n        &:hover {\n          background: var(--muted);\n        }\n      }\n    }\n\n    /* -- Sizes: same ladder as .input/.date-input (md = 2.25rem; the\n       unsized default keeps the historical 2.5rem). The file-selector\n       button fills the container (height:100%), so only the box and the\n       font scale. */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      font-size: 0.75rem;\n      &::file-selector-button {\n        padding: 0 0.5rem;\n        margin-right: 0.5rem;\n        font-size: 0.75rem;\n      }\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      font-size: 0.8125rem;\n      &::file-selector-button {\n        padding: 0 0.625rem;\n        margin-right: 0.625rem;\n        font-size: 0.8125rem;\n      }\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      font-size: 0.875rem;\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      font-size: 1rem;\n      &::file-selector-button {\n        padding: 0 1rem;\n        margin-right: 1rem;\n        font-size: 1rem;\n      }\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      font-size: 1.125rem;\n      &::file-selector-button {\n        padding: 0 1.25rem;\n        margin-right: 1.25rem;\n        font-size: 1.125rem;\n      }\n    }\n  }\n\n  /* -- Drop zone ---------------------------------------------------------\n     .file-drop wraps a <label class=\"file-drop-zone\"> (the card) whose\n     native <input type=\"file\" class=\"file-drop-input\"> covers it,\n     invisible - so a click opens the picker and a DROP lands on the input\n     itself: the browser fills input.files natively, no JavaScript needed.\n     file-input.js adds the drag highlight, filters dropped files by\n     accept / data-max-size / data-max-files (the browser does not filter\n     drops), appends to the selection instead of replacing it, and lists the\n     files in .file-drop-list with previews and remove buttons. */\n  .file-drop {\n    display: grid;\n    gap: 0.75rem;\n    width: 100%;\n  }\n  .file-drop-zone {\n    position: relative;\n    display: grid;\n    justify-items: center;\n    gap: 0.375rem;\n    padding: 2rem 1.5rem;\n    border: 2px dashed color-mix(in oklch, var(--foreground) 22%, transparent);\n    border-radius: var(--radius-xl);\n    background-color: var(--card);\n    color: var(--card-foreground);\n    text-align: center;\n    cursor: pointer;\n    transition:\n      border-color 150ms ease,\n      background-color 150ms ease,\n      scale 150ms ease;\n\n    &:hover {\n      border-color: color-mix(in oklch, var(--foreground) 40%, transparent);\n    }\n    &:has(.file-drop-input:focus-visible) {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n    &:has(.file-drop-input:disabled) {\n      opacity: 0.55;\n      cursor: not-allowed;\n    }\n  }\n  .file-drop-input {\n    position: absolute;\n    inset: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0;\n    cursor: inherit;\n    font-size: 0; /* no native \"No file chosen\" hit-box quirks */\n  }\n  .file-drop-icon {\n    display: grid;\n    place-items: center;\n    width: 3rem;\n    height: 3rem;\n    margin-bottom: 0.25rem;\n    border-radius: 9999px;\n    background-color: var(--muted);\n    color: var(--muted-foreground);\n    font-size: 1.5rem;\n    line-height: 1;\n    transition:\n      background-color 150ms ease,\n      color 150ms ease,\n      translate 150ms ease;\n\n    & svg {\n      width: 1.5rem;\n      height: 1.5rem;\n    }\n  }\n  .file-drop-title {\n    font-size: 0.9375rem;\n    font-weight: 600;\n    text-wrap: balance;\n\n    & u,\n    & .file-drop-browse {\n      color: var(--primary);\n      text-decoration: underline;\n      text-underline-offset: 3px;\n    }\n  }\n  .file-drop-hint {\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n    text-wrap: balance;\n  }\n\n  /* dragging files over the zone */\n  .file-drop[data-state-name=\"dragover\"] .file-drop-zone {\n    border-color: var(--primary);\n    border-style: solid;\n    background-color: color-mix(in oklch, var(--primary) 6%, var(--card));\n    scale: 1.01;\n\n    & .file-drop-icon {\n      background-color: var(--primary);\n      color: var(--primary-foreground);\n      translate: 0 -2px;\n    }\n  }\n  /* rejected files (wrong type, too big, too many) */\n  .file-drop[data-state-name=\"error\"] .file-drop-zone {\n    border-color: var(--destructive);\n  }\n  .file-drop-error {\n    margin: 0;\n    font-size: 0.8125rem;\n    color: var(--destructive);\n\n    &:empty {\n      display: none;\n    }\n  }\n\n  /* compact: one row - icon, text, and the whole row is the target */\n  .file-drop[data-size=\"sm\"] .file-drop-zone {\n    grid-template-columns: auto 1fr;\n    justify-items: start;\n    align-items: center;\n    column-gap: 0.75rem;\n    row-gap: 0;\n    padding: 0.75rem 1rem;\n    text-align: start;\n    border-radius: var(--radius-lg);\n\n    & .file-drop-icon {\n      grid-row: span 2;\n      width: 2.25rem;\n      height: 2.25rem;\n      margin: 0;\n      font-size: 1.125rem;\n      & svg {\n        width: 1.125rem;\n        height: 1.125rem;\n      }\n    }\n  }\n\n  /* -- The file list ---------------------------------------------------- */\n  .file-drop-list {\n    display: grid;\n    gap: 0.5rem;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n\n    &:empty {\n      display: none;\n    }\n  }\n  .file-drop-item {\n    display: grid;\n    grid-template-columns: auto minmax(0, 1fr) auto;\n    align-items: center;\n    gap: 0.75rem;\n    padding: 0.5rem 0.5rem 0.5rem 0.625rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background-color: var(--card);\n  }\n  .file-drop-thumb {\n    display: grid;\n    place-items: center;\n    width: 2.5rem;\n    height: 2.5rem;\n    overflow: hidden;\n    border-radius: var(--radius-md);\n    background-color: var(--muted);\n    color: var(--muted-foreground);\n    font-size: 0.625rem;\n    font-weight: 700;\n    letter-spacing: 0.02em;\n    text-transform: uppercase;\n\n    & img {\n      width: 100%;\n      height: 100%;\n      object-fit: cover;\n    }\n  }\n  .file-drop-name {\n    overflow: hidden;\n    font-size: 0.875rem;\n    font-weight: 500;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n  }\n  .file-drop-meta {\n    display: block;\n    font-size: 0.75rem;\n    font-weight: 400;\n    color: var(--muted-foreground);\n  }\n  .file-drop-remove {\n    display: grid;\n    place-items: center;\n    width: 2rem;\n    height: 2rem;\n    border: 0;\n    border-radius: var(--radius-md);\n    background: transparent;\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    &:hover {\n      background-color: var(--accent);\n      color: var(--accent-foreground);\n    }\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 1px;\n    }\n    & svg {\n      width: 1rem;\n      height: 1rem;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .file-drop-zone {\n      border-color: CanvasText;\n    }\n    .file-drop[data-state-name=\"dragover\"] .file-drop-zone {\n      border-color: Highlight;\n    }\n  }\n}\n\n/* Accessibility: suppress motion for users who request it (REQUIRED for all\n   components - AGENTS.md \"Accessibility CSS\"). Near-zero duration instead of\n   `none` keeps transitionend/animationend (and discrete display flips)\n   firing so JS state machines that await them keep working. */\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .file-input,\n    .file-input *,\n    .file-input::before,\n    .file-input::after,\n    .file-input *::before,\n    .file-input *::after,\n    .file-input::backdrop {\n      transition-duration: 0.01ms !important;\n      animation-duration: 0.01ms !important;\n      animation-iteration-count: 1 !important;\n    }\n  }\n}\n\n/* ── components/color-picker/color-picker.css ── */\n/* -- Color Picker component ------------------------------------- */\n\n@layer components {\n  .color-picker {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.5rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    /* the unsized default IS the ladder's md step (see .input):\n       1.75rem swatch + 2×3px block padding + 2px frame = 36px */\n    padding: 0.1875rem 0.75rem 0.1875rem 0.25rem;\n    box-shadow: var(--shadow-xs);\n\n    & input[type=\"color\"] {\n      -webkit-appearance: none;\n      appearance: none;\n      width: 1.75rem;\n      height: 1.75rem;\n      border: 1px solid var(--border);\n      border-radius: var(--radius-sm);\n      cursor: pointer;\n      padding: 0;\n      background: none;\n\n      &::-webkit-color-swatch-wrapper {\n        padding: 0;\n      }\n      &::-webkit-color-swatch {\n        border: none;\n        border-radius: calc(var(--radius-sm) - 1px);\n      }\n      &::-moz-color-swatch {\n        border: none;\n        border-radius: calc(var(--radius-sm) - 1px);\n      }\n    }\n\n    /* the value is meant to be used: one click selects all of it for copy;\n       tabular digits keep the width steady while dragging through colours */\n    & .color-picker-value {\n      font-size: 0.8125rem;\n      font-family: var(--font-mono);\n      font-variant-numeric: tabular-nums;\n      color: var(--muted-foreground);\n      white-space: nowrap;\n      user-select: all;\n    }\n\n    /* optional notation switcher (hex / rgb / hsl / oklch) at the end */\n    & .color-picker-format {\n      margin-inline-start: auto;\n      padding: 0 0 0 0.5rem;\n      border: none;\n      border-inline-start: 1px solid var(--border);\n      background: transparent;\n      color: var(--muted-foreground);\n      font-size: 0.75rem;\n      font-family: var(--font-mono);\n      cursor: pointer;\n\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n        border-radius: var(--radius-sm);\n      }\n    }\n\n    /* -- Sizes -------------------------------------------------\n       Swatch + padding re-derived per step so the TOTAL box height lands\n       on the shared input ladder (xs 28 / sm 32 / md 36 / lg 44 / xl 52\n       px - md is the typical 2.25rem the other inputs use at md). The UA\n       styles form controls border-box, so:\n       total = swatch + 2×padding-block + 2px frame:\n       xs 20+6+2 · sm 24+6+2 · md 28+6+2 · lg 32+10+2 · xl 40+10+2.\n       The unsized default IS md (1.75rem swatch, 0.1875rem block padding = 36px)\n       - exactly like .input defaults to the md step. */\n    &[data-size=\"xs\"] {\n      padding: 0.1875rem 0.5rem;\n      gap: 0.375rem;\n      & input[type=\"color\"] {\n        width: 1.25rem;\n        height: 1.25rem;\n      }\n      & .color-picker-value {\n        font-size: 0.6875rem;\n      }\n    }\n    &[data-size=\"sm\"] {\n      padding: 0.1875rem 0.625rem;\n      gap: 0.375rem;\n      & input[type=\"color\"] {\n        width: 1.5rem;\n        height: 1.5rem;\n      }\n      & .color-picker-value {\n        font-size: 0.75rem;\n      }\n    }\n    &[data-size=\"md\"] {\n      padding: 0.1875rem 0.75rem;\n      & input[type=\"color\"] {\n        width: 1.75rem;\n        height: 1.75rem;\n      }\n      & .color-picker-value {\n        font-size: 0.8125rem;\n      }\n    }\n    &[data-size=\"lg\"] {\n      padding: 0.3125rem 0.875rem;\n      & input[type=\"color\"] {\n        width: 2rem;\n        height: 2rem;\n      }\n      & .color-picker-value {\n        font-size: 0.875rem;\n      }\n    }\n    &[data-size=\"xl\"] {\n      padding: 0.3125rem 1rem;\n      gap: 0.625rem;\n      & input[type=\"color\"] {\n        width: 2.5rem;\n        height: 2.5rem;\n      }\n      & .color-picker-value {\n        font-size: 1rem;\n      }\n    }\n  }\n}\n\n/* ── components/date-picker/date-picker.css ── */\n/* -- Date Picker component -------------------------------------- */\n/* Uses the .input class with type=\"date\" or type=\"datetime-local\" */\n/* This file adds date-specific overrides only.                     */\n\n@layer components {\n  .date-input {\n    /* see .input - border-box so the declared ladder height is the real box;\n       unsized default = the ladder's md step (field standard) */\n    box-sizing: border-box;\n    height: 2.25rem;\n    width: 100%;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    padding: 0 0.75rem;\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n    box-shadow: var(--shadow-xs);\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n    cursor: pointer;\n\n    &:focus {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* Disabled = legible but inert: a muted surface and muted text inside\n       the full-strength border - never an opacity fade that lets the box\n       dissolve into the page. */\n    &:disabled {\n      background-color: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n    }\n\n    /* -- Sizes: same ladder as .input (md = 2.25rem; the unsized default\n       stays at the historical 2.5rem) so date fields sit in the same row\n       rhythm as text inputs at every step. */\n    &[data-size=\"xs\"] {\n      height: 1.75rem;\n      padding: 0 0.5rem;\n      font-size: 0.75rem;\n    }\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      padding: 0 0.625rem;\n      font-size: 0.8125rem;\n    }\n    &[data-size=\"md\"] {\n      height: 2.25rem;\n      padding: 0 0.75rem;\n      font-size: 0.875rem;\n    }\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      padding: 0 1rem;\n      font-size: 1rem;\n    }\n    &[data-size=\"xl\"] {\n      height: 3.25rem;\n      padding: 0 1.25rem;\n      font-size: 1.125rem;\n    }\n\n    /* -- Out of range / invalid ----------------------------------\n       The browser already rejects a TYPED date outside min/max (validity\n       rangeUnderflow / rangeOverflow) - the same rule the calendar popup\n       enforces by disabling days. :user-invalid shows it once the user has\n       interacted (an untouched empty field never turns red); aria-invalid\n       lets an app flag server-side errors the same way. */\n    &:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: var(--destructive);\n\n      &:focus {\n        border-color: var(--destructive);\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n\n    /* Style the calendar icon */\n    &::-webkit-calendar-picker-indicator {\n      cursor: pointer;\n      opacity: 0.6;\n      transition: opacity 150ms;\n\n      &:hover {\n        opacity: 1;\n      }\n    }\n  }\n\n  /* -- Range hint --------------------------------------------------\n     States the allowed dates up front (point aria-describedby at it, so it\n     is announced with the field) and turns into the error when the field\n     holds a date outside them: destructive colour + a warning sign, so the\n     state never rests on colour alone. Always rendered - no show/hide, no\n     live-region timing, no JavaScript. Place it after the input. */\n  .date-input-hint {\n    margin: 0.375rem 0 0;\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n  }\n\n  .date-input:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *))\n    ~ .date-input-hint {\n    color: var(--destructive);\n\n    &::before {\n      content: \"⚠\\FE0E  \";\n      font-weight: 600;\n    }\n  }\n}\n\n/* Accessibility: suppress motion for users who request it (REQUIRED for all\n   components - AGENTS.md \"Accessibility CSS\"). Near-zero duration instead of\n   `none` keeps transitionend/animationend (and discrete display flips)\n   firing so JS state machines that await them keep working. */\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .date-input,\n    .date-input *,\n    .date-input::before,\n    .date-input::after,\n    .date-input *::before,\n    .date-input *::after,\n    .date-input::backdrop {\n      transition-duration: 0.01ms !important;\n      animation-duration: 0.01ms !important;\n      animation-iteration-count: 1 !important;\n    }\n  }\n}\n\n/* Forced colors (Windows High Contrast): the destructive colour is replaced\n   by system colours - the invalid field keeps a distinct border and the hint\n   keeps its warning sign. */\n@media (forced-colors: active) {\n  @layer components {\n    .date-input:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *)) {\n      border-color: LinkText;\n      border-width: 2px;\n    }\n\n    .date-input:is([aria-invalid=\"true\"], :user-invalid:not(form[data-validate=\"submit\"]:not([data-submitted]) *))\n      ~ .date-input-hint {\n      color: LinkText;\n    }\n  }\n}\n\n/* ── components/combobox/combobox.css ── */\n/* -- Combobox component ---------------------------------------- */\n\n@layer components {\n  .combobox {\n    position: relative;\n\n    /* -- Sizes: set data-size on the .combobox wrapper; the trigger (a\n       .btn) and the popover's rows scale together. Heights/fonts mirror the\n       field ladder the .input defines: the unsized trigger renders 2.5rem —\n       the .input default - via the .combobox-trigger rule below, md = 2.25rem\n       is the ladder's md, exactly like .input goes 2.5rem → 2.25rem at md. */\n    &[data-size=\"xs\"] {\n      & .combobox-trigger {\n        height: 1.75rem;\n        padding: 0 0.5rem;\n        font-size: 0.75rem;\n      }\n      & .combobox-item,\n      & .combobox-group-label {\n        font-size: 0.75rem;\n        padding-block: 0.25rem;\n      }\n    }\n    &[data-size=\"sm\"] {\n      & .combobox-trigger {\n        height: 2rem;\n        padding: 0 0.625rem;\n        font-size: 0.8125rem;\n      }\n      & .combobox-item,\n      & .combobox-group-label {\n        font-size: 0.8125rem;\n        padding-block: 0.3125rem;\n      }\n    }\n    &[data-size=\"md\"] {\n      & .combobox-trigger {\n        height: 2.25rem;\n      }\n    }\n    &[data-size=\"lg\"] {\n      & .combobox-trigger {\n        height: 2.75rem;\n        padding: 0 1rem;\n        font-size: 1rem;\n      }\n      & .combobox-item,\n      & .combobox-group-label {\n        font-size: 1rem;\n        padding-block: 0.5rem;\n      }\n    }\n    &[data-size=\"xl\"] {\n      & .combobox-trigger {\n        height: 3.25rem;\n        padding: 0 1.25rem;\n        font-size: 1.125rem;\n      }\n      & .combobox-item,\n      & .combobox-group-label {\n        font-size: 1.125rem;\n        padding-block: 0.625rem;\n      }\n    }\n  }\n\n  .combobox-trigger {\n    width: 100%;\n    justify-content: space-between;\n    /* the field standard for the unsized default (see .input): the ladder's\n       md step - identical to what a bare .btn renders, so no override is\n       needed beyond pinning it explicitly against .btn base drift */\n    height: 2.25rem;\n  }\n\n  .combobox-value {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    flex: 1;\n    text-align: left;\n    font-weight: 400;\n  }\n\n  .combobox-value[data-placeholder] {\n    color: var(--muted-foreground);\n  }\n\n  .combobox-chevron {\n    flex-shrink: 0;\n    color: var(--muted-foreground);\n    opacity: 0.5;\n  }\n\n  /* Clear button (injected by combobox.js after the trigger). Anchor-positioned\n     over the trigger's chevron slot; anchored via the same per-instance anchor\n     name the popover uses. `data-placeholder` presence is the single\n     selection marker - the :has() rules below flip chevron and clear in sync,\n     so no JS toggles visibility. */\n  .combobox-clear {\n    position: fixed;\n    inset: auto;\n    margin: 0;\n    top: anchor(top);\n    bottom: anchor(bottom);\n    right: anchor(right);\n    /* center the 20px box exactly over the 16px chevron (1rem trigger padding) */\n    margin-inline-end: 0.875rem;\n    width: 1.25rem;\n    display: none;\n    place-items: center;\n    padding: 0;\n    border: none;\n    border-radius: var(--radius-sm);\n    background: transparent;\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    &:hover {\n      color: var(--foreground);\n    }\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 1px;\n    }\n  }\n\n  .combobox:has(.combobox-value:not([data-placeholder])) {\n    & .combobox-clear {\n      display: grid;\n    }\n    & .combobox-chevron {\n      display: none;\n    }\n  }\n\n  /* -- Multi-select (data-multiple) --------------------------------\n     Options show a checkbox (empty box → filled with a check), the chosen\n     options sit as removable tags under the trigger. The check is ::after,\n     painted in --primary-foreground over the ::before box, so it stays\n     visible in light and dark (primary flips, its foreground flips with it). */\n  .combobox[data-multiple] .combobox-item {\n    padding-inline-start: 1.875rem;\n\n    &::before {\n      content: \"\";\n      position: absolute;\n      inset-inline-start: 0.5rem;\n      top: 50%;\n      width: 1rem;\n      height: 1rem;\n      transform: translateY(-50%);\n      box-sizing: border-box;\n      border: 1px solid var(--input);\n      border-radius: calc(var(--radius-sm) * 0.75);\n      background: var(--background);\n      mask: none;\n    }\n\n    &[aria-selected=\"true\"]::before {\n      border-color: var(--primary);\n      background-color: var(--primary);\n      mask: none;\n    }\n\n    &[aria-selected=\"true\"]::after {\n      content: \"\";\n      position: absolute;\n      inset-inline-start: 0.625rem;\n      top: 50%;\n      width: 0.75rem;\n      height: 0.75rem;\n      transform: translateY(-50%);\n      background-color: var(--primary-foreground);\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n  }\n\n  .combobox-tags {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.375rem;\n    margin-top: 0.5rem;\n\n    /* nothing chosen: no empty gap under the trigger */\n    &:not(:has(.combobox-tag)) {\n      display: none;\n    }\n  }\n\n  .combobox-tag {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    max-width: 100%;\n    padding: 0.125rem 0.25rem 0.125rem 0.5rem;\n    border-radius: var(--radius-sm);\n    background-color: var(--secondary);\n    color: var(--secondary-foreground);\n    font-size: 0.75rem;\n    font-weight: 500;\n    line-height: 1.25rem;\n  }\n\n  .combobox-tag-remove {\n    display: inline-grid;\n    place-items: center;\n    width: 1rem;\n    height: 1rem;\n    padding: 0;\n    border: none;\n    border-radius: calc(var(--radius-sm) * 0.75);\n    background: transparent;\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    &:hover {\n      background-color: color-mix(in oklch, var(--foreground) 10%, transparent);\n      color: var(--foreground);\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 1px;\n    }\n  }\n\n  /* -- Tag input (data-tags) ----------------------------------------\n     Tags INSIDE a field-like box, typed into directly: .combobox-field looks\n     like .input (same border, radius, ring on focus-within), the tags and the\n     text input wrap together, the input takes the remaining width. */\n  .combobox-field {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.25rem;\n    box-sizing: border-box;\n    min-height: 2.25rem;\n    padding: 0.25rem 0.5rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    box-shadow: var(--shadow-xs);\n    cursor: text;\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    &:focus-within {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* the tag span dissolves into the field's wrap (tags + input flow together) */\n    & > .combobox-tags {\n      display: contents;\n    }\n\n    & .combobox-tag {\n      line-height: 1.375rem;\n    }\n  }\n\n  .combobox-field-input {\n    flex: 1 1 6rem;\n    min-width: 6rem;\n    height: 1.625rem;\n    padding: 0 0.25rem;\n    border: none;\n    outline: none;\n    background: transparent;\n    color: var(--foreground);\n    font: inherit;\n    font-size: 0.875rem;\n\n    &::placeholder {\n      color: var(--muted-foreground);\n    }\n  }\n\n  /* \"Create …\" row: a plus instead of the checkbox */\n  .combobox[data-multiple] .combobox-item.combobox-create {\n    color: var(--muted-foreground);\n\n    &::before {\n      border: none;\n      border-radius: 0;\n      background-color: currentColor;\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &[data-highlighted] {\n      color: var(--accent-foreground);\n    }\n  }\n\n  .combobox-content {\n    position: fixed;\n    inset: auto;\n    margin: 0;\n    padding: 0;\n    background-color: var(--popover);\n    color: var(--popover-foreground);\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    box-shadow: var(--shadow-md);\n    overflow: hidden;\n\n    /* -- Anchor positioning -- */\n    top: anchor(bottom);\n    left: anchor(left);\n    width: anchor-size(width);\n    margin-top: 4px;\n    position-try-fallbacks: flip-block;\n\n    /* -- Animation --------------------------------------------- */\n    opacity: 0;\n    transform: scale(0.96) translateY(-0.25rem);\n    transition:\n      opacity 150ms ease,\n      transform 150ms ease,\n      display 150ms allow-discrete;\n\n    &:popover-open {\n      opacity: 1;\n      transform: scale(1) translateY(0);\n    }\n  }\n\n  @starting-style {\n    .combobox-content:popover-open {\n      opacity: 0;\n      transform: scale(0.96) translateY(-0.25rem);\n    }\n  }\n\n  .combobox-search {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    padding: 0.5rem 0.75rem;\n    border-bottom: 1px solid var(--border);\n  }\n\n  .combobox-search-icon {\n    flex-shrink: 0;\n    color: var(--muted-foreground);\n  }\n\n  .combobox-search-input {\n    width: 100%;\n    border: none;\n    background: transparent;\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    color: var(--foreground);\n    outline: none;\n\n    &::placeholder {\n      color: var(--muted-foreground);\n    }\n  }\n\n  .combobox-listbox {\n    max-height: 16rem;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n    padding: 0.25rem;\n  }\n\n  .combobox-item {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    padding: 0.375rem 0.5rem;\n    border-radius: calc(var(--radius) * 0.6);\n    font-size: 0.875rem;\n    cursor: pointer;\n    outline: none;\n    transition: background 100ms;\n    /* room for the selection check; the ::before is absolute (like\n       .dropdown-check) so unselected rows never shift horizontally */\n    padding-inline-start: 1.5rem;\n    position: relative;\n\n    &:hover,\n    &[data-highlighted] {\n      background-color: var(--accent);\n      color: var(--accent-foreground);\n    }\n\n    /* Mask (not background-image): a data: URI SVG resolves currentColor to\n       BLACK when used as an image, making the check invisible in dark mode.\n       Masking paints it with background-color: currentColor - the real text\n       color, hover/foreground included. */\n    &[aria-selected=\"true\"]::before {\n      content: \"\";\n      position: absolute;\n      inset-inline-start: 0.375rem;\n      top: 50%;\n      transform: translateY(-50%);\n      width: 1rem;\n      height: 1rem;\n      background-color: currentColor;\n      mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\");\n      mask-size: contain;\n      mask-repeat: no-repeat;\n      flex-shrink: 0;\n    }\n\n    &[aria-disabled=\"true\"] {\n      pointer-events: none;\n      opacity: 0.5;\n    }\n\n    /* Author `display: flex` overrides the UA's [hidden] { display: none }\n       (author origin always wins), so filter()'s item.hidden = true left\n       non-matching options rendered - and clickable - in the list. */\n    &[hidden] {\n      display: none;\n    }\n  }\n\n  .combobox-empty {\n    padding: 1.5rem 0.5rem;\n    text-align: center;\n    font-size: 0.875rem;\n    color: var(--muted-foreground);\n  }\n\n  .combobox-group-label {\n    padding: 0.375rem 0.5rem;\n    font-size: 0.75rem;\n    font-weight: 600;\n    color: var(--muted-foreground);\n  }\n\n  .combobox-separator {\n    height: 1px;\n    background: var(--border);\n    margin: 0.25rem -0.25rem;\n  }\n\n  /* -- Accessibility ------------------------------------------ */\n\n  @media (prefers-reduced-motion: reduce) {\n    .combobox-content {\n      transition: none;\n    }\n    .combobox-item {\n      transition: none;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .combobox-content {\n      border-color: ButtonText;\n    }\n    .combobox-item {\n      &:hover,\n      &[data-highlighted] {\n        forced-color-adjust: none;\n        background: Highlight;\n        color: HighlightText;\n      }\n    }\n  }\n}\n\n/* ── components/search-filter/search-filter.css ── */\n/* -- Search & Filter component ----------------------------------\n   Two form controls for narrowing a list:\n   .search-box - a search field with a leading icon and a clear (×) button\n                 that shows only while there is something to clear\n   .filter     - category chips on native radios / checkboxes: pick one and\n                 the others step aside behind a reset (×) - CSS only */\n\n@layer components {\n  /* -- Search box ------------------------------------------------ */\n  .search-box {\n    /* the BOX draws the field frame; the input inside is bare, so the icon\n       and the clear button sit inside the border like one control */\n    box-sizing: border-box;\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    width: 100%;\n    height: 2.25rem;\n    padding-inline: 0.75rem 0.375rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-md);\n    background: var(--background);\n    color: var(--foreground);\n    font-size: 0.875rem;\n    font-family: var(--font-sans);\n    box-shadow: var(--shadow-xs);\n    cursor: text;\n    transition:\n      border-color 150ms,\n      box-shadow 150ms;\n\n    &:focus-within {\n      border-color: var(--ring);\n      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);\n    }\n\n    /* the leading icon (an <svg> or a lucide <i> before the input) */\n    & > :is(svg, i, .search-box-icon) {\n      flex: none;\n      width: 1em;\n      height: 1em;\n      color: var(--muted-foreground);\n    }\n\n    & > input {\n      flex: 1;\n      min-width: 0;\n      height: 100%;\n      margin: 0;\n      padding: 0;\n      border: 0;\n      outline: none;\n      background: transparent;\n      color: inherit;\n      font: inherit;\n      appearance: none;\n\n      &::placeholder {\n        color: var(--muted-foreground);\n      }\n      /* the box brings its own clear button - drop the UA's */\n      &::-webkit-search-cancel-button,\n      &::-webkit-search-decoration {\n        appearance: none;\n        display: none;\n      }\n      &:disabled {\n        cursor: not-allowed;\n      }\n    }\n\n    &:has(> input:disabled) {\n      background: var(--muted);\n      color: var(--muted-foreground);\n      box-shadow: none;\n      cursor: not-allowed;\n    }\n\n    &:has(> input[aria-invalid=\"true\"]) {\n      border-color: var(--destructive);\n      &:focus-within {\n        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);\n      }\n    }\n\n    /* -- Clear button: a CSS-drawn ×, only while there is text -------- */\n    & > .search-box-clear {\n      position: relative;\n      flex: none;\n      display: none;\n      width: 1.5rem;\n      height: 1.5rem;\n      margin: 0;\n      padding: 0;\n      border: 0;\n      border-radius: 999px;\n      background: transparent;\n      color: var(--muted-foreground);\n      cursor: pointer;\n      transition:\n        background-color 150ms,\n        color 150ms;\n\n      &::before,\n      &::after {\n        content: \"\";\n        position: absolute;\n        inset: 50% auto auto 50%;\n        width: 0.75rem;\n        height: 1.5px;\n        border-radius: 1px;\n        background: currentColor;\n        translate: -50% -50%;\n        rotate: 45deg;\n      }\n      &::after {\n        rotate: -45deg;\n      }\n\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 1px;\n      }\n    }\n\n    /* the runtime names the state: filled / searching = there is a value */\n    &:is([data-state-name=\"filled\"], [data-state-name=\"searching\"]) {\n      & > .search-box-clear {\n        display: block;\n      }\n      /* a trailing hint (a <kbd> shortcut, a scope label) steps aside */\n      & > :is(kbd, .search-box-hint) {\n        display: none;\n      }\n    }\n\n    & > :is(kbd, .search-box-hint) {\n      flex: none;\n      margin-inline-end: 0.125rem;\n    }\n\n    & > .search-box-hint {\n      color: var(--muted-foreground);\n      font-size: 0.75em;\n    }\n\n    /* -- Searching: a spinner stands in for the leading icon ---------- */\n    &::before {\n      content: \"\";\n      display: none;\n      flex: none;\n      box-sizing: border-box;\n      width: 1em;\n      height: 1em;\n      border: 2px solid color-mix(in oklch, var(--muted-foreground) 30%, transparent);\n      border-top-color: var(--muted-foreground);\n      border-radius: 50%;\n      animation: search-box-spin 700ms linear infinite;\n    }\n\n    &[data-state-name=\"searching\"] {\n      &::before {\n        display: block;\n      }\n      & > :is(svg, i, .search-box-icon) {\n        display: none;\n      }\n    }\n\n    /* -- Variants / shape / sizes ------------------------------------- */\n    &[data-variant=\"muted\"] {\n      background: var(--muted);\n      border-color: transparent;\n      box-shadow: none;\n    }\n\n    &[data-shape=\"pill\"] {\n      border-radius: 999px;\n      padding-inline-start: 0.875rem;\n    }\n\n    &[data-size=\"sm\"] {\n      height: 2rem;\n      padding-inline: 0.625rem 0.25rem;\n      font-size: 0.8125rem;\n      & > .search-box-clear {\n        width: 1.25rem;\n        height: 1.25rem;\n      }\n    }\n\n    &[data-size=\"lg\"] {\n      height: 2.75rem;\n      padding-inline: 1rem 0.5rem;\n      font-size: 1rem;\n      & > .search-box-clear {\n        width: 1.75rem;\n        height: 1.75rem;\n      }\n    }\n  }\n\n  /* -- Filter ------------------------------------------------------ */\n  .filter {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    /* chips space themselves (margin, not gap): a collapsed chip must take\n       no room at all, and a gap would stay behind it */\n    row-gap: 0.375rem;\n    /* chips collapse to and grow from width 0 - animate to/from auto */\n    interpolate-size: allow-keywords;\n    /* a <form> or <fieldset> host carries no box of its own */\n    margin: 0;\n    padding: 0;\n    border: 0;\n    min-width: 0;\n\n    /* every chip is a native radio / checkbox (or the reset button) -\n       appearance: none, the label drawn from aria-label */\n    & > input {\n      appearance: none;\n      box-sizing: border-box;\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      flex: none;\n      min-width: 0;\n      width: auto;\n      height: 2rem;\n      margin: 0 0.375rem 0 0;\n      padding: 0 0.875rem;\n      border: 1px solid var(--input);\n      border-radius: var(--radius-md);\n      overflow: hidden;\n      background: var(--background);\n      color: var(--foreground);\n      font: 500 0.875rem/1 var(--font-sans);\n      white-space: nowrap;\n      cursor: pointer;\n      box-shadow: var(--shadow-xs);\n      /* choosing a chip never jumps: the others shrink to nothing and the\n         reset grows, all in one glide, and the chosen chip slides along */\n      transition:\n        background-color 150ms,\n        color 150ms,\n        border-color 150ms,\n        width 250ms ease,\n        padding 250ms ease,\n        margin 250ms ease,\n        border-width 250ms ease,\n        opacity 200ms,\n        scale 250ms ease,\n        visibility 250ms allow-discrete;\n\n      &:is([type=\"radio\"], [type=\"checkbox\"]):not(.filter-reset)::after {\n        content: attr(aria-label);\n      }\n\n      /* a checkbox chip shows its box: several may be ticked */\n      &[type=\"checkbox\"]::before {\n        content: \"\";\n        flex: none;\n        box-sizing: border-box;\n        width: 0.875em;\n        height: 0.875em;\n        margin-inline-end: 0.5em;\n        border: 1.5px solid currentColor;\n        border-radius: 0.25em;\n        opacity: 0.7;\n      }\n      &[type=\"checkbox\"]:checked::before {\n        opacity: 1;\n        background: currentColor;\n        /* the tick is cut out of the filled box, so it shows the chip colour */\n        mask:\n          url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")\n            center / 85% no-repeat,\n          linear-gradient(#000 0 0);\n        mask-composite: exclude;\n      }\n\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n\n      &:checked {\n        background: var(--primary);\n        border-color: var(--primary);\n        color: var(--primary-foreground);\n      }\n\n      &:disabled {\n        opacity: 0.5;\n        cursor: not-allowed;\n        &:hover {\n          background: var(--background);\n          color: var(--foreground);\n        }\n      }\n    }\n\n    /* the reset: <input type=\"reset\" value=\"×\"> in a form, or a radio of\n       the group with .filter-reset outside one - a square ×, authored LAST\n       so it appears after the chosen chip and nothing moves under the\n       pointer */\n    & > :is(input[type=\"reset\"], .filter-reset) {\n      width: 2rem;\n      padding: 0;\n      font-size: 1.25rem;\n      font-weight: 400;\n      color: var(--muted-foreground);\n    }\n    & > .filter-reset::after {\n      content: \"×\";\n    }\n\n    /* -- Variants / shape / sizes ------------------------------------- */\n    &[data-variant=\"secondary\"] > input:checked {\n      background: var(--secondary);\n      border-color: var(--secondary);\n      color: var(--secondary-foreground);\n    }\n\n    &[data-variant=\"outline\"] > input:checked {\n      background: var(--background);\n      border-color: var(--foreground);\n      color: var(--foreground);\n      box-shadow: inset 0 0 0 1px var(--foreground);\n    }\n\n    &[data-shape=\"pill\"] > input {\n      border-radius: 999px;\n    }\n\n    &[data-size=\"sm\"] > input {\n      height: 1.75rem;\n      padding-inline: 0.625rem;\n      font-size: 0.75rem;\n      &:is([type=\"reset\"], .filter-reset) {\n        width: 1.75rem;\n        padding: 0;\n        font-size: 1rem;\n      }\n    }\n\n    &[data-size=\"lg\"] > input {\n      height: 2.5rem;\n      padding-inline: 1.125rem;\n      font-size: 1rem;\n      &:is([type=\"reset\"], .filter-reset) {\n        width: 2.5rem;\n        padding: 0;\n        font-size: 1.5rem;\n      }\n    }\n\n    /* -- Collapsed chips (after the sizes: these win) --------------------\n       nothing chosen yet (or the reset radio is the choice): no reset;\n       one chosen: the others step aside until the reset brings them back.\n       Collapsed = no width, no box, hidden from pointer, focus and the\n       radio group's arrow keys (visibility flips at the END of the glide\n       when hiding, at the start when showing). */\n    &:not(:has(> input:checked:not(.filter-reset))) > :is(input[type=\"reset\"], .filter-reset),\n    &:not([data-multiple]):has(> input:checked:not(.filter-reset))\n      > input:not(:checked, .filter-reset, [type=\"reset\"]) {\n      width: 0;\n      padding-inline: 0;\n      margin-inline-end: 0;\n      border-inline-width: 0;\n      opacity: 0;\n      scale: 0.8;\n      box-shadow: none;\n      visibility: hidden;\n      pointer-events: none;\n    }\n  }\n\n  @keyframes search-box-spin {\n    to {\n      rotate: 360deg;\n    }\n  }\n\n  /* -- Accessibility -------------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .search-box,\n    .search-box > .search-box-clear,\n    .filter > input {\n      transition: none;\n    }\n    /* the spinner still says \"working\" - slowly */\n    .search-box::before {\n      animation-duration: 2s;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .search-box {\n      border-color: var(--foreground);\n    }\n    .search-box > .search-box-clear {\n      color: var(--foreground);\n    }\n    .filter > input {\n      border-color: var(--foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .search-box {\n      border: 1px solid CanvasText;\n    }\n    .search-box:focus-within {\n      outline: 2px solid Highlight;\n    }\n    .search-box > .search-box-clear::before,\n    .search-box > .search-box-clear::after {\n      background: ButtonText;\n    }\n    .filter > input {\n      border: 1px solid ButtonText;\n    }\n    .filter > input:checked {\n      background: Highlight;\n      color: HighlightText;\n      forced-color-adjust: none;\n    }\n  }\n}\n\n/* ── components/form/form.css ── */\n/* -- Form component --------------------------------------------- */\n\n@layer components {\n  .form {\n    display: flex;\n    flex-direction: column;\n    gap: 1.5rem;\n  }\n\n  /* -- Form field -------------------------------------------- */\n  .form-field {\n    display: flex;\n    flex-direction: column;\n    gap: 0;\n\n    /* -- Horizontal orientation (label beside control) ------- */\n    &[data-orientation=\"horizontal\"] {\n      flex-direction: row;\n      align-items: start;\n      gap: 1rem;\n\n      & > .label {\n        margin-bottom: 0;\n        padding-top: 0.5rem;\n        min-width: 8rem;\n        flex-shrink: 0;\n      }\n    }\n\n    /* -- Invalid state -------------------------------------- */\n    &[data-invalid] {\n      & > .field-description {\n        color: var(--destructive);\n      }\n    }\n  }\n\n  /* -- Inline field (checkbox, switch, radio inline) -------- */\n  .form-field-inline {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n\n    & > .label {\n      margin-bottom: 0;\n    }\n  }\n\n  /* -- Notification / switch row layout --------------------- */\n  .form-field-row {\n    display: flex;\n    flex-direction: row;\n    align-items: start;\n    justify-content: space-between;\n    gap: 1rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    padding: 1rem;\n    box-shadow: var(--shadow-xs);\n\n    & > div {\n      display: flex;\n      flex-direction: column;\n      gap: 0.125rem;\n    }\n\n    & > div > .label {\n      margin-bottom: 0;\n      line-height: 1.4;\n    }\n\n    & > div > .field-description {\n      margin: 0;\n    }\n\n    &[data-disabled] {\n      opacity: 0.6;\n    }\n  }\n\n  /* -- Button actions row ----------------------------------- */\n  .form-actions {\n    display: flex;\n    gap: 0.5rem;\n    align-items: center;\n    padding-top: 0.5rem;\n  }\n\n  /* -- Fieldset --------------------------------------------- */\n  .form-fieldset {\n    border: none;\n    padding: 0;\n    margin: 0;\n    display: flex;\n    flex-direction: column;\n    gap: 1rem;\n\n    & > legend {\n      font-size: 0.875rem;\n      font-weight: 500;\n      font-family: var(--font-sans);\n      color: var(--foreground);\n      padding: 0;\n      margin-bottom: 0.25rem;\n    }\n\n    & > .field-description {\n      margin: -0.25rem 0 0.5rem;\n    }\n  }\n\n  /* -- Form group (vertical stack of fields) ---------------- */\n  .form-group {\n    display: flex;\n    flex-direction: column;\n    gap: 0.75rem;\n  }\n\n  /* -- Accessibility ---------------------------------------- */\n  @media (prefers-contrast: more) {\n    .form-field-row {\n      border-width: 2px;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .form-field-row {\n      border-color: ButtonBorder;\n    }\n\n    .form-fieldset > legend {\n      color: LinkText;\n    }\n  }\n}\n"],"names":[]}