/* Locally served Google Fonts subsets. License notices are in assets/. */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/rubik-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='golos'] { --body-font: 'Golos Text', system-ui, sans-serif; }
:root[data-font='rubik'] { --body-font: Rubik, system-ui, sans-serif; }

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='inter'] { --body-font: 'Inter', system-ui, sans-serif; }

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/noto-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/noto-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='noto-sans'] { --body-font: 'Noto Sans', system-ui, sans-serif; }

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('./assets/source-sans-3-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('./assets/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='source-sans-3'] { --body-font: 'Source Sans 3', system-ui, sans-serif; }

@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/sofia-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/sofia-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='sofia-sans'] { --body-font: 'Sofia Sans', system-ui, sans-serif; }

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='onest'] { --body-font: 'Onest', system-ui, sans-serif; }

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/commissioner-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/commissioner-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='commissioner'] { --body-font: 'Commissioner', system-ui, sans-serif; }

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('./assets/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('./assets/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='nunito'] { --body-font: 'Nunito', system-ui, sans-serif; }

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/ibm-plex-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='ibm-plex-sans'] { --body-font: 'IBM Plex Sans', system-ui, sans-serif; }

@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/brygada-1918-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/brygada-1918-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='brygada-1918'] { --body-font: 'Brygada 1918', Georgia, serif; }

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='montserrat'] { --body-font: 'Montserrat', system-ui, sans-serif; }

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/exo-2-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/exo-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='exo-2'] { --body-font: 'Exo 2', system-ui, sans-serif; }

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/lora-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='lora'] { --body-font: 'Lora', Georgia, serif; }

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/geologica-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/geologica-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='geologica'] { --body-font: 'Geologica', system-ui, sans-serif; }

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/open-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('./assets/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='open-sans'] { --body-font: 'Open Sans', system-ui, sans-serif; }

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/roboto-condensed-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/roboto-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='roboto-condensed'] { --body-font: 'Roboto Condensed', system-ui, sans-serif; }

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/raleway-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='raleway'] { --body-font: 'Raleway', system-ui, sans-serif; }

@font-face {
  font-family: 'Ruda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/ruda-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Ruda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/ruda-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='ruda'] { --body-font: 'Ruda', system-ui, sans-serif; }

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('./assets/literata-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('./assets/literata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='literata'] { --body-font: 'Literata', Georgia, serif; }

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/bitter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/bitter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='bitter'] { --body-font: 'Bitter', Georgia, serif; }

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/alegreya-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./assets/alegreya-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='alegreya'] { --body-font: 'Alegreya', Georgia, serif; }

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('./assets/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('./assets/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-font='jetbrains-mono'] { --body-font: 'JetBrains Mono', ui-monospace, monospace; }

:root {
  color-scheme: light;
  --page: #f8f8f8;
  --surface: #fefefe;
  --surface-raised: #e8e3e3;
  --input: var(--surface);
  --ink: #201f21;
  --quiet: #555457;
  --line: #d1cfd1;
  --line-strong: #b0afb2;
  --outline: #898889;
  --accent: #175740;
  --accent-hover: #124834;
  --on-accent: #fefefe;
  --warning: #805009;
  --warning-bg: #fff1d5;
  --danger: #982925;
  --danger-bg: #fce9e7;
  --action-destructive: #a12926;
  --action-destructive-hover: #831d1a;
  --on-action-destructive: #fff;
  --action-edit: #f3c449;
  --action-edit-hover: #e8b433;
  --on-action-edit: #352502;
  --success: #cef1de;
  --on-success: #143f2e;
  --shift-bg: #e3f4ea;
  --shift-ink: #164d38;
  --shift-border: #8abaa2;
  --dialog-backdrop: rgb(32 31 33 / .38);
  --login-gradient-middle: #edf2ec;
  --login-gradient-end: #eee5e8;
  --login-shadow: rgb(32 31 33 / .08);
  --interface-scale: 1;
  --radius: .875rem;
  --target: max(44px, 3.5rem);
  --edge: clamp(.875rem, 3.2vw, 3.25rem);
  --board-width: 107.5rem;
  --body-font: Manrope, system-ui, sans-serif;
  color: var(--ink);
  font-size: calc(100% * var(--interface-scale));
  background: var(--page);
  scrollbar-color: var(--outline) var(--page);
}

:root:is(
  [data-theme='graphite'], [data-theme='polar-night'], [data-theme='dark-plum'],
  [data-theme='deep-teal'], [data-theme='ultramarine'], [data-coolors='dark']
) {
  color-scheme: dark;
  --page: #191b1f;
  --surface: #23262b;
  --surface-raised: #2e3238;
  --input: #1e2024;
  --ink: #eef0f1;
  --quiet: #bcc1c8;
  --line: #42474f;
  --line-strong: #616974;
  --outline: #828995;
  --accent: #91ccb1;
  --accent-hover: #aadbc4;
  --on-accent: #172d24;
  --warning: #ffd999;
  --warning-bg: #3d301d;
  --danger: #ffb7b0;
  --danger-bg: #432627;
  --action-destructive: #af3536;
  --action-destructive-hover: #a12926;
  --success: #2d5241;
  --on-success: #e1f6e9;
  --shift-bg: #284439;
  --shift-ink: #bde9d3;
  --shift-border: #648b78;
  --dialog-backdrop: rgb(0 0 0 / .66);
  --login-gradient-middle: #222f2d;
  --login-gradient-end: #302832;
  --login-shadow: rgb(0 0 0 / .25);
}

:root[data-theme='marine'] {
  --page: #edf6f9;
  --surface: #fafdff;
  --surface-raised: #d8eaf1;
  --ink: #132d3a;
  --quiet: #3c5b6a;
  --line: #b7d2dc;
  --line-strong: #8daebd;
  --outline: #648292;
  --accent: #155574;
  --accent-hover: #10445e;
  --on-accent: #fafdff;
  --dialog-backdrop: rgb(11 39 54 / .42);
  --login-gradient-middle: #d9ecf4;
  --login-gradient-end: #d7e9e6;
  --login-shadow: rgb(11 39 54 / .12);
}

:root[data-theme='sand'] {
  --page: #f7f0e4;
  --surface: #fffaf1;
  --surface-raised: #eddfc8;
  --ink: #32271d;
  --quiet: #615344;
  --line: #d5c6ae;
  --line-strong: #b5a182;
  --outline: #8a755c;
  --accent: #694424;
  --accent-hover: #543419;
  --on-accent: #fffaf1;
  --dialog-backdrop: rgb(50 39 29 / .42);
  --login-gradient-middle: #efe1c9;
  --login-gradient-end: #f0e2da;
  --login-shadow: rgb(50 39 29 / .12);
}

:root[data-theme='lavender'] {
  --page: #f4f0fa;
  --surface: #fdfaff;
  --surface-raised: #e8dff2;
  --ink: #292136;
  --quiet: #5b4e69;
  --line: #d4c8e2;
  --line-strong: #b39fc8;
  --outline: #837495;
  --accent: #583b78;
  --accent-hover: #473064;
  --on-accent: #fdfaff;
  --dialog-backdrop: rgb(41 33 54 / .42);
  --login-gradient-middle: #e8dff1;
  --login-gradient-end: #eee0ed;
  --login-shadow: rgb(41 33 54 / .12);
}

:root[data-theme='pine'] {
  --page: #eaf2ed;
  --surface: #f6fcf7;
  --surface-raised: #dbe9df;
  --ink: #182b22;
  --quiet: #455d4f;
  --line: #bbd0c1;
  --line-strong: #9ab5a3;
  --outline: #677e70;
  --accent: #245943;
  --accent-hover: #194733;
  --on-accent: #f6fcf7;
  --dialog-backdrop: rgb(24 43 34 / .43);
  --login-gradient-middle: #d8e9de;
  --login-gradient-end: #e3e8d8;
  --login-shadow: rgb(24 43 34 / .12);
}

:root[data-theme='polar-night'] {
  --page: #111c2b;
  --surface: #19283b;
  --surface-raised: #26384e;
  --input: #152236;
  --ink: #eef5ff;
  --quiet: #bbc9de;
  --line: #3c506c;
  --line-strong: #5d789a;
  --outline: #768ca9;
  --accent: #9ecdf4;
  --accent-hover: #b8dcfa;
  --on-accent: #14283d;
  --success: #234c47;
  --on-success: #dbf6ec;
  --shift-bg: #20423d;
  --shift-ink: #bcebd7;
  --shift-border: #618e81;
  --login-gradient-middle: #1c344b;
  --login-gradient-end: #272b48;
}

:root[data-theme='ice-blue'] {
  --page: #e8f0fc;
  --surface: #f8fbff;
  --surface-raised: #d7e5fb;
  --ink: #172642;
  --quiet: #435675;
  --line: #b9c9e4;
  --line-strong: #8d9fc4;
  --outline: #667ea6;
  --accent: #243f83;
  --accent-hover: #172b63;
  --on-accent: #f8fbff;
  --shift-border: #5d8974;
  --dialog-backdrop: rgb(23 38 66 / .42);
  --login-gradient-middle: #d1e4fb;
  --login-gradient-end: #e4ddfa;
  --login-shadow: rgb(23 38 66 / .12);
}

:root[data-theme='persimmon'] {
  --page: #fceadd;
  --surface: #fff8f0;
  --surface-raised: #f7d2b7;
  --ink: #382019;
  --quiet: #6b4839;
  --line: #e8bfa8;
  --line-strong: #c69071;
  --outline: #a06b54;
  --accent: #923309;
  --accent-hover: #742506;
  --on-accent: #fff8f0;
  --shift-border: #618670;
  --dialog-backdrop: rgb(56 32 25 / .42);
  --login-gradient-middle: #f9d8bc;
  --login-gradient-end: #f5cbbf;
  --login-shadow: rgb(56 32 25 / .12);
}

:root[data-theme='wasabi'] {
  --page: #f2f4e8;
  --surface: #fcfdf6;
  --surface-raised: #e2efa6;
  --ink: #242b16;
  --quiet: #4f5a35;
  --line: #cbd2ac;
  --line-strong: #a4b16e;
  --outline: #747f4e;
  --accent: #465407;
  --accent-hover: #343f05;
  --on-accent: #f0faaf;
  --shift-border: #5b8875;
  --dialog-backdrop: rgb(36 43 22 / .42);
  --login-gradient-middle: #e7efa8;
  --login-gradient-end: #edf1d5;
  --login-shadow: rgb(36 43 22 / .12);
}

:root[data-theme='dark-plum'] {
  --page: #261521;
  --surface: #382336;
  --surface-raised: #4a2d43;
  --input: #301c2c;
  --ink: #fff0fb;
  --quiet: #ddb9d0;
  --line: #66475d;
  --line-strong: #8c617e;
  --outline: #ae819f;
  --accent: #f3a9d2;
  --accent-hover: #f8c2e0;
  --on-accent: #3f1833;
  --shift-bg: #26433d;
  --shift-ink: #c2efdb;
  --shift-border: #76a491;
  --login-gradient-middle: #472a44;
  --login-gradient-end: #552a3d;
}

:root[data-theme='deep-teal'] {
  --page: #102622;
  --surface: #173731;
  --surface-raised: #235047;
  --input: #132e29;
  --ink: #edfff9;
  --quiet: #b7d9cf;
  --line: #355e56;
  --line-strong: #517b71;
  --outline: #769e92;
  --accent: #96ebcd;
  --accent-hover: #baf5df;
  --on-accent: #133b31;
  --success: #2c5141;
  --shift-bg: #2b4530;
  --shift-ink: #d6ebba;
  --shift-border: #85a479;
  --login-gradient-middle: #163d36;
  --login-gradient-end: #1e414e;
}

:root[data-theme='ultramarine'] {
  --page: #181644;
  --surface: #25225b;
  --surface-raised: #35317d;
  --input: #1d1a4c;
  --ink: #f4f1ff;
  --quiet: #cdc7f5;
  --line: #4d478c;
  --line-strong: #6f66ad;
  --outline: #978cc6;
  --accent: #b5b9ff;
  --accent-hover: #cdd0ff;
  --on-accent: #211b58;
  --shift-bg: #264043;
  --shift-ink: #c1eee1;
  --shift-border: #7ba598;
  --login-gradient-middle: #282871;
  --login-gradient-end: #33225d;
}

:root[data-interface-size='small'] { --interface-scale: .875; }
:root[data-interface-size='large'] { --interface-scale: 1.125; }
:root[data-interface-size='larger'] { --interface-scale: 1.25; }
:root[data-interface-size='xxxxl'] { --interface-scale: 1.5; }


/* The seeds come from the source palette. The interface adjusts them by role. */
:root[data-theme][data-coolors] {
  --page: var(--coolors-page);
  --surface: color-mix(in srgb, var(--page), var(--coolors-surface) 55%);
  --surface-raised: color-mix(in srgb, var(--page), var(--coolors-secondary) 12%);
  --input: var(--surface);
  --quiet: color-mix(in srgb, var(--ink) 78%, var(--page));
  --line: color-mix(in srgb, var(--ink) 19%, var(--page));
  --line-strong: color-mix(in srgb, var(--ink) 36%, var(--page));
  --outline: color-mix(in srgb, var(--ink) 59%, var(--page));
  --accent-hover: color-mix(in srgb, var(--accent) 82%, var(--ink));
  --login-gradient-middle: color-mix(in srgb, var(--page), var(--coolors-primary) 18%);
  --login-gradient-end: color-mix(in srgb, var(--page), var(--coolors-secondary) 22%);
}

:root[data-theme][data-coolors='light'] {
  --coolors-surface: #fff;
  --ink: #211d24;
  --accent: color-mix(in srgb, var(--coolors-primary) 30%, #0d0a13);
  --on-accent: #fff;
}

:root[data-theme][data-coolors='dark'] {
  --coolors-surface: color-mix(in srgb, var(--page), white 8%);
  --ink: #fcfafc;
  --accent: color-mix(in srgb, var(--coolors-primary) 22%, #f8f7fa);
  --on-accent: #17141b;
}

/* Constrain lightness while retaining the source hue in browsers with relative colors. */
@supports (color: oklch(from red l c h)) {
  :root[data-theme][data-coolors='light'] {
    --accent: oklch(from var(--coolors-primary) clamp(.3, l, .41) min(c, .16) h);
  }

  :root[data-theme][data-coolors='dark'] {
    --accent: oklch(from var(--coolors-primary) clamp(.79, l, .88) min(c, .16) h);
  }
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-width:0;min-height:100%}body{font:500 15px/1.48 var(--body-font);background:var(--page);color:var(--ink);font-variant-numeric:tabular-nums}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}::selection{background:var(--accent);color:var(--on-accent)}
button,select,input,textarea{font:inherit;color:inherit}input,textarea,select{border:1px solid var(--line-strong);border-radius:8px;background:var(--input,var(--surface));padding:9px 12px;max-width:100%;min-width:0}input:not([type=checkbox]):not([type=radio]),select{min-height:42px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);min-height:0;width:18px;height:18px}textarea{resize:vertical;width:100%}
button,a{touch-action:manipulation}button{cursor:pointer}button:disabled,button[aria-disabled=true]{opacity:.53;cursor:not-allowed}button svg{flex:none}a{color:var(--accent)}[hidden]{display:none!important}
h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3,h4{line-height:1.17;font-weight:780;letter-spacing:-.03em}h1{font-size:clamp(30px,3vw,45px)}h2{font-size:clamp(22px,1.8vw,29px)}h3{font-size:18px}h4{font-size:16px}small{font-size:.84em}
#layout{--rail-mini:64px;--rail-wide:240px;display:grid;grid-template-columns:minmax(0,1fr) var(--rail-mini);min-height:100svh}
#layout.railPinned{grid-template-columns:minmax(0,1fr) var(--rail-wide)}
.shellRail{grid-column:2;grid-row:1;position:sticky;top:0;align-self:start;justify-self:end;z-index:20;width:var(--rail-mini);height:100dvh;display:flex;flex-direction:column;gap:13px;padding:12px 9px;background:var(--surface);border-left:1px solid var(--line-strong);overflow:auto;overscroll-behavior:contain}
.shellRail.open{width:var(--rail-wide);box-shadow:-12px 0 30px #0002}
.railPinned .shellRail.open{box-shadow:none}
.brandMark{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;gap:10px;font-size:23px;line-height:1;font-weight:800;letter-spacing:-.04em;padding:0 10px 12px;border-bottom:1px solid var(--line);min-height:42px;white-space:nowrap}
.brandMark svg{width:25px;height:25px;color:var(--accent);flex:none}
.shellRail:not(.open) .brandMark{font-size:0}
.railControls{display:flex;flex-direction:column;gap:4px}
.navGroup{display:grid;gap:3px}
.navGroup+.navGroup{padding-top:10px;border-top:1px solid var(--line);margin-top:10px}
.navGroup button,.railProfile,.railControls button{width:100%;display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;gap:12px;background:transparent;border:1px solid transparent;text-align:right;color:var(--ink);padding:6px 11px;line-height:1.24;font-weight:650;border-radius:8px;min-height:44px}
.navGroup button span,.railControls button span{white-space:nowrap}
.shellRail:not(.open) :is(.navGroup button,.railProfile,.railControls button) span:not(.avatar){display:none}
.navGroup button:hover,.railProfile:hover,.railControls button:not(:disabled):hover{background:var(--surface-raised);border-color:var(--line-strong)}
.navGroup button[aria-current=page],.railProfile[aria-current=page],.railPin[aria-pressed=true]{color:var(--on-accent);background:var(--accent);border-color:var(--accent);font-weight:790}
.shellRail button:focus-visible{outline-offset:-4px}
.shellRail button[aria-current=page]:focus-visible,.shellRail button[aria-pressed=true]:focus-visible{outline-color:var(--on-accent)}
.railControls .railToggle{color:var(--accent);background:var(--surface-raised);border-color:var(--line-strong)}
.railPinned .railToggle{visibility:hidden}
.railProfile{margin-top:auto;min-height:48px;padding-inline:5px}
.railProfile span:not(.avatar){display:grid;gap:2px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.railProfile small{color:inherit;font-weight:540;font-size:12px}
.avatar{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:50%;background:var(--surface-raised);color:var(--ink);font-size:14px;font-weight:750}
.shellMain{grid-column:1;grid-row:1;min-width:0}.shellTop{padding:12px clamp(16px,2.2vw,36px);min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:var(--surface)}.shellTop .crumbs{display:flex;align-items:center;gap:8px;color:var(--quiet);font-size:13px;font-weight:620}.shellTop .crumbs b{color:var(--ink)}.shellTop .crumbs svg{width:14px}.shellTop .demoTools{display:flex;align-items:center;gap:12px}.demoLabel{font-size:12px;color:var(--quiet)}.shellTop .linkState,.shellMenu{border:1px solid var(--line);background:var(--surface);color:var(--accent);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:5px 10px;font-size:13px;font-weight:740}.shellTop .linkState[aria-pressed=true]{background:var(--danger-bg);color:var(--danger)}.shellMenu{display:none}.globalWarn{padding:16px clamp(16px,2.2vw,36px);display:flex;align-items:center;gap:14px;background:var(--danger-bg);color:var(--danger);font-size:18px;line-height:1.3;font-weight:740}.globalWarn svg{width:28px;height:28px;flex:none}.globalWarn small{display:block;font-weight:560;margin-top:5px}
#screen{padding:clamp(16px,2.2vw,36px);max-width:2030px;margin:auto;min-width:0;outline:none}.panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:clamp(15px,1.35vw,24px);min-width:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;padding:10px 15px;min-height:43px;font-weight:690;line-height:1.2;color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);text-decoration:none}.btn:not(:disabled):hover{background:var(--surface-raised)}.btn.primary,.primary.btn:not(:disabled):hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.primary:not(:disabled):hover{filter:brightness(.93)}.btn.danger{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}.btn.ghost{border-color:transparent;background:transparent;color:var(--accent)}.btn.small{min-height:34px;padding:6px 10px;font-size:13px}.muted{color:var(--quiet)}.tag{display:inline-flex;align-items:center;width:fit-content;gap:5px;border-radius:5px;background:var(--surface-raised);padding:3px 8px;font-size:12px;font-weight:720}.positive{color:var(--accent)}.negative{color:var(--danger)}.mono{font:500 .92em/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.012em}
.field{display:grid;gap:6px;align-content:start;min-width:0}.field>span,.field>label{font-size:13px;font-weight:720}.field input,.field select,.field textarea{width:100%}.field input[type=checkbox],.field input[type=radio]{width:18px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:15px;align-items:start}.actions,.headrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.headrow{justify-content:space-between}.stack{display:grid;gap:16px;align-content:start}.notice{border-radius:9px;padding:12px 15px;background:var(--surface-raised);color:var(--ink)}.notice.warn,.warn.notice{background:var(--warning-bg);color:var(--warning)}.table-wrap{min-width:0;overflow:auto}.table{width:100%;border-collapse:collapse}.table :is(th,td){padding:11px 10px;text-align:left;border-bottom:1px solid var(--line)}.table th{font-size:12px;color:var(--quiet);font-weight:730}.product-photo{object-fit:contain;background:white;border-radius:8px}.ops-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(235px,.75fr);gap:18px}.ops-screen label input{width:auto}
.inventory-history tr[data-movement="in"] {
  background-color:#d6f2dd;
  background-color:light-dark(#d6f2dd,#174c31);
  color:#163624;
  color:light-dark(#163624,#e0ffe9);
}
.inventory-history tr[data-movement="out"] {
  background-color:#f9dce0;
  background-color:light-dark(#f9dce0,#672532);
  color:#4d1722;
  color:light-dark(#4d1722,#ffe5e9);
}
.inventory-history tr[data-movement]>td {
  color:inherit;
  border-bottom-color:color-mix(in srgb,currentColor 23%,transparent);
}
.inventory-history:not(.actor-history-dialog) tr[data-movement]>td:nth-child(2) {font-weight:750}
.actor-history-trigger{border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:underline;text-underline-offset:3px;padding:4px;min-height:32px}
.actor-history-trigger:hover{text-decoration-thickness:2px}
.actor-history-trigger:focus-visible{outline-color:currentColor}
.actor-history-dialog{width:min(57rem,calc(100vw - 24px));max-height:calc(100dvh - 24px);color:var(--ink);overflow:auto}
.actor-history-dialog::backdrop{background:#1119}
.actor-history-dialog .table{min-width:36rem}
.actor-history-code{display:block}
#toast{position:fixed;right:20px;bottom:20px;z-index:30;max-width:min(92vw,430px);padding:12px 16px;color:var(--on-accent);background:var(--accent);box-shadow:0 6px 20px #0003;border-radius:9px}
.railShade{display:none}
@media(min-width:1650px){#layout{--rail-wide:254px}body{font-size:17px}.navGroup button{min-height:48px}}
@media(max-width:1100px){#screen{padding:18px}}
@media(max-width:850px){
  #layout,#layout.railPinned{display:block}
  .shellRail{display:none;position:fixed;inset:0 0 0 auto;width:min(280px,calc(100vw - 40px));height:100dvh;padding:12px;box-shadow:-8px 0 34px #0003}
  .shellRail.open{display:flex;width:min(280px,calc(100vw - 40px))}
  .railPin{display:none!important}
  .shellMenu{display:inline-flex;flex:none;min-width:44px;min-height:44px}
  .shellRail.open + .shellMain .railShade{display:block;position:fixed;inset:0;background:#1117;z-index:19;border:0;width:100%;height:100%}
  .shellTop{min-height:56px}.crumbs>span{display:none}.ops-layout{grid-template-columns:1fr}
}
@media(max-width:520px){#screen{padding:13px}.shellTop{padding:8px 12px}.shellTop .demoTools{gap:6px}.demoLabel{display:none}.shellTop .crumbs{gap:4px}.shellTop .crumbs>svg{display:none}.shellMenu span{display:none}.globalWarn{font-size:16px}.panel{padding:13px}.btn{min-height:44px}.table-wrap{max-width:100%}}


    .account-login { max-width: 35rem; margin-inline: auto; }
    .account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .account-layout .btn { align-self: start; }
    .account-wide { grid-column: 1 / -1; }
    .account-meta { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
    .account-meta dt { color: var(--quiet); }
    .account-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
    .account-keys { list-style: none; padding: 0; margin: 0; }
    .account-keys li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: .65rem 0; }
    .account-dialog { width: min(31rem, calc(100% - 2rem)); padding: clamp(1rem, 4vw, 1.75rem); background: var(--surface); color: var(--ink); }
    .account-dialog::backdrop { background: rgba(0, 0, 0, .48); }
    .account-dialog [hidden] { display: none; }
    .account-filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; }
    .account-login .actions, .account-wide .actions, .account-dialog .actions { flex-wrap: wrap; }
    @media (max-width: 760px) { .account-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 520px) {
      .account-layout, .account-filters { grid-template-columns: minmax(0, 1fr); }
      .account-dialog .actions .btn, .account-login .actions .btn { flex: 1 1 100%; }
    }


    .batch-page { display:grid; gap:20px; min-width:0; }
    .batch-page-head { display:flex; justify-content:space-between; align-items:end; gap:16px; flex-wrap:wrap; }
    .batch-page-head h1,.batch-page h2,.batch-page h3,.batch-page p { margin:0; }
    .batch-page-head p,.batch-section-heading p { margin-top:5px; }
    .batch-panel { min-width:0; padding:clamp(15px,2.4vw,26px); }
    .batch-panel h2 { font-size:19px; letter-spacing:-.02em; }
    .batch-tabs { display:flex; width:max-content; padding:4px; gap:3px; background:var(--surface-raised); border:1px solid var(--line); border-radius:10px; }
    .batch-tabs button { font:inherit; font-size:13px; font-weight:650; border:0; border-radius:7px; padding:7px 11px; background:transparent; color:var(--quiet); cursor:pointer; }
    .batch-tabs button[aria-pressed=true] { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px #0002; }
    .batch-tabs button span { display:inline-block; padding:1px 6px; margin-left:4px; border-radius:100px; background:var(--page); }
    .batch-draft-layout,.batch-detail-layout { display:grid; grid-template-columns:minmax(330px,1fr) minmax(300px,.88fr); gap:18px; align-items:start; }
    .batch-detail-layout { grid-template-columns:minmax(420px,1.55fr) minmax(235px,1fr); }
    .batch-directions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
    .batch-direction { display:flex; gap:8px; align-items:center; text-align:left; color:var(--ink); font:inherit; padding:11px; border:1px solid var(--line); border-radius:9px; background:var(--page); cursor:pointer; }
    .batch-direction small { display:block; margin-top:2px; color:var(--quiet); font-size:11px; }
    .batch-direction.is-selected { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
    .batch-direction-icon { display:grid; place-items:center; height:28px; width:28px; flex:none; border-radius:7px; background:var(--surface-raised); font-size:18px; }
    .batch-direction.is-selected .batch-direction-icon { color:var(--on-accent); background:var(--accent); }
    .batch-section-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:10px; }
    .batch-page .field textarea { display:block; width:100%; resize:vertical; min-height:57px; color:var(--ink); background:var(--page); border:1px solid var(--line); border-radius:8px; padding:9px 10px; font-size:14px; }
    .batch-page .field textarea.batch-paste { min-height:130px; tab-size:12; }
    .batch-guide,.batch-preview { display:grid; gap:15px; }
    .batch-guide { border-top:3px solid var(--accent); }
    .batch-cancel { border-top:3px solid var(--danger); }
    .batch-page dl { margin:0; display:grid; gap:5px; }
    .batch-page dt,.batch-meta .muted { font-size:12px; color:var(--quiet); }
    .batch-page dd { margin:0 0 8px; font-weight:650; overflow-wrap:anywhere; }
    .batch-page .notice ul { margin:7px 0 0; padding-left:18px; }
    .batch-page .notice strong + p { margin-top:5px; }
    .batch-confirm { margin-top:10px; display:flex; align-items:flex-start; gap:7px; font-weight:650; cursor:pointer; }
    .batch-confirm input { margin:2px 0 0; accent-color:var(--accent); }
    .batch-page .btn:disabled { opacity:.55; cursor:not-allowed; }
    .batch-table :is(td,th) { padding:10px 8px; }
    .batch-table td { vertical-align:middle; }
    .batch-code { display:block; margin-top:3px; font-size:11px; color:var(--quiet); }
    .batch-link { border:0; background:none; color:var(--ink); text-decoration:underline; text-underline-offset:3px; padding:0; cursor:pointer; font:inherit; font-weight:700; }
    .batch-meta { display:grid; grid-template-columns:minmax(100px,.55fr) 1fr; gap:14px; padding:12px; background:var(--page); border:1px solid var(--line); border-radius:9px; }
    .batch-meta strong { display:block; margin-top:4px; overflow-wrap:anywhere; }
    .batch-empty { padding:30px 0; text-align:center; border:1px dashed var(--line); border-radius:10px; }
    .batch-empty p { margin-top:7px; }
    @media (max-width:900px) { .batch-draft-layout,.batch-detail-layout { grid-template-columns:1fr; } }


    .quick-stock{display:grid;gap:7px;margin-bottom:10px}
    .quick-stock-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,98px),1fr));gap:8px;max-width:640px}
    .quick-stock-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
    .quick-stock-step{min-height:46px;padding:6px 2px;font:inherit;font-weight:750;color:var(--ink);background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;cursor:pointer;touch-action:manipulation}
    .quick-stock-step[data-stock-step^="-"]{color:var(--danger)}
    .quick-stock-step[aria-pressed=true]{border:2px solid var(--accent);background:var(--surface)}
    .quick-stock-step:disabled,.quick-stock-undo:disabled{opacity:.6;cursor:not-allowed;animation:none}
    .quick-stock-step:focus-visible,.quick-stock-undo:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
    .quick-stock-undo-list:empty{display:none}
    .quick-stock-undo-list{display:grid;gap:7px}
    .quick-stock-undo{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 8px;text-align:left;width:100%;min-height:46px;padding:6px 10px;border:1px solid #a70e24;border-radius:8px;font:inherit;font-weight:750;color:white;background:#c71731;cursor:pointer;touch-action:manipulation;animation:quick-stock-pulse 1.8s ease-in-out infinite}
    .quick-stock-undo small{font-size:.72rem;font-variant-numeric:tabular-nums}.quick-stock-undo span{font-variant-numeric:tabular-nums}
    @keyframes quick-stock-pulse{0%,100%{box-shadow:0 0 0 0 #d01a3450}50%{box-shadow:0 0 0 3px #d01a3440}}
    @media(prefers-reduced-motion:reduce){.quick-stock-undo{animation:none}}

.warehouse-dialog{width:min(640px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;color:var(--ink);padding:20px}.warehouse-dialog:has([data-actor-history]){width:min(1000px,calc(100% - 24px))}.warehouse-dialog::backdrop{background:#101c18a0}.warehouse-dialog > :not(:first-child){margin-top:12px}.warehouse-login{max-width:540px;margin:32px auto;padding:24px}.warehouse-login .actions{flex-wrap:wrap}.import-summary{white-space:pre-wrap;overflow-wrap:anywhere}.skip{position:fixed;z-index:50;left:-9999px}.skip:focus{left:10px;top:10px;background:var(--surface);padding:10px}[data-camera]{margin-bottom:12px}[data-camera] video{max-width:100%}#conn:disabled{opacity:1;cursor:default}[data-stock-preview]{min-height:1.2em}.inventory-row > strong+span{display:none}[data-catalog-status]:empty,[data-history-status]:empty{display:none}
