/* Faunder UI paper 0.6.14 */
/* Paper: warm surfaces, quiet controls and editorial typography. Load after Faunder UI and apply with ui-theme="paper". */
@layer core, theme, utility;
/* library/themes/paper/fonts.css */
/* Paper's Lora and DM Sans, latin and latin-ext, served from the fonts/ folder beside this stylesheet (SIL Open Font License: fonts/DMSans-OFL.txt and fonts/Lora-OFL.txt). Bundled theme files keep the same relative URLs, so deploy fonts/ next to them. */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-400-italic.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext-400-italic.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext-400-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-500-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext-500-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-600-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext-600-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-700-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext-700-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-400-italic.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-ext-400-italic.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-400-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-ext-400-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-500-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-ext-500-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-600-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/lora-latin-ext-600-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@layer theme {
/* library/themes/paper/palette.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper uses the Tailwind CSS scales directly (stone, green and sky) with muted hues. A ui-chroma attribute on the theme element or an ancestor overrides it. */
  :where(:scope:not([ui-chroma], [ui-chroma] *)) {
    --ui-chroma: 0.3;
  }
}

}
@layer theme {
/* library/themes/paper/reset.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper surfaces follow the inherited color mode on the theme element, the page body and each mode boundary. */
  :where(:is(:scope, body, [ui-theme~="system"], [ui-theme~="system-invert"], [ui-theme~="light"], [ui-theme~="dark"]):not([ui-off])) {
    background: light-dark(var(--ui-stone-50), var(--ui-stone-950));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    font-family: "DM Sans", sans-serif;
  }

  /* Focus outline for keyboard focus. */
  :where(:focus-visible:not([ui-off])) {
    outline: 2px solid light-dark(var(--ui-green-600), var(--ui-green-300));
    outline-offset: 3px;
  }
}

}
@layer theme {
/* library/themes/paper/seperator.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(hr:not([ui-off])) {
    background: light-dark(var(--ui-stone-200), var(--ui-stone-800));
  }
}

}
@layer theme {
/* library/themes/paper/font.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Editorial headings; explicit text utilities retain their typography. */
  :where([ui-heading]:not([ui-off], [ui-text]), [ui-typeset]:not([ui-off]) :is(h1, h2, h3, h4, h5, h6):not([ui-off], [ui-text])) {
    font-family: "Lora", Georgia, serif;
    letter-spacing: -0.025em;
    font-weight: 400;
  }
}

}
@layer theme {
/* library/themes/paper/inline.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(mark:not([ui-off])) {
    background: light-dark(var(--ui-amber-100), var(--ui-amber-800));
    color: light-dark(var(--ui-stone-900), var(--ui-amber-100));
  }
}

}
@layer theme {
/* library/themes/paper/kbd.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper keyboard key styling. */
  :where(kbd:not([ui-off])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    border-radius: 3px;
    background: light-dark(var(--ui-stone-100), var(--ui-stone-900));
  }
}

}
@layer theme {
/* library/themes/paper/code.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper code: rounded corners. */
  :where(code:not([ui-off]):not(pre > code), pre:not([ui-off]):has(> code)) {
    border-radius: 4px;
  }
}

}
@layer theme {
/* library/themes/paper/link.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(a:not([ui-off], [ui-button], [ui-card], [ui-badge]:not([ui-off])), [ui-link]:not([ui-off], [ui-button], [ui-card], [ui-badge]:not([ui-off]))) {
    color: light-dark(var(--ui-green-800), var(--ui-green-200));
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    &:where(:hover) {
      color: light-dark(var(--ui-green-600), var(--ui-green-100));
    }
    &:where(:active) {
      color: light-dark(var(--ui-green-500), var(--ui-green-50));
    }
    &:where([ui-link~="inherit"]) {
      color: inherit;
      &:where(:hover) {
        color: light-dark(var(--ui-green-600), var(--ui-green-100));
      }
      &:where(:active) {
        color: light-dark(var(--ui-green-500), var(--ui-green-50));
      }
    }
  }
}

}
@layer theme {
/* library/themes/paper/input.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(input:not([type]),
    input:is([type="text"],
    [type="email"],
    [type="password"],
    [type="number"],
    [type="url"],
    [type="tel"],
    [type="search"],
    [type="date"],
    [type="datetime"],
    [type="datetime-local"],
    [type="month"],
    [type="week"],
    [type="time"],
    [list]),
    textarea,
    select):where(:not([ui-off],
    [ui-button])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    border-radius: 4px;
    background-color: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    &:where(:hover) {
      border-color: var(--ui-stone-500);
    }
    &:where(:user-invalid, [aria-invalid="true"]) {
      border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
    }
    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background-color: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      color: light-dark(
        color-mix(in oklch, var(--ui-stone-500) 77%, var(--ui-stone-600)),
        color-mix(in oklch, var(--ui-stone-500) 88%, var(--ui-stone-400))
      );
    }
    &::placeholder {
      color: var(--ui-stone-500);
    }
  }

  :where([ui-input-otp]:not([ui-off]))::after {
    border-radius: 4px;
  }

  :where([ui-input-otp]:not([ui-off]) input[maxlength="4"]:not([ui-off]),
    [ui-input-otp]:not([ui-off]) input[maxlength="5"]:not([ui-off]),
    [ui-input-otp]:not([ui-off]) input[maxlength="6"]:not([ui-off]),
    [ui-input-otp]:not([ui-off]) input[maxlength="7"]:not([ui-off]),
    [ui-input-otp]:not([ui-off]) input[maxlength="8"]:not([ui-off])) {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
  }
}

}
@layer theme {
/* library/themes/paper/textarea.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where([ui-textarea]:not(textarea):not([ui-off])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    border-radius: 4px;
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    box-shadow: none;
  }

  :where([ui-textarea]:not([ui-off]) > textarea:not([ui-off])) {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    outline: none;
  }

  :where([ui-textarea]:not([ui-off]) > header, [ui-textarea]:not([ui-off]) > footer) {
    color: var(--ui-stone-500);
  }

  :where([ui-textarea]:not([ui-off]):has(> textarea:focus-visible)) {
    border-color: light-dark(var(--ui-stone-500), var(--ui-stone-400));
    box-shadow: 0 0 0 3px light-dark(
      color-mix(in oklch, var(--ui-stone-500) 50%, transparent),
      color-mix(in oklch, var(--ui-stone-400) 50%, transparent)
    );
  }

  :where([ui-textarea]:not([ui-off]):has(> textarea:is(:user-invalid, [aria-invalid="true"]))) {
    border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
  }

  :where([ui-textarea]:not([ui-off]):has(> textarea:focus-visible:is(:user-invalid, [aria-invalid="true"]))) {
    box-shadow: 0 0 0 3px light-dark(
      color-mix(in oklch, var(--ui-red-600) 20%, transparent),
      color-mix(in oklch, var(--ui-red-400) 40%, transparent)
    );
  }

  :where([ui-textarea]:not([ui-off]):has(> textarea:disabled)) {
    border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
    background: light-dark(var(--ui-stone-100), var(--ui-stone-950));
    color: light-dark(var(--ui-stone-500), var(--ui-stone-400));
    box-shadow: none;
  }
}

}
@layer theme {
/* library/themes/paper/select.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Keep the shared select behavior and adjust the disabled colors. */
  :where(select:not([ui-button], [ui-off])) {
    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background-color: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      color: var(--ui-stone-500);
    }
  }
}

}
@layer theme {
/* library/themes/paper/checkbox.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(input[type="checkbox"]:not([ui-off], [ui-switch], [ui-toggle])) {
    border-color: light-dark(var(--ui-stone-400), var(--ui-stone-600));
    border-radius: 3px;
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    &:where(:hover) {
      background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
    }
    &:where(:checked, :indeterminate) {
      border-color: light-dark(var(--ui-green-950), var(--ui-green-800));
      background: light-dark(var(--ui-green-950), var(--ui-green-300));
      &::after {
        background: light-dark(var(--ui-white), var(--ui-stone-950));
        border-color: var(--ui-stone-50);
      }
      &:where(:hover) {
        background: light-dark(var(--ui-green-900), var(--ui-green-200));
      }
    }
    &:where(:user-invalid, [aria-invalid="true"]) {
      border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
    }
    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      &::after {
        border-color: light-dark(var(--ui-stone-400), var(--ui-stone-500));
      }
    }
    &:where(:disabled):where(:checked, :indeterminate) {
      background: light-dark(var(--ui-stone-200), var(--ui-stone-700));
    }
  }
}

}
@layer theme {
/* library/themes/paper/radio.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(input[type="radio"]:not([ui-off], [ui-switch], [ui-toggle])) {
    border-color: light-dark(var(--ui-stone-400), var(--ui-stone-600));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    &:where(:hover) {
      background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
    }
    &:where(:checked) {
      border-color: light-dark(var(--ui-green-950), var(--ui-green-800));
      background: light-dark(var(--ui-green-950), var(--ui-green-300));
      &::after {
        background: light-dark(var(--ui-stone-50), var(--ui-stone-950));
      }
      &:where(:hover) {
        background: light-dark(var(--ui-green-900), var(--ui-green-200));
      }
    }
    &:where(:user-invalid, [aria-invalid="true"]) {
      border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
    }
    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      &::after {
        background: light-dark(var(--ui-stone-400), var(--ui-stone-500));
      }
    }
    &:where(:checked:disabled) {
      background: light-dark(var(--ui-stone-200), var(--ui-stone-700));
    }
  }
}

}
@layer theme {
/* library/themes/paper/switch.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper switch: quiet surfaces and deep green checked state on the dedicated API. */
  :where(input[type="checkbox"][ui-switch]:not([ui-off])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    border-radius: 999px;
    background: light-dark(var(--ui-stone-200), var(--ui-stone-800));

    &::before {
      border-radius: 50%;
      background: light-dark(var(--ui-stone-50), var(--ui-stone-400));
    }

    &:where(:hover) {
      background: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    }

    &:where(:checked) {
      border-color: light-dark(var(--ui-green-950), var(--ui-green-800));
      background: light-dark(var(--ui-green-950), var(--ui-green-300));

      &::before {
        background: light-dark(var(--ui-stone-50), var(--ui-stone-950));
      }

      &:where(:hover) {
        background: light-dark(var(--ui-green-900), var(--ui-green-200));
      }
    }

    &:where(:user-invalid, [aria-invalid="true"]) {
      border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
    }

    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background: light-dark(var(--ui-stone-100), var(--ui-stone-950));

      &::before {
        background: light-dark(var(--ui-stone-300), var(--ui-stone-700));
      }
    }

    &:where(:checked:disabled) {
      background: light-dark(var(--ui-stone-300), var(--ui-stone-700));

      &::before {
        background: light-dark(var(--ui-stone-100), var(--ui-stone-500));
      }
    }
  }
}

}
@layer theme {
/* library/themes/paper/accordion.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper accordion: separator color. */
  :where([ui-accordion]:not([ui-off]) > details) {
    border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
  }
}

}
@layer theme {
/* library/themes/paper/collapsible.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper collapsible: summary weight. */
  :where(details[ui-collapsible]:not([ui-off]) > summary:not([ui-heading], [ui-text])) {
    font-weight: 500;
  }
}

}
@layer theme {
/* library/themes/paper/card.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where([ui-card]:not([ui-off])) {
    border: 1px solid light-dark(var(--ui-stone-200), var(--ui-stone-800));
    border-radius: 4px;
    box-shadow: none;
    background-color: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    &:where(a):hover {
      background-color: light-dark(var(--ui-stone-100), var(--ui-stone-800));
    }
    &:where(a):active {
      background-color: light-dark(var(--ui-stone-200), var(--ui-stone-700));
    }
  }
  :where([ui-card]:not([ui-off]) > :is(img, picture, video, figure):not([ui-off]):first-child) {
    border-start-start-radius: 3px;
    border-start-end-radius: 3px;
  }
  :where([ui-card]:not([ui-off]) > :is(img, picture, video, figure):not([ui-off]):last-child) {
    border-end-start-radius: 3px;
    border-end-end-radius: 3px;
  }
}

}
@layer theme {
/* library/themes/paper/item.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* A linked Item is a complete clickable row, not a text link. */
  :where(a[ui-item]:not([ui-off]), a[ui-item]:not([ui-off]):hover, a[ui-item]:not([ui-off]):active) {
    color: inherit;
    text-decoration: none;
  }

  :where([ui-item]:not([ui-off])) { border-radius: 4px; }
}

}
@layer theme {
/* library/themes/paper/breadcrumb.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Breadcrumb links should remain muted navigation links, not generic body links. */
  :where([ui-breadcrumb]:not([ui-off]) > ol > li > a:not([ui-off])) {
    color: light-dark(var(--ui-stone-500), var(--ui-stone-400));
    text-decoration: none;
  }
  :where([ui-breadcrumb]:not([ui-off]) > ol > li > a:not([ui-off]):hover) {
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    text-decoration: none;
  }
  :where([ui-breadcrumb]:not([ui-off]) > ol > li > details > ul > li > a:not([ui-off])) {
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    text-decoration: none;
  }
  :where([ui-breadcrumb]:not([ui-off]) > ol > li > details > ul > li > a:not([ui-off]):hover,
         [ui-breadcrumb]:not([ui-off]) > ol > li > details > ul > li > a:not([ui-off]):focus-visible) {
    color: light-dark(var(--ui-stone-950), var(--ui-stone-50));
    text-decoration: none;
  }
}

}
@layer theme {
/* library/themes/paper/button.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where([ui-button],
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off]))):where(:not([ui-off],
    [ui-link],
    [ui-badge],
    input[type="checkbox"],
    input[type="radio"])) {
    border-color: light-dark(var(--ui-color-300, var(--ui-stone-300)), var(--ui-color-700, var(--ui-stone-700)));
    border-radius: 999px;
    background: light-dark(var(--ui-color-50, var(--ui-stone-50)), var(--ui-color-900, var(--ui-stone-900)));
    color: light-dark(var(--ui-color-900, var(--ui-stone-900)), var(--ui-color-100, var(--ui-stone-100)));
    @media (hover: hover) {
      &:where(:hover) {
        background: light-dark(var(--ui-color-100, var(--ui-stone-100)), var(--ui-color-800, var(--ui-stone-800)));
      }
    }
    &:where(:active, :has(input:checked)) {
      background: light-dark(var(--ui-color-200, var(--ui-stone-200)), var(--ui-color-700, var(--ui-stone-700)));
    }
    &:where(:disabled) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
      background: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      color: var(--ui-stone-500);
    }
    &:where([aria-busy="true"]:not(input[type="button"], input[type="submit"], input[type="reset"])) {
      background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
      color: transparent;
      &::after {
        background: light-dark(var(--ui-stone-900), var(--ui-stone-100));
      }
    }
    &:where([ui-button~="primary"]) {
      border-color: transparent;
      background: light-dark(var(--ui-green-950), var(--ui-stone-50));
      color: light-dark(var(--ui-stone-50), var(--ui-stone-950));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-green-900), var(--ui-stone-100));
        }
      }
      &:where(:active, :has(input:checked)) {
        background: light-dark(var(--ui-green-800), var(--ui-stone-200));
      }
      &:where(:disabled) {
        border-color: transparent;
        background: light-dark(var(--ui-stone-300), var(--ui-stone-700));
        color: light-dark(var(--ui-stone-600), var(--ui-stone-400));
      }
      &:where([aria-busy="true"]:not(input[type="button"], input[type="submit"], input[type="reset"])) {
        background: light-dark(var(--ui-green-950), var(--ui-stone-50));
        color: transparent;
        &::after {
          background: light-dark(var(--ui-stone-50), var(--ui-stone-950));
        }
      }
    }
    &:where([ui-button~="outline"]) { background: transparent; }
    &:where([ui-button~="ghost"], label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle~="ghost"]:not([ui-off]))) {
      border-color: transparent;
      background: transparent;
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
        }
      }
      &:where(:active, :has(input:checked)) {
        background: light-dark(var(--ui-stone-200), var(--ui-stone-700));
      }
      &:where(:disabled) {
        background: transparent;
      }
      &:where([aria-busy="true"]:not(input[type="button"], input[type="submit"], input[type="reset"])) {
        background: transparent;
      }
    }
    &:where([ui-button~="square"]) {
      border-radius: 4px;
    }
    &:where([ui-button~="circle"]) {
      border-radius: 50%;
    }
    &:where([ui-button~="inline"]) {
      border-color: transparent;
      border-radius: 0;
      background: transparent;
      @media (hover: hover) {
        &:where(:hover) {
          background: transparent;
          color: light-dark(var(--ui-green-600), var(--ui-green-200));
        }
      }
      &:where(:active, :has(input:checked)) {
        background: transparent;
        color: light-dark(var(--ui-green-500), var(--ui-green-300));
      }
      &:where(:disabled) {
        background: transparent;
        color: var(--ui-stone-500);
      }
      &:where([aria-busy="true"]) {
        background: transparent;
        color: transparent;
      }
    }
    &:where([ui-button~="darker"]:not([ui-button~="primary"], [ui-button~="inline"]):not(:disabled, [aria-busy="true"])) {
      border-color: light-dark(var(--ui-stone-400), var(--ui-stone-800));
      background: light-dark(var(--ui-stone-100), var(--ui-stone-950));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-stone-200), var(--ui-stone-900));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-stone-300), var(--ui-stone-800));
      }
    }
    &:where([ui-button~="lighter"]:not([ui-button~="primary"], [ui-button~="inline"]):not(:disabled, [aria-busy="true"])) {
      border-color: light-dark(var(--ui-stone-200), var(--ui-stone-600));
      background: light-dark(var(--ui-white), var(--ui-stone-800));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-stone-50), var(--ui-stone-700));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-stone-100), var(--ui-stone-600));
      }
    }
    &:where([ui-button~="primary"][ui-button~="darker"]:not(:disabled, [aria-busy="true"])) {
      background: light-dark(var(--ui-black), var(--ui-stone-100));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-green-950), var(--ui-stone-200));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-green-900), var(--ui-stone-300));
      }
    }
    &:where([ui-button~="primary"][ui-button~="lighter"]:not(:disabled, [aria-busy="true"])) {
      background: light-dark(var(--ui-green-900), var(--ui-white));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-green-800), var(--ui-stone-50));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-green-700), var(--ui-stone-100));
      }
    }
    &:where([ui-button~="darker"][ui-button~="ghost"]):not(:disabled, [aria-busy="true"]) {
      color: light-dark(var(--ui-stone-950), var(--ui-stone-200));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-stone-200), var(--ui-stone-900));
          color: light-dark(var(--ui-stone-800), var(--ui-stone-500));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-stone-300), var(--ui-stone-800));
        color: light-dark(var(--ui-stone-800), var(--ui-stone-500));
      }
    }
    &:where([ui-button~="lighter"][ui-button~="ghost"]):not(:disabled, [aria-busy="true"]) {
      color: light-dark(var(--ui-stone-800), var(--ui-white));
      @media (hover: hover) {
        &:where(:hover) {
          background: light-dark(var(--ui-white), var(--ui-stone-700));
          color: light-dark(var(--ui-stone-600), var(--ui-stone-300));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        background: light-dark(var(--ui-stone-50), var(--ui-stone-600));
        color: light-dark(var(--ui-stone-600), var(--ui-stone-300));
      }
    }
    &:where([ui-button~="darker"][ui-button~="inline"]):not(:disabled, [aria-busy="true"]) {
      color: light-dark(var(--ui-stone-950), var(--ui-stone-200));
      @media (hover: hover) {
        &:where(:hover) {
          color: light-dark(var(--ui-green-700), var(--ui-green-300));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        color: light-dark(var(--ui-green-600), var(--ui-green-400));
      }
    }
    &:where([ui-button~="lighter"][ui-button~="inline"]):not(:disabled, [aria-busy="true"]) {
      color: light-dark(var(--ui-stone-800), var(--ui-white));
      @media (hover: hover) {
        &:where(:hover) {
          color: light-dark(var(--ui-green-500), var(--ui-green-100));
        }
      }
      &:where(:active), &:where(:has(input:checked)) {
        color: light-dark(var(--ui-green-400), var(--ui-green-200));
      }
    }
  }

  /* A named palette colors the Paper button treatment. */
  :where([ui-color]:is([ui-button]:not(input[type="checkbox"], input[type="radio"]), button, input[type="button"], input[type="submit"], input[type="reset"]):not([ui-off], [ui-link], :disabled, [aria-busy="true"])) {
    border-color: light-dark(var(--ui-color-300), var(--ui-color-700));
    background: light-dark(var(--ui-color-50), var(--ui-color-900));
    color: light-dark(var(--ui-color-900), var(--ui-color-100));
    &:where(:focus-visible) { outline-color: light-dark(var(--ui-color-600), var(--ui-color-300)); }
    @media (hover: hover) {
      &:where(:hover) { background: light-dark(var(--ui-color-100), var(--ui-color-800)); }
    }
    &:where(:active) { background: light-dark(var(--ui-color-200), var(--ui-color-700)); }
  }

  :where([ui-color][ui-button~="primary"]:not([ui-off], [ui-link], :disabled, [aria-busy="true"])) {
    border-color: transparent;
    background: light-dark(var(--ui-color-950), var(--ui-color-600));
    color: var(--ui-color-50);
    @media (hover: hover) {
      &:where(:hover) { background: light-dark(var(--ui-color-900), var(--ui-color-700)); }
    }
    &:where(:active) { background: light-dark(var(--ui-color-800), var(--ui-color-800)); }
  }

  :where([ui-color][ui-button~="outline"]:not([ui-off], [ui-link], :disabled, [aria-busy="true"])) {
    border-color: light-dark(var(--ui-color-300), var(--ui-color-700));
    background: transparent;
    color: light-dark(var(--ui-color-900), var(--ui-color-100));
    @media (hover: hover) {
      &:where(:hover) { background: light-dark(var(--ui-color-100), var(--ui-color-800)); }
    }
    &:where(:active) { background: light-dark(var(--ui-color-200), var(--ui-color-700)); }
  }

  :where([ui-color][ui-button~="ghost"]:not([ui-off], [ui-link], :disabled, [aria-busy="true"])) {
    border-color: transparent;
    background: transparent;
    @media (hover: hover) {
      &:where(:hover) { background: light-dark(var(--ui-color-100), var(--ui-color-800)); }
    }
    &:where(:active) { background: light-dark(var(--ui-color-200), var(--ui-color-700)); }
  }

  :where([ui-color]:is([ui-button~="link"], [ui-button~="inline"]):not([ui-off], [ui-link], :disabled, [aria-busy="true"])) {
    border-color: transparent;
    background: transparent;
    color: light-dark(var(--ui-color-900), var(--ui-color-100));
    @media (hover: hover) { &:where(:hover) { color: light-dark(var(--ui-color-600), var(--ui-color-200)); } }
    &:where(:active) { color: light-dark(var(--ui-color-500), var(--ui-color-300)); }
  }

  :where([ui-color][aria-busy="true"]:is([ui-button]:not(input[type="checkbox"], input[type="radio"]), button, input[type="button"], input[type="submit"], input[type="reset"]):not([ui-off], [ui-link])) {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: light-dark(var(--ui-color-100), var(--ui-color-900));
    &::after { background: light-dark(var(--ui-color-900), var(--ui-color-100)); }
    &:where([ui-button~="primary"]) {
      background: light-dark(var(--ui-color-950), var(--ui-color-600));
      &::after { background: var(--ui-color-50); }
    }
    &:where([ui-button~="outline"]) {
      border-color: light-dark(var(--ui-color-300), var(--ui-color-700));
      background: transparent;
    }
    &:where([ui-button~="ghost"], [ui-button~="link"], [ui-button~="inline"]) {
      background: transparent;
      &::after { background: light-dark(var(--ui-color-900), var(--ui-color-100)); }
    }
  }

  :where(label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:checked:enabled:not([ui-off]))) {
    background: light-dark(
      oklch(from var(--ui-stone-50) calc(l - 2%) c h),
      oklch(from var(--ui-stone-900) calc(l - 2%) c h)
    );
  }
}

}
@layer theme {
/* library/themes/paper/calendar.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where([ui-calendar]:not([ui-off]) td > label:has(> input:checked) > span[ui-button~="ghost"]:not([ui-off])) {
    border-color: transparent;
    background: light-dark(var(--ui-green-950), var(--ui-stone-50));
    color: light-dark(var(--ui-stone-50), var(--ui-stone-950));
  }

  :where([ui-calendar]:not([ui-off]) td > label:has(> input[type="checkbox"]) > span[ui-button~="circle"]:not([ui-off])) {
    border-radius: 0.375rem;
  }

  @media (hover: hover) {
    :where([ui-calendar]:not([ui-off]) td > label:has(> input:checked) > span[ui-button~="ghost"]:not([ui-off]):hover) {
      background: light-dark(var(--ui-green-900), var(--ui-stone-100));
    }
  }
}

}
@layer theme {
/* library/themes/paper/dialog.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  :where(dialog[ui-dialog]:not([ui-off])) {
    border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
    border-radius: 6px;
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    box-shadow: 0 16px 48px -16px oklch(from var(--ui-stone-950) l c h / 18%);
    &:where([ui-dialog~="sheet"]) {
      border-radius: 0;
    }
  }

  :where(dialog[ui-dialog]:not([ui-off]))::backdrop {
    background: light-dark(oklch(from var(--ui-stone-950) l c h / 30%), oklch(from var(--ui-black) l c h / 60%));
  }
}

}
@layer theme {
/* library/themes/paper/menu.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper menu surface and native action rows. */
  :where([ui-menu]:not([ui-off]) details > [role="group"]:not([ui-off])) {
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
  }

  :where([ui-menu]:not([ui-off]):not([ui-menu~="unframed"]):not([ui-off])) {
    border-color: light-dark(var(--ui-stone-200), var(--ui-stone-800));
    border-radius: 0.25rem;
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
    box-shadow: 0 8px 24px -8px oklch(from var(--ui-stone-950) l c h / 12%);
  }

  :where([ui-menu]:not([ui-off]) :is(button, a, summary):not([ui-off])) {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
  }

  :where([ui-menu]:not([ui-off]) :is(button, a, summary):not([ui-off]):focus-visible) {
    outline: 2px solid light-dark(var(--ui-stone-600), var(--ui-stone-300));
    outline-offset: -2px;
    box-shadow: none;
  }

  @media (hover: hover) {
    :where([ui-menu]:not([ui-off]) :is(button, a, summary):not([ui-off]):not(:disabled, [aria-disabled="true"]):hover) {
      background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
      color: inherit;
    }

    :where([ui-menu]:not([ui-off]) :is(button, a)[ui-color]:not([ui-off]):not(:disabled, [aria-disabled="true"]):hover) {
      background: light-dark(var(--ui-color-50), var(--ui-color-800));
      color: light-dark(var(--ui-color-600), var(--ui-color-300));
    }

    :where([ui-menu]:not([ui-off]) label:has(> input:is([type="checkbox"], [type="radio"])):hover) {
      background: light-dark(var(--ui-stone-100), var(--ui-stone-800));
    }
  }

  :where([ui-menu]:not([ui-off]) :is(button, a, summary):not([ui-off]):active) {
    background: light-dark(var(--ui-stone-200), var(--ui-stone-700));
    transform: none;
  }

  :where([ui-menu]:not([ui-off]) :is(button, a, summary):not([ui-off]):disabled) {
    background: transparent;
    color: var(--ui-stone-500);
  }

  :where([ui-menu]:not([ui-off]) :is(button, a)[ui-color]:not([ui-off])) {
    color: light-dark(var(--ui-color-600), var(--ui-color-400));
  }
}

}
@layer theme {
/* library/themes/paper/field.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Description color never replaces an explicit typography utility. */
  :where([ui-field]:not([ui-off]) > p:not([ui-off], [ui-text], [role])) {
    color: light-dark(var(--ui-stone-600), var(--ui-stone-400));
  }
  :where([ui-field]:not([ui-off]) > p[role="alert"]:not([ui-off], [ui-text])) {
    color: light-dark(var(--ui-red-600), var(--ui-red-300));
  }
}

}
@layer theme {
/* library/themes/paper/group.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Paper group segments use the Paper input or button radius at the edges. */
  :where([ui-group]:not([ui-off])) {
    border: 1px solid light-dark(var(--ui-stone-300), var(--ui-stone-700));
    border-radius: 999px;
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    color: light-dark(var(--ui-stone-900), var(--ui-stone-100));
  }
  :where([ui-group]:not([ui-off]):has(:is(
    input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"]),
    textarea,
    select
  ):not([ui-off], [popover]))) { border-radius: 4px; }
  :where([ui-group]:not([ui-off]):hover) { border-color: var(--ui-stone-500); }
  :where([ui-group]:not([ui-off]):has(:focus-visible)) { border-color: light-dark(var(--ui-stone-500), var(--ui-stone-400)); }
  :where([ui-group]:not([ui-off]):has(:is(input, textarea, select):is(:user-invalid, [aria-invalid="true"]))) {
    border-color: light-dark(var(--ui-red-600), var(--ui-red-400));
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover])) { border-radius: inherit; }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-border]):not(:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off])))) {
    border: 0;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-button], button, input[type="button"], input[type="submit"], input[type="reset"]):not(:focus-visible):not(:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off])))) {
    box-shadow: none;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover]):nth-child(1 of :not([hidden], [ui-off], [popover]))) {
    border-start-start-radius: inherit;
    border-end-start-radius: inherit;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover]):nth-last-child(1 of :not([hidden], [ui-off], [popover]))) {
    border-start-end-radius: inherit;
    border-end-end-radius: inherit;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover]):has(~ :not([hidden], [ui-off], [popover]))) {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-border]):not(:nth-child(1 of :not([hidden], [ui-off], [popover])))) {
    border-inline-start-width: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-border], [role="separator"]):has(+ :is(button, a[ui-button], input[type="button"], input[type="submit"], input[type="reset"], label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off]))):not([hidden], [ui-off], [popover]))) {
    border-inline-end-width: 0;
  }
  :where([ui-group]:not([ui-off]) > label:not([hidden], [ui-off], [popover], [ui-border]):has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off])):has(+ :not([hidden], [ui-off], [popover]))) {
    border-inline-end-width: 0;
  }
  :where([ui-group]:not([ui-off]) > :is(button, a[ui-button], input[type="button"], input[type="submit"], input[type="reset"], label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off]))):not([hidden], [ui-off], [popover], [ui-border]) + :not([hidden], [ui-off], [popover], [ui-border], [role="separator"]):not(:nth-child(1 of :not([hidden], [ui-off], [popover])))) {
    border-inline-start: 1px solid color-mix(in oklch, currentColor 10%, transparent);
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-border], [role="separator"]):not(:is(button, a[ui-button], input[type="button"], input[type="submit"], input[type="reset"], label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off])))) + :is(button, a[ui-button], input[type="button"], input[type="submit"], input[type="reset"], label:has(> :is(input[type="checkbox"], input[type="radio"])[ui-toggle]:not([ui-off]))):not([hidden], [ui-off], [popover], [ui-border]):not(:nth-child(1 of :not([hidden], [ui-off], [popover])))) {
    border-inline-start: 1px solid color-mix(in oklch, currentColor 10%, transparent);
  }
  :where([ui-group]:not([ui-off]) > :not([hidden], [ui-off], [popover], [ui-border], [role="separator"]) + :is(button, a[ui-button], input[type="button"], input[type="submit"], input[type="reset"])[ui-button~="primary"]:not([hidden], [ui-off], [popover], [ui-border]):not(:nth-child(1 of :not([hidden], [ui-off], [popover])))) {
    border-inline-start-color: color-mix(in oklch, currentColor 25%, transparent);
  }
  :where([ui-group]:not([ui-off]) > [ui-seperator][role="separator"]:not([popover], [ui-off])) {
    box-sizing: border-box;
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    border-inline-start: 1px solid color-mix(in oklch, currentColor 10%, transparent);
    background: transparent;
  }
}

}
@layer theme {
/* library/themes/paper/alert.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Quiet paper callouts; status typography remains supplied by ui-text. */
  :where([ui-alert]:not([ui-off])) {
    border-radius: 4px;
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-100), var(--ui-stone-900));
  }
}

}
@layer theme {
/* library/themes/paper/popover.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Floating stationery surface; native placement and dismissal remain in Core. */
  :where([ui-popover]:not([ui-off]) > [popover]:not([ui-off])) {
    border-radius: 4px;
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--ui-black) 20%, transparent);
  }
}

}
@layer theme {
/* library/themes/paper/menubar.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Compact command strip, matching the Paper menu rather than pill buttons. */
  :where([ui-menubar]:not([ui-off]) > ul:not([ui-off])) {
    border-radius: 4px;
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    box-shadow: none;
  }
  :where([ui-menubar]:not([ui-off]) > ul > li > button:not([ui-off])) { border-radius: 3px; }
}

}
@layer theme {
/* library/themes/paper/resizable.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* The native resize handle remains available on a flat paper panel. */
  :where([ui-resizable]:not([ui-off])) {
    border-radius: 4px;
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
  }
}

}
@layer theme {
/* library/themes/paper/message.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Letter-like corners; palette and incoming/outgoing states stay in Core. */
  :where([ui-message]:not([ui-off]) > div > p:not([ui-off])) { border-radius: 4px; }
}

}
@layer theme {
/* library/themes/paper/pagination.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Page links are navigation controls, not prose links. */
  :where([ui-pagination]:not([ui-off]) a:not([ui-off])) { text-decoration: none; }
  :where([ui-pagination]:not([ui-off]) a[aria-current="page"]:not([ui-off])) {
    border-color: light-dark(var(--ui-green-700), var(--ui-green-300));
    color: light-dark(var(--ui-green-900), var(--ui-green-100));
  }
}

}
@layer theme {
/* library/themes/paper/progress.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* A thin botanical progress stroke on warm paper. */
  :where(progress[ui-progress]:not([ui-off])) { accent-color: light-dark(var(--ui-green-700), var(--ui-green-300)); }
  :where(progress[ui-progress]:not([ui-off], [ui-color]))::-webkit-progress-value { background: light-dark(var(--ui-green-700), var(--ui-green-300)); }
  :where(progress[ui-progress]:not([ui-off], [ui-color]))::-moz-progress-bar { background: light-dark(var(--ui-green-700), var(--ui-green-300)); }
}

}
@layer theme {
/* library/themes/paper/slider.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Native range geometry and focus states remain in Core. */
  :where(input[ui-slider]:not([ui-off]))::-webkit-slider-thumb {
    border-color: light-dark(var(--ui-green-700), var(--ui-green-300));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    box-shadow: none;
  }
  :where(input[ui-slider]:not([ui-off]))::-moz-range-thumb {
    border-color: light-dark(var(--ui-green-700), var(--ui-green-300));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    box-shadow: none;
  }
}

}
@layer theme {
/* library/themes/paper/toast.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* A notification resembles a small paper card; named status palettes are preserved. */
  :where(ul[ui-toast]:not([ui-off]) > li:not([ui-off])) {
    border-radius: 4px;
    box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--ui-black) 20%, transparent);
  }
  :where(ul[ui-toast]:not([ui-off]) > li:not([ui-off], [ui-color])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
  }
}

}
@layer theme {
/* library/themes/paper/tooltip.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Compact ink labels and small paper preview cards share the same corners. */
  :where([ui-tooltip]:not([ui-off]) > [role="tooltip"]:not([ui-off])) { border-radius: 4px; }
  :where([ui-tooltip~="card"]:not([ui-off]) > [role="tooltip"]:not([ui-off])) {
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
    background: light-dark(var(--ui-stone-50), var(--ui-stone-900));
    box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--ui-black) 20%, transparent);
  }
}

}
@layer theme {
/* library/themes/paper/tabs.css */
@scope ([ui-theme~="paper"]) to ([ui-theme]:not([ui-theme="light"], [ui-theme="dark"], [ui-theme="system"], [ui-theme="system-invert"])) {
  /* Flat segmented tabs and an ink underline for the line variant. */
  :where([ui-tabs]:not([ui-off], [ui-tabs~="line"])) {
    border-radius: 4px;
    background: light-dark(var(--ui-stone-100), var(--ui-stone-900));
  }
  :where([ui-tabs]:not([ui-off], [ui-tabs~="line"]) > label:not([ui-off])) { border-radius: 3px; }
  :where([ui-tabs]:not([ui-off]) > label:not([ui-off]):has(> input:checked:not([ui-off]))) {
    color: light-dark(var(--ui-green-900), var(--ui-green-100));
  }
  :where([ui-tabs]:not([ui-off], [ui-tabs~="line"]) > label:not([ui-off]):has(> input:checked:not([ui-off]))) {
    background: light-dark(var(--ui-stone-50), var(--ui-stone-800));
    border-color: light-dark(var(--ui-stone-300), var(--ui-stone-700));
  }
}

}
