/* Core: standalone light and dark, sharing a neutral palette. */
@layer core, theme;
@layer core {
/* src/palette.css */
/* Core palette: pure white/black and a neutral ramp that appearances can override. */
:root {
  --white: oklch(100% 0 0);
  --black: oklch(0% 0 0);
  --neutral-50: oklch(98% 0 0);
  --neutral-100: oklch(96% 0 0);
  --neutral-200: oklch(90% 0 0);
  --neutral-300: oklch(84% 0 0);
  --neutral-400: oklch(66% 0 0);
  --neutral-500: oklch(50% 0 0);
  --neutral-600: oklch(40% 0 0);
  --neutral-700: oklch(30% 0 0);
  --neutral-800: oklch(24% 0 0);
  --neutral-900: oklch(16% 0 0);
  --neutral-950: oklch(12% 0 0);
}

}
@layer core {
/* src/reset.css */
/* Core reset and mode surfaces. Light is the default; mode scopes can nest. */
:where(*, *::before, *::after) {
  box-sizing: border-box;
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  text-decoration: none;
}
:where(body, [ui-theme="light"]) {
  background: var(--white);
  color: var(--black);
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(:scope, body) {
    background: var(--black);
    color: var(--white);
    color-scheme: dark;
  }
}

}
@layer core {
/* src/focus.css */
/* Core focus: black/white light, then dark overrides. */
:where(:focus-visible) {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(:focus-visible) {
    outline-color: var(--white);
  }
}

}
@layer core {
/* src/hr.css */
/* Core hr: neutral grayscale light, then dark overrides. */
:where(hr:not([ui-off])) {
  border: none;
  background: var(--neutral-300);
  height: 1px;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(hr:not([ui-off])) {
    background: var(--neutral-600);
  }
}

}
@layer core {
/* src/icon.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  UI-ICON (mask-image based icons)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Spinner SVG – jaettu napin loading-tilan kanssa */
:root {
  --_ui-icon-spinner: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22%23000000%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M136%2C32V64a8%2C8%2C0%2C0%2C1-16%2C0V32a8%2C8%2C0%2C0%2C1%2C16%2C0Zm37.25%2C58.75a8%2C8%2C0%2C0%2C0%2C5.66-2.35l22.63-22.62a8%2C8%2C0%2C0%2C0-11.32-11.32L167.6%2C77.09a8%2C8%2C0%2C0%2C0%2C5.65%2C13.66ZM224%2C120H192a8%2C8%2C0%2C0%2C0%2C0%2C16h32a8%2C8%2C0%2C0%2C0%2C0-16Zm-45.09%2C47.6a8%2C8%2C0%2C0%2C0-11.31%2C11.31l22.62%2C22.63a8%2C8%2C0%2C0%2C0%2C11.32-11.32ZM128%2C184a8%2C8%2C0%2C0%2C0-8%2C8v32a8%2C8%2C0%2C0%2C0%2C16%2C0V192A8%2C8%2C0%2C0%2C0%2C128%2C184ZM77.09%2C167.6%2C54.46%2C190.22a8%2C8%2C0%2C0%2C0%2C11.32%2C11.32L88.4%2C178.91A8%2C8%2C0%2C0%2C0%2C77.09%2C167.6ZM72%2C128a8%2C8%2C0%2C0%2C0-8-8H32a8%2C8%2C0%2C0%2C0%2C0%2C16H64A8%2C8%2C0%2C0%2C0%2C72%2C128ZM65.78%2C54.46A8%2C8%2C0%2C0%2C0%2C54.46%2C65.78L77.09%2C88.4A8%2C8%2C0%2C0%2C0%2C88.4%2C77.09Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
 }

/* Nimetyt ikonit – token = --ui-icon */
:where([ui-icon~="caret-down"]) {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23000000' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
}
:where([ui-icon~="heart"]) {
  --ui-icon-open-rotate: 90deg;
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23000000' viewBox='0 0 256 256'%3E%3Cpath d='M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z'%3E%3C/path%3E%3C/svg%3E");
}
:where([ui-icon~="star"]) {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23000000' viewBox='0 0 256 256'%3E%3Cpath d='M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z'%3E%3C/path%3E%3C/svg%3E");
}
:where([ui-icon~="plus"]) {
  --ui-icon-open-rotate: 135deg;
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23000000' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z'%3E%3C/path%3E%3C/svg%3E");
}
:where([ui-icon~="x"]) {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23000000' viewBox='0 0 256 256'%3E%3Cpath d='M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z'%3E%3C/path%3E%3C/svg%3E");
}
:where([ui-icon~="spinner"]) {
  --ui-icon: var(--_ui-icon-spinner);
  animation: ui-loading 1s linear infinite;
}
:where([ui-icon~="download-simple"]) {
  --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22%23000000%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M228%2C144v64a12%2C12%2C0%2C0%2C1-12%2C12H40a12%2C12%2C0%2C0%2C1-12-12V144a12%2C12%2C0%2C0%2C1%2C24%2C0v52H204V144a12%2C12%2C0%2C0%2C1%2C24%2C0Zm-108.49%2C8.49a12%2C12%2C0%2C0%2C0%2C17%2C0l40-40a12%2C12%2C0%2C0%2C0-17-17L140%2C115V32a12%2C12%2C0%2C0%2C0-24%2C0v83L96.49%2C95.51a12%2C12%2C0%2C0%2C0-17%2C17Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
}

@keyframes ui-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

:where([ui-icon]) {
  /* <i ui-icon> – mask icon (empty, icon name in attribute) */
  &:where(i) {
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
    width: var(--ui-icon-size, 20px);
    height: var(--ui-icon-size, 20px);
    mask-image: var(--ui-icon, none);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: currentColor;
  }

  /* <svg ui-icon> */
  &:where(svg) {
    fill: currentColor;
    width: var(--ui-icon-size, 20px);
    height: var(--ui-icon-size, 20px);
  }

  /* <img ui-icon> */
  &:where(img) {
    width: var(--ui-icon-size, 20px);
    height: var(--ui-icon-size, 20px);
    object-fit: contain;
  }

  /* <span ui-icon> – text/emoji icon (element has content) */
  &:where(span) {
    width: var(--ui-icon-size, 20px);
    height: var(--ui-icon-size, 20px);
    font-size: var(--ui-icon-size, 20px);
    line-height: 1;
  }

  /* Button */
  &:where([ui-button], button, input[type="button"], input[type="submit"], input[type="reset"]) {
    &::before {
      display: inline-block;
      flex-shrink: 0;
      mask-image: var(--ui-icon, none);
      mask-position: center;
      mask-size: contain;
      mask-repeat: no-repeat;
      background-color: currentColor;
      width: var(--ui-icon-size, 20px);
      height: var(--ui-icon-size, 20px);
      content: "";
    }

    &:where([ui-icon~="-"])::before {
      background-color: transparent;
    }

    &[ui-icon~="trailing"]::before {
      order: 1;
    }

    &:where([ui-button~="xs"])::before { --ui-icon-size: 14px; }
    &:where([ui-button~="sm"])::before { --ui-icon-size: 18px; }
    &:where([ui-button~="lg"])::before { --ui-icon-size: 24px; }
    &:where([ui-button~="xl"])::before { --ui-icon-size: 32px; }
  }

  /* Sizes */
  &:where([ui-icon~="xs"]) { --ui-icon-size: 14px; }
  &:where([ui-icon~="sm"]) { --ui-icon-size: 18px; }
  &:where([ui-icon~="lg"]) { --ui-icon-size: 24px; }
  &:where([ui-icon~="xl"]) { --ui-icon-size: 32px; }
  &:where([ui-icon~="2xl"]) { --ui-icon-size: 40px; }
  &:where([ui-icon~="3xl"]) { --ui-icon-size: 48px; }
  &:where([ui-icon~="4xl"]) { --ui-icon-size: 56px; }
  &:where([ui-icon~="5xl"]) { --ui-icon-size: 64px; }
  &:where([ui-icon~="6xl"]) { --ui-icon-size: 80px; }

}

}
@layer core {
/* src/inline.css */
/* Core inline: neutral grayscale light, then dark overrides. */
:where(strong:not([ui-off])),
:where(b:not([ui-off])) {
  font-weight: 600;
}
:where(em:not([ui-off])),
:where(i:not([ui-off])) {
  font-style: italic;
}
:where(small:not([ui-off])) {
  font-size: 0.875rem;
}
:where(mark:not([ui-off])) {
  background-color: var(--neutral-200);
  padding: 2px 4px;
}
:where(del:not([ui-off])),
:where(s:not([ui-off])) {
  text-decoration: line-through;
}
:where(ins:not([ui-off])),
:where(u:not([ui-off])) {
  text-decoration: underline;
}
:where(sub:not([ui-off])) {
  vertical-align: sub;
  font-size: 0.75em;
  line-height: 0;
}
:where(sup:not([ui-off])) {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 0;
}
:where(kbd:not([ui-off])) {
  box-shadow: none;
  border: 1px solid var(--neutral-300);
  border-radius: 0;
  background-color: var(--neutral-100);
  padding: 2px 6px;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}
:where(abbr:not([ui-off])) {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
}
:where(q:not([ui-off])) {
  quotes: "«" "»" "‹" "›";
  &::before {
    content: open-quote;
  }
  &::after {
    content: close-quote;
  }
}
:where(cite:not([ui-off])) {
  font-style: italic;
}
:where(samp:not([ui-off])) {
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}
:where(var:not([ui-off])) {
  font-style: italic;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(mark:not([ui-off])) {
    background-color: var(--neutral-600);
  }
  :where(kbd:not([ui-off])) {
    border-color: var(--neutral-500);
    background-color: var(--neutral-800);
  }
}

}
@layer core {
/* src/code.css */
/* Core code: neutral grayscale light, then dark overrides. */
:where(code:not([ui-off]):not(pre > code), pre:not([ui-off]):has(> code)) {
  border-radius: 0;
  background-color: var(--neutral-200);
  color: var(--neutral-800);
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}
:where(code:not([ui-off]):not(pre > code)) {
  padding: 2px 6px;
}
:where(pre:not([ui-off]):has(> code)) {
  padding: 8px 16px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  & > :where(code) {
    display: block;
  }
  &:where([ui-code~="scroll"]) {
    overflow: auto;
    white-space: pre;
  }
}
:where(code:not([ui-off]):not(pre > code), pre:not([ui-off]):has(> code)):where([ui-code~="invert"]) {
  background-color: var(--neutral-800);
  color: var(--neutral-200);
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(code:not([ui-off]):not(pre > code), pre:not([ui-off]):has(> code)) {
    background-color: var(--neutral-800);
    color: var(--neutral-100);
    &:where([ui-code~="invert"]) {
      background-color: var(--neutral-300);
      color: var(--neutral-800);
    }
  }
}

}
@layer core {
/* src/link.css */
/* Core link: black/white light, then dark overrides. */
:where(
  a:not([ui-off]):not([ui-button]):not([ui-card]),
  [ui-link]:not([ui-off]):not([ui-button]):not([ui-card])
) {
  color: var(--black);
  text-decoration: underline;
  &:where([ui-link~="inherit"]) {
    color: inherit;
  }
  &:where(:hover) {
    color: var(--neutral-600);
  }
  &:where(:active) {
    color: var(--neutral-500);
  }
}

@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(
    a:not([ui-off]):not([ui-button]):not([ui-card]),
    [ui-link]:not([ui-off]):not([ui-button]):not([ui-card])
  ) {
    color: var(--white);
    &:where([ui-link~="inherit"]) {
      color: inherit;
    }
    &:where(:hover) {
      color: var(--neutral-400);
    }
    &:where(:active) {
      color: var(--neutral-500);
    }
  }
}

}
@layer core {
/* src/heading.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  HEADINGS
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Perus heading tyylit */
:where([ui-heading], h1, h2, h3, h4, h5, h6, legend):where(:not([ui-off])) {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;

  /* Heading koot - modulaariset attribuutit */
  &:where([ui-heading~="xs"]) {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  &:where([ui-heading~="sm"]) {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  &:where([ui-heading~="lg"]) {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  &:where([ui-heading~="xl"]) {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  &:where([ui-heading~="2xl"], [ui-heading~="xxl"]) {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  &:where([ui-heading~="3xl"]) {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  &:where([ui-heading~="4xl"]) {
    font-size: 3.25rem;
    line-height: 1.05;
  }

  &:where([ui-heading~="5xl"]) {
    font-size: 4rem;
    line-height: 1.05;
  }

  &:where([ui-heading~="6xl"]) {
    font-size: 5rem;
    line-height: 1;
  }
}
}
@layer core {
/* src/list.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  LISTS
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

:where(ul:not([ui-off]), ol:not([ui-off])) {
  padding-left: 40px;
}

:where(ul[ui-off], ol[ui-off]) {
  padding: 0;
  list-style: none;
}


}
@layer core {
/* src/input.css */
/* Core input: neutral grayscale light, then dark overrides. */
:where(:not([ui-button]):not([ui-off])):where(input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  input[type="date"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  input[list="datalist"],
  textarea,
  select) {
  display: inline-block;
  box-sizing: border-box;
  box-shadow: none;
  border: 1px solid var(--neutral-400);
  border-radius: 0;
  background-color: var(--white);
  padding: 8px 12px;
  width: 24rem;
  max-width: 100%;
  color: var(--black);
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
  &:where(:hover) {
    border-color: var(--neutral-500);
  }
  &:where(:user-invalid),
  &:where([aria-invalid="true"]) {
    border-color: var(--black);
  }
  &:where(:disabled) {
    cursor: default;
    border-color: var(--neutral-300);
    background-color: var(--neutral-100);
    color: var(--neutral-400);
  }
  &::placeholder {
    color: var(--neutral-500);
  }
  &:where([ui-input~="sm"]) {
    padding: 4px 8px;
    min-height: 24px;
    font-size: 0.875rem;
  }
  &:where([ui-input~="lg"]) {
    padding: 12px 16px;
    min-height: 48px;
    font-size: 1.125rem;
  }
  &:where([ui-input~="block"]) {
    display: block;
    width: 100%;
  }
}
@supports (-webkit-touch-callout: none) {
  :where(:not([ui-button]):not([ui-off])):where(input:not([type]),
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="tel"],
    input[type="search"],
    input[type="date"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[list="datalist"],
    textarea,
    select) {
    font-size: 16px;
  }
}
:where(label:has(> input[type="checkbox"][ui-input~="switch"]:not([ui-off]))),
:where(label:has(> input[type="radio"][ui-input~="switch"]:not([ui-off]))) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
:where(label:has(> input[type="checkbox"][ui-input~="switch"]:not([ui-off])[disabled])),
:where(label:has(> input[type="radio"][ui-input~="switch"]:not([ui-off])[disabled])) {
  cursor: default;
  color: var(--neutral-500);
}
:where([ui-row] input[type="checkbox"][ui-input~="switch"]:not([ui-off]) + label),
:where([ui-row] input[type="radio"][ui-input~="switch"]:not([ui-off]) + label) {
  cursor: pointer;
}
:where([ui-row] input[type="checkbox"][ui-input~="switch"]:not([ui-off])[disabled] + label),
:where([ui-row] input[type="radio"][ui-input~="switch"]:not([ui-off])[disabled] + label) {
  cursor: default;
  color: var(--neutral-500);
}
:where(input[type="checkbox"][ui-input~="switch"]:not([ui-off])),
:where(input[type="radio"][ui-input~="switch"]:not([ui-off])) {
  --_ui-switch-thumb-size: 16px;
  --_ui-switch-thumb-offset: 2px;
  position: relative;
  flex-shrink: 0;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--neutral-400);
  border-radius: 0;
  background-color: var(--neutral-200);
  width: calc(var(--_ui-switch-thumb-size) * 2 + var(--_ui-switch-thumb-offset) * 2);
  height: calc(var(--_ui-switch-thumb-size) + var(--_ui-switch-thumb-offset) * 2 + 2px);
  user-select: none;
  &:where([ui-input~="sm"]) {
    --_ui-switch-thumb-size: 10px;
    --_ui-switch-thumb-offset: 0px;
  }
  &:where([ui-input~="lg"]) {
    --_ui-switch-thumb-size: 23px;
    --_ui-switch-thumb-offset: 3px;
  }
  &::before {
    position: absolute;
    top: var(--_ui-switch-thumb-offset);
    left: var(--_ui-switch-thumb-offset);
    box-shadow: none;
    border-radius: 0;
    background-color: var(--black);
    width: var(--_ui-switch-thumb-size);
    height: var(--_ui-switch-thumb-size);
    content: "";
  }
  &::after {
    display: none;
  }
  &:where(:hover) {
    background-color: var(--neutral-100);
  }
  &:where(:user-invalid),
  &:where([aria-invalid="true"]) {
    border-color: var(--black);
  }
  &:where(:checked) {
    border-color: var(--black);
    background-color: var(--black);
    &::before {
      left: calc(100% - var(--_ui-switch-thumb-size) - var(--_ui-switch-thumb-offset));
      background-color: var(--white);
    }
    &:where(:hover) {
      background-color: var(--neutral-800);
    }
  }
  &:where(:disabled) {
    cursor: default;
    border-color: var(--neutral-300);
    background-color: var(--neutral-100);
    &::before {
      background-color: var(--white);
    }
  }
  &:where(:checked):where(:disabled) {
    border-color: var(--neutral-500);
    background-color: var(--neutral-400);
    &::before {
      background-color: var(--neutral-300);
    }
  }
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(:not([ui-button]):not([ui-off])):where(input:not([type]),
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="tel"],
    input[type="search"],
    input[type="date"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[list="datalist"],
    textarea,
    select) {
    border-color: var(--neutral-500);
    background-color: var(--neutral-900);
    color: var(--white);
    &:where(:hover) {
      border-color: var(--neutral-400);
    }
    &:where(:user-invalid),
    &:where([aria-invalid="true"]) {
      border-color: var(--white);
    }
    &:where(:disabled) {
      border-color: var(--neutral-600);
      background-color: var(--neutral-800);
      color: var(--neutral-600);
    }
    &::placeholder {
      color: var(--neutral-400);
    }
  }
  :where(label:has(> input[type="checkbox"][ui-input~="switch"]:not([ui-off])[disabled])),
  :where(label:has(> input[type="radio"][ui-input~="switch"]:not([ui-off])[disabled])) {
    color: var(--neutral-500);
  }
  :where([ui-row] input[type="checkbox"][ui-input~="switch"]:not([ui-off])[disabled] + label),
  :where([ui-row] input[type="radio"][ui-input~="switch"]:not([ui-off])[disabled] + label) {
    color: var(--neutral-500);
  }
  :where(input[type="checkbox"][ui-input~="switch"]:not([ui-off])),
  :where(input[type="radio"][ui-input~="switch"]:not([ui-off])) {
    border-color: var(--neutral-500);
    background-color: var(--neutral-800);
    &::before {
      background-color: var(--white);
    }
    &:where(:hover) {
      background-color: var(--neutral-700);
    }
    &:where(:user-invalid),
    &:where([aria-invalid="true"]) {
      border-color: var(--white);
    }
    &:where(:checked) {
      border-color: var(--white);
      background-color: var(--white);
      &::before {
        background-color: var(--black);
      }
      &:where(:hover) {
        background-color: var(--neutral-300);
      }
    }
    &:where(:disabled) {
      border-color: var(--neutral-600);
      background-color: var(--neutral-800);
      &::before {
        background-color: var(--black);
      }
    }
    &:where(:checked):where(:disabled) {
      border-color: var(--neutral-500);
      background-color: var(--neutral-600);
      &::before {
        background-color: var(--neutral-800);
      }
    }
  }
}

}
@layer core {
/* src/select.css */
/* The CSS chevron follows the text color, including theme and disabled states. */
:where(select:not([ui-off])) {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 20px center, right 15px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  &:where(:disabled) {
    cursor: default;
    box-shadow: none;
    border-color: var(--neutral-500);
    background-color: var(--white);
    color: var(--neutral-400);
  }
  &:where([ui-input~="sm"]) {
    padding-right: 28px;
    background-size: 4px 4px;
    background-position: right 14px center, right 10px center;
  }
  &:where([ui-input~="lg"]) {
    padding-right: 48px;
    background-size: 6px 6px;
    background-position: right 24px center, right 18px center;
  }
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(select:not([ui-off])) {
    &:where(:disabled) {
      border-color: var(--neutral-500);
      background-color: var(--black);
      color: var(--neutral-600);
    }
  }
}

}
@layer core {
/* src/accordion.css */
/* Core accordion: neutral grayscale light, then dark overrides. */
:where([ui-accordion] details) {
  @media (prefers-reduced-motion: no-preference) {
    interpolate-size: allow-keywords;
  }
  &::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
  }
  &[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
  &:where(:not(:first-child)) {
    border-top: 1px solid var(--neutral-300);
  }
  & :where(summary) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    &:where([disabled]) {
      color: var(--neutral-500);
      cursor: not-allowed;
    }
    &::before {
      display: inline-block;
      flex-shrink: 0;
      order: 1;
      transform-origin: center;
      mask-image: var(--ui-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"));
      mask-position: center;
      mask-size: contain;
      mask-repeat: no-repeat;
      background-color: currentColor;
      width: var(--ui-icon-size, 20px);
      height: var(--ui-icon-size, 20px);
      content: "";
    }
  }
  & :where(details[open] > summary)::before {
    rotate: var(--ui-icon-open-rotate, 180deg);
  }
}
:where([ui-accordion~="leading-icon"] summary) {
  justify-content: start;
}
:where([ui-accordion~="leading-icon"] summary)::before {
  order: 0;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where([ui-accordion] details) {
    &:where(:not(:first-child)) {
      border-top: 1px solid var(--neutral-600);
    }
    & :where(summary) {
      &:where([disabled]) {
        color: var(--neutral-500);
      }
    }
  }
}

}
@layer core {
/* src/card.css */
/* Core card: neutral grayscale light, then dark overrides. */
:where([ui-card]) {
  box-shadow: none;
  border: 1px solid var(--neutral-300);
  border-radius: 0;
  background-color: var(--white);
  &:where(a) {
    display: block;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
  }
  &:where([ui-card~="neutral"]) {
    background-color: var(--neutral-100);
  }
  &:where([ui-card~="outline"]) {
    background-color: transparent;
  }
  &:where(a):hover {
    background-color: var(--neutral-100);
  }
  &:where(a[ui-card~="neutral"]):hover {
    background-color: var(--neutral-200);
  }
  &:where(a):active {
    background-color: var(--neutral-200);
  }
  &:where(a[ui-card~="neutral"]):active {
    background-color: var(--neutral-300);
  }
}
:where([ui-card] > img, [ui-card] > picture, [ui-card] > video, [ui-card] > figure) {
  display: block;
  width: 100%;
  max-width: 100%;
}
:where([ui-card] > figure) {
  margin: 0;
}
:where([ui-card] > img:first-child, [ui-card] > picture:first-child, [ui-card] > video:first-child, [ui-card] > figure:first-child) {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
  overflow: hidden;
}
:where([ui-card] > img:last-child, [ui-card] > picture:last-child, [ui-card] > video:last-child, [ui-card] > figure:last-child) {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  overflow: hidden;
}
:where([ui-card] > img, [ui-card] > picture > img, [ui-card] > figure > img, [ui-card] > video) {
  display: block;
  width: 100%;
  height: auto;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where([ui-card]) {
    border-color: var(--neutral-600);
    background-color: var(--neutral-900);
    &:where([ui-card~="neutral"]) {
      background-color: var(--neutral-800);
    }
    &:where([ui-card~="outline"]) {
      background-color: transparent;
    }
    &:where(a):hover {
      background-color: var(--neutral-800);
    }
    &:where(a[ui-card~="neutral"]):hover {
      background-color: var(--neutral-700);
    }
    &:where(a):active {
      background-color: var(--neutral-700);
    }
    &:where(a[ui-card~="neutral"]):active {
      background-color: var(--neutral-600);
    }
  }
}

}
@layer core {
/* src/button.css */
/* Core button: neutral grayscale light, then dark overrides. */
:where(:not([ui-off]):not([ui-link])):where([ui-button]:not(input[type="checkbox"], input[type="radio"]),
  button, input[type="button"], input[type="submit"], input[type="reset"],
) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25em;
  cursor: pointer;
  box-shadow: none;
  border: 1px solid var(--neutral-300);
  border-radius: 0;
  background: var(--neutral-100);
  padding: 6px 16px;
  min-height: 42px;
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
  user-select: none;
  text-decoration: none;
  &:where(:hover) {
    background: var(--neutral-200);
  }
  &:where(:active),
  &:where(:has(:checked)) {
    background: var(--neutral-300);
  }
  &:where(:disabled) {
    cursor: default;
    border-color: var(--neutral-500);
    background: var(--neutral-200);
    color: var(--neutral-500);
  }
  &:where([aria-busy="true"]) {
    position: relative;
    background: var(--neutral-100);
    pointer-events: none;
    color: transparent;
    &:where(> *) {
      opacity: 0;
    }
    &::after {
      display: block;
      position: absolute;
      mask-image: var(--_ui-icon-spinner);
      mask-position: center;
      mask-size: contain;
      mask-repeat: no-repeat;
      animation: ui-loading 1s linear infinite;
      margin: auto;
      inset: 0;
      background-color: var(--black);
      aspect-ratio: 1;
      width: 1.25em;
      content: "";
    }
  }
  &:where([ui-button~="primary"]) {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
    &:where(:hover) {
      background: var(--neutral-700);
    }
    &:where(:active),
    &:where(:has(:checked)) {
      background: var(--neutral-600);
    }
    &:where(:disabled) {
      border-color: var(--neutral-500);
      background: var(--neutral-700);
      color: var(--neutral-300);
    }
    &:where([aria-busy="true"]) {
      &::after {
        background-color: var(--white);
      }
      background: var(--black);
      color: transparent;
    }
  }
  &:where([ui-button~="tertiary"]) {
    border-color: transparent;
    background: transparent;
    color: var(--black);
    &:where(:hover) {
      border-color: transparent;
      background: var(--neutral-200);
      color: var(--neutral-700);
    }
    &:where(:active),
    &:where(:has(:checked)) {
      border-color: transparent;
      background: var(--neutral-300);
      color: var(--neutral-700);
    }
    &:where(:disabled) {
      border-color: transparent;
      background: transparent;
      color: var(--neutral-400);
    }
    &:where([aria-busy="true"]) {
      &::after {
        background-color: var(--black);
      }
      border-color: transparent;
      background: transparent;
      color: transparent;
    }
  }
  &:where([ui-button~="xs"]) {
    padding: 2px 8px;
    min-height: 28px;
    font-size: 0.75rem;
  }
  &:where([ui-button~="sm"]) {
    padding: 4px 12px;
    min-height: 34px;
    font-size: 0.875rem;
  }
  &:where([ui-button~="lg"]) {
    padding: 8px 24px;
    min-height: 52px;
    font-size: 1.125rem;
  }
  &:where([ui-button~="xl"]) {
    padding: 8px 28px;
    min-height: 64px;
    font-size: 1.125rem;
  }
  &:where([ui-button~="block"]) {
    width: 100%;
  }
  &:where([ui-button~="square"], [ui-button~="circle"]) {
    padding: 3px;
    aspect-ratio: 1;
  }
  &:where([ui-button~="square"], [ui-button~="circle"]):where([ui-button~="xs"]) {
    padding: 1px;
  }
  &:where([ui-button~="square"], [ui-button~="circle"]):where([ui-button~="sm"]) {
    padding: 2px;
  }
  &:where([ui-button~="square"], [ui-button~="circle"]):where([ui-button~="lg"]) {
    padding: 4px;
  }
  &:where([ui-button~="square"], [ui-button~="circle"]):where([ui-button~="xl"]) {
    padding: 5px;
  }
  &:where([ui-button~="circle"]) {
    border-radius: 50%;
  }
  &:where([ui-button~="inline"]) {
    margin: -8px;
    border-color: transparent;
    background: transparent;
    padding: 8px;
    color: var(--black);
    &:where(:hover) {
      border-color: transparent;
      background: transparent;
      color: var(--neutral-700);
    }
    &:where(:active),
    &:where(:has(:checked)) {
      border-color: transparent;
      background: transparent;
      color: var(--neutral-500);
    }
    &:where(:disabled) {
      border-color: transparent;
      background: transparent;
      color: var(--neutral-400);
    }
    &:where([aria-busy="true"]) {
      &::after {
        background-color: var(--black);
      }
      border-color: transparent;
      background: transparent;
      color: transparent;
    }
  }
  &:where([ui-button~="wide"]) {
    padding-inline: 32px;
  }
  &:where([ui-button~="wide"][ui-button~="xs"]) {
    padding-inline: 16px;
  }
  &:where([ui-button~="wide"][ui-button~="sm"]) {
    padding-inline: 20px;
  }
  &:where([ui-button~="wide"][ui-button~="lg"]) {
    padding-inline: 40px;
  }
  &:where([ui-button~="wide"][ui-button~="xl"]) {
    padding-inline: 48px;
  }
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(:not([ui-off]):not([ui-link])):where([ui-button]:not(input[type="checkbox"], input[type="radio"]),
    button, input[type="button"], input[type="submit"], input[type="reset"],
  ) {
    border-color: var(--neutral-500);
    background: var(--neutral-800);
    color: var(--white);
    &:where(:hover) {
      background: var(--neutral-700);
    }
    &:where(:active),
    &:where(:has(:checked)) {
      background: var(--neutral-600);
    }
    &:where(:disabled) {
      border-color: var(--neutral-500);
      background: var(--neutral-900);
      color: var(--neutral-500);
    }
    &:where([aria-busy="true"]) {
      background: var(--neutral-800);
      color: transparent;
      &::after {
        background-color: var(--white);
      }
    }
    &:where([ui-button~="primary"]) {
      border-color: var(--white);
      background: var(--white);
      color: var(--black);
      &:where(:hover) {
        background: var(--neutral-200);
      }
      &:where(:active),
      &:where(:has(:checked)) {
        background: var(--neutral-300);
      }
      &:where(:disabled) {
        border-color: var(--neutral-500);
        background: var(--neutral-400);
        color: var(--neutral-900);
      }
      &:where([aria-busy="true"]) {
        &::after {
          background-color: var(--black);
        }
        background: var(--white);
        color: transparent;
      }
    }
    &:where([ui-button~="tertiary"]) {
      border-color: transparent;
      background: transparent;
      color: var(--white);
      &:where(:hover) {
        border-color: transparent;
        background: var(--neutral-700);
        color: var(--neutral-400);
      }
      &:where(:active),
      &:where(:has(:checked)) {
        border-color: transparent;
        background: var(--neutral-600);
        color: var(--neutral-400);
      }
      &:where(:disabled) {
        border-color: transparent;
        background: transparent;
        color: var(--neutral-600);
      }
      &:where([aria-busy="true"]) {
        &::after {
          background-color: var(--white);
        }
        border-color: transparent;
        background: transparent;
        color: transparent;
      }
    }
    &:where([ui-button~="inline"]) {
      border-color: transparent;
      background: transparent;
      color: var(--white);
      &:where(:hover) {
        border-color: transparent;
        background: transparent;
        color: var(--neutral-400);
      }
      &:where(:active),
      &:where(:has(:checked)) {
        border-color: transparent;
        background: transparent;
        color: var(--neutral-500);
      }
      &:where(:disabled) {
        border-color: transparent;
        background: transparent;
        color: var(--neutral-600);
      }
      &:where([aria-busy="true"]) {
        &::after {
          background-color: var(--white);
        }
        border-color: transparent;
        background: transparent;
        color: transparent;
      }
    }
  }
}

}
@layer core {
/* src/dialog.css */
/* Core dialog: neutral grayscale light, then dark overrides. */
:where(dialog[ui-dialog]) {
  display: none;
  margin: auto;
  box-shadow: none;
  border: 1px solid var(--neutral-300);
  border-radius: 0;
  background: var(--white);
  padding: 0;
  width: 800px;
  max-width: 90vw;
  max-height: 90dvh;
  overflow: hidden;
  color: var(--black);
  &:where([open]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(0);
    opacity: 1;
  }
  &:where([ui-dialog~="xs"]) {
    width: 400px;
  }
  &:where([ui-dialog~="sm"]) {
    width: 600px;
  }
  &:where([ui-dialog~="lg"]) {
    width: 1200px;
  }
  &:where([ui-dialog~="xl"]) {
    width: 1600px;
  }
  &:where([ui-dialog~="left"]),
  &:where([ui-dialog~="right"]) {
    opacity: 1;
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
  &:where([ui-dialog~="right"]) {
    margin: 1rem 1rem 1rem auto;
  }
  &:where([ui-dialog~="right"][open]) {
    transform: translateX(0);
  }
  &:where([ui-dialog~="left"]) {
    margin: 1rem auto 1rem 1rem;
  }
  &:where([ui-dialog~="left"][open]) {
    transform: translateX(0);
  }
  &:where([ui-dialog~="right"][ui-dialog~="edge"]) {
    margin: 0 0 0 auto;
    height: 100dvh;
    max-height: 100dvh;
  }
  &:where([ui-dialog~="left"][ui-dialog~="edge"]) {
    margin: 0 auto 0 0;
    height: 100dvh;
    max-height: 100dvh;
  }
  &:where([ui-dialog~="top"]),
  &:where([ui-dialog~="bottom"]) {
    opacity: 1;
    max-width: calc(100% - 2rem);
    max-height: calc(90dvh - 2rem);
  }
  &:where([ui-dialog~="top"]) {
    margin: 1rem auto auto auto;
  }
  &:where([ui-dialog~="top"][open]) {
    transform: translateY(0);
  }
  &:where([ui-dialog~="bottom"]) {
    margin: auto auto 1rem auto;
  }
  &:where([ui-dialog~="bottom"][open]) {
    transform: translateY(0);
  }
  &:where([ui-dialog~="top"][ui-dialog~="edge"]) {
    margin: 0 auto auto auto;
    width: 100%;
    max-width: 100%;
  }
  &:where([ui-dialog~="top"][ui-dialog~="edge"][open]) {
    transform: translateY(0);
  }
  &:where([ui-dialog~="bottom"][ui-dialog~="edge"]) {
    margin: auto auto 0 auto;
    width: 100%;
    max-width: 100%;
  }
  &:where([ui-dialog~="bottom"][ui-dialog~="edge"][open]) {
    transform: translateY(0);
  }
}
:where(dialog[ui-dialog])::backdrop {
  opacity: 1;
  background: oklch(from var(--black) l c h / 25%);
}
:where(dialog[ui-dialog~="left"] > footer),
:where(dialog[ui-dialog~="right"] > footer),
:where(dialog[ui-dialog~="top"] > footer),
:where(dialog[ui-dialog~="bottom"] > footer) {
  margin-top: auto;
}
:where(dialog[ui-dialog~="top"] > *:not(header):not(footer)),
:where(dialog[ui-dialog~="bottom"] > *:not(header):not(footer)) {
  flex: 1 1 0;
  min-height: 0;
}
:where(dialog[ui-dialog] > *:not(header):not(footer)) {
  flex: 0 1 auto;
  overflow-y: auto;
}
:where(dialog[ui-dialog~="left"] > *:not(header):not(footer)),
:where(dialog[ui-dialog~="right"] > *:not(header):not(footer)) {
  flex: 1 1 0;
  min-height: 0;
}
:where(body:has(dialog[ui-dialog][open])) {
  overflow: hidden;
}
:where(body:has(dialog[ui-dialog~="allow-page-scroll"][open])) {
  overflow: auto;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(dialog[ui-dialog]) {
    border-color: var(--neutral-600);
    background: var(--neutral-800);
    color: var(--white);
  }
  :where(dialog[ui-dialog])::backdrop {
    background: oklch(from var(--black) l c h / 60%);
  }
}

}
@layer core {
/* src/menu.css */
/* Core menu: neutral grayscale light, then dark overrides. */
:where([ui-menu]) {
  position: relative;
  anchor-scope: --menu-trigger;
  anchor-name: --menu-trigger;
}
:where([ui-menu] > [role="menu"]) {
  position-anchor: --menu-trigger;
  position: fixed;
  margin: 0;
  inset: auto;
  box-shadow: none;
  border: 1px solid var(--neutral-300);
  border-radius: 0;
  background-color: var(--white);
  min-width: max-content;
  list-style: none;
  position-area: block-end;
  position-try-fallbacks: --bottom-to-top;
}
:where([ui-menu] > [role="menu"]:popover-open) {
  display: flex;
  flex-direction: column;
}
:where([ui-menu] > [role="menu"] > [role="menuitem"]),
:where([ui-menu] > [role="menu"] > [role="menuitemcheckbox"]),
:where([ui-menu] > [role="menu"] > [role="menuitemradio"]) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 8px 16px;
  color: var(--black);
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  &:where(:hover) {
    background: var(--neutral-100);
    color: inherit;
  }
  &:where(:active) {
    background: var(--neutral-200);
    color: inherit;
  }
  &:where(:disabled) {
    cursor: default;
    color: var(--neutral-500);
  }
}
:where([ui-menu] > [role="menu"] > hr) {
  border: none;
  border-top: 1px solid var(--neutral-300);
  padding: 0;
}
:where([ui-menu="bottom-left"] > [role="menu"]) {
  position-area: block-end span-inline-start;
  position-try-fallbacks: --bottom-left-fallback, --bottom-left-fallback-2, --bottom-left-fallback-3;
}
:where([ui-menu~="bottom-right"] > [role="menu"]) {
  position-area: block-end span-inline-end;
  position-try-fallbacks: --bottom-right-fallback, --bottom-right-fallback-2, --bottom-right-fallback-3;
}
:where([ui-menu~="top"] > [role="menu"]) {
  position-area: block-start;
  position-try-fallbacks: --top-to-bottom;
}
:where([ui-menu="top-left"] > [role="menu"]) {
  position-area: block-start span-inline-start;
  position-try-fallbacks: --top-left-fallback, --top-left-fallback-2, --top-left-fallback-3;
}
:where([ui-menu~="top-right"] > [role="menu"]) {
  position-area: block-start span-inline-end;
  position-try-fallbacks: --top-right-fallback, --top-right-fallback-2, --top-right-fallback-3;
}
:where([ui-menu~="left"] > [role="menu"]) {
  position-area: inline-start center;
  position-try-fallbacks: --left-to-right;
}
:where([ui-menu="left-top"] > [role="menu"]) {
  position-area: inline-start span-block-start;
  position-try-fallbacks: --left-top-fallback, --left-top-fallback-2, --left-top-fallback-3;
}
:where([ui-menu~="left-bottom"] > [role="menu"]) {
  position-area: inline-start span-block-end;
  position-try-fallbacks: --left-bottom-fallback, --left-bottom-fallback-2, --left-bottom-fallback-3;
}
:where([ui-menu~="right"] > [role="menu"]) {
  position-area: inline-end center;
  position-try-fallbacks: --right-to-left;
}
:where([ui-menu~="right-top"] > [role="menu"]) {
  position-area: inline-end span-block-start;
  position-try-fallbacks: --right-top-fallback, --right-top-fallback-2, --right-top-fallback-3;
}
:where([ui-menu~="right-bottom"] > [role="menu"]) {
  position-area: inline-end span-block-end;
  position-try-fallbacks: --right-bottom-fallback, --right-bottom-fallback-2, --right-bottom-fallback-3;
}
@position-try --bottom-to-top {
  position-area: block-start;
}
@position-try --top-to-bottom {
  position-area: block-end;
}
@position-try --left-to-right {
  position-area: inline-end center;
}
@position-try --right-to-left {
  position-area: inline-start center;
}
@position-try --bottom-left-fallback {
  position-area: block-end span-inline-end;
}
@position-try --bottom-left-fallback-2 {
  position-area: block-start span-inline-start;
}
@position-try --bottom-left-fallback-3 {
  position-area: block-start span-inline-end;
}
@position-try --bottom-right-fallback {
  position-area: block-end span-inline-start;
}
@position-try --bottom-right-fallback-2 {
  position-area: block-start span-inline-end;
}
@position-try --bottom-right-fallback-3 {
  position-area: block-start span-inline-start;
}
@position-try --top-left-fallback {
  position-area: block-start span-inline-end;
}
@position-try --top-left-fallback-2 {
  position-area: block-end span-inline-start;
}
@position-try --top-left-fallback-3 {
  position-area: block-end span-inline-end;
}
@position-try --top-right-fallback {
  position-area: block-start span-inline-start;
}
@position-try --top-right-fallback-2 {
  position-area: block-end span-inline-end;
}
@position-try --top-right-fallback-3 {
  position-area: block-end span-inline-start;
}
@position-try --left-top-fallback {
  position-area: inline-start span-block-end;
}
@position-try --left-top-fallback-2 {
  position-area: inline-end span-block-start;
}
@position-try --left-top-fallback-3 {
  position-area: inline-end span-block-end;
}
@position-try --left-bottom-fallback {
  position-area: inline-start span-block-start;
}
@position-try --left-bottom-fallback-2 {
  position-area: inline-end span-block-end;
}
@position-try --left-bottom-fallback-3 {
  position-area: inline-end span-block-start;
}
@position-try --right-top-fallback {
  position-area: inline-end span-block-end;
}
@position-try --right-top-fallback-2 {
  position-area: inline-start span-block-start;
}
@position-try --right-top-fallback-3 {
  position-area: inline-start span-block-end;
}
@position-try --right-bottom-fallback {
  position-area: inline-end span-block-start;
}
@position-try --right-bottom-fallback-2 {
  position-area: inline-start span-block-end;
}
@position-try --right-bottom-fallback-3 {
  position-area: inline-start span-block-start;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where([ui-menu] > [role="menu"]) {
    border-color: var(--neutral-600);
    background-color: var(--neutral-800);
  }
  :where([ui-menu] > [role="menu"] > [role="menuitem"]),
  :where([ui-menu] > [role="menu"] > [role="menuitemcheckbox"]),
  :where([ui-menu] > [role="menu"] > [role="menuitemradio"]) {
    border: none;
    background: transparent;
    color: var(--white);
    &:where(:hover) {
      background: var(--neutral-700);
      color: inherit;
    }
    &:where(:active) {
      background: var(--neutral-600);
      color: inherit;
    }
    &:where(:disabled) {
      color: var(--neutral-400);
    }
  }
  :where([ui-menu] > [role="menu"] > hr) {
    border: none;
    border-top: 1px solid var(--neutral-600);
  }
}

}
@layer core {
/* src/checkbox.css */
/* Core checkbox: neutral grayscale light, then dark overrides. */
:where(.ui-flex > input[type="checkbox"]:not([ui-off], [ui-input~="switch"])[disabled] + label),
:where([ui-row] input[type="checkbox"]:not([ui-off], [ui-input~="switch"])[disabled] + label) {
  cursor: default;
  color: var(--neutral-500);
}
:where(input[type="checkbox"]:not([ui-off], [ui-input~="switch"])) {
  display: inline-block;
  position: relative;
  vertical-align: text-bottom;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: 1px solid var(--neutral-400);
  border-radius: 0;
  background: var(--neutral-200);
  width: 20px;
  height: 20px;
  user-select: none;
  &:where(:hover) {
    background: var(--neutral-100);
  }
  &:where(:user-invalid),
  &[aria-invalid="true"] {
    border-color: var(--black);
  }
  &:where(:checked),
  &:where(:indeterminate) {
    border-color: var(--black);
    background: var(--black);
  }
  &:where(:checked):where(:hover),
  &:where(:indeterminate):where(:hover) {
    background: var(--neutral-800);
  }
  &:where(:checked)::after {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -60%;
    rotate: 40deg;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: var(--white);
    width: 4px;
    height: 9px;
    content: "";
  }
  &:where(:indeterminate)::after {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    rotate: 0deg;
    border-width: 0 0 2px 0;
    border-style: solid;
    border-color: var(--white);
    width: 10px;
    height: 0;
    content: "";
  }
  &:where(:disabled) {
    cursor: default;
    border-color: var(--neutral-300);
    background: var(--neutral-100);
  }
  &:where(:disabled)::after {
    border-color: var(--neutral-500);
  }
  &:where(:checked):where(:disabled),
  &:where(:indeterminate):where(:disabled) {
    border-color: var(--neutral-500);
    background: var(--neutral-400);
  }
  &:where(:checked):where(:disabled)::after,
  &:where(:indeterminate):where(:disabled)::after {
    border-color: var(--neutral-500);
  }
  &:where([ui-input~="sm"]) {
    width: 16px;
    height: 16px;
  }
  &:where([ui-input~="sm"]):where(:checked)::after {
    translate: -50% -58%;
    width: 3px;
    height: 7px;
  }
  &:where([ui-input~="sm"]):where(:indeterminate)::after {
    width: 8px;
  }
  &:where([ui-input~="lg"]) {
    width: 28px;
    height: 28px;
  }
  &:where([ui-input~="lg"]):where(:checked)::after {
    translate: -50% -60%;
    width: 5px;
    height: 12px;
  }
  &:where([ui-input~="lg"]):where(:indeterminate)::after {
    width: 14px;
  }
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(.ui-flex > input[type="checkbox"]:not([ui-off], [ui-input~="switch"])[disabled] + label),
  :where([ui-row] input[type="checkbox"]:not([ui-off], [ui-input~="switch"])[disabled] + label) {
    color: var(--neutral-500);
  }
  :where(input[type="checkbox"]:not([ui-off], [ui-input~="switch"])) {
    border-color: var(--neutral-500);
    background: var(--neutral-800);
    &:where(:hover) {
      background: var(--neutral-700);
    }
    &:where(:user-invalid),
    &[aria-invalid="true"] {
      border-color: var(--white);
    }
    &:where(:checked),
    &:where(:indeterminate) {
      border-color: var(--white);
      background: var(--white);
    }
    &:where(:checked):where(:hover),
    &:where(:indeterminate):where(:hover) {
      background: var(--neutral-300);
    }
    &:where(:checked)::after {
      border-color: var(--black);
    }
    &:where(:indeterminate)::after {
      border-color: var(--black);
    }
    &:where(:disabled) {
      border-color: var(--neutral-600);
      background: var(--neutral-800);
    }
    &:where(:disabled)::after {
      border-color: var(--neutral-500);
    }
    &:where(:checked):where(:disabled),
    &:where(:indeterminate):where(:disabled) {
      border-color: var(--neutral-500);
      background: var(--neutral-600);
    }
    &:where(:checked):where(:disabled)::after,
    &:where(:indeterminate):where(:disabled)::after {
      border-color: var(--neutral-500);
    }
  }
}

}
@layer core {
/* src/radio.css */
/* Core radio: neutral grayscale light, then dark overrides. */
:where(.ui-flex > input[type="radio"]:not([ui-off], [ui-input~="switch"])[disabled] + label),
:where([ui-row] input[type="radio"]:not([ui-off], [ui-input~="switch"])[disabled] + label) {
  cursor: default;
  color: var(--neutral-500);
}
:where(input[type="radio"]:not([ui-off], [ui-input~="switch"])) {
  display: inline-block;
  position: relative;
  vertical-align: text-bottom;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: 1px solid var(--neutral-400);
  border-radius: 50%;
  background: var(--neutral-200);
  width: 20px;
  height: 20px;
  user-select: none;
  &:where(:hover) {
    background: var(--neutral-100);
  }
  &:where(:user-invalid),
  &:where([aria-invalid="true"]) {
    border-color: var(--black);
  }
  &:where(:checked) {
    border-color: var(--black);
    background: var(--black);
  }
  &:where(:checked:hover) {
    background: var(--neutral-800);
  }
  &:where(:checked)::after {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: var(--white);
    width: 8px;
    height: 8px;
    content: "";
  }
  &:where(:disabled) {
    cursor: default;
    border-color: var(--neutral-300);
    background: var(--neutral-100);
  }
  &:where(:disabled)::after {
    background-color: var(--neutral-400);
  }
  &:where(:checked):where(:disabled) {
    border-color: var(--neutral-500);
    background: var(--neutral-400);
  }
  &:where(:checked):where(:disabled)::after {
    background-color: var(--neutral-300);
  }
  &:where([ui-input~="sm"]) {
    width: 16px;
    height: 16px;
  }
  &:where([ui-input~="sm"]):where(:checked)::after {
    width: 6px;
    height: 6px;
  }
  &:where([ui-input~="lg"]) {
    width: 28px;
    height: 28px;
  }
  &:where([ui-input~="lg"]):where(:checked)::after {
    width: 11px;
    height: 11px;
  }
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(.ui-flex > input[type="radio"]:not([ui-off], [ui-input~="switch"])[disabled] + label),
  :where([ui-row] input[type="radio"]:not([ui-off], [ui-input~="switch"])[disabled] + label) {
    color: var(--neutral-500);
  }
  :where(input[type="radio"]:not([ui-off], [ui-input~="switch"])) {
    border-color: var(--neutral-500);
    background: var(--neutral-800);
    &:where(:hover) {
      background: var(--neutral-700);
    }
    &:where(:user-invalid),
    &:where([aria-invalid="true"]) {
      border-color: var(--white);
    }
    &:where(:checked) {
      border-color: var(--white);
      background: var(--white);
    }
    &:where(:checked:hover) {
      background: var(--neutral-300);
    }
    &:where(:checked)::after {
      background: var(--black);
    }
    &:where(:disabled) {
      border-color: var(--neutral-600);
      background: var(--neutral-800);
    }
    &:where(:disabled)::after {
      background-color: var(--neutral-600);
    }
    &:where(:checked):where(:disabled) {
      border-color: var(--neutral-500);
      background: var(--neutral-600);
    }
    &:where(:checked):where(:disabled)::after {
      background-color: var(--neutral-800);
    }
  }
}

}
@layer core {
/* src/field.css */
/* Core field: black/white light, then dark overrides. */
:where([ui-field]) {
  &> :where(label) {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
  }
  &> :where(p:not([role])) {
    margin-top: 0.125rem;
    color: var(--neutral-500);
    font-size: 0.875rem;
  }
  &> :where(p[role="error"]) {
    display: none;
    margin-top: 0.125rem;
    color: var(--black);
    font-size: 0.875rem;
  }
  &:where(:has(p[role="error"]):has(:user-invalid, [aria-invalid="true"])) {
    & :where(label) {
      color: var(--black);
    }
    &> :where(p[role="error"]) {
      display: revert;
    }
    &> :where(p:not([role])) {
      display: none;
    }
  }
}

@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where([ui-field]) {
    &> :where(p:not([role])) {
      color: var(--neutral-500);
    }
    &> :where(p[role="error"]) {
      color: var(--white);
    }
    &:where(:has(p[role="error"]):has(:user-invalid, [aria-invalid="true"])) {
      & :where(label) {
        color: var(--white);
      }
    }
  }
}

}
@layer core {
/* src/group.css */
/* Connected controls. Direct span, label and plain links form their own segments. */
:where([ui-group]) {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  max-width: 100%;
  min-width: 0;
}

:where([ui-group] > :not([hidden], input[type="hidden"], [ui-off])) {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;

  &:where(:hover, :user-invalid, [aria-invalid="true"]) {
    z-index: 1;
  }
  &:where(:focus-visible, :focus-within) {
    z-index: 2;
  }
}

/* Text fields use the remaining width; selects can shrink to fit. */
:where([ui-group] > :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"], [type="reset"]), textarea):not([ui-off])) {
  flex: 1 1 12rem;
  width: 12rem;
}
:where([ui-group] > select:not([ui-off])) {
  flex: 0 1 auto;
  width: auto;
}

:where([ui-group] > :is(span, label, a:not([ui-button])):not([ui-off])) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--neutral-400);
  background: var(--neutral-100);
  padding: 8px 12px;
  color: var(--black);
  white-space: nowrap;
}
:where([ui-group] > label:not([ui-off])) {
  cursor: pointer;

  > :where(input[type="checkbox"], input[type="radio"]) {
    flex-shrink: 0;
    margin: 0;
  }
  &:where(:has(> input:disabled)) {
    cursor: default;
    border-color: var(--neutral-300);
    background: var(--neutral-100);
    color: var(--neutral-400);
  }
}
:where([ui-group] > a:not([ui-button], [ui-off])) {
  color: var(--neutral-700);

  &:where(:hover) {
    background: var(--neutral-200);
    color: var(--black);
  }
  &:where(:active) {
    background: var(--neutral-300);
  }
}

/* Group sizes affect segments, never nested checkbox/radio controls or menu items. */
:where([ui-group] > :is(span, label, a:not([ui-button])):not([ui-off])) {
  min-height: 42px;
}
:where([ui-group] > [ui-menu] > button[popovertarget]:not([ui-off])) {
  height: 100%;
  margin: 0;
}
:where([ui-group~="sm"] > :not([hidden], input[type="hidden"], [ui-menu], [ui-off])),
:where([ui-group~="sm"] > [ui-menu] > button[popovertarget]:not([ui-off])) {
  min-height: 34px;
  padding-block: 4px;
  font-size: 0.875rem;
}
:where([ui-group~="lg"] > :not([hidden], input[type="hidden"], [ui-menu], [ui-off])),
:where([ui-group~="lg"] > [ui-menu] > button[popovertarget]:not([ui-off])) {
  min-height: 52px;
  padding-block: 10px;
  font-size: 1.125rem;
}

/* Hidden fields do not count as visual segments. Logical edges also support RTL. */
:where([ui-group] > :not([hidden], input[type="hidden"], [ui-off]):not(:nth-child(1 of :not([hidden], input[type="hidden"])))) {
  margin-inline-start: -1px;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
:where([ui-group] > :not([hidden], input[type="hidden"], [ui-off]):has(~ :not([hidden], input[type="hidden"]))) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
:where([ui-group] > [ui-menu]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))) > button[popovertarget]:not([ui-off])) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
:where([ui-group] > [ui-menu]:has(~ :not([hidden], input[type="hidden"])) > button[popovertarget]:not([ui-off])) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

:where([ui-group~="block"]) {
  display: flex;
  width: 100%;
}
/* Grid keeps equal tracks even when controls have different padding. */
:where([ui-group~="equal"]) {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
:where([ui-group~="equal"][ui-group~="block"]) {
  display: grid;
}
:where([ui-group~="equal"] > :not([hidden], input[type="hidden"], [ui-off])) {
  width: auto;
}
:where([ui-group~="equal"] > [ui-menu] > button[popovertarget]:not([ui-off])) {
  width: 100%;
}

:where([ui-group] > [hidden]) {
  display: none;
}

@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where([ui-group] > :is(span, label, a:not([ui-button])):not([ui-off])) {
    border-color: var(--neutral-500);
    background: var(--neutral-800);
    color: var(--white);
  }
  :where([ui-group] > label:not([ui-off]):has(> input:disabled)) {
    border-color: var(--neutral-600);
    background: var(--neutral-800);
    color: var(--neutral-600);
  }
  :where([ui-group] > a:not([ui-button], [ui-off])) {
    color: var(--neutral-300);

    &:where(:hover) {
      background: var(--neutral-700);
      color: var(--white);
    }
    &:where(:active) {
      background: var(--neutral-600);
    }
  }
}

}
@layer core {
/* src/tabs.css */
/* Core tabs: neutral grayscale light, then dark overrides. */
:where(fieldset[ui-tabs]) {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  align-items: center;
  gap: .125rem;
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--neutral-100);
  padding: .25rem;
  min-width: 0;
}
:where(fieldset[ui-tabs~="block"]) {
  display: grid;
  width: 100%;
}
:where(fieldset[ui-tabs~="equal"]) {
  grid-auto-columns: minmax(0, 1fr);
}
:where(fieldset[ui-tabs] > legend),
:where(fieldset[ui-tabs] > input[type="radio"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:where(fieldset[ui-tabs] > label) {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 16px;
  min-height: 34px;
  color: var(--black);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}
:where(fieldset[ui-tabs~="xs"] > label) {
  padding-inline: 8px;
  min-height: 20px;
  font-size: .75rem;
}
:where(fieldset[ui-tabs~="sm"] > label) {
  padding-inline: 12px;
  min-height: 26px;
  font-size: .875rem;
}
:where(fieldset[ui-tabs~="lg"] > label) {
  padding-inline: 24px;
  min-height: 44px;
  font-size: 1.125rem;
}
:where(fieldset[ui-tabs~="xl"] > label) {
  padding-inline: 28px;
  min-height: 56px;
  font-size: 1.125rem;
}
:where(fieldset[ui-tabs] > input[type="radio"]:checked + label) {
  border-color: var(--white);
  background: var(--black);
  box-shadow: none;
  color: var(--white);
}
:where(fieldset[ui-tabs] > input[type="radio"]:focus-visible + label) {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
:where(fieldset[ui-tabs] > input[type="radio"]:disabled + label) {
  cursor: not-allowed;
  color: var(--neutral-500);
  opacity: .45;
}
:where(fieldset[ui-tabs] > input[type="radio"]:checked:disabled + label) {
  border-color: var(--neutral-500);
  background: var(--neutral-200);
  color: var(--neutral-500);
  opacity: .75;
}
@scope ([ui-theme="dark"]) to ([ui-theme="light"]) {
  :where(fieldset[ui-tabs]) {
    background: var(--neutral-800);
  }
  :where(fieldset[ui-tabs] > label) {
    color: var(--white);
  }
  :where(fieldset[ui-tabs] > input[type="radio"]:checked + label) {
    border-color: var(--black);
    background: var(--white);
    color: var(--black);
  }
  :where(fieldset[ui-tabs] > input[type="radio"]:focus-visible + label) {
    outline-color: var(--white);
  }
  :where(fieldset[ui-tabs] > input[type="radio"]:disabled + label) {
    color: var(--neutral-500);
  }
  :where(fieldset[ui-tabs] > input[type="radio"]:checked:disabled + label) {
    border-color: var(--neutral-500);
    background: var(--neutral-700);
    color: var(--neutral-500);
  }
}

}
@layer core {
/* src/container.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  CONTAINER COMPONENT
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Container component - ui-container attribute */
:where([ui-container]) {
  --ui-container-min-padding: clamp(16px, 4%, 48px);
  container-type: inline-size;
  padding-inline: max(calc(50% - 900px / 2), var(--ui-container-min-padding));
}

:where([ui-container~="xs"]) {
  padding-inline: max(calc(50% - 400px / 2), var(--ui-container-min-padding));
}

:where([ui-container~="sm"]) {
  padding-inline: max(calc(50% - 600px / 2), var(--ui-container-min-padding));
}

:where([ui-container~="lg"]) {
  padding-inline: max(calc(50% - 1200px / 2), var(--ui-container-min-padding));
}

:where([ui-container~="xl"]) {
  padding-inline: max(calc(50% - 1600px / 2), var(--ui-container-min-padding));
}

:where([ui-container~="full"]) {
  padding-inline: var(--ui-container-min-padding);
}

}
@layer core {
/* src/row.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  ROW UTILITY (ui-row attribute)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Base row; no default gap. min-width: 0 so it can shrink in flex/grid and overflow works. */
:where([ui-row]) {
  display: flex;
  flex-direction: row;
  min-width: 0;
}

/* X-axis (justify-content in row) */
:where([ui-row~="x-start"]) {
  justify-content: flex-start;
}

:where([ui-row~="x-end"]) {
  justify-content: flex-end;
}

:where([ui-row~="x-center"]) {
  justify-content: center;
}

:where([ui-row~="x-between"]) {
  justify-content: space-between;
}

:where([ui-row~="x-around"]) {
  justify-content: space-around;
}

:where([ui-row~="x-evenly"]) {
  justify-content: space-evenly;
}

/* Y-axis (align-items in row) */
:where([ui-row~="y-start"]) {
  align-items: flex-start;
}

:where([ui-row~="y-end"]) {
  align-items: flex-end;
}

:where([ui-row~="y-center"]) {
  align-items: center;
}

:where([ui-row~="y-stretch"]) {
  align-items: stretch;
}

/* Gap sizes */
:where([ui-row~="gap-xs"]) {
  gap: 0.25rem;
}

:where([ui-row~="gap-sm"]) {
  gap: 0.5rem;
}

:where([ui-row~="gap-md"]) {
  gap: 1rem;
}

:where([ui-row~="gap-lg"]) {
  gap: 1.5rem;
}

:where([ui-row~="gap-xl"]) {
  gap: 2.5rem;
}

:where([ui-row~="gap-2xl"]) {
  gap: 4rem;
}

:where([ui-row~="gap-3xl"]) {
  gap: 6rem;
}

:where([ui-row~="gap-4xl"]) {
  gap: 8rem;
}

:where([ui-row~="gap-5xl"]) {
  gap: 12rem;
}

:where([ui-row~="gap-6xl"]) {
  gap: 16rem;
}

/* Wrap */
:where([ui-row~="wrap"]) {
  flex-wrap: wrap;
}

/* Inline row */
:where([ui-row~="inline"]) {
  display: inline-flex;
  align-items: baseline;
}

}
@layer core {
/* src/column.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  COLUMN UTILITY (ui-column attribute)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Base column; no default gap. min-width: 0 so it can shrink in flex/grid and pre/code overflow works. */
:where([ui-column]) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* X-axis (align-items in column - horizontal alignment) */
:where([ui-column~="x-start"]) {
  align-items: flex-start;
}

:where([ui-column~="x-end"]) {
  align-items: flex-end;
}

:where([ui-column~="x-center"]) {
  align-items: center;
}

:where([ui-column~="x-stretch"]) {
  align-items: stretch;
}

/* Y-axis (justify-content in column - vertical spacing) */
:where([ui-column~="y-start"]) {
  justify-content: flex-start;
}

:where([ui-column~="y-end"]) {
  justify-content: flex-end;
}

:where([ui-column~="y-center"]) {
  justify-content: center;
}

:where([ui-column~="y-between"]) {
  justify-content: space-between;
}

:where([ui-column~="y-around"]) {
  justify-content: space-around;
}

:where([ui-column~="y-evenly"]) {
  justify-content: space-evenly;
}

/* Gap sizes */
:where([ui-column~="gap-xs"]) {
  gap: 0.25rem;
}

:where([ui-column~="gap-sm"]) {
  gap: 0.5rem;
}

:where([ui-column~="gap-md"]) {
  gap: 1rem;
}

:where([ui-column~="gap-lg"]) {
  gap: 1.5rem;
}

:where([ui-column~="gap-xl"]) {
  gap: 2.5rem;
}

:where([ui-column~="gap-2xl"]) {
  gap: 4rem;
}

:where([ui-column~="gap-3xl"]) {
  gap: 6rem;
}

:where([ui-column~="gap-4xl"]) {
  gap: 8rem;
}

:where([ui-column~="gap-5xl"]) {
  gap: 12rem;
}

:where([ui-column~="gap-6xl"]) {
  gap: 16rem;
}

}
@layer core {
/* src/margin.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  MARGIN UTILITY (ui-margin attribute)
  Koot samat kuin column/row gap: xs–6xl
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Kaikki suunnat – pelkkä koko (esim. ui-margin="2xl") */
:where([ui-margin~="xs"]) { margin: 0.25rem; }
:where([ui-margin~="sm"]) { margin: 0.5rem; }
:where([ui-margin~="md"]) { margin: 1rem; }
:where([ui-margin~="lg"]) { margin: 1.5rem; }
:where([ui-margin~="xl"]) { margin: 2.5rem; }
:where([ui-margin~="2xl"]) { margin: 4rem; }
:where([ui-margin~="3xl"]) { margin: 6rem; }
:where([ui-margin~="4xl"]) { margin: 8rem; }
:where([ui-margin~="5xl"]) { margin: 12rem; }
:where([ui-margin~="6xl"]) { margin: 16rem; }

/* block (top + bottom) */
:where([ui-margin~="block-0"]) { margin-block: 0; }
:where([ui-margin~="block-xs"]) { margin-block: 0.25rem; }
:where([ui-margin~="block-sm"]) { margin-block: 0.5rem; }
:where([ui-margin~="block-md"]) { margin-block: 1rem; }
:where([ui-margin~="block-lg"]) { margin-block: 1.5rem; }
:where([ui-margin~="block-xl"]) { margin-block: 2.5rem; }
:where([ui-margin~="block-2xl"]) { margin-block: 4rem; }
:where([ui-margin~="block-3xl"]) { margin-block: 6rem; }
:where([ui-margin~="block-4xl"]) { margin-block: 8rem; }
:where([ui-margin~="block-5xl"]) { margin-block: 12rem; }
:where([ui-margin~="block-6xl"]) { margin-block: 16rem; }

/* inline (left + right) */
:where([ui-margin~="inline-xs"]) { margin-inline: 0.25rem; }
:where([ui-margin~="inline-sm"]) { margin-inline: 0.5rem; }
:where([ui-margin~="inline-md"]) { margin-inline: 1rem; }
:where([ui-margin~="inline-lg"]) { margin-inline: 1.5rem; }
:where([ui-margin~="inline-xl"]) { margin-inline: 2.5rem; }
:where([ui-margin~="inline-2xl"]) { margin-inline: 4rem; }
:where([ui-margin~="inline-3xl"]) { margin-inline: 6rem; }
:where([ui-margin~="inline-4xl"]) { margin-inline: 8rem; }
:where([ui-margin~="inline-5xl"]) { margin-inline: 12rem; }
:where([ui-margin~="inline-6xl"]) { margin-inline: 16rem; }

/* top */
:where([ui-margin~="top-xs"]) { margin-top: 0.25rem; }
:where([ui-margin~="top-sm"]) { margin-top: 0.5rem; }
:where([ui-margin~="top-md"]) { margin-top: 1rem; }
:where([ui-margin~="top-lg"]) { margin-top: 1.5rem; }
:where([ui-margin~="top-xl"]) { margin-top: 2.5rem; }
:where([ui-margin~="top-2xl"]) { margin-top: 4rem; }
:where([ui-margin~="top-3xl"]) { margin-top: 6rem; }
:where([ui-margin~="top-4xl"]) { margin-top: 8rem; }
:where([ui-margin~="top-5xl"]) { margin-top: 12rem; }
:where([ui-margin~="top-6xl"]) { margin-top: 16rem; }

/* bottom */
:where([ui-margin~="bottom-xs"]) { margin-bottom: 0.25rem; }
:where([ui-margin~="bottom-sm"]) { margin-bottom: 0.5rem; }
:where([ui-margin~="bottom-md"]) { margin-bottom: 1rem; }
:where([ui-margin~="bottom-lg"]) { margin-bottom: 1.5rem; }
:where([ui-margin~="bottom-xl"]) { margin-bottom: 2.5rem; }
:where([ui-margin~="bottom-2xl"]) { margin-bottom: 4rem; }
:where([ui-margin~="bottom-3xl"]) { margin-bottom: 6rem; }
:where([ui-margin~="bottom-4xl"]) { margin-bottom: 8rem; }
:where([ui-margin~="bottom-5xl"]) { margin-bottom: 12rem; }
:where([ui-margin~="bottom-6xl"]) { margin-bottom: 16rem; }

/* left */
:where([ui-margin~="left-xs"]) { margin-left: 0.25rem; }
:where([ui-margin~="left-sm"]) { margin-left: 0.5rem; }
:where([ui-margin~="left-md"]) { margin-left: 1rem; }
:where([ui-margin~="left-lg"]) { margin-left: 1.5rem; }
:where([ui-margin~="left-xl"]) { margin-left: 2.5rem; }
:where([ui-margin~="left-2xl"]) { margin-left: 4rem; }
:where([ui-margin~="left-3xl"]) { margin-left: 6rem; }
:where([ui-margin~="left-4xl"]) { margin-left: 8rem; }
:where([ui-margin~="left-5xl"]) { margin-left: 12rem; }
:where([ui-margin~="left-6xl"]) { margin-left: 16rem; }

/* right */
:where([ui-margin~="right-xs"]) { margin-right: 0.25rem; }
:where([ui-margin~="right-sm"]) { margin-right: 0.5rem; }
:where([ui-margin~="right-md"]) { margin-right: 1rem; }
:where([ui-margin~="right-lg"]) { margin-right: 1.5rem; }
:where([ui-margin~="right-xl"]) { margin-right: 2.5rem; }
:where([ui-margin~="right-2xl"]) { margin-right: 4rem; }
:where([ui-margin~="right-3xl"]) { margin-right: 6rem; }
:where([ui-margin~="right-4xl"]) { margin-right: 8rem; }
:where([ui-margin~="right-5xl"]) { margin-right: 12rem; }
:where([ui-margin~="right-6xl"]) { margin-right: 16rem; }

}
@layer core {
/* src/padding.css */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  PADDING UTILITY (ui-padding)
  Sama skaala kuin ui-margin: xs, sm, md, lg, xl, 2xl–6xl
  Suunnat: top, right, bottom, left, block, inline tai pelkkä koko = kaikki puolet
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Kaikki puolet */
:where([ui-padding~="xs"]) { padding: 0.25rem; }
:where([ui-padding~="sm"]) { padding: 0.5rem; }
:where([ui-padding~="md"]) { padding: 1rem; }
:where([ui-padding~="lg"]) { padding: 1.5rem; }
:where([ui-padding~="xl"]) { padding: 2.5rem; }
:where([ui-padding~="2xl"]) { padding: 4rem; }
:where([ui-padding~="3xl"]) { padding: 6rem; }
:where([ui-padding~="4xl"]) { padding: 8rem; }
:where([ui-padding~="5xl"]) { padding: 12rem; }
:where([ui-padding~="6xl"]) { padding: 16rem; }

/* block (top + bottom) */
:where([ui-padding~="block-xs"]) { padding-block: 0.25rem; }
:where([ui-padding~="block-sm"]) { padding-block: 0.5rem; }
:where([ui-padding~="block-md"]) { padding-block: 1rem; }
:where([ui-padding~="block-lg"]) { padding-block: 1.5rem; }
:where([ui-padding~="block-xl"]) { padding-block: 2.5rem; }
:where([ui-padding~="block-2xl"]) { padding-block: 4rem; }
:where([ui-padding~="block-3xl"]) { padding-block: 6rem; }
:where([ui-padding~="block-4xl"]) { padding-block: 8rem; }
:where([ui-padding~="block-5xl"]) { padding-block: 12rem; }
:where([ui-padding~="block-6xl"]) { padding-block: 16rem; }

/* inline (left + right) */
:where([ui-padding~="inline-xs"]) { padding-inline: 0.25rem; }
:where([ui-padding~="inline-sm"]) { padding-inline: 0.5rem; }
:where([ui-padding~="inline-md"]) { padding-inline: 1rem; }
:where([ui-padding~="inline-lg"]) { padding-inline: 1.5rem; }
:where([ui-padding~="inline-xl"]) { padding-inline: 2.5rem; }
:where([ui-padding~="inline-2xl"]) { padding-inline: 4rem; }
:where([ui-padding~="inline-3xl"]) { padding-inline: 6rem; }
:where([ui-padding~="inline-4xl"]) { padding-inline: 8rem; }
:where([ui-padding~="inline-5xl"]) { padding-inline: 12rem; }
:where([ui-padding~="inline-6xl"]) { padding-inline: 16rem; }

/* top */
:where([ui-padding~="top-xs"]) { padding-top: 0.25rem; }
:where([ui-padding~="top-sm"]) { padding-top: 0.5rem; }
:where([ui-padding~="top-md"]) { padding-top: 1rem; }
:where([ui-padding~="top-lg"]) { padding-top: 1.5rem; }
:where([ui-padding~="top-xl"]) { padding-top: 2.5rem; }
:where([ui-padding~="top-2xl"]) { padding-top: 4rem; }
:where([ui-padding~="top-3xl"]) { padding-top: 6rem; }
:where([ui-padding~="top-4xl"]) { padding-top: 8rem; }
:where([ui-padding~="top-5xl"]) { padding-top: 12rem; }
:where([ui-padding~="top-6xl"]) { padding-top: 16rem; }

/* bottom */
:where([ui-padding~="bottom-xs"]) { padding-bottom: 0.25rem; }
:where([ui-padding~="bottom-sm"]) { padding-bottom: 0.5rem; }
:where([ui-padding~="bottom-md"]) { padding-bottom: 1rem; }
:where([ui-padding~="bottom-lg"]) { padding-bottom: 1.5rem; }
:where([ui-padding~="bottom-xl"]) { padding-bottom: 2.5rem; }
:where([ui-padding~="bottom-2xl"]) { padding-bottom: 4rem; }
:where([ui-padding~="bottom-3xl"]) { padding-bottom: 6rem; }
:where([ui-padding~="bottom-4xl"]) { padding-bottom: 8rem; }
:where([ui-padding~="bottom-5xl"]) { padding-bottom: 12rem; }
:where([ui-padding~="bottom-6xl"]) { padding-bottom: 16rem; }

/* left */
:where([ui-padding~="left-xs"]) { padding-left: 0.25rem; }
:where([ui-padding~="left-sm"]) { padding-left: 0.5rem; }
:where([ui-padding~="left-md"]) { padding-left: 1rem; }
:where([ui-padding~="left-lg"]) { padding-left: 1.5rem; }
:where([ui-padding~="left-xl"]) { padding-left: 2.5rem; }
:where([ui-padding~="left-2xl"]) { padding-left: 4rem; }
:where([ui-padding~="left-3xl"]) { padding-left: 6rem; }
:where([ui-padding~="left-4xl"]) { padding-left: 8rem; }
:where([ui-padding~="left-5xl"]) { padding-left: 12rem; }
:where([ui-padding~="left-6xl"]) { padding-left: 16rem; }

/* right */
:where([ui-padding~="right-xs"]) { padding-right: 0.25rem; }
:where([ui-padding~="right-sm"]) { padding-right: 0.5rem; }
:where([ui-padding~="right-md"]) { padding-right: 1rem; }
:where([ui-padding~="right-lg"]) { padding-right: 1.5rem; }
:where([ui-padding~="right-xl"]) { padding-right: 2.5rem; }
:where([ui-padding~="right-2xl"]) { padding-right: 4rem; }
:where([ui-padding~="right-3xl"]) { padding-right: 6rem; }
:where([ui-padding~="right-4xl"]) { padding-right: 8rem; }
:where([ui-padding~="right-5xl"]) { padding-right: 12rem; }
:where([ui-padding~="right-6xl"]) { padding-right: 16rem; }

}
@layer core {
/* src/shadow.css */
/* Core shadow: monochrome in both light and dark modes. */
:where([ui-shadow]) {
  --_ui-shadow-color: var(--black);
  --_ui-shadow-opacity: 1;
  --_ui-shadow-top-opacity: 1;
  box-shadow: 0 -1px 4px oklch(from var(--_ui-shadow-color) l c h / calc(3% * var(--_ui-shadow-top-opacity))),
    0 4px 6px -1px oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity))),
    0 2px 4px -2px oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="subtle"]) {
  --_ui-shadow-opacity: 0.65;
}
:where([ui-shadow~="strong"]) {
  --_ui-shadow-opacity: 1.4;
  --_ui-shadow-top-opacity: 1.4;
}
:where([ui-shadow~="xs"]) {
  box-shadow: 0 -1px 4px oklch(from var(--_ui-shadow-color) l c h / calc(3% * var(--_ui-shadow-top-opacity))),
    0 1px 2px 0 oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="sm"]) {
  box-shadow: 0 -1px 4px oklch(from var(--_ui-shadow-color) l c h / calc(3% * var(--_ui-shadow-top-opacity))),
    0 1px 3px 0 oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity))),
    0 1px 2px -1px oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="lg"]) {
  box-shadow: 0 -1px 5px oklch(from var(--_ui-shadow-color) l c h / calc(3% * var(--_ui-shadow-top-opacity))),
    0 10px 15px -3px oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity))),
    0 4px 6px -4px oklch(from var(--_ui-shadow-color) l c h / calc(7% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="xl"]) {
  box-shadow: 0 -2px 7px oklch(from var(--_ui-shadow-color) l c h / calc(3% * var(--_ui-shadow-top-opacity))),
    0 20px 25px -5px oklch(from var(--_ui-shadow-color) l c h / calc(6% * var(--_ui-shadow-opacity))),
    0 8px 10px -6px oklch(from var(--_ui-shadow-color) l c h / calc(6% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="2xl"]) {
  box-shadow: 0 -2px 9px oklch(from var(--_ui-shadow-color) l c h / calc(2.5% * var(--_ui-shadow-top-opacity))),
    0 25px 50px -12px oklch(from var(--_ui-shadow-color) l c h / calc(5.5% * var(--_ui-shadow-opacity))),
    0 12px 24px -8px oklch(from var(--_ui-shadow-color) l c h / calc(5.5% * var(--_ui-shadow-opacity)));
}
:where([ui-shadow~="3xl"]) {
  box-shadow: 0 -3px 12px oklch(from var(--_ui-shadow-color) l c h / calc(2% * var(--_ui-shadow-top-opacity))),
    0 35px 60px -15px oklch(from var(--_ui-shadow-color) l c h / calc(5% * var(--_ui-shadow-opacity))),
    0 18px 32px -10px oklch(from var(--_ui-shadow-color) l c h / calc(5% * var(--_ui-shadow-opacity)));
}

}
