/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-black: #000;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

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

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

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

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

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

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

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

  b, strong {
    font-weight: bolder;
  }

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

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

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

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

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

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

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

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

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

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

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

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

  ::placeholder {
    opacity: 1;
  }

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

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

  textarea {
    resize: vertical;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  :root {
    --page-has-backdrop: var(--page-scroll-lock) 1;
    --page-scroll-bg: var(--page-scroll-lock)
    var(--root-bg, #0000);
  }

  @supports (color: color-mix(in lab, red, red)) {
    :root {
      --page-scroll-bg: var(--page-scroll-lock)
    color-mix(in srgb, var(--root-bg, #0000), oklch(0% 0 0) calc(var(--page-has-backdrop, 0) * 40%));
    }
  }

  :root {
    background-image: var(--page-scroll-lock) linear-gradient(var(--root-bg, #0000), var(--root-bg, #0000));
  }

  @media (prefers-reduced-motion: no-preference) {
    :root {
      transition: var(--page-scroll-lock) background-color .3s ease-out;
    }
  }

  :root {
    animation: var(--page-scroll-lock) set-page-has-scroll forwards;
    animation-timeline: var(--page-scroll-lock) scroll();
    --page-has-scroll: initial;
    scrollbar-gutter: var(--page-has-scroll) var(--page-scroll-lock) stable;
  }

  @keyframes set-page-has-scroll {
    0%, to {
      --page-has-scroll:  ;
    }
  }

  :root {
    --page-scroll-lock: initial;
    --page-overflow: var(--page-scroll-lock) hidden;
  }

  :root:not(span) {
    overflow: var(--page-overflow);
  }

  :root, [data-theme] {
    background-color: var(--root-bg);
    color: var(--color-base-content);
  }

  :root {
    background-color: var(--page-scroll-bg, var(--root-bg));
  }

  :where(:root, [data-theme]) {
    --root-bg: var(--color-base-100);
  }

  :root {
    scrollbar-color: currentColor #0000;
  }

  @supports (color: color-mix(in lab, red, red)) {
    :root {
      scrollbar-color: color-mix(in oklch, currentColor 35%, #0000) #0000;
    }
  }

  :root {
    --fx-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.34' numOctaves='4' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23a)' opacity='0.2'%3E%3C/rect%3E%3C/svg%3E");
  }

  @property --radialprogress {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
  }

  @property --aura-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
  }

  :where(:root), :root:has(input.theme-controller[value="hina"]:checked), [data-theme="hina"] {
    color-scheme: dark;
    --color-base-100: #141b28;
    --color-base-200: #0e1520;
    --color-base-300: #222c3c;
    --color-base-content: #e4ebf6;
    --color-primary: #a6dbf6;
    --color-primary-content: #132635;
    --color-secondary: #b9a5e6;
    --color-secondary-content: #181126;
    --color-accent: #b9a5e6;
    --color-accent-content: #181126;
    --color-neutral: #222c3c;
    --color-neutral-content: #c9d5e4;
    --color-info: #a6dbf6;
    --color-info-content: #132635;
    --color-success: #a1d5bf;
    --color-success-content: #10271e;
    --color-warning: #ecc88e;
    --color-warning-content: #2c2215;
    --color-error: #f399a6;
    --color-error-content: #30141a;
    --radius-selector: .4rem;
    --radius-field: .4rem;
    --radius-box: .75rem;
    --size-selector: .25rem;
    --size-field: .25rem;
    --border: 1px;
    --depth: 0;
    --noise: 0;
  }
}

@layer components;

@layer utilities {
  @layer daisyui.l1.l2.l3 {
    .range {
      appearance: none;
      webkit-appearance: none;
      --range-thumb: var(--color-base-100);
      --range-thumb-size: calc(var(--size-selector, .25rem) * 6);
      --range-progress: currentColor;
      --range-fill: 1;
      --range-p: .25rem;
      --range-bg: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .range {
        --range-bg: color-mix(in oklab, currentColor 10%, #0000);
      }
    }

    .range {
      --range-fill-x: calc(var(--range-dir, 1) * (-100cqw - var(--range-thumb-size) / 2));
      --range-fill-y: 0;
      --range-fill-spread: calc(100cqw * var(--range-fill));
      cursor: pointer;
      vertical-align: middle;
      --radius-selector-max: calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector));
      --range-radius: calc(var(--radius-selector) + min(var(--range-p), var(--radius-selector-max)));
      border-radius: var(--range-radius);
      width: clamp(3rem, 20rem, 100%);
      height: var(--range-thumb-size);
      background-color: #0000;
      border: none;
      overflow: hidden;
      container-type: inline-size;
    }

    [dir="rtl"] .range {
      --range-dir: -1;
    }

    .range:focus {
      outline: none;
    }

    .range:focus-visible {
      outline-offset: 2px;
      outline: 2px solid;
    }

    .range::-webkit-slider-runnable-track {
      background-color: var(--range-bg);
      border-radius: var(--radius-selector);
      width: 100%;
      height: calc(var(--range-thumb-size) * .5);
    }

    @media (forced-colors: active) {
      .range::-webkit-slider-runnable-track {
        border: 1px solid;
      }

      .range::-moz-range-track {
        border: 1px solid;
      }
    }

    .range::-webkit-slider-thumb {
      box-sizing: border-box;
      border-radius: var(--range-radius);
      background-color: var(--range-thumb);
      height: var(--range-thumb-size);
      width: var(--range-thumb-size);
      border: var(--range-p) solid;
      appearance: none;
      webkit-appearance: none;
      color: var(--range-progress);
      box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px currentColor, var(--range-fill-x) var(--range-fill-y) 0 var(--range-fill-spread);
      position: relative;
      inset-block-start: 50%;
      transform: translateY(-50%);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .range::-webkit-slider-thumb {
        box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000), var(--range-fill-x) var(--range-fill-y) 0 var(--range-fill-spread);
      }
    }

    .range::-moz-range-track {
      background-color: var(--range-bg);
      border-radius: var(--radius-selector);
      width: 100%;
      height: calc(var(--range-thumb-size) * .5);
    }

    .range::-moz-range-progress {
      background-color: var(--range-progress);
      block-size: var(--range-thumb-size);
      opacity: var(--range-fill);
    }

    .range::-moz-range-thumb {
      box-sizing: border-box;
      border-radius: var(--range-radius);
      background-color: var(--range-thumb);
      height: var(--range-thumb-size);
      width: var(--range-thumb-size);
      border: var(--range-p) solid;
      color: var(--range-progress);
      box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px currentColor;
      position: relative;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .range::-moz-range-thumb {
        box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000);
      }
    }

    .range:disabled {
      cursor: not-allowed;
      opacity: .3;
    }

    .modal {
      pointer-events: none;
      visibility: hidden;
      width: 100%;
      max-width: none;
      height: 100%;
      max-height: none;
      color: inherit;
      background-color: #0000;
      place-items: center;
      margin: 0;
      padding: 0;
      display: grid;
      position: fixed;
      inset: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
      .modal {
        transition: overlay .3s allow-discrete, visibility .3s allow-discrete, background-color .3s ease-out, opacity .1s ease-out;
      }
    }

    .modal {
      overscroll-behavior: contain;
      z-index: 999;
      scrollbar-gutter: auto;
      overflow: clip;
    }

    .modal::backdrop {
      display: none;
    }

    .modal[popover] {
      color: inherit;
      background: none;
      border: 0;
      max-width: none;
      max-height: none;
      margin: 0;
      padding: 0;
      inset: 0;
    }

    .modal[popover]::backdrop {
      background-color: oklch(0% 0 0 / .4);
    }

    @media (prefers-reduced-motion: no-preference) {
      .modal[popover]::backdrop {
        transition: background-color .3s ease-out;
      }
    }

    .tooltip {
      --tt-bg: var(--color-neutral);
      --tt-off: calc(100% + .5rem);
      --tt-radius: min(var(--radius-field), .8rem);
      --tt-overlap: clamp(1px, calc(var(--radius-field) / 8), 2px);
      --tt-tail: calc(100% + var(--tt-overlap) + .25rem);
      --tt-tail-off: max(.5rem, var(--tt-radius));
      display: inline-block;
      position: relative;
    }

    .tooltip > .tooltip-content, .tooltip[data-tip]:before {
      border-radius: var(--radius-field);
      text-align: center;
      white-space: normal;
      max-width: 20rem;
      color: var(--color-neutral-content);
      opacity: 0;
      background-color: var(--tt-bg);
      padding-block: .25rem;
      padding-inline: .5rem;
      font-size: .875rem;
      font-weight: 400;
      line-height: 1.25;
      position: absolute;
    }

    @media (forced-colors: active) {
      .tooltip > .tooltip-content, .tooltip[data-tip]:before {
        outline-offset: -1px;
        outline: 1px solid;
      }
    }

    .tooltip > .tooltip-content, .tooltip[data-tip]:before {
      pointer-events: none;
      z-index: 2;
      --tw-content: attr(data-tip);
      content: var(--tw-content);
      width: max-content;
      transform: translateX(var(--tt-trans, -50%)) translateY(var(--tt-pos, .25rem));
      inset: auto auto var(--tt-off) 50%;
    }

    .tooltip:after {
      opacity: 0;
      background-color: var(--tt-bg);
      position: absolute;
    }

    @media (forced-colors: active) {
      .tooltip:after {
        background-color: canvastext;
      }
    }

    .tooltip:after {
      content: "";
      pointer-events: none;
      --mask-tooltip: url("data:image/svg+xml,%3Csvg width='10' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.500009 1C3.5 1 3.00001 4 5.00001 4C7 4 6.5 1 9.5 1C10 1 10 0.499897 10 0H0C-1.99338e-08 0.5 0 1 0.500009 1Z' fill='black'/%3E%3C/svg%3E%0A");
      width: .625rem;
      height: .25rem;
      -webkit-mask-position: -1px 0;
      mask-position: -1px 0;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-image: var(--mask-tooltip);
      -webkit-mask-image: var(--mask-tooltip);
      mask-image: var(--mask-tooltip);
      transform: translateX(var(--tt-trans, -50%)) translateY(var(--tt-pos, .25rem));
      inset: auto auto var(--tt-tail) 50%;
      display: block;
    }

    @media (prefers-reduced-motion: no-preference) {
      .tooltip > .tooltip-content, .tooltip[data-tip]:before, .tooltip:after {
        transition: opacity .2s cubic-bezier(.4, 0, .2, 1) 75ms, transform .2s cubic-bezier(.4, 0, .2, 1) 75ms;
      }
    }

    :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible)) > .tooltip-content, :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible))[data-tip]:before, :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible)):after {
      opacity: 1;
      --tt-pos: 0rem;
    }

    @media (prefers-reduced-motion: no-preference) {
      :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible)) > .tooltip-content, :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible))[data-tip]:before, :is(.tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))).tooltip-open, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):hover, .tooltip:is([data-tip]:not([data-tip=""]), :has(.tooltip-content:not(:empty))):has(:focus-visible)):after {
        transition: opacity .2s cubic-bezier(.4, 0, .2, 1), transform .2s cubic-bezier(.4, 0, .2, 1);
      }
    }

    .tab:is(.tabs > .tab) {
      cursor: pointer;
      appearance: none;
      text-align: center;
      webkit-user-select: none;
      -webkit-user-select: none;
      user-select: none;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      display: inline-flex;
      position: relative;
    }

    @media (hover: hover) {
      .tab:is(.tabs > .tab):hover {
        color: var(--color-base-content);
      }
    }

    .tab:is(.tabs > .tab) {
      --tab-p: .75rem;
      --tab-bg: var(--color-base-100);
      --tab-border-color: var(--color-base-300);
      --tab-radius-ss: 0;
      --tab-radius-se: 0;
      --tab-radius-es: 0;
      --tab-radius-ee: 0;
      --tab-order: 0;
      --tab-radius-min: calc(.75rem - var(--border));
      --tab-radius-limit: min(var(--radius-field), var(--tab-radius-min));
      --tab-radius-grad: #0000 calc(69% - var(--border)), var(--tab-border-color) calc(69% - var(--border) + .25px),
        var(--tab-border-color) 69%, var(--tab-bg) calc(69% + .25px);
      order: var(--tab-order);
      height: var(--tab-height);
      padding-inline: var(--tab-p);
      border-color: #0000;
      font-size: .875rem;
    }

    .tab:is(.tabs > .tab):is(input[type="radio"]) {
      min-width: fit-content;
    }

    .tab:is(.tabs > .tab):is(input[type="radio"]):after {
      --tw-content: attr(aria-label);
      content: var(--tw-content);
    }

    .tab:is(.tabs > .tab):is(label) {
      position: relative;
    }

    .tab:is(.tabs > .tab):is(label) input {
      cursor: pointer;
      appearance: none;
      opacity: 0;
      position: absolute;
      inset: 0;
    }

    :is(.tab:is(.tabs > .tab):checked, .tab:is(.tabs > .tab):is(label:has(:checked)), .tab:is(.tabs > .tab):is(.tab-active, [aria-selected="true"], [aria-current]:not([aria-current="false"], [aria-current=""]))) + .tab-content {
      display: block;
    }

    @media (forced-colors: active) {
      :is(.tab:is(.tabs > .tab):checked, .tab:is(.tabs > .tab):is(label:has(:checked)), .tab:is(.tabs > .tab):is(.tab-active, [aria-selected="true"], [aria-current]:not([aria-current="false"], [aria-current=""]))):not(.tabs-border > *) {
        border: 1px solid;
      }
    }

    .tab:is(.tabs > .tab):not(:checked, label:has(:checked), :hover, .tab-active, [aria-selected="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .tab:is(.tabs > .tab):not(:checked, label:has(:checked), :hover, .tab-active, [aria-selected="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
        color: color-mix(in oklab, var(--color-base-content) 50%, transparent);
      }
    }

    .tab:is(.tabs > .tab):not(input):empty {
      cursor: default;
      flex-grow: 1;
    }

    .tab:is(.tabs > .tab):focus {
      --tw-outline-style: none;
      outline-style: none;
    }

    @media (forced-colors: active) {
      .tab:is(.tabs > .tab):focus {
        outline-offset: 2px;
        outline: 2px solid #0000;
      }
    }

    .tab:is(.tabs > .tab):focus-visible, .tab:is(.tabs > .tab):is(label:has(:checked:focus-visible)) {
      outline-offset: -5px;
      outline: 2px solid;
    }

    .tab:is(.tabs > .tab)[disabled] {
      pointer-events: none;
      opacity: .4;
    }

    :where(.btn) {
      width: unset;
    }

    .btn {
      --size: calc(var(--size-field, .25rem) * 10);
      --btn-p: 1rem;
      --btn-fg: var(--color-base-content);
      cursor: pointer;
      text-align: center;
      vertical-align: middle;
      outline-offset: 2px;
      webkit-user-select: none;
      -webkit-user-select: none;
      user-select: none;
      border-width: var(--border);
      touch-action: manipulation;
      --btn-bg: var(--btn-color, var(--color-base-200));
      --btn-border: var(--btn-color, var(--color-base-200));
      border-start-start-radius: var(--join-ss, var(--radius-field));
      border-start-end-radius: var(--join-se, var(--radius-field));
      border-end-end-radius: var(--join-ee, var(--radius-field));
      border-end-start-radius: var(--join-es, var(--radius-field));
      flex-wrap: nowrap;
      flex-shrink: 0;
      justify-content: center;
      align-items: center;
      gap: .375rem;
      font-weight: 600;
      transition-property: color, background-color, border-color, box-shadow, transform;
      transition-duration: .2s;
      transition-timing-function: cubic-bezier(0, 0, .2, 1);
      display: inline-flex;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn {
        --btn-border: color-mix(in oklab,
      var(--btn-color, var(--color-base-200)),
      #000 calc(var(--depth) * 5%));
      }
    }

    .btn {
      --btn-soft-bg: initial;
      --btn-shadow: 0 3px 2px -2px var(--btn-bg),
      0 4px 3px -2px var(--btn-bg);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn {
        --btn-shadow: 0 3px 2px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000),
      0 4px 3px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000);
      }
    }

    .btn {
      --btn-inset: 0 .5px 0 .5px oklch(100% 0 0 / calc(var(--depth) * 6%));
      height: var(--size);
      padding-inline: var(--btn-p);
      font-size: var(--fontsize, .875rem);
      background-color: var(--btn-bg);
      color: var(--btn-fg);
      border-color: var(--btn-border);
      border-style: var(--btn-border-style, solid);
      outline-color: var(--btn-color, var(--color-base-content));
      --tw-prose-links: var(--btn-fg);
      background-image: none, var(--fx-noise);
      background-size: auto, calc(var(--noise, 0) * 100%);
      text-shadow: 0 .5px oklch(100% 0 0 / calc(var(--depth) * .15));
      box-shadow: var(--btn-inset) inset, var(--btn-shadow);
    }

    .btn:is([type="checkbox"], [type="radio"]) {
      appearance: none;
    }

    .btn:is([type="checkbox"], [type="radio"])[aria-label]:after {
      --tw-content: attr(aria-label);
      content: var(--tw-content);
    }

    .btn:where(:checked:not(.filter [type="radio"].btn)) {
      --btn-color: var(--color-primary);
      --btn-fg: var(--color-primary-content);
    }

    .loading {
      pointer-events: none;
      aspect-ratio: 1;
      vertical-align: middle;
      width: calc(var(--size-selector, .25rem) * 6);
      background-color: currentColor;
      flex-shrink: 0;
      display: inline-block;
    }

    @media (forced-colors: active) {
      .loading {
        background-color: canvastext;
      }
    }

    .loading {
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='6s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='6s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='6s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='6s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
      -webkit-mask-position: center;
      mask-position: center;
      -webkit-mask-size: 100%;
      mask-size: 100%;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
    }

    @media (prefers-reduced-motion: no-preference) {
      .loading {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
      }
    }

    .countdown {
      display: inline-flex;
    }

    .countdown > * {
      visibility: hidden;
      display: inline-block;
      position: relative;
      overflow-y: clip;
    }

    @media (prefers-reduced-motion: no-preference) {
      .countdown > * {
        transition: width .4s ease-out .2s;
      }
    }

    .countdown > * {
      --value-v: calc(mod(max(0, var(--value)), 1000));
      --value-hundreds: calc(round(to-zero, var(--value-v) / 100, 1));
      --value-tens: calc(round(to-zero, mod(var(--value-v), 100) / 10, 1));
      --value-ones: calc(mod(var(--value-v), 100));
      --show-hundreds: clamp(clamp(0, var(--digits, 1) - 2, 1), var(--value-hundreds), 1);
      --show-tens: clamp(clamp(0, var(--digits, 1) - 1, 1),
        var(--value-tens) + var(--show-hundreds),
        1);
      --first-digits: calc(round(to-zero, var(--value-v) / 10, 1));
      height: 1em;
      width: calc(1ch + var(--show-tens) * 1ch + var(--show-hundreds) * 1ch);
      direction: ltr;
    }

    .countdown > :before, .countdown > :after {
      visibility: visible;
      --tw-content: "00\a 01\a 02\a 03\a 04\a 05\a 06\a 07\a 08\a 09\a 10\a 11\a 12\a 13\a 14\a 15\a 16\a 17\a 18\a 19\a 20\a 21\a 22\a 23\a 24\a 25\a 26\a 27\a 28\a 29\a 30\a 31\a 32\a 33\a 34\a 35\a 36\a 37\a 38\a 39\a 40\a 41\a 42\a 43\a 44\a 45\a 46\a 47\a 48\a 49\a 50\a 51\a 52\a 53\a 54\a 55\a 56\a 57\a 58\a 59\a 60\a 61\a 62\a 63\a 64\a 65\a 66\a 67\a 68\a 69\a 70\a 71\a 72\a 73\a 74\a 75\a 76\a 77\a 78\a 79\a 80\a 81\a 82\a 83\a 84\a 85\a 86\a 87\a 88\a 89\a 90\a 91\a 92\a 93\a 94\a 95\a 96\a 97\a 98\a 99\a ";
      content: var(--tw-content);
      font-variant-numeric: tabular-nums;
      white-space: pre;
      text-align: end;
      direction: rtl;
      position: absolute;
      overflow-x: clip;
    }

    @media (prefers-reduced-motion: no-preference) {
      .countdown > :before, .countdown > :after {
        transition: all 1s cubic-bezier(1, 0, 0, 1), width .2s ease-out .2s, opacity .2s ease-out .2s;
      }
    }

    .countdown > :before {
      width: calc(1ch + var(--show-hundreds) * 1ch);
      top: calc(var(--first-digits) * -1em);
      opacity: var(--show-tens);
      inset-inline-end: 0;
    }

    .countdown > :after {
      width: 1ch;
      top: calc(var(--value-ones) * -1em);
      inset-inline-start: 0;
    }

    .filter {
      flex-wrap: wrap;
      display: flex;
    }

    .filter [type="radio"] {
      width: auto;
    }

    .filter input {
      opacity: 1;
      overflow: hidden;
      scale: 1;
    }

    @media (prefers-reduced-motion: no-preference) {
      .filter input {
        transition: visibility .1s allow-discrete, margin .1s, opacity .3s, padding .3s, border-width .1s;
      }
    }

    .filter input.filter-reset {
      aspect-ratio: 1;
    }

    .filter input.filter-reset:after {
      --tw-content: "×";
      content: var(--tw-content);
    }

    .filter > input:not(:last-child), .filter > :not(:last-child) input {
      margin-inline-end: .25rem;
    }

    .list {
      flex-direction: column;
      font-size: .875rem;
      display: flex;
    }

    .list .list-row {
      --list-grid-cols: minmax(0, auto) 1fr;
      border-radius: var(--radius-box);
      word-break: break-word;
      grid-auto-flow: column;
      grid-template-columns: var(--list-grid-cols);
      gap: 1rem;
      padding: 1rem;
      display: grid;
      position: relative;
    }

    :is(.list > :not(:last-child).list-row, .list > :not(:last-child) .list-row):after {
      content: "";
      border-bottom: var(--border) solid;
      inset-inline: var(--radius-box);
      border-color: var(--color-base-content);
      position: absolute;
      bottom: 0;
    }

    @supports (color: color-mix(in lab, red, red)) {
      :is(.list > :not(:last-child).list-row, .list > :not(:last-child) .list-row):after {
        border-color: color-mix(in oklab, var(--color-base-content) 5%, transparent);
      }
    }

    .toast {
      translate: var(--toast-x, 0) var(--toast-y, 0);
      inset-inline: auto 1rem;
      background-color: #0000;
      flex-direction: column;
      gap: .5rem;
      width: max-content;
      max-width: calc(100vw - 2rem);
      display: flex;
      position: fixed;
      top: auto;
      bottom: 1rem;
    }

    @media (prefers-reduced-motion: no-preference) {
      .toast > * {
        animation: .25s ease-out toast;
      }
    }

    .toggle {
      border: var(--border) solid currentColor;
      color: var(--input-color);
      cursor: pointer;
      appearance: none;
      vertical-align: middle;
      webkit-user-select: none;
      -webkit-user-select: none;
      user-select: none;
      --radius-selector-max: calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector));
      border-radius: calc(var(--radius-selector) + min(var(--toggle-p), var(--radius-selector-max)) + min(var(--border), var(--radius-selector-max)));
      padding: var(--toggle-p);
      flex-shrink: 0;
      grid-template-columns: 0fr 1fr 1fr;
      place-content: center;
      display: inline-grid;
      position: relative;
      box-shadow: inset 0 1px;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .toggle {
        box-shadow: 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000) inset;
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .toggle {
        transition: color .3s, grid-template-columns .2s;
      }
    }

    .toggle {
      --input-color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .toggle {
        --input-color: color-mix(in oklab, var(--color-base-content) 50%, #0000);
      }
    }

    .toggle {
      --toggle-p: calc(var(--size) * .125);
      --size: calc(var(--size-selector, .25rem) * 6);
      width: calc((var(--size) * 2) - (var(--border) + var(--toggle-p)) * 2);
      height: var(--size);
    }

    .toggle > * {
      z-index: 1;
      cursor: pointer;
      appearance: none;
      background-color: #0000;
      grid-column: 2 / span 1;
      grid-row-start: 1;
      height: 100%;
      padding: .125rem;
    }

    @media (prefers-reduced-motion: no-preference) {
      .toggle > * {
        transition: opacity .2s, rotate .4s;
      }
    }

    .toggle > * {
      border: none;
    }

    .toggle > :focus {
      --tw-outline-style: none;
      outline-style: none;
    }

    @media (forced-colors: active) {
      .toggle > :focus {
        outline-offset: 2px;
        outline: 2px solid #0000;
      }
    }

    .toggle > :nth-child(2) {
      color: var(--color-base-100);
      rotate: 0deg;
    }

    .toggle > :nth-child(3) {
      color: var(--color-base-100);
      opacity: 0;
      rotate: -15deg;
    }

    .toggle:has(:checked) > :nth-child(2) {
      opacity: 0;
      rotate: 15deg;
    }

    .toggle:has(:checked) > :nth-child(3) {
      opacity: 1;
      rotate: 0deg;
    }

    .toggle:before {
      aspect-ratio: 1;
      border-radius: var(--radius-selector);
      --tw-content: "";
      content: var(--tw-content);
      background-color: currentColor;
      grid-row-start: 1;
      grid-column-start: 2;
      width: 100%;
      height: 100%;
      position: relative;
      inset-inline-start: 0;
      translate: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
      .toggle:before {
        transition: background-color .1s, translate .2s, inset-inline-start .2s;
      }
    }

    .toggle:before {
      box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .toggle:before {
        box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000);
      }
    }

    .toggle:before {
      background-size: auto, calc(var(--noise) * 100%);
      background-image: none, var(--fx-noise);
    }

    @media (forced-colors: active) {
      .toggle:before {
        outline-offset: -1px;
        outline: 1px solid;
      }
    }

    @media print {
      .toggle:before {
        outline-offset: -1rem;
        outline: .25rem solid;
      }
    }

    .toggle:focus-visible, .toggle:has(:focus-visible) {
      outline-offset: 2px;
      outline: 2px solid;
    }

    .toggle:checked, .toggle[aria-checked="true"], .toggle:has( > input:checked) {
      background-color: var(--color-base-100);
      --input-color: var(--color-base-content);
      grid-template-columns: 1fr 1fr 0fr;
    }

    :is(.toggle:checked, .toggle[aria-checked="true"], .toggle:has( > input:checked)):before {
      background-color: currentColor;
    }

    @starting-style {
      :is(.toggle:checked, .toggle[aria-checked="true"], .toggle:has( > input:checked)):before {
        opacity: 0;
      }
    }

    .toggle:indeterminate {
      grid-template-columns: .5fr 1fr .5fr;
    }

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

    .toggle:disabled:before {
      border: var(--border) solid currentColor;
      background-color: #0000;
    }

    .input {
      appearance: none;
      background-color: var(--color-base-100);
      vertical-align: middle;
      white-space: nowrap;
      --size: calc(var(--size-field, .25rem) * var(--in-size-mul, 10));
      --input-color: var(--color-base-content);
      flex-shrink: 1;
      align-items: center;
      gap: .5rem;
      padding-inline: .75rem;
      display: inline-flex;
      position: relative;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .input {
        --input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
      }
    }

    .input {
      cursor: text;
      width: clamp(3rem, 20rem, 100%);
      height: var(--size);
      font-size: max(var(--font-size, 0rem), var(--font-size-min, .875rem));
      touch-action: manipulation;
      border: var(--border) solid var(--input-color, #0000);
      box-shadow: 0 1px var(--input-color) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;
      border-start-start-radius: var(--join-ss, var(--radius-field));
      border-start-end-radius: var(--join-se, var(--radius-field));
      border-end-end-radius: var(--join-ee, var(--radius-field));
      border-end-start-radius: var(--join-es, var(--radius-field));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .input {
        box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;
      }
    }

    .input input {
      appearance: none;
      background-color: #0000;
      border: none;
      width: 100%;
      height: 100%;
    }

    .input input::placeholder {
      color: var(--color-base-content);
      opacity: .5;
    }

    .input input:focus, .input input:focus-within {
      --tw-outline-style: none;
      outline-style: none;
    }

    @media (forced-colors: active) {
      .input input:focus, .input input:focus-within {
        outline-offset: 2px;
        outline: 2px solid #0000;
      }
    }

    .input input::-webkit-calendar-picker-indicator {
      inset-inline-end: -.15em;
    }

    .input::-webkit-inner-spin-button {
      margin-inline-end: -10px;
    }

    .input::-webkit-calendar-picker-indicator {
      inset-inline-end: .75em;
    }

    input.input, .input input {
      text-align: start;
      display: inline-flex;
      position: relative;
    }

    :is(input.input, .input input)[type="url"], :is(input.input, .input input)[type="tel"], :is(input.input, .input input)[type="email"], :is(input.input, .input input)[type="number"] {
      direction: ltr;
    }

    :is(input.input, .input input)::-webkit-datetime-edit {
      min-height: 100%;
      text-align: inherit;
      align-items: center;
      display: grid;
    }

    :is(input.input, .input input)::-webkit-date-and-time-value {
      min-height: 100%;
      text-align: inherit;
      align-items: center;
      display: grid;
    }

    :is(input.input, .input input)::-webkit-inner-spin-button {
      margin-block: calc(.25rem * var(--spin-my, -3));
    }

    :is(input.input, .input input)::-webkit-calendar-picker-indicator {
      cursor: pointer;
      width: 1em;
      height: 1em;
      position: absolute;
    }

    :is(input.input, .input input)::-webkit-color-swatch-wrapper {
      padding-block: .25rem;
    }

    .input:focus, .input:focus-within {
      --input-color: var(--color-base-content);
      box-shadow: 0 1px var(--input-color);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .input:focus, .input:focus-within {
        box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000);
      }
    }

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

    @media (pointer: coarse) {
      @supports (-webkit-touch-callout: none) {
        .input:focus, .input:focus-within {
          --font-size: 1rem;
        }
      }
    }

    .steps {
      counter-reset: step;
      grid-auto-columns: 1fr;
      grid-auto-flow: column;
      display: inline-grid;
      overflow: auto hidden;
    }

    .steps .step {
      text-align: center;
      --step-bg: var(--color-base-300);
      --step-fg: var(--color-base-content);
      grid-template-rows: 40px 1fr;
      grid-template-columns: auto;
      place-items: center;
      min-width: 4rem;
      display: grid;
    }

    .steps .step:before {
      width: 100%;
      height: .5rem;
      color: var(--step-bg);
      background-color: var(--step-bg);
      content: "";
      border: 1px solid;
      grid-row-start: 1;
      grid-column-start: 1;
      margin-inline-start: -100%;
      top: 0;
    }

    .steps .step > .step-icon, .steps .step:not(:has(.step-icon)):after {
      --tw-content: counter(step);
      content: var(--tw-content);
      counter-increment: step;
      z-index: 1;
      color: var(--step-fg);
      background-color: var(--step-bg);
      border: 1px solid var(--step-bg);
      border-radius: 2147483647px;
      grid-row-start: 1;
      grid-column-start: 1;
      place-self: center;
      place-items: center;
      width: 2rem;
      height: 2rem;
      display: grid;
      position: relative;
    }

    .steps .step:first-child:before {
      --tw-content: none;
      content: var(--tw-content);
    }

    .steps .step[data-content]:after {
      --tw-content: attr(data-content);
      content: var(--tw-content);
    }

    .select {
      appearance: none;
      background-color: var(--color-base-100);
      vertical-align: middle;
      --size: calc(var(--size-field, .25rem) * var(--sl-size-mul, 10));
      --input-color: var(--color-base-content);
      flex-shrink: 1;
      align-items: center;
      gap: .375rem;
      padding-inline: .75rem 1.75rem;
      display: inline-flex;
      position: relative;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .select {
        --input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
      }
    }

    .select {
      width: clamp(3rem, 20rem, 100%);
      height: var(--size);
      font-size: max(var(--font-size, 0rem), var(--font-size-min, .875rem));
      touch-action: manipulation;
      white-space: nowrap;
      text-overflow: ellipsis;
      border: var(--border) solid var(--input-color, #0000);
      box-shadow: 0 1px var(--input-color) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;
      background-image: linear-gradient(45deg, #0000 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, #0000 50%);
      background-position: calc(100% - 20px) calc(1px + 50%), calc(100% - 16.1px) calc(1px + 50%);
      background-repeat: no-repeat;
      background-size: 4px 4px, 4px 4px;
      border-start-start-radius: var(--join-ss, var(--radius-field));
      border-start-end-radius: var(--join-se, var(--radius-field));
      border-end-end-radius: var(--join-ee, var(--radius-field));
      border-end-start-radius: var(--join-es, var(--radius-field));
      overflow: hidden;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .select {
        box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;
      }
    }

    [dir="rtl"] .select {
      background-position: 12px calc(1px + 50%), 16px calc(1px + 50%);
    }

    .select[multiple] {
      background-image: none;
      height: auto;
      padding-block: .75rem;
      padding-inline-end: .75rem;
      overflow: auto;
    }

    .select select {
      appearance: none;
      width: calc(100% + 2.75rem);
      height: calc(100% - calc(var(--border) * 2));
      background: inherit;
      border-radius: inherit;
      border-style: none;
      align-items: center;
      margin-inline: -.75rem -1.75rem;
      padding-inline: .75rem 1.75rem;
    }

    .select select::placeholder {
      color: var(--color-base-content);
      opacity: .5;
    }

    .select select:focus, .select select:focus-within {
      --tw-outline-style: none;
      outline-style: none;
    }

    @media (forced-colors: active) {
      .select select:focus, .select select:focus-within {
        outline-offset: 2px;
        outline: 2px solid #0000;
      }
    }

    .select select:not(:last-child) {
      background-image: none;
      margin-inline-end: -1.375rem;
    }

    :is(.select:focus, .select:focus-within, .select:open) {
      --input-color: var(--color-base-content);
      box-shadow: 0 1px var(--input-color);
    }

    @supports (color: color-mix(in lab, red, red)) {
      :is(.select:focus, .select:focus-within, .select:open) {
        box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000);
      }
    }

    :is(.select:focus, .select:focus-within, .select:open) {
      outline: 2px solid var(--input-color);
      outline-offset: 2px;
    }

    .select:open {
      background-image: linear-gradient(135deg, #0000 50%, currentColor 50%), linear-gradient(45deg, currentColor 50%, #0000 50%);
    }

    @supports (appearance: base-select) {
      :is(.select, .select select) {
        appearance: base-select;
      }

      :is(.select, .select select)::picker(select) {
        appearance: base-select;
      }
    }

    :is(.select, .select select)::picker(select) {
      color: inherit;
      border: var(--border) solid var(--color-base-200);
      border-radius: var(--radius-box);
      background-color: inherit;
      max-height: min(24rem, 70dvh);
      box-shadow: 0 2px calc(var(--depth) * 3px) -2px oklch(0% 0 0 / .2);
      box-shadow: 0 20px 25px -5px rgb(0 0 0 / calc(var(--depth) * .1)), 0 8px 10px -6px rgb(0 0 0 / calc(var(--depth) * .1));
      margin-block: .5rem;
      margin-inline: .5rem;
      padding: .5rem;
      translate: -.5rem;
    }

    :is(.select, .select select)::picker-icon {
      display: none;
    }

    @media (forced-colors: active) {
      :is(.select, .select select)::picker-icon {
        display: block;
      }
    }

    :is(.select, .select select) selectedcontent {
      text-overflow: ellipsis;
      white-space: nowrap;
      width: 100%;
      overflow: hidden;
    }

    :is(.select, .select select) optgroup {
      padding-top: .5em;
    }

    :is(.select, .select select) optgroup option:first-child {
      margin-top: .5em;
    }

    :is(.select, .select select) option {
      border-radius: var(--radius-field);
      padding-block: .375rem;
      padding-inline: calc(.25rem * var(--option-px, 3));
      white-space: normal;
      transition-property: color, background-color;
      transition-duration: .2s;
      transition-timing-function: cubic-bezier(0, 0, .2, 1);
    }

    :is(.select, .select select) option:not(:disabled):hover, :is(.select, .select select) option:not(:disabled):focus-visible {
      cursor: pointer;
      background-color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      :is(.select, .select select) option:not(:disabled):hover, :is(.select, .select select) option:not(:disabled):focus-visible {
        background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
      }
    }

    :is(.select, .select select) option:not(:disabled):hover, :is(.select, .select select) option:not(:disabled):focus-visible {
      --tw-outline-style: none;
      outline-style: none;
    }

    @media (forced-colors: active) {
      :is(.select, .select select) option:not(:disabled):hover, :is(.select, .select select) option:not(:disabled):focus-visible {
        outline-offset: 2px;
        outline: 2px solid #0000;
      }
    }

    :is(.select, .select select) option:not(:disabled):active {
      background-color: var(--color-neutral);
      color: var(--color-neutral-content);
      box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--color-neutral);
    }

    [dir="rtl"] .select::picker(select) {
      translate: .5rem;
    }

    [dir="rtl"] .select select::picker(select) {
      translate: .5rem;
    }

    .avatar {
      vertical-align: middle;
      display: inline-flex;
      position: relative;
    }

    .avatar > div {
      aspect-ratio: 1;
      display: block;
      overflow: hidden;
    }

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

    .checkbox {
      border: var(--border) solid var(--input-color, var(--color-base-content));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .checkbox {
        border: var(--border) solid var(--input-color, color-mix(in oklab, var(--color-base-content) 20%, #0000));
      }
    }

    .checkbox {
      cursor: pointer;
      appearance: none;
      border-radius: var(--radius-selector);
      vertical-align: middle;
      color: var(--color-base-content);
      box-shadow: 0 1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 0 #0000 inset, 0 0 #0000;
      flex-shrink: 0;
      padding: .25rem;
      display: inline-block;
      position: relative;
    }

    @media (prefers-reduced-motion: no-preference) {
      .checkbox {
        transition: background-color .2s, box-shadow .2s;
      }
    }

    .checkbox {
      --size: calc(var(--size-selector, .25rem) * 6);
      width: var(--size);
      height: var(--size);
      background-size: auto, calc(var(--noise) * 100%);
      background-image: none, var(--fx-noise);
    }

    .checkbox:before {
      --tw-content: "";
      content: var(--tw-content);
      opacity: 0;
      background-color: currentColor;
      width: 100%;
      height: 100%;
      display: block;
      rotate: 45deg;
    }

    @media (prefers-reduced-motion: no-preference) {
      .checkbox:before {
        transition: clip-path .3s .1s, opacity .1s .1s, rotate .3s .1s, translate .3s .1s;
      }
    }

    .checkbox:before {
      clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 70% 80%, 70% 100%);
      box-shadow: 0px 3px 0 0px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;
      font-size: 1rem;
      line-height: .75;
    }

    .checkbox:focus-visible {
      outline: 2px solid var(--input-color, currentColor);
      outline-offset: 2px;
    }

    .checkbox:checked, .checkbox[aria-checked="true"] {
      background-color: var(--input-color, #0000);
      box-shadow: 0 0 #0000 inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 1px oklch(0% 0 0 / calc(var(--depth) * .1));
    }

    :is(.checkbox:checked, .checkbox[aria-checked="true"]):before {
      clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 0%, 70% 0%, 70% 100%);
      opacity: 1;
      translate: 3.5% -7%;
    }

    @media (forced-colors: active) {
      :is(.checkbox:checked, .checkbox[aria-checked="true"]):before {
        --tw-content: "✔︎";
        clip-path: none;
        background-color: #0000;
        rotate: 0deg;
      }
    }

    @media print {
      :is(.checkbox:checked, .checkbox[aria-checked="true"]):before {
        --tw-content: "✔︎";
        clip-path: none;
        background-color: #0000;
        rotate: 0deg;
      }
    }

    .checkbox:indeterminate, .checkbox[aria-checked="mixed"] {
      background-color: var(--input-color, var(--color-base-content));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .checkbox:indeterminate, .checkbox[aria-checked="mixed"] {
        background-color: var(--input-color, color-mix(in oklab, var(--color-base-content) 20%, #0000));
      }
    }

    :is(.checkbox:indeterminate, .checkbox[aria-checked="mixed"]):before {
      opacity: 1;
      clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 80% 80%, 80% 100%);
      translate: 0 -40%;
      rotate: 0deg;
    }

    @media (forced-colors: active) {
      :is(.checkbox:indeterminate, .checkbox[aria-checked="mixed"]):before {
        --tw-content: "−";
        clip-path: none;
        background-color: #0000;
        translate: 0;
        rotate: 0deg;
      }
    }

    .stats {
      border-radius: var(--radius-box);
      grid-auto-flow: column;
      display: inline-grid;
      position: relative;
      overflow-x: auto;
    }

    .stack {
      grid-template-rows: 3px 4px 1fr 4px 3px;
      grid-template-columns: 3px 4px 1fr 4px 3px;
      display: inline-grid;
    }

    .stack > * {
      width: 100%;
      height: 100%;
    }

    .stack > :nth-child(n+2) {
      opacity: .7;
      width: 100%;
    }

    .stack > :nth-child(2) {
      z-index: 2;
      opacity: .9;
    }

    .stack > :first-child {
      z-index: 3;
      width: 100%;
    }

    .modal-box {
      background-color: var(--color-base-100);
      grid-row-start: 1;
      grid-column-start: 1;
      width: 91.6667%;
      max-width: 32rem;
      max-height: 100vh;
      padding: 1.5rem;
    }

    @media (prefers-reduced-motion: no-preference) {
      .modal-box {
        transition: translate .3s ease-out, scale .3s ease-out, opacity .2s ease-out 50ms, box-shadow .3s ease-out;
      }
    }

    .modal-box {
      border-top-left-radius: var(--modal-tl, var(--radius-box));
      border-top-right-radius: var(--modal-tr, var(--radius-box));
      border-bottom-left-radius: var(--modal-bl, var(--radius-box));
      border-bottom-right-radius: var(--modal-br, var(--radius-box));
      opacity: 0;
      overscroll-behavior: contain;
      overflow-y: auto;
      scale: .95;
      box-shadow: 0 25px 50px -12px oklch(0% 0 0 / .25);
    }

    @media (forced-colors: active) {
      .modal-box {
        outline-offset: -1px;
        outline: 1px solid;
      }
    }

    .label {
      white-space: nowrap;
      color: currentColor;
      align-items: center;
      gap: .375rem;
      display: inline-flex;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .label {
        color: color-mix(in oklab, currentcolor 60%, transparent);
      }
    }

    .label:has(input) {
      cursor: pointer;
    }

    .label:is(.input > *, .select > *) {
      white-space: nowrap;
      height: calc(100% - .5rem);
      font-size: inherit;
      align-items: center;
      padding-inline: .75rem;
      display: flex;
    }

    .label:is(.input > *, .select > *):first-child {
      border-inline-end: var(--border) solid currentColor;
      margin-inline: -.75rem .75rem;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .label:is(.input > *, .select > *):first-child {
        border-inline-end: var(--border) solid color-mix(in oklab, currentColor 10%, #0000);
      }
    }

    .label:is(.input > *, .select > *):last-child {
      border-inline-start: var(--border) solid currentColor;
      margin-inline: .75rem -.75rem;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .label:is(.input > *, .select > *):last-child {
        border-inline-start: var(--border) solid color-mix(in oklab, currentColor 10%, #0000);
      }
    }

    .status {
      aspect-ratio: 1;
      border-radius: var(--radius-selector);
      background-color: var(--color-base-content);
      display: inline-block;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .status {
        background-color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
      }
    }

    .status {
      vertical-align: middle;
      color: #0000004d;
      background-position: center;
      background-repeat: no-repeat;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .status {
        color: color-mix(in oklab, var(--color-black) 30%, transparent);
      }
    }

    .status {
      --size: calc(var(--size-selector, .25rem) * 2);
      width: var(--size);
      height: var(--size);
      background-image: radial-gradient(circle at 35% 30%, oklch(1 0 0 / calc(var(--depth) * .5)), #0000);
      box-shadow: 0 2px 3px -1px;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .status {
        box-shadow: 0 2px 3px -1px color-mix(in oklab, currentColor calc(var(--depth) * 100%), #0000);
      }
    }

    .badge {
      border-radius: var(--radius-selector);
      vertical-align: middle;
      color: var(--badge-fg);
      border: var(--border) solid var(--badge-color, var(--color-base-200));
      background-size: auto, calc(var(--noise) * 100%);
      background-image: none, var(--fx-noise);
      background-color: var(--badge-bg);
      --badge-bg: var(--badge-color, var(--color-base-100));
      --badge-fg: var(--color-base-content);
      --size: calc(var(--size-selector, .25rem) * 6);
      width: fit-content;
      height: var(--size);
      padding-inline: calc(var(--size) / 2 - var(--border));
      flex-shrink: 0;
      justify-content: center;
      align-items: center;
      gap: .5rem;
      font-size: .875rem;
      display: inline-flex;
    }

    .stat {
      grid-template-columns: repeat(1, 1fr);
      column-gap: 1rem;
      width: 100%;
      padding-block: 1rem;
      padding-inline: 1.5rem;
      display: inline-grid;
    }

    .stat:not(:last-child) {
      border-inline-end: var(--border) dashed currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .stat:not(:last-child) {
        border-inline-end: var(--border) dashed color-mix(in oklab, currentColor 10%, #0000);
      }
    }

    .stat:not(:last-child) {
      border-block-end: none;
    }

    .chat {
      --mask-chat: url("data:image/svg+xml,%3csvg width='13' height='13' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M0 11.5004C0 13.0004 2 13.0004 2 13.0004H12H13V0.00036329L12.5 0C12.5 0 11.977 2.09572 11.8581 2.50033C11.6075 3.35237 10.9149 4.22374 9 5.50036C6 7.50036 0 10.0004 0 11.5004Z'/%3e%3c/svg%3e");
      grid-auto-rows: min-content;
      column-gap: .75rem;
      padding-block: .25rem;
      display: grid;
    }

    .btn-ghost {
      --btn-bg: #0000;
      color: var(--btn-rest-fg, var(--btn-color, var(--color-base-content, currentColor)));
      --btn-border: #0000;
      --btn-inset: 0 0 0 0 oklch(0% 0 0 / 0);
      --btn-shadow: 0 0 0 0 oklch(0% 0 0 / 0);
      background-image: none;
    }

    .alert {
      --alert-border-color: var(--color-base-200);
      border-radius: var(--radius-box);
      color: var(--color-base-content);
      background-color: var(--alert-color, var(--color-base-200));
      text-align: start;
      background-size: auto, calc(var(--noise) * 33%);
      background-image: none, var(--fx-noise);
      box-shadow: 0 3px 0 -2px oklch(100% 0 0 / calc(var(--depth) * .08)) inset, 0 1px #000, 0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * .08));
      border-style: solid;
      grid-template-columns: auto;
      grid-auto-flow: column;
      justify-content: start;
      place-items: center start;
      gap: 1rem;
      padding-block: .75rem;
      padding-inline: 1rem;
      font-size: .875rem;
      line-height: 1.25rem;
      display: grid;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .alert {
        box-shadow: 0 3px 0 -2px oklch(100% 0 0 / calc(var(--depth) * .08)) inset, 0 1px color-mix(in oklab, color-mix(in oklab, #000 20%, var(--alert-color, var(--color-base-200))) calc(var(--depth) * 20%), #0000), 0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * .08));
      }
    }

    .alert:has( > :nth-child(2)) {
      grid-template-columns: auto minmax(auto, 1fr);
    }

    .alert:has( > :nth-child(2)):not(:has( > :nth-child(3),  > :is(svg, img, i))):has( > :last-child:is(button, .btn, [class*="btn"]),  > :last-child > :is(button, .btn, [class*="btn"])) {
      grid-template-columns: minmax(auto, 1fr) auto;
    }
  }

  @layer daisyui.l1.l2 {
    .modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal {
      pointer-events: auto;
      visibility: visible;
      opacity: 1;
    }

    .modal:popover-open {
      pointer-events: auto;
      visibility: visible;
      opacity: 1;
    }

    @media (prefers-reduced-motion: no-preference) {
      .modal:popover-open {
        transition: visibility 0s allow-discrete, background-color .3s ease-out, opacity .1s ease-out;
      }
    }

    .modal:popover-open {
      background-color: oklch(0% 0 0 / .4);
    }

    .modal:popover-open > .modal-box {
      opacity: 1;
      translate: 0;
      scale: 1;
    }

    :root:has(.modal:popover-open) {
      --page-scroll-lock:  ;
    }

    @media (prefers-reduced-motion: no-preference) {
      .modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal {
        transition: visibility 0s allow-discrete, background-color .3s ease-out, opacity .1s ease-out;
      }
    }

    .modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal {
      background-color: oklch(0% 0 0 / .4);
    }

    :is(.modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal) > .modal-box {
      opacity: 1;
      translate: 0;
      scale: 1;
    }

    :root:has(:is(.modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal)) {
      --page-scroll-lock:  ;
    }

    @starting-style {
      .modal.modal-open, .modal[open], .modal:target, .modal-toggle:checked + .modal {
        opacity: 0;
      }

      .modal:popover-open {
        opacity: 0;
      }
    }

    .btn:is([aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      --btn-bg: var(--btn-color, var(--color-base-200));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:is([aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
        --btn-bg: color-mix(in oklab, var(--btn-color, var(--color-base-200)), #000 5%);
      }
    }

    .btn:is([aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      color: var(--btn-fg, var(--color-base-content));
      --btn-border: var(--btn-color, var(--color-base-200));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:is([aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
        --btn-border: color-mix(in oklab, var(--btn-color, var(--color-base-200)), #000 7%);
      }
    }

    .btn:is([aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      --btn-border-style: solid;
      --btn-inset: 0 0 0 0 oklch(0% 0 0 / 0);
      --btn-shadow: 0 0 0 0 oklch(0% 0 0 / 0);
      isolation: isolate;
    }

    .list .list-row:has( > .list-col-grow:first-child) {
      --list-grid-cols: 1fr;
    }

    .list .list-row:has( > .list-col-grow:nth-child(2)) {
      --list-grid-cols: minmax(0, auto) 1fr;
    }

    .list .list-row:has( > .list-col-grow:nth-child(3)) {
      --list-grid-cols: minmax(0, auto) minmax(0, auto) 1fr;
    }

    .list .list-row:has( > .list-col-grow:nth-child(4)) {
      --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
    }

    .list .list-row:has( > .list-col-grow:nth-child(5)) {
      --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
    }

    .list .list-row:has( > .list-col-grow:nth-child(6)) {
      --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto)
          minmax(0, auto) 1fr;
    }

    .list .list-row > * {
      grid-row-start: 1;
    }

    .input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input {
      cursor: not-allowed;
      border-color: var(--color-base-200);
      background-color: var(--color-base-200);
    }

    :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input):is(input), :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input) :is(input) {
      color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input):is(input), :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input) :is(input) {
        color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
      }
    }

    .input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input {
      box-shadow: none;
    }

    :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input)::placeholder, :is(.input:has( > input[disabled]), .input:is(:disabled, [disabled]), fieldset:disabled .input) ::placeholder {
      color: var(--color-base-content);
      opacity: .2;
    }

    .input:has( > input[disabled]) > input[disabled] {
      cursor: not-allowed;
    }

    .steps .step-neutral + .step-neutral:before, .steps .step-neutral:after, .steps .step-neutral > .step-icon {
      --step-bg: var(--color-neutral);
      --step-fg: var(--color-neutral-content);
    }

    .steps .step-primary + .step-primary:before, .steps .step-primary:after, .steps .step-primary > .step-icon {
      --step-bg: var(--color-primary);
      --step-fg: var(--color-primary-content);
    }

    .steps .step-secondary + .step-secondary:before, .steps .step-secondary:after, .steps .step-secondary > .step-icon {
      --step-bg: var(--color-secondary);
      --step-fg: var(--color-secondary-content);
    }

    .steps .step-accent + .step-accent:before, .steps .step-accent:after, .steps .step-accent > .step-icon {
      --step-bg: var(--color-accent);
      --step-fg: var(--color-accent-content);
    }

    .steps .step-info + .step-info:before, .steps .step-info:after, .steps .step-info > .step-icon {
      --step-bg: var(--color-info);
      --step-fg: var(--color-info-content);
    }

    .steps .step-success + .step-success:before, .steps .step-success:after, .steps .step-success > .step-icon {
      --step-bg: var(--color-success);
      --step-fg: var(--color-success-content);
    }

    .steps .step-warning + .step-warning:before, .steps .step-warning:after, .steps .step-warning > .step-icon {
      --step-bg: var(--color-warning);
      --step-fg: var(--color-warning-content);
    }

    .steps .step-error + .step-error:before, .steps .step-error:after, .steps .step-error > .step-icon {
      --step-bg: var(--color-error);
      --step-fg: var(--color-error-content);
    }

    @media (forced-colors: active) {
      .steps :is(.step-neutral, .step-primary, .step-secondary, .step-accent, .step-info, .step-success, .step-warning, .step-error):after, .steps :is(.step-neutral, .step-primary, .step-secondary, .step-accent, .step-info, .step-success, .step-warning, .step-error) > .step-icon {
        forced-color-adjust: none;
        color: canvas;
        background-color: canvastext;
        border-color: canvastext;
      }
    }

    .select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select {
      cursor: not-allowed;
      border-color: var(--color-base-200);
      background-color: var(--color-base-200);
    }

    :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select):is(select), :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select) :is(select) {
      color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select):is(select), :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select) :is(select) {
        color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
      }
    }

    .select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select {
      box-shadow: none;
    }

    :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select)::placeholder, :is(.select:has( > select[disabled]), .select:is(:disabled, [disabled]), fieldset:disabled .select) ::placeholder {
      color: var(--color-base-content);
      opacity: .2;
    }

    .select:has( > select[disabled]) > select[disabled] {
      cursor: not-allowed;
    }

    .checkbox:disabled {
      cursor: not-allowed;
      opacity: .2;
    }

    .tooltip-right {
      --tt-tail-off: clamp(.5rem, var(--tt-radius) + 3px, .8rem - 2px);
    }

    .tooltip-right > .tooltip-content, .tooltip-right[data-tip]:before {
      transform: translateX(calc(var(--tt-pos, -.25rem) + .25rem)) translateY(var(--tt-trans, -50%));
      left: var(--tt-off);
      right: auto;
      inset-block: var(--tt-inset, 50% auto);
    }

    .tooltip-right:after {
      transform: translateX(var(--tt-pos, -.25rem)) translateY(var(--tt-trans, -50%)) rotate(90deg);
      left: calc(var(--tt-tail) + 1px);
      right: auto;
      inset-block: var(--tt-tail-inset, 50% auto);
    }

    .toast-end {
      --toast-x: 0;
      inset-inline: auto 1rem;
    }

    :is(.stack, .stack.stack-bottom) > * {
      grid-area: 3 / 3 / 6 / 4;
    }

    :is(.stack, .stack.stack-bottom) > :nth-child(2) {
      grid-area: 2 / 2 / 5 / 5;
    }

    :is(.stack, .stack.stack-bottom) > :first-child {
      grid-area: 1 / 1 / 4 / 6;
    }

    .stack.stack-top > * {
      grid-area: 1 / 3 / 4 / 4;
    }

    .stack.stack-top > :nth-child(2) {
      grid-area: 2 / 2 / 5 / 5;
    }

    .stack.stack-top > :first-child {
      grid-area: 3 / 1 / 6 / 6;
    }

    .stack.stack-start > * {
      grid-area: 3 / 1 / 4 / 4;
    }

    .stack.stack-start > :nth-child(2) {
      grid-area: 2 / 2 / 5 / 5;
    }

    .stack.stack-start > :first-child {
      grid-area: 1 / 3 / 6 / 6;
    }

    .stack.stack-end > * {
      grid-area: 3 / 3 / 4 / 6;
    }

    .stack.stack-end > :nth-child(2) {
      grid-area: 2 / 2 / 5 / 5;
    }

    .stack.stack-end > :first-child {
      grid-area: 1 / 1 / 6 / 4;
    }

    .btn-square {
      width: var(--size);
      height: var(--size);
      padding-inline: 0;
    }

    .checkbox-sm {
      --size: calc(var(--size-selector, .25rem) * 5);
      padding: .1875rem;
    }

    .checkbox-xs {
      --size: calc(var(--size-selector, .25rem) * 4);
      padding: .125rem;
    }

    .alert-warning {
      color: var(--color-warning-content);
      --alert-border-color: var(--color-warning);
      --alert-color: var(--color-warning);
    }

    .btn-error {
      --btn-color: var(--color-error);
      --btn-fg: var(--color-error-content);
      --btn-soft-bg: initial;
    }

    .btn-primary {
      --btn-color: var(--color-primary);
      --btn-fg: var(--color-primary-content);
      --btn-soft-bg: initial;
    }

    .btn-sm {
      --fontsize: .75rem;
      --btn-p: .75rem;
      --size: calc(var(--size-field, .25rem) * 8);
    }

    .range-xs {
      --range-thumb-size: calc(var(--size-selector, .25rem) * 4);
    }

    .toggle-xs[type="checkbox"], .toggle-xs:has([type="checkbox"]) {
      --size: calc(var(--size-selector, .25rem) * 4);
    }
  }

  .prose :where(a.btn:not(.btn-link)):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    text-decoration-line: none;
  }

  @layer daisyui.l1 {
    @media (hover: hover) {
      .btn:hover {
        --btn-bg: var(--btn-color, var(--color-base-200));
      }

      @supports (color: color-mix(in lab, red, red)) {
        .btn:hover {
          --btn-bg: color-mix(in oklab, var(--btn-color, var(--color-base-200)), #000 7%);
        }
      }

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

      @supports (color: color-mix(in lab, red, red)) {
        .btn:hover {
          --btn-border: color-mix(in oklab, var(--btn-bg), #000 calc(var(--depth) * 5%));
        }
      }

      .btn:hover {
        --btn-border-style: solid;
        --btn-inset: 0 .5px 0 .5px oklch(100% 0 0 / calc(var(--depth) * 6%));
        --btn-shadow: 0 3px 2px -2px var(--btn-bg),
          0 4px 3px -2px var(--btn-bg);
      }

      @supports (color: color-mix(in lab, red, red)) {
        .btn:hover {
          --btn-shadow: 0 3px 2px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000),
          0 4px 3px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000);
        }
      }
    }

    .btn:active:not(.btn-active, [aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      --btn-bg: var(--btn-color, var(--color-base-200));
      translate: 0 .5px;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:active:not(.btn-active, [aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
        --btn-bg: color-mix(in oklab, var(--btn-color, var(--color-base-200)), #000 5%);
      }
    }

    .btn:active:not(.btn-active, [aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      color: var(--btn-fg, var(--color-base-content));
      --btn-border: var(--btn-color, var(--color-base-200));
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:active:not(.btn-active, [aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
        --btn-border: color-mix(in oklab, var(--btn-color, var(--color-base-200)), #000 7%);
      }
    }

    .btn:active:not(.btn-active, [aria-pressed="true"], [aria-checked="true"], [aria-current]:not([aria-current="false"], [aria-current=""])) {
      --btn-border-style: solid;
      --btn-inset: 0 0 0 0 oklch(0% 0 0 / 0);
      --btn-shadow: 0 0 0 0 oklch(0% 0 0 / 0);
    }

    .btn:where(:checked:not(.filter [type="radio"].btn), :not([type="radio"], [type="checkbox"]):focus-visible) {
      --btn-bg: var(--btn-color, var(--color-base-200));
      color: var(--btn-fg, var(--color-base-content));
      --btn-border: var(--btn-bg);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:where(:checked:not(.filter [type="radio"].btn), :not([type="radio"], [type="checkbox"]):focus-visible) {
        --btn-border: color-mix(in oklab, var(--btn-bg), #000 calc(var(--depth) * 5%));
      }
    }

    .btn:where(:checked:not(.filter [type="radio"].btn), :not([type="radio"], [type="checkbox"]):focus-visible) {
      --btn-border-style: solid;
      --btn-inset: 0 .5px 0 .5px oklch(100% 0 0 / calc(var(--depth) * 6%));
      --btn-shadow: 0 3px 2px -2px var(--btn-bg),
        0 4px 3px -2px var(--btn-bg);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:where(:checked:not(.filter [type="radio"].btn), :not([type="radio"], [type="checkbox"]):focus-visible) {
        --btn-shadow: 0 3px 2px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000),
        0 4px 3px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000);
      }
    }

    .btn:where(:checked:not(.filter [type="radio"].btn), :not([type="radio"], [type="checkbox"]):focus-visible) {
      isolation: isolate;
    }

    .btn:focus-visible, .btn:has(:focus-visible) {
      isolation: isolate;
      outline-width: 2px;
      outline-style: solid;
    }

    .filter:not(:has(:checked:not(.filter-reset))) :is(.filter-reset, [type="reset"]):not(:focus-visible) {
      visibility: hidden;
    }

    .filter:not(:has(:checked:not(.filter-reset))) :is(.filter-reset, [type="reset"]):not(:focus-visible), .filter:not(:has(:focus-visible)):has(:checked:not(.filter-reset, [type="checkbox"])) :is(input, button):not(:checked, .filter-reset, [type="reset"]) {
      opacity: 0;
      border-width: 0;
      width: 0;
      margin-inline: 0;
      padding-inline: 0;
      scale: 0;
    }

    @media (forced-colors: active) {
      .status {
        background-color: canvastext;
      }
    }
  }

  @layer daisyui {
    .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]) {
      pointer-events: none;
      color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]) {
        color: color-mix(in oklch, var(--color-base-content) 20%, #0000);
      }
    }

    .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]) {
      --btn-bg: #0000;
      --btn-border: #0000;
      --btn-inset: 0 0 0 0 oklch(0% 0 0 / 0);
      --btn-shadow: 0 0 0 0 oklch(0% 0 0 / 0);
      background-image: none;
    }

    .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]):not(.btn-link, .btn-ghost) {
      background-color: var(--color-base-content);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]):not(.btn-link, .btn-ghost) {
        background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
      }
    }

    @media (forced-colors: active) {
      .btn:is(.btn-disabled, :disabled, [disabled], [aria-disabled="true"]) {
        color: graytext;
        border-color: graytext;
      }
    }
  }

  .countdown.countdown {
    line-height: 1em;
  }

  :is(.input[type="url"], .input[type="tel"], .input[type="email"], .input[type="number"]):dir(rtl) {
    border-start-start-radius: var(--join-se, var(--radius-field));
    border-start-end-radius: var(--join-ss, var(--radius-field));
    border-end-end-radius: var(--join-es, var(--radius-field));
    border-end-start-radius: var(--join-ee, var(--radius-field));
  }

  @layer daisyui.l1.l2.l3.l4 {
    .avatar {
      align-self: center;
    }
  }

  .fixed {
    position: fixed;
  }

  .static {
    position: static;
  }

  .alert {
    border-width: var(--border);
    border-color: var(--alert-border-color, var(--color-base-200));
  }

  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

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

.modal {
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  z-index: 80;
  background: #0307118c;
  padding: 24px;
}

.modal-box {
  background: #121a29;
  border: 1px solid #acbfd633;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  padding: 0 24px 22px;
  overflow: auto;
  box-shadow: 0 24px 90px #0008;
}

.modal.wide .modal-box {
  max-width: 810px;
}

.dialog-head {
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #121a29;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 3px;
  padding: 22px 0 20px;
  display: flex;
  position: sticky;
  top: 0;
}

.dialog-head h2 {
  letter-spacing: -.5px;
  font-size: 19px;
  font-weight: 600;
}

.dialog-head p {
  color: #8395af;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
}

.dialog-head > .btn {
  color: #8ea1ba;
  flex-shrink: 0;
}

.dialog-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
}

.dialog-actions .remove-button {
  color: #d69eab;
  margin-right: auto;
}

.dialog-actions .btn {
  font-size: 11px;
}

.picker-toolbar {
  align-items: center;
  gap: 18px;
  margin: 20px 0;
  display: flex;
}

.picker-toolbar > .search-input {
  flex: 1;
}

.cone-picker-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-height: 53vh;
  padding: 3px;
  display: grid;
  overflow-y: auto;
}

.cone-picker-card {
  border: 1px solid var(--line);
  background: #0c1321;
  border-radius: 7px;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 8px;
  display: flex;
  position: relative;
}

.cone-picker-card:hover, .cone-picker-card.selected {
  background: #a6dbf608;
  border-color: #a6dbf666;
}

.cone-picker-card > img, .cone-picker-card > .art-fallback {
  aspect-ratio: .7;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
}

.cone-picker-card .stars {
  letter-spacing: 1px;
  margin: 8px 0 4px;
  font-size: 8px;
}

.cone-picker-card > b {
  font-size: 10px;
  font-weight: 550;
  line-height: 1.6;
}

.cone-picker-card > small {
  color: #6c809b;
  margin-top: 3px;
  font-size: 9px;
}

.equipped-label {
  color: #0d2334;
  background: #91c9e6e6;
  padding: 3px;
  font-size: 9px;
  position: absolute;
  top: 13px;
  left: 8px;
  right: 8px;
}

.relic-edit-top {
  align-items: center;
  gap: 20px;
  margin: 21px 0;
  display: flex;
}

.relic-edit-art {
  background: radial-gradient(#53405b55, #0000 70%);
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  width: 92px;
  padding: 10px 0;
  display: flex;
}

.relic-edit-art img, .relic-edit-art > .art-fallback {
  object-fit: contain;
  width: 85px;
  height: 85px;
}

.relic-edit-fields {
  flex-direction: column;
  flex: 1;
  gap: 13px;
  min-width: 0;
  display: flex;
}

.main-preview {
  border-left: 1px solid var(--line);
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-self: stretch;
  align-items: center;
  gap: 9px;
  width: 115px;
  padding-left: 12px;
  display: flex;
}

.main-preview > small {
  color: #7289a7;
  letter-spacing: 1px;
  font-size: 8px;
}

.main-preview > b {
  color: #c3e4f9;
  font: 24px Consolas, monospace;
}

.main-preview > span {
  color: #91a3bf;
  font-size: 10px;
}

.sub-affix-heading {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  display: flex;
}

.sub-affix-heading h3 {
  font-size: 13px;
  font-weight: 550;
}

.sub-affix-heading h3 > span {
  color: #69819f;
  margin-left: 8px;
  font: 10px Consolas, monospace;
}

.sub-affix-list {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.sub-affix-row {
  border: 1px solid var(--line);
  background: #0b132133;
  border-radius: 7px;
  grid-template-columns: 2.2fr 1fr 1fr 75px 28px;
  align-items: end;
  gap: 9px;
  padding: 10px;
  display: grid;
}

.sub-affix-row .field > span {
  font-size: 9px;
}

.sub-affix-row .number-field {
  padding: 0 6px;
}

.sub-value {
  color: #b7d8ef;
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  height: 33px;
  font: 12px Consolas, monospace;
  display: flex;
}

.sub-affix-row .btn {
  color: #8a6f82;
}

.empty-subs {
  color: #647b99;
  border: 1px dashed #a6c6e324;
  border-radius: 7px;
  justify-items: center;
  gap: 12px;
  padding: 25px;
  font-size: 11px;
  display: grid;
}

.settings-note {
  color: #7588a5;
  margin-top: 15px;
  font-size: 10px;
  line-height: 1.9;
}

.form-error {
  color: #edabb6;
  background: #ff879810;
  border: 1px solid #ff879824;
  border-radius: 5px;
  margin-top: 12px;
  padding: 10px;
  font-size: 11px;
}

.team-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 50vh;
  margin-top: 18px;
  display: grid;
  overflow-y: auto;
}

.team-picker-grid > button {
  border: 1px solid var(--line);
  text-align: left;
  background: #ffffff02;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  display: flex;
}

.team-picker-grid > button:hover:not(:disabled) {
  background: #a6dbf60b;
  border-color: #a6dbf655;
}

.team-picker-grid > button:disabled {
  opacity: .4;
}

.team-picker-grid img, .team-picker-grid .art-fallback {
  object-fit: contain;
  flex-shrink: 0;
  width: 39px;
  height: 42px;
}

.team-picker-grid > button > span {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.team-picker-grid b {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
}

.team-picker-grid small {
  color: #7187a5;
  font-size: 8px;
}

.team-picker-grid > button > svg {
  color: #aedcca;
  margin-left: auto;
}

.replace-list {
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  display: flex;
}

.replace-list > .btn {
  justify-content: flex-start;
  height: 53px;
}

.replace-list img {
  object-fit: contain;
  width: 42px;
  height: 42px;
}

.replace-list svg {
  margin-left: auto;
}

.slot-choice {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  display: flex;
}

.import-summary {
  text-align: center;
  justify-items: center;
  gap: 12px;
  padding: 25px 5px;
  display: grid;
}

.import-summary > svg {
  color: #a6dbf6;
}

.import-summary h3 {
  font-size: 17px;
}

.import-summary p {
  color: #8ca0bc;
  font-size: 12px;
  line-height: 1.8;
}

.modal form {
  padding-top: 20px;
}

.modal form .field > span {
  font-size: 11px;
}

.export-options {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  display: grid;
}

.export-options > button {
  text-align: left;
  border: 1px solid var(--line);
  background: #0b1421;
  border-radius: 8px;
  grid-template-columns: 25px 1fr;
  gap: 6px 10px;
  min-width: 0;
  padding: 16px 12px;
  display: grid;
}

.export-options > button.selected {
  background: #a6dbf609;
  border-color: #a6dbf677;
}

.export-options svg {
  color: #8aaccb;
  grid-row: 1 / 3;
}

.export-options b {
  font-size: 12px;
  font-weight: 550;
}

.export-options span {
  color: #6f87a4;
  font-size: 10px;
  line-height: 1.6;
}

.code-preview {
  border: 1px solid var(--line);
  background: #080e18;
  border-radius: 7px;
  overflow: hidden;
}

.code-preview > div {
  border-bottom: 1px solid var(--line);
  color: #8aa2c0;
  justify-content: space-between;
  padding: 10px 14px;
  font: 10px Consolas, monospace;
  display: flex;
}

.code-preview pre {
  color: #a2c0d9;
  tab-size: 2;
  white-space: pre;
  max-height: 300px;
  margin: 0;
  padding: 16px;
  font: 10px / 1.8 Consolas, monospace;
  overflow: auto;
}

.setting-row {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 21px 0;
  display: flex;
}

.setting-row b {
  font-size: 12px;
  font-weight: 550;
}

.setting-row p {
  color: #7289a6;
  margin-top: 6px;
  font-size: 10px;
}

.setting-row .toggle {
  flex-shrink: 0;
}

.about-logo {
  align-items: center;
  gap: 18px;
  padding: 25px 0 22px;
  display: flex;
}

.about-logo > img {
  border: 1px solid #ffffff26;
  border-radius: 16px;
  width: 60px;
  height: 60px;
}

.about-logo p {
  color: #9bacc4;
  font-size: 12px;
  line-height: 1.9;
}

.guide-steps {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.guide-steps > div {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.guide-steps > div > span {
  color: #a6dbf666;
  padding-top: 2px;
  font: 13px Consolas, monospace;
}

.guide-steps p {
  color: #a1b4cc;
  font-size: 11px;
  line-height: 1.8;
}

.about-links {
  gap: 22px;
  margin-top: 24px;
  display: flex;
}

.about-links > a {
  color: var(--ice);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.notice {
  color: #bedbcc;
  background: #1b2d33;
  border: 1px solid #a1d5bf44;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  padding: 14px 17px;
  font-size: 12px;
  animation: .2s ease-out toast-in;
  display: flex;
  box-shadow: 0 8px 30px #0005;
}

.notice.error {
  color: #ebbbc7;
  background: #30232e;
  border-color: #d599aa44;
}

.notice > button {
  place-items: center;
  margin-left: 7px;
  display: grid;
}

.notice > svg {
  flex-shrink: 0;
}

.toast {
  z-index: 100;
}

.loading-screen {
  text-align: center;
  background: radial-gradient(at 50% 30%, #25314a55, #0b101a 60%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 100vh;
  padding: 30px;
  display: flex;
}

.loading-screen > img {
  border: 1px solid #fff3;
  border-radius: 21px;
  width: 80px;
  height: 80px;
  box-shadow: 0 0 80px #a6dbf60d;
}

.loading-screen h1 {
  letter-spacing: -1px;
  font-size: 28px;
  font-weight: 600;
}

.loading-screen h1 > span {
  color: var(--ice);
}

.loading-screen p {
  color: #8c9db6;
  font-size: 12px;
}

.spin {
  color: #a6dbf6;
  width: 23px;
  height: 23px;
  animation: 1.5s linear infinite spin;
}

.art-fallback {
  color: #a6dbf64d;
  background: radial-gradient(#a6dbf60d, #0000);
  place-items: center;
  max-width: 100%;
  min-height: 25px;
  display: grid;
}

.trace-editor {
  padding: 20px;
}

.trace-top {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.trace-top h3 {
  font-size: 14px;
  font-weight: 550;
}

.trace-top p {
  color: #758aa5;
  margin-top: 6px;
  font-size: 10px;
}

.trace-top .btn {
  height: 30px;
  min-height: 30px;
  font-size: 10px;
}

.trace-skills {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.trace-skill {
  border: 1px solid var(--line);
  background: #090f1933;
  border-radius: 8px;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  display: flex;
}

.trace-skill > img, .trace-skill > .art-fallback {
  object-fit: contain;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
}

.trace-skill > div {
  flex: 1;
  min-width: 0;
}

.trace-skill small {
  color: #8ba6c6;
  font-size: 9px;
}

.trace-skill h4 {
  margin: 4px 0 7px;
  font-size: 12px;
  font-weight: 550;
}

.trace-skill p {
  color: #7c91af;
  font-size: 10px;
  line-height: 1.8;
}

.trace-skill > .field {
  flex-shrink: 0;
  width: 66px;
}

.trace-skill > .field > span {
  font-size: 8px;
  line-height: 1.5;
}

.bonus-title {
  margin: 20px 0 13px;
  font-size: 12px;
}

.bonus-traces {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: grid;
}

.bonus-traces > label {
  border: 1px solid var(--line);
  color: #a7b7cc;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  font-size: 10px;
  display: flex;
}

.bonus-traces img, .bonus-traces .art-fallback {
  object-fit: contain;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}

.bonus-traces > label > span {
  flex: 1;
  min-width: 0;
}

.bonus-traces small {
  color: #637c9b;
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.8;
  display: block;
}

.bonus-traces .checkbox {
  flex-shrink: 0;
}

.info-content {
  text-align: center;
  min-height: 410px;
  padding: 24px;
}

.info-content > img {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: auto;
}

.info-content > h2 {
  margin: 13px 0;
  font-size: 23px;
}

.info-badges {
  justify-content: center;
  gap: 8px;
  display: flex;
}

.info-badges .badge {
  color: #8da4c1;
  background: #a6dbf608;
  border-color: #a6dbf61c;
  font-size: 9px;
}

.info-content > p {
  color: #90a3be;
  white-space: pre-line;
  text-align: left;
  margin: 22px 0;
  font-size: 12px;
  line-height: 2;
}

.info-source {
  text-align: left;
  color: #657d9c;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 10px;
  line-height: 2;
}

.catalog {
  min-height: 450px;
  padding: 20px;
}

.catalog-toolbar {
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
  display: flex;
}

.catalog-toolbar > .search-input {
  flex: 1;
  max-width: 420px;
}

.catalog-toolbar > .select {
  width: 190px;
}

.catalog-toolbar > span {
  color: #7188a7;
  white-space: nowrap;
  margin-left: auto;
  font-size: 10px;
}

.catalog-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.catalog-card {
  border: 1px solid var(--line);
  background: #0b1321;
  border-radius: 8px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.catalog-art {
  background: radial-gradient(#3a314f55, #0000);
  position: relative;
  overflow: hidden;
}

.cones .catalog-art {
  aspect-ratio: .75;
}

.catalog-art img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .4s;
}

.catalog-card:hover .catalog-art img {
  transform: scale(1.04);
}

.sets .catalog-art {
  background: radial-gradient(#3a314f77, #0000 70%);
  place-items: center;
  height: 130px;
  display: grid;
}

.sets .catalog-art img {
  object-fit: contain;
  width: 115px;
  height: 115px;
}

.catalog-card-content {
  flex-direction: column;
  flex: 1;
  padding: 12px;
  display: flex;
}

.catalog-card .mini-label {
  letter-spacing: 1px;
  font-size: 7px;
}

.catalog-card h3 {
  margin: 7px 0;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}

.catalog-card .stars {
  margin-bottom: 14px;
  font-size: 8px;
}

.catalog-card p {
  color: #6f87a6;
  margin-bottom: 14px;
  font-size: 10px;
  line-height: 1.8;
}

.catalog-card .btn {
  white-space: normal;
  width: 100%;
  height: auto;
  min-height: 30px;
  margin-top: auto;
  padding: 0 5px;
  font-size: 9px;
  line-height: 1.5;
}

.catalog-card .btn svg {
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  color: #738cac;
  padding: 35px;
  font-size: 12px;
}

.profiles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  min-height: 350px;
  display: grid;
}

.new-profile {
  background: #a6dbf603;
  border-style: dashed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 280px;
  display: flex;
}

.new-profile:hover {
  background: #a6dbf607;
  border-color: #a6dbf64d;
}

.new-profile > span {
  color: #7eacca;
  border: 1px solid #a6dbf61f;
  border-radius: 50%;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  display: grid;
}

.new-profile h3 {
  color: #bbd3e7;
  font-size: 14px;
  font-weight: 550;
}

.new-profile p {
  color: #637e9f;
  margin-top: 9px;
  font-size: 10px;
}

.profile-card {
  padding: 17px;
}

.profile-head {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.profile-card h3 {
  overflow-wrap: anywhere;
  margin: 7px 0 20px;
  font-size: 17px;
  font-weight: 550;
}

.profile-head .btn {
  color: #7f6d84;
}

.profile-portraits {
  gap: 7px;
  height: 125px;
  display: flex;
}

.profile-portraits img {
  object-fit: cover;
  background: linear-gradient(#4c3e5255, #1b2334);
  border: 1px solid #d1b68433;
  border-radius: 5px;
  width: calc(25% - 5px);
  height: 100%;
}

.profile-bottom {
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  display: flex;
}

.profile-bottom > span {
  color: #697e9d;
  font-size: 10px;
}

.profile-bottom .btn {
  height: 30px;
  min-height: 30px;
  font-size: 10px;
}

.battle-layout {
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: 20px;
  display: grid;
}

.battle-modes {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px;
  display: grid;
}

.battle-modes > button {
  border: 1px solid var(--line);
  color: #6e87a5;
  background: #0b132133;
  border-radius: 7px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  display: flex;
}

.battle-modes > button.selected {
  color: #aad9f2;
  background: #a6dbf60a;
  border-color: #a6dbf655;
}

.battle-modes b {
  font: 14px Consolas, monospace;
}

.battle-modes span {
  font-size: 9px;
  line-height: 1.7;
}

.battle-fields {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 15px;
  padding: 0 18px;
  display: grid;
}

.battle-config > .settings-note {
  margin: 15px 18px 20px;
}

.selected-monsters {
  flex-direction: column;
  gap: 9px;
  padding: 15px 18px;
  display: flex;
}

.selected-monsters > div {
  border: 1px solid var(--line);
  background: #080e1955;
  border-radius: 7px;
  align-items: center;
  gap: 12px;
  padding: 9px;
  display: flex;
}

.selected-monsters img, .selected-monsters .art-fallback {
  object-fit: contain;
  width: 45px;
  height: 45px;
}

.selected-monsters > div > span {
  flex-direction: column;
  flex: 1;
  gap: 5px;
  display: flex;
}

.selected-monsters b {
  font-size: 12px;
  font-weight: 500;
}

.selected-monsters small {
  color: #6b84a5;
  font: 9px Consolas, monospace;
}

.selected-monsters .btn {
  color: #a48295;
}

.battle-export {
  margin: 0 18px 20px;
}

.enemy-library > .search-input {
  margin: 17px 17px 10px;
}

.enemy-count {
  margin: 0 18px 13px;
  line-height: 1.8;
}

.enemy-list {
  flex-direction: column;
  gap: 7px;
  max-height: 570px;
  padding: 0 16px 16px;
  display: flex;
  overflow: auto;
}

.enemy-list > button {
  border: 1px solid var(--line);
  text-align: left;
  background: #0b132177;
  border-radius: 7px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  display: flex;
}

.enemy-list > button:hover:not(:disabled) {
  background: #a6dbf608;
  border-color: #a6dbf655;
}

.enemy-list > button:disabled {
  opacity: .4;
}

.enemy-list > button > img, .enemy-list > button > .art-fallback {
  object-fit: contain;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.enemy-list > button > span {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.enemy-list b {
  font-size: 11px;
  font-weight: 500;
}

.enemy-list small {
  color: #607b9e;
  align-items: center;
  gap: 16px;
  font: 9px Consolas, monospace;
  display: flex;
}

.enemy-weakness {
  gap: 3px;
  display: flex;
}

.enemy-weakness img {
  object-fit: contain;
  width: 14px;
  height: 14px;
}

.enemy-list > button > svg {
  color: #6e9ab8;
}

@keyframes skeleton {
  0% {
    background-position: 150%;
  }

  100% {
    background-position: -50%;
  }
}

@keyframes rotator {
  89.9999%, 100% {
    --first-item-position: 0 0%;
  }

  90%, 99.9999% {
    --first-item-position: 0 calc(var(--items) * 100%);
  }

  100% {
    translate: 0 -100%;
  }
}

@keyframes dropdown {
  0% {
    opacity: 0;
  }
}

@keyframes toast {
  0% {
    opacity: 0;
    scale: .9;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes menu {
  0% {
    opacity: 0;
  }
}

@keyframes menu-paged-page-in {
  from {
    translate: var(--menu-paged-enter-x) var(--menu-paged-enter-y);
  }
}

@keyframes radio {
  0% {
    padding: 5px;
  }

  50% {
    padding: 3px;
  }
}

@keyframes rating {
  0%, 40% {
    filter: brightness(1.05) contrast(1.05);
    scale: 1.1;
  }
}

@keyframes progress {
  50% {
    background-position-x: -115%;
  }
}

@keyframes aura {
  to {
    --aura-angle: 360deg;
    transform: translateZ(1px);
  }
}

@keyframes aura-glow {
  20%, 80% {
    opacity: .7;
    filter: blur(.25rem);
  }

  50% {
    opacity: 1;
    filter: blur(.75rem);
  }
}

@keyframes aura-glow-after {
  20%, 80% {
    opacity: .3;
    filter: blur(1rem);
  }

  50% {
    opacity: .6;
    filter: blur(1.5rem);
  }
}

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

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

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

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

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

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

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

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

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

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
:root {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #e9e9f2;
  background: #0e0f16;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --line: #ffffff12;
  --ice: #c7b5fa;
  --muted: #9b9bad;
  --surface: #171820;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; }
button, input, select { font: inherit; }
button { cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #c7b5fa; outline-offset: 3px; }
h1,h2,h3,h4,p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: #8e6deb55; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #ffffff23; border-radius: 10px; }
.app-shell { min-height: 100vh; background: #101118; }
.app-body { margin-left: 92px; }
.rail { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 92px; display: flex; flex-direction: column; align-items: center; padding: 18px 10px; background: #12131b; border-right: 1px solid var(--line); }
.brand { width: 42px; height: 42px; padding: 0; overflow: hidden; border-radius: 12px; background: #b599f320; border: 1px solid #c4aaff3b; color: #d7c7ff; }
.brand-letter { font-size: 27px; font-weight: 750; position: relative; }
.brand-letter>span { position: absolute; top: -3px; right: -9px; font-size: 13px; color: #ede3ff; }
.rail-divider { width: 26px; height: 1px; margin: 23px 0 16px; background: var(--line); }
.rail nav { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.rail-button { width: 100%; height: 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #9192a6; border: 1px solid transparent; border-radius: 9px; }
.rail-button>span { display: block; font-size: 10px; white-space: nowrap; }
.rail-button:hover { background: #ffffff06; color: #eee8ff; }
.rail-button.active { background: #b08be921; color: #dfcfff; border-color: #b38be741; }
.rail-button.tooltip:before, .rail-button.tooltip:after { display: none; }
.rail-bottom { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: auto; }
.rail-bottom .rail-button { height: 42px; }
.topbar { height: 69px; display: flex; align-items: center; gap: 20px; padding: 0 27px; border-bottom: 1px solid var(--line); background: #14151e; }
.wordmark { display: flex; align-items: center; gap: 0; font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.wordmark>span:not(.version) { color: #c3a8f8; }
.wordmark .version { font-size: 9px; color: #77798f; font-weight: 500; letter-spacing: 1.8px; margin-left: 17px; border-left: 1px solid #ffffff1a; padding-left: 17px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn { min-height: 37px; height: 37px; padding: 0 14px; gap: 8px; font-size: 12px; font-weight: 550; color: #c7c7d7; background: #ffffff05; border: 1px solid #ffffff18; border-radius: 7px; box-shadow: none; }
.btn:hover { color: #eee9ff; background: #ffffff0a; border-color: #b99ce64d; }
.btn-primary { background: #baa0ef; color: #20162e; border-color: #baa0ef; }
.btn-primary:hover { background: #ccb5fb; color: #20162e; border-color: #ccb5fb; }
.btn-error { background: #eca0ad; border-color: #eca0ad; color: #391924; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-square { width: 32px; min-height: 32px; height: 32px; padding: 0; }
.btn-sm { height: 30px; min-height: 30px; font-size: 11px; }
main { max-width: 1840px; margin: 0 auto; padding: 0 25px 30px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0; }
.breadcrumb { display: none; }
.page-heading h2 { font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.heading-dot { display: none; }
.heading-actions { display: flex; align-items: center; gap: 18px; }
.autosave { display: flex; align-items: center; gap: 6px; color: #93b4a2; font-size: 11px; }
.subtle-button { height: 33px; min-height: 33px; font-size: 11px; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; min-height: 49px; border-bottom: 1px solid var(--line); }
.section-title h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.section-title h3>svg { color: #a394be; }
.muted { color: #9797ab; font-size: 11px; }
.mini-label { color: #9290aa; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) 344px; gap: 18px; align-items: start; }
.library { grid-column: 1/-1; display: grid; grid-template-columns: 244px minmax(0,1fr); padding: 13px; gap: 16px; border-radius: 10px; background: #161720; }
.library>.section-title { display: none; }
.library-tools { display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; }
.search-input { display: flex; align-items: center; gap: 9px; min-height: 37px; height: 37px; padding: 0 10px; border: 1px solid #ffffff19; border-radius: 7px; background: #0d0e16; color: #8b8ca3; min-width: 0; }
.search-input:focus-within { border-color: #ba9be96b; }
.search-input input { height: 100%; width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; color: #e0dbed; font-size: 12px; }
.search-input input:focus-visible { outline: 0; }
.search-input input::placeholder { color: #76778f; }
.search-input>svg { flex-shrink: 0; }
.search-input>button { display: grid; place-items: center; }
.elements { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.elements>button { width: 26px; height: 27px; border-radius: 5px; border: 1px solid transparent; display: grid; place-items: center; color: #8b8da3; }
.elements>button:hover, .elements>button.selected { background: #bea2f21a; border-color: #bea2f23b; color: #ddcafa; }
.elements img { width: 19px; height: 19px; object-fit: contain; }
.library-filter-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #898b9f; }
.library-filter-row>button { display: flex; align-items: center; gap: 5px; color: #b9accf; }
.advanced-filters { position: absolute; top: 115px; left: 0; z-index: 15; width: 270px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #ba9be940; background: #20202d; border-radius: 9px; box-shadow: 0 10px 30px #0006; }
.checkbox-label { display: flex; align-items: center; gap: 8px; color: #b7adc8; font-size: 12px; }
.character-grid { display: flex; align-items: stretch; gap: 9px; min-width: 0; overflow-x: auto; padding: 0 0 4px; scroll-snap-type: x proximity; }
.character-browser { min-width: 0; position: relative; }
.character-scroll-controls { position: absolute; right: 3px; top: -8px; display: flex; gap: 4px; z-index: 4; }
.character-scroll-controls>button { width: 24px; height: 24px; display: grid; place-items: center; color: #d9c8f6; background: #282236; border: 1px solid #a78cc749; border-radius: 50%; box-shadow: 0 2px 8px #0005; }
.character-scroll-controls>button:hover { background: #48345e; }
.character-card { position: relative; flex: 0 0 74px; width: 74px; height: 106px; overflow: hidden; background: #20212e; border: 1px solid #ffffff12; border-radius: 8px; scroll-snap-align: start; }
.character-card>img:first-child { position: absolute; top: 0; left: 0; width: 100%; height: 79px; object-fit: cover; object-position: top; }
.character-card:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#171821 16%,#171821c4 34%,transparent 70%); pointer-events: none; }
.character-card.selected { border-color: #c4a6f4; box-shadow: inset 0 0 0 1px #c4a6f433; }
.character-card:hover { border-color: #a890c3; }
.character-card .card-element { position: absolute; top: 5px; left: 5px; width: 17px; height: 17px; object-fit: contain; z-index: 2; }
.built-indicator { position: absolute; top: 7px; right: 6px; width: 4px; height: 4px; background: #accfb4; border-radius: 50%; z-index: 2; }
.char-caption { position: absolute; bottom: 7px; left: 5px; right: 5px; display: flex; flex-direction: column; gap: 3px; z-index: 2; text-align: center; }
.char-caption>span { font-size: 10px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-caption>small { font-size: 8px; color: #a39aae; }
.selected-check { position: absolute; bottom: 0; right: 0; z-index: 3; display: grid; place-items: center; background: #c1a3ed; color: #21162e; width: 14px; height: 14px; border-top-left-radius: 5px; }
.empty-results { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; color: #a69bb7; font-size: 12px; }
.text-button { color: #c3a5f1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.mobile-close { display: none; }
.editor-column { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.team-panel { padding: 12px 15px; }
.team-panel>.section-title { min-height: 26px; border: 0; padding: 0 0 10px; }
.team-panel>.section-title h3 { font-size: 11px; color: #bdb6cb; }
.team-slots { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.team-slot { display: flex; align-items: center; min-width: 0; height: 48px; border: 1px solid #ffffff13; border-radius: 7px; background: #11121a; }
.team-slot.active { background: #b99ae910; border-color: #b99ae944; }
.team-select { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 0 0 0 4px; height: 100%; text-align: left; }
.team-select>img, .team-select>.art-fallback { width: 35px; height: 39px; object-fit: contain; flex-shrink: 0; }
.team-select>span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team-select b { font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-select small { color: #8e879f; font-size: 9px; }
.team-replace { width: 24px; height: 100%; display: grid; place-items: center; color: #9584ac; flex-shrink: 0; }
.team-replace:hover { background: #bca0ed14; }
.empty-slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; color: #92869f; font-size: 10px; }
.add-to-team { margin-top: 12px; }
.character-editor { background: #13141e; }
.editor-tabs { display: flex; align-items: center; gap: 25px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #191a25; }
.editor-tabs>button { height: 48px; display: flex; align-items: center; gap: 7px; position: relative; color: #9490a5; font-size: 12px; }
.editor-tabs>button.active { color: #dfc9ff; }
.editor-tabs>button.active:after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #bea0f3; }
.editor-id { margin-left: auto; color: #727085; font: 10px Consolas,monospace; }
.character-overview { height: 510px; }
.character-visual { height: 100%; position: relative; overflow: hidden; background: radial-gradient(ellipse at 62% 50%,color-mix(in srgb,var(--element) 11%,transparent),transparent 65%); }
.character-splash { position: absolute; inset: -7% -4% auto auto; width: 85%; max-width: none; height: 112%; object-fit: contain; object-position: center; }
.character-visual:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#13141e 0%,#13141e55 25%,transparent 55%),linear-gradient(90deg,#13141e66,transparent 45%); pointer-events: none; }
.visual-element { position: absolute; top: 35px; left: 29px; font-size: 65px; font-weight: 750; letter-spacing: -3px; color: #ffffff04; }
.visual-caption { position: absolute; bottom: 30px; left: 30px; z-index: 2; }
.character-kicker { font-size: 9px; letter-spacing: 1.5px; font-weight: 550; color: #a8a0bd; }
.visual-caption h2 { margin: 8px 0 14px; font-size: 37px; line-height: 1.2; font-weight: 700; letter-spacing: -1.1px; }
.visual-caption>div { display: flex; align-items: center; gap: 8px; }
.element-tag,.path-tag { font-size: 11px; padding: 5px 9px; background: #171823c9; border: 1px solid #ffffff1a; border-radius: 6px; color: #b6adc9; }
.stars { color: #e6be75; font-size: 10px; letter-spacing: 1.5px; display: block; }
.visual-caption .stars { margin-left: 5px; }
.art-id { position: absolute; bottom: 26px; right: 22px; z-index: 2; font: 10px Consolas,monospace; color: #6c647d; }
.stats-column { display: flex; flex-direction: column; gap: 16px; }
.stats-panel { background: #181922; }
.stats-character { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.stats-character>img,.stats-character>.art-fallback { width: 35px; height: 35px; object-fit: contain; border-radius: 50%; background: #b69be51a; }
.stats-character>div { display: flex; flex-direction: column; gap: 4px; }
.stats-character b { font-size: 13px; font-weight: 600; }
.stats-character small { font-size: 10px; color: #9790a8; }
.stats-character>svg { margin-left: auto; color: #b2a0d1; }
.live-pill { display: flex; align-items: center; gap: 5px; color: #99bca7; font: 9px Consolas,monospace; }
.live-pill>span,.status-dot { width: 4px; height: 4px; border-radius: 50%; background: #99bca7; }
.main-stats { padding: 8px 12px 0; }
.main-stats>div { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 7px; border-radius: 4px; }
.main-stats>div:nth-child(odd),.sub-stats>div:nth-child(odd) { background: #ffffff04; }
.main-stats>div>span { display: flex; align-items: center; gap: 9px; color: #b5adc5; font-size: 12px; }
.main-stats>div>span>svg { color: #9d90b7; width: 14px; }
.main-stats b { color: #e6def4; font: 13px Consolas,monospace; }
.stat-divider { margin: 9px 18px; height: 1px; background: var(--line); }
.sub-stats { padding: 0 12px 9px; }
.sub-stats>div { display: flex; align-items: center; justify-content: space-between; min-height: 31px; padding: 0 7px; font-size: 11px; border-radius: 4px; }
.sub-stats>div>span { color: #a9a1bc; }
.sub-stats b { color: #d0c2e6; font: 12px Consolas,monospace; }
.sub-stats small { font-size: 10px; color: #9d8db6; margin-left: 2px; }
.stats-note { margin: 0 18px; padding: 10px 0; border-top: 1px solid var(--line); color: #847b96; display: flex; align-items: flex-start; gap: 6px; }
.stats-note svg { flex-shrink: 0; margin-top: 2px; }
.stats-note p { font-size: 10px; line-height: 1.6; }
.stats-copy { width: calc(100% - 36px); margin: 0 18px 14px; min-height: 31px; height: 31px; font-size: 11px; }
.stats-details { margin-bottom: 12px; }
.stats-details>summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; margin: 0 18px 8px; padding: 8px; border: 1px solid #b193d22c; border-radius: 7px; color: #b8a4d4; font-size: 10px; }
.stats-details>summary::-webkit-details-marker { display: none; }
.stats-details[open]>summary svg { transform: rotate(180deg); }
.stats-details>summary:focus-visible { outline: 2px solid #c7b5fa; outline-offset: 2px; }
.equipment-section>.section-title { min-height: 43px; }
.cone-equipment { display: flex; gap: 12px; padding: 14px; }
.cone-art { width: 65px; height: 94px; border: 1px solid #b99a6355; background: #24212b; border-radius: 6px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.cone-art>img { width: 100%; height: 100%; object-fit: cover; }
.cone-detail { flex: 1; min-width: 0; }
.cone-title { display: flex; flex-direction: column; gap: 5px; }
.cone-title>button { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; text-align: left; }
.cone-title .stars { font-size: 8px; }
.cone-path { display: block; font-size: 10px; color: #9990ac; margin: 7px 0 10px; }
.path-warning { display: block; margin-top: 4px; font-size: 9px; color: #deb584; }
.cone-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.change-cone { grid-column: 1/-1; height: 29px; min-height: 29px; font-size: 10px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field>span { color: #a69bb8; font-size: 11px; }
.number-field { display: flex; align-items: center; gap: 3px; min-width: 0; height: 35px; padding: 0 9px; border: 1px solid #ffffff1a; border-radius: 6px; background: #10111a; }
.number-field:focus-within { border-color: #b99fe863; }
.number-field input { width: 100%; min-width: 0; height: 100%; outline: 0; border: 0; background: transparent; color: #e2d9ed; font: 13px Consolas,monospace; }
.number-field input:focus-visible { outline: 0; }
.number-field small { color: #82758f; font-size: 10px; white-space: nowrap; }
.select,.input { width: 100%; height: 35px; min-height: 35px; border: 1px solid #ffffff1a; border-radius: 6px; background-color: #10111a; color: #d4c9e5; font-size: 12px; box-shadow: none; outline: 0; }
.select { padding-left: 10px; padding-right: 27px; }
.select:focus,.input:focus { outline: 0; border-color: #b99fe863; }
.input { padding: 0 10px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.character-controls { padding: 17px; }
.eidolon-track { display: flex; gap: 7px; margin-top: 12px; }
.eidolon-track>button { display: flex; align-items: center; justify-content: center; gap: 4px; height: 29px; flex: 1; border: 1px solid #ffffff17; background: #0e0f17; border-radius: 5px; color: #7c708e; }
.eidolon-track>button>span { font: 10px Consolas,monospace; }
.eidolon-track>button.unlocked { background: #ac8ce827; border-color: #ac8ce854; color: #dac4ff; }
.energy-label { display: flex; justify-content: space-between; font-size: 11px; color: #b7a7cb; margin: 21px 0 12px; }
.energy-label>b { color: #e1c584; font: 12px Consolas,monospace; }
.range { --range-bg: #f4d68b1a; --range-thumb: #e5c179; color: #e5c179; --range-fill: 1; width: 100%; height: 5px; min-height: 5px; }
.technique-toggle { display: flex; justify-content: space-between; align-items: center; margin: 19px 0; font-size: 12px; color: #c3b2d5; }
.technique-toggle>span { display: flex; align-items: center; gap: 7px; }
.toggle { color: #bda3e7; background-color: #353044; border-color: #353044; }
.toggle:checked { color: #241a34; background-color: #c3a5ee; border-color: #c3a5ee; }
.checkbox { border-color: #9b82be55; --input-color: #bca0e9; color: #21152f; }
.checkbox:checked { background: #bca0e9; }
.quick-max { width: 100%; height: 32px; min-height: 32px; font-size: 11px; background: #b89ae80a; border-color: #b89ae82b; color: #c4afdF; }
.quick-max>svg:last-child { margin-left: auto; }
.relic-panel { padding-bottom: 13px; }
.relic-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; padding: 14px; }
.relic-slot { display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; border: 1px solid #ffffff13; border-radius: 7px; background: #13141d; padding: 10px 5px; }
.relic-slot:hover { background: #aa89dd12; border-color: #aa89dd5c; }
.relic-slot-label { color: #9e93af; font-size: 9px; white-space: nowrap; }
.relic-slot>img,.relic-slot>.art-fallback { width: 55px; height: 60px; object-fit: contain; margin: 5px 0; }
.relic-level { position: absolute; right: 7px; top: 63px; font: 9px Consolas,monospace; color: #dfc697; background: #17151fc9; border-radius: 3px; padding: 1px 3px; }
.relic-main { font-size: 9px; color: #aea1c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.relic-slot>b { font: 13px Consolas,monospace; color: #e0cdef; margin-top: 5px; }
.relic-stars { color: #ceab68; font-size: 7px; letter-spacing: 1px; margin-top: 5px; }
.relic-add { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #b39acb; }
.set-bonuses { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 0 15px; }
.set-bonuses>span { display: flex; align-items: center; gap: 5px; color: #9db5a4; font-size: 10px; }
.set-bonuses b { font: 9px Consolas,monospace; padding: 1px 4px; background: #a3c3ad13; border-radius: 3px; }
.info-content { padding: 25px; min-height: 420px; }
.info-content>img { width: 65px; height: 65px; object-fit: contain; border-radius: 50%; background: #b59ad51a; }
.info-content h2 { font-size: 25px; margin: 13px 0; }
.info-badges { display: flex; gap: 8px; }
.info-badges .badge { font-size: 11px; background: #a88bd516; border: 1px solid #a88bd52b; color: #d0bee5; }
.info-content>p { margin: 23px 0; line-height: 1.9; white-space: pre-line; font-size: 13px; color: #b2a4c6; }
.info-source { border-top: 1px solid var(--line); padding-top: 16px; color: #8b7d9b; font-size: 11px; line-height: 1.9; }
.art-fallback { display: grid; place-items: center; color: #ad8ada66; background: #b69bd208; min-height: 25px; max-width: 100%; }
.loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 25px; background: #11121b; }
.loading-screen h1 { font-size: 27px; font-weight: 650; }
.loading-screen h1>span { color: #c3a3f0; }
.loading-screen p { color: #9c8fb0; font-size: 13px; }
.loading-mark { display: grid; place-items: center; width: 62px; height: 62px; background: #b591e624; border: 1px solid #b591e63f; border-radius: 16px; font-size: 35px; font-weight: 750; color: #dac2fa; }
.spin { animation: spin 1.5s linear infinite; color: #c7a9ed; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal { background: #06060da8; backdrop-filter: blur(6px); }
.modal-box,.dialog-head { background: #1a1927; }
.modal .field>span { color: #b1a3c8; }
.modal .settings-note { color: #a090b6; }
.modal .search-input { background: #11101b; }
.catalog-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.catalog { min-height: 500px; }
.catalog-card { background: #14131e; }
.catalog-card h3 { font-size: 13px; }
.catalog-card p { font-size: 11px; }
.catalog-card .btn { font-size: 10px; }
.catalog-toolbar>.search-input { min-height: 37px; }
.trace-editor { min-height: 510px; }
.trace-skill p { font-size: 12px; }
.trace-skill h4 { font-size: 13px; }
.trace-skill small { font-size: 11px; }
.bonus-traces>label { font-size: 12px; }
.bonus-traces small { font-size: 10px; }
.battle-layout { grid-template-columns: 1fr 1fr; }
.battle-fields { gap: 14px; }
.enemy-list b { font-size: 12px; }
.enemy-list small { font-size: 10px; }
.selected-monsters b { font-size: 13px; }
.profile-card { background: #191822; }
.new-profile { background: #ab86e508; }
.guide-steps p { font-size: 12px; }
.about-links,.about-logo { display: none; }

@media(min-width:1600px) {
  .workspace-grid { grid-template-columns: minmax(0,1fr) 380px; gap: 21px; }
  .character-overview { height: 580px; }
  .character-splash { width: 88%; }
  .visual-caption h2 { font-size: 46px; }
  .character-card { width: 82px; flex-basis: 82px; height: 113px; }
  .character-card>img:first-child { height: 87px; }
  .catalog-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media(max-width:1150px) {
  .app-body { margin-left: 78px; }
  .rail { width: 78px; padding: 17px 7px; }
  .rail-button>span { font-size: 9px; }
  main { padding: 0 18px 24px; }
  .topbar { padding: 0 18px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 14px; }
  .library { grid-template-columns: 220px minmax(0,1fr); gap: 12px; }
  .character-overview { height: 460px; }
  .character-splash { width: 112%; right: -14%; }
  .visual-caption { left: 22px; }
  .visual-caption h2 { font-size: 32px; }
  .character-kicker { font-size: 8px; }
  .team-slots { gap: 7px; }
  .team-select>img { width: 29px; }
  .team-select { gap: 3px; }
  .team-select b { font-size: 10px; }
  .team-replace { width: 17px; }
  .team-select small { font-size: 8px; }
  .relic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .relic-slot { padding: 10px; }
  .catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .workspace-grid { grid-template-columns: minmax(0,1fr) 285px; }
  .library { grid-template-columns: 190px minmax(0,1fr); }
  .character-overview { height: 450px; }
  .visual-caption { bottom: 25px; left: 18px; }
  .visual-caption h2 { font-size: 30px; }
  .visual-caption>div { flex-wrap: wrap; }
  .visual-caption .stars { width: 100%; margin: 3px 0 0; }
  .character-splash { width: 145%; right: -25%; }
  .team-select>span { display: none; }
  .team-select { justify-content: center; padding: 0; }
  .team-select>img { width: 36px; height: 41px; }
  .team-slot { height: 49px; }
  .team-panel { padding: 12px; }
  .empty-slot>span { display: none; }
  .wordmark .version { display: none; }
  .editor-tabs { gap: 17px; padding: 0 15px; }
  .editor-tabs>button { font-size: 11px; gap: 5px; }
  .editor-id { display: none; }
  .section-title { padding: 0 14px; }
  .section-title h3 { font-size: 11px; }
  .autosave { font-size: 10px; }
  .stats-character { padding: 12px 14px; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-toolbar { flex-wrap: wrap; }
  .catalog-toolbar>.search-input { max-width: none; flex-basis: 100%; }
  .profiles-grid { grid-template-columns: 1fr 1fr; }
  .battle-layout { grid-template-columns: 1fr; }
  .bonus-traces { grid-template-columns: 1fr; }
  .trace-skill { flex-wrap: wrap; }
  .trace-skill>.field { width: 100%; flex-basis: 100%; }
}
@media(max-width:720px) {
  .app-body { margin-left: 0; padding-bottom: 66px; }
  .rail { inset: auto 0 0; width: 100%; height: 62px; flex-direction: row; padding: 0 8px; border-right: 0; border-top: 1px solid #ffffff1b; background: #14141ff5; backdrop-filter: blur(15px); }
  .brand,.rail-divider,.rail-bottom { display: none; }
  .rail nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
  .rail-button { height: 51px; border-radius: 7px; gap: 5px; }
  .rail-button>svg { width: 18px; height: 18px; }
  .rail-button>span { font-size: 9px; }
  .topbar { height: 59px; padding: 0 14px; }
  .wordmark { font-size: 20px; }
  .top-actions { gap: 5px; }
  .top-actions .btn { font-size: 10px; height: 32px; min-height: 32px; padding: 0 9px; gap: 5px; }
  .top-actions .btn>svg { width: 13px; }
  main { padding: 0 13px 25px; }
  .page-heading { padding: 16px 0; gap: 10px; }
  .page-heading h2 { font-size: 17px; }
  .heading-actions { gap: 7px; }
  .autosave { display: none; }
  .subtle-button { height: 31px; min-height: 31px; padding: 0 9px; font-size: 10px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 14px; }
  .library { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
  .library-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
  .library-tools>.search-input { grid-column: 1; }
  .library-filter-row { grid-column: 2; grid-row: 1; gap: 12px; }
  .library-filter-row>span { display: none; }
  .library-filter-row>button { height: 35px; padding: 0 8px; border: 1px solid #ffffff16; border-radius: 6px; }
  .elements { grid-column: 1/-1; justify-content: flex-start; gap: 7px; }
  .elements>button { width: 30px; height: 28px; }
  .character-grid { gap: 8px; }
  .character-card { width: 65px; flex-basis: 65px; height: 91px; }
  .character-card>img:first-child { height: 65px; }
  .char-caption>span { font-size: 9px; }
  .char-caption>small { font-size: 7px; }
  .advanced-filters { top: 45px; left: auto; right: 0; width: min(270px,100%); }
  .empty-results { min-height: 85px; font-size: 11px; gap: 8px; }
  .empty-results>svg { display: none; }
  .editor-column { gap: 14px; }
  .editor-column,.stats-column { display: contents; }
  .team-panel { grid-row: 2; }
  .settings-panel { grid-row: 3; }
  .character-editor { grid-row: 4; }
  .stats-column>.equipment-section { grid-row: 5; }
  .relic-panel { grid-row: 6; }
  .stats-panel { grid-row: 7; }
  .team-panel { padding: 10px 12px; }
  .team-slots { gap: 7px; }
  .team-slot { height: 47px; }
  .team-select>span { display: flex; }
  .team-select>img { width: 30px; height: 36px; }
  .team-select { justify-content: flex-start; padding-left: 2px; }
  .team-select b { font-size: 9px; }
  .team-select small { font-size: 7px; }
  .team-replace { width: 16px; }
  .character-overview { height: 375px; }
  .character-splash { width: 110%; height: 113%; right: -10%; top: -10%; }
  .visual-caption { left: 21px; bottom: 23px; }
  .visual-caption h2 { font-size: 32px; margin-bottom: 12px; }
  .visual-caption>div { flex-wrap: nowrap; }
  .visual-caption .stars { width: auto; margin: 0 0 0 5px; font-size: 8px; }
  .element-tag,.path-tag { font-size: 10px; }
  .visual-element { font-size: 50px; left: 20px; top: 30px; }
  .character-kicker { font-size: 7px; }
  .editor-tabs { gap: 22px; height: 45px; padding: 0 17px; }
  .editor-tabs>button { height: 45px; font-size: 11px; }
  .editor-id { display: block; font-size: 8px; }
  .relic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 12px; }
  .relic-slot { padding: 10px 4px; }
  .relic-slot>img { width: 55px; height: 56px; }
  .relic-slot-label { font-size: 9px; }
  .relic-level { top: 60px; }
  .set-bonuses { font-size: 9px; gap: 8px; padding: 0 12px; }
  .set-bonuses>span { font-size: 9px; }
  .stats-column { display: contents; }
  .stats-panel { grid-column: 1/-1; }
  .stats-character { padding: 13px 17px; }
  .main-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; padding: 9px 12px; }
  .main-stats>div { min-height: 37px; }
  .main-stats>div>span { font-size: 11px; }
  .sub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
  .sub-stats>div { font-size: 10px; min-height: 34px; gap: 4px; }
  .sub-stats b { font-size: 11px; }
  .stat-divider { margin: 0 18px 9px; }
  .stats-column>.equipment-section,.settings-panel { grid-column: 1/-1; }
  .cone-art { width: 74px; height: 106px; }
  .cone-equipment { gap: 15px; padding: 15px; }
  .cone-title>button { font-size: 13px; }
  .cone-title { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .cone-controls { grid-template-columns: 1fr 1fr auto; gap: 10px; }
  .change-cone { grid-column: auto; height: 35px; min-height: 35px; font-size: 10px; padding: 0 9px; margin: 0; }
  .character-controls { padding: 17px; }
  .eidolon-track>button { height: 33px; }
  .energy-label { margin-top: 22px; }
  .modal { padding: 12px; }
  .modal-box { padding: 0 16px 18px; max-height: 88vh; border-radius: 10px; }
  .dialog-head { padding: 18px 0 16px; gap: 10px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-head p { font-size: 11px; }
  .dialog-actions { gap: 7px; flex-wrap: wrap; }
  .dialog-actions .btn { font-size: 10px; padding: 0 10px; }
  .picker-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .picker-toolbar>.search-input { min-height: 37px; }
  .cone-picker-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .cone-picker-card { padding: 6px; }
  .cone-picker-card>b { font-size: 10px; }
  .cone-picker-card .stars { font-size: 7px; }
  .relic-edit-top { flex-wrap: wrap; gap: 12px; }
  .relic-edit-art { width: 60px; }
  .relic-edit-art img { height: 60px; width: 60px; }
  .relic-edit-fields { min-width: 220px; }
  .main-preview { flex-basis: 100%; flex-direction: row; width: 100%; border: 1px solid var(--line); padding: 12px; gap: 12px; border-radius: 6px; justify-content: space-between; }
  .main-preview>b { font-size: 20px; }
  .main-preview>small { font-size: 8px; }
  .sub-affix-row { grid-template-columns: 1fr 1fr 60px 26px; gap: 9px; padding: 12px; }
  .sub-affix-row>.field:first-child { grid-column: 1/-1; }
  .sub-affix-row .field>span { font-size: 9px; }
  .sub-value { font-size: 11px; }
  .team-picker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .team-picker-grid b { font-size: 10px; }
  .team-picker-grid small { font-size: 8px; }
  .team-picker-grid img { width: 31px; height: 35px; }
  .export-options { gap: 9px; }
  .export-options>button { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
  .export-options b { font-size: 11px; }
  .export-options span { font-size: 10px; }
  .code-preview pre { font-size: 9px; padding: 12px; max-height: 250px; }
  .toast { bottom: 75px; max-width: calc(100% - 20px); right: 10px; }
  .notice { padding: 12px 14px; font-size: 11px; }
  .catalog { padding: 13px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .catalog-toolbar { gap: 10px; }
  .catalog-toolbar>.select { width: 175px; font-size: 11px; }
  .catalog-toolbar>span { font-size: 10px; }
  .catalog-card-content { padding: 10px; }
  .catalog-card h3 { font-size: 12px; }
  .catalog-card .mini-label { font-size: 7px; }
  .catalog-card .btn { font-size: 9px; }
  .profiles-grid { grid-template-columns: 1fr; gap: 15px; }
  .new-profile { height: 195px; }
  .battle-modes { grid-template-columns: 1fr 1fr; }
  .battle-fields { grid-template-columns: 1fr 1fr; }
  .battle-fields>.field:first-child { grid-column: 1/-1; }
  .trace-editor { padding: 16px; }
  .trace-top { flex-wrap: wrap; }
  .trace-top h3 { font-size: 13px; }
  .trace-top p { font-size: 11px; }
  .trace-skill p { font-size: 11px; }
  .trace-skill>.field { flex-basis: auto; width: 65px; }
  .bonus-traces { grid-template-columns: 1fr; }
}
@media(max-width:420px) {
  .top-import { font-size: 0!important; gap: 0!important; width: 30px; padding: 0!important; }
  .team-select>span { display: none; }
  .team-select { justify-content: center; }
  .team-select>img { width: 37px; height: 39px; }
  .character-overview { height: 335px; }
  .character-splash { width: 125%; right: -18%; }
  .visual-caption h2 { font-size: 30px; }
  .editor-id { display: none; }
  .sub-stats>div { font-size: 9px; }
  .sub-stats b { font-size: 10px; }
  .cone-controls { gap: 7px; }
  .change-cone { font-size: 9px; padding: 0 6px; }
  .cone-title>button { font-size: 11px; }
  .cone-title .stars { font-size: 7px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }

.hina-logo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.loading-screen > .loading-logo { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 22px; }
.wordmark-logo { display: none; border-radius: 8px; }
.language-select { width: 112px; min-height: 33px; height: 33px; font-size: 12px; }
.ps-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ps-form { display: grid; gap: 16px; border: 0; padding: 0; min-width: 0; }
.ps-form .input, .ps-form .select { width: 100%; }
.ps-builds { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 12px; max-height: 220px; overflow: auto; padding: 12px; background: #ffffff05; border-radius: 10px; }
.ps-result { padding: 14px; border: 1px solid #91d9b24a; background: #91d9b20c; border-radius: 10px; margin-top: 16px; overflow-wrap: anywhere; }
.ps-result.failure { border-color: #ed839259; background: #ed83920d; }
.ps-result p { margin-top: 7px; font-size: 12px; }
.ps-adjustments { max-height: 180px; overflow: auto; margin-top: 10px; }
.profile-portraits { max-width: 100%; }
@media(max-width:680px) {
  .wordmark-logo { display: block; width: 28px; height: 28px; object-fit: contain; margin-right: 8px; }
  .topbar { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .top-actions .btn { font-size: 10px; padding-inline: 8px; }
  .language-select { width: 100px; font-size: 10px; }
  .ps-types .btn { font-size: 10px; padding-inline: 8px; }
}
