/* FEEC tokens, from @feec-asia/tokens 0.1.0 */
html[data-theme] {
  --feec-bg: #ffffff;
  --feec-bg-raised: #f1f5f9;
  --feec-surface: #ffffff;
  --feec-surface-hover: #f1f5f9;
  --feec-border: #e2e8f0;
  --feec-border-strong: #cbd5e1;
  --feec-border-control: #7f8ea3;
  --feec-placeholder: #64748b;
  --feec-text: #0f172a;
  --feec-text-muted: #475569;
  --feec-accent: #f59e0b;
  --feec-accent-hover: #fbbf24;
  --feec-accent-text: #b45309;
  --feec-on-accent: #020617;
  --feec-signal: #1d4ed8;
  --feec-line: #e2e8f0;
  --feec-error-text: #b91c1c;
  --feec-error-border: #fecaca;
  --feec-error-bg: #fef2f2;
  --feec-success-text: #15803d;
  --feec-success-border: #bbf7d0;
  --feec-success-bg: #f0fdf4;
  --feec-navy: #050a14;
  --feec-navy-raised: #0b1220;
  --feec-navy-card: #0f172a;
  --feec-navy-border: #1e293b;
  --feec-navy-border-strong: #334155;
  --feec-navy-text: #f1f5f9;
  --feec-navy-muted: #94a3b8;
  --feec-navy-accent: #fbbf24;
  --feec-navy-control: #64748b;
  --feec-font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --feec-font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --feec-radius-button: 6px;
  --feec-radius-input: 8px;
  --feec-radius-card: 12px;
  --p: 38 92% 50%;
  --pf: 43 96% 56%;
  --pc: 229 84% 5%;
  --s: 215 19% 35%;
  --sf: 222 47% 11%;
  --sc: 0 0% 100%;
  --a: 224 76% 48%;
  --af: 224 76% 48%;
  --ac: 0 0% 100%;
  --n: 222 47% 11%;
  --nf: 222 47% 11%;
  --nc: 0 0% 100%;
  --b1: 0 0% 100%;
  --b2: 210 40% 96%;
  --b3: 214 32% 91%;
  --bc: 222 47% 11%;
  --in: 224 76% 48%;
  --inc: 0 0% 100%;
  --su: 142 72% 29%;
  --suc: 0 0% 100%;
  --wa: 38 92% 50%;
  --wac: 229 84% 5%;
  --er: 0 74% 42%;
  --erc: 0 0% 100%;
  color-scheme: light;
}
@media screen and (prefers-color-scheme: dark) {
  html[data-theme] {
    --feec-bg: #020617;
    --feec-bg-raised: #0f172a;
    --feec-surface: #0f172a;
    --feec-surface-hover: #1e293b;
    --feec-border: #1e293b;
    --feec-border-strong: #334155;
    --feec-border-control: #64748b;
    --feec-placeholder: #94a3b8;
    --feec-text: #f1f5f9;
    --feec-text-muted: #94a3b8;
    --feec-accent: #f59e0b;
    --feec-accent-hover: #fbbf24;
    --feec-accent-text: #fbbf24;
    --feec-on-accent: #020617;
    --feec-signal: #60a5fa;
    --feec-line: #1e293b;
    --feec-error-text: #f87171;
    --feec-error-border: #991b1b;
    --feec-error-bg: rgb(127 29 29 / 0.3);
    --feec-success-text: #4ade80;
    --feec-success-border: #166534;
    --feec-success-bg: rgb(20 83 45 / 0.3);
    --feec-navy: #050a14;
    --feec-navy-raised: #0b1220;
    --feec-navy-card: #0f172a;
    --feec-navy-border: #1e293b;
    --feec-navy-border-strong: #334155;
    --feec-navy-text: #f1f5f9;
    --feec-navy-muted: #94a3b8;
    --feec-navy-accent: #fbbf24;
    --feec-navy-control: #64748b;
    --p: 38 92% 50%;
    --pf: 43 96% 56%;
    --pc: 229 84% 5%;
    --s: 215 20% 65%;
    --sf: 210 40% 96%;
    --sc: 229 84% 5%;
    --a: 213 94% 68%;
    --af: 213 94% 68%;
    --ac: 229 84% 5%;
    --n: 215 25% 27%;
    --nf: 215 16% 47%;
    --nc: 210 40% 96%;
    --b1: 229 84% 5%;
    --b2: 222 47% 11%;
    --b3: 217 33% 17%;
    --bc: 210 40% 96%;
    --in: 213 94% 68%;
    --inc: 229 84% 5%;
    --su: 142 69% 58%;
    --suc: 229 84% 5%;
    --wa: 38 92% 50%;
    --wac: 229 84% 5%;
    --er: 0 91% 71%;
    --erc: 229 84% 5%;
    color-scheme: dark;
  }
}

/* stays light in dark mode: document overlays, signature pad, template builder */
@media screen and (prefers-color-scheme: dark) {
html[data-theme]:has(template-builder),
html[data-theme] .field-area,
html[data-theme] div:has(> canvas.draw-canvas) {
  --feec-bg: #ffffff;
  --feec-bg-raised: #f1f5f9;
  --feec-surface: #ffffff;
  --feec-surface-hover: #f1f5f9;
  --feec-border: #e2e8f0;
  --feec-border-strong: #cbd5e1;
  --feec-border-control: #7f8ea3;
  --feec-placeholder: #64748b;
  --feec-text: #0f172a;
  --feec-text-muted: #475569;
  --feec-accent: #f59e0b;
  --feec-accent-hover: #fbbf24;
  --feec-accent-text: #b45309;
  --feec-on-accent: #020617;
  --feec-signal: #1d4ed8;
  --feec-line: #e2e8f0;
  --feec-error-text: #b91c1c;
  --feec-error-border: #fecaca;
  --feec-error-bg: #fef2f2;
  --feec-success-text: #15803d;
  --feec-success-border: #bbf7d0;
  --feec-success-bg: #f0fdf4;
  --feec-navy: #050a14;
  --feec-navy-raised: #0b1220;
  --feec-navy-card: #0f172a;
  --feec-navy-border: #1e293b;
  --feec-navy-border-strong: #334155;
  --feec-navy-text: #f1f5f9;
  --feec-navy-muted: #94a3b8;
  --feec-navy-accent: #fbbf24;
  --feec-navy-control: #64748b;
  --p: 38 92% 50%;
  --pf: 43 96% 56%;
  --pc: 229 84% 5%;
  --s: 215 19% 35%;
  --sf: 222 47% 11%;
  --sc: 0 0% 100%;
  --a: 224 76% 48%;
  --af: 224 76% 48%;
  --ac: 0 0% 100%;
  --n: 222 47% 11%;
  --nf: 222 47% 11%;
  --nc: 0 0% 100%;
  --b1: 0 0% 100%;
  --b2: 210 40% 96%;
  --b3: 214 32% 91%;
  --bc: 222 47% 11%;
  --in: 224 76% 48%;
  --inc: 0 0% 100%;
  --su: 142 72% 29%;
  --suc: 0 0% 100%;
  --wa: 38 92% 50%;
  --wac: 229 84% 5%;
  --er: 0 74% 42%;
  --erc: 0 0% 100%;
  color: var(--feec-text);
  color-scheme: light;
}
}

/* ibm-plex-sans-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-sans-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

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

/* ibm-plex-sans-greek-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-sans-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-sans-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-sans-cyrillic-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

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

/* ibm-plex-sans-greek-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-sans-greek-500-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-sans-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-sans-cyrillic-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

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

/* ibm-plex-sans-greek-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-sans-greek-600-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-sans-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/files/ibm-plex-sans-cyrillic-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

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

/* ibm-plex-sans-greek-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/files/ibm-plex-sans-greek-700-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/files/ibm-plex-sans-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/files/ibm-plex-sans-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/files/ibm-plex-sans-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans: SIL OFL 1.1, see fonts/ibm-plex-sans.OFL.txt */
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-mono-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/files/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-mono-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./fonts/files/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-mono-cyrillic-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-600-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-mono-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-600-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-mono-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/files/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-mono: SIL OFL 1.1, see fonts/ibm-plex-mono.OFL.txt */

/*
 * FEEC Sign: the FEEC family look on DocuSeal (feec-asia/feec-infra stacks/docuseal/image).
 * Appended to the token variables, DaisyUI colour triplets and IBM Plex @font-face rules that
 * build-assets.mjs generates from @feec-asia/tokens and @feec-asia/brand; this file holds only
 * rules, every value is a var(--feec-*) token. Loaded from _head_tags before DocuSeal's own CSS,
 * so selectors start with html[data-theme] (higher specificity than DocuSeal's :root / classes).
 * Amber is a FILL only (near-black text on it); accent as text is --feec-accent-text.
 */
html[data-theme] {
  --rounded-btn: var(--feec-radius-button);
  --rounded-box: var(--feec-radius-card);
  --rounded-badge: var(--feec-radius-button);
  --tab-radius: var(--feec-radius-button);
  --btn-text-case: none;
  --btn-focus-scale: 1;
  --feec-focus: 2px solid var(--feec-accent-text);
}
html[data-theme], html[data-theme] body {
  background-color: var(--feec-bg);
  color: var(--feec-text);
  font-family: var(--feec-font-sans);
}
html[data-theme] button, html[data-theme] input, html[data-theme] select, html[data-theme] textarea { font-family: inherit; }
html[data-theme] .font-mono, html[data-theme] code, html[data-theme] pre, html[data-theme] kbd { font-family: var(--feec-font-mono); }
html[data-theme] .uppercase { text-transform: none; }

/* ---- links: always underlined, amber ink */
html[data-theme] a:not([class]),
html[data-theme] a.link,
html[data-theme] a.underline,
html[data-theme] p a,
html[data-theme] li > a.text-blue-600,
html[data-theme] td a:not([class*="btn"]) {
  color: var(--feec-accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme] a:not([class]):hover, html[data-theme] a.link:hover, html[data-theme] a.underline:hover { color: var(--feec-text); }

/* ---- buttons: amber fill, near-black text (white on amber fails contrast) */
html[data-theme] .base-button,
html[data-theme] .btn-neutral:not(.btn-outline):not(.btn-ghost),
html[data-theme] .btn-primary:not(.btn-outline):not(.btn-ghost) {
  background-color: var(--feec-accent);
  border-color: var(--feec-accent);
  color: var(--feec-on-accent);
  font-weight: 600;
}
html[data-theme] .base-button:hover,
html[data-theme] .btn-neutral:not(.btn-outline):not(.btn-ghost):hover,
html[data-theme] .btn-primary:not(.btn-outline):not(.btn-ghost):hover {
  background-color: var(--feec-accent-hover);
  border-color: var(--feec-accent-hover);
  color: var(--feec-on-accent);
}
html[data-theme] .base-button[disabled], html[data-theme] .base-button:disabled,
html[data-theme] .btn-disabled, html[data-theme] .btn[disabled] {
  background-color: var(--feec-bg-raised);
  border-color: var(--feec-border);
  color: var(--feec-text-muted);
  opacity: .8;
}
html[data-theme] .btn-outline, html[data-theme] .btn-outline:hover {
  background-color: transparent;
  border-color: var(--feec-border-control);
  color: var(--feec-text);
}
html[data-theme] .btn-outline:hover { background-color: var(--feec-surface-hover); }
html[data-theme] .btn-ghost, html[data-theme] .btn-ghost.btn-primary { background-color: transparent; border-color: transparent; color: var(--feec-text); }
/* DocuSeal's secondary button has a hard-coded white fill */
html[data-theme] .white-button { background-color: var(--feec-surface); border-color: var(--feec-border-control); color: var(--feec-text); }
html[data-theme] .white-button:hover { background-color: var(--feec-surface-hover); }
html[data-theme] .bg-white:not(#scrollbox .bg-white) { background-color: var(--feec-surface); }
/* the signer's "Next" label comes from the JS bundle in lower case */
html[data-theme] #submit_form_button span span::first-letter { text-transform: uppercase; }
html[data-theme] .btn-ghost:hover { background-color: var(--feec-surface-hover); }
html[data-theme] .btn:focus-visible, html[data-theme] .base-button:focus-visible,
html[data-theme] a:focus-visible, html[data-theme] button:focus-visible { outline: var(--feec-focus); outline-offset: 2px; }

/* ---- inputs */
html[data-theme] .base-input, html[data-theme] .base-select, html[data-theme] .base-textarea,
html[data-theme] .input, html[data-theme] .select, html[data-theme] .textarea,
html[data-theme] input[type="text"], html[data-theme] input[type="email"], html[data-theme] input[type="password"],
html[data-theme] input[type="number"], html[data-theme] input[type="date"], html[data-theme] input[type="tel"],
html[data-theme] input[type="url"], html[data-theme] textarea {
  background-color: var(--feec-surface);
  border: 1px solid var(--feec-border-control);
  border-radius: var(--feec-radius-input);
  color: var(--feec-text);
}
html[data-theme] .base-input::placeholder, html[data-theme] input::placeholder, html[data-theme] textarea::placeholder { color: var(--feec-placeholder); opacity: 1; }
html[data-theme] .base-input:focus, html[data-theme] .base-select:focus, html[data-theme] .base-textarea:focus,
html[data-theme] input:focus-visible, html[data-theme] textarea:focus-visible {
  outline: var(--feec-focus);
  outline-offset: 1px;
  border-color: var(--feec-accent-text);
}
html[data-theme] .base-checkbox:checked, html[data-theme] .checkbox:checked, html[data-theme] .toggle:checked {
  background-color: var(--feec-accent);
  border-color: var(--feec-accent);
  --chkbg: var(--p);
  --chkfg: var(--pc);
}
html[data-theme] .base-checkbox { border-color: var(--feec-border-control); border-radius: 4px; }

/* ---- cards, menus, modals, flash */
html[data-theme] .card, html[data-theme] .modal-box, html[data-theme] .dropdown-content, html[data-theme] .alert {
  border-radius: var(--feec-radius-card);
}
html[data-theme] .alert { border-radius: var(--feec-radius-input); }
html[data-theme] .bg-base-200, html[data-theme] .bg-base-300 { border-color: var(--feec-border); }
html[data-theme] .border-base-300, html[data-theme] .border-base-200 { border-color: var(--feec-border); }
html[data-theme] .dropdown-content { background-color: var(--feec-surface); color: var(--feec-text); border: 1px solid var(--feec-border); }
html[data-theme] .menu li > a:hover, html[data-theme] .menu li > button:hover { background-color: var(--feec-surface-hover); }
html[data-theme] .badge { border-radius: var(--feec-radius-button); }
html[data-theme] .tooltip:before { background-color: var(--feec-navy-card); color: var(--feec-navy-text); }
html[data-theme] .text-gray-500, html[data-theme] .text-gray-600, html[data-theme] .text-gray-400 { color: var(--feec-text-muted); }

/* ---- header: always-dark navy band, light-on-dark, whatever the colour scheme */
html[data-theme] .feec-header {
  background-color: var(--feec-navy);
  border-bottom: 1px solid var(--feec-navy-border);
  color: var(--feec-navy-text);
}
html[data-theme] .feec-header a, html[data-theme] .feec-header .link { color: var(--feec-navy-accent); text-decoration: underline; text-underline-offset: 2px; }
html[data-theme] .feec-header a:hover { color: var(--feec-navy-text); }
html[data-theme] .feec-header a:has(.feec-product-name) { color: var(--feec-navy-text); text-decoration: none; }
html[data-theme] .feec-header .feec-product-name { font-weight: 600; letter-spacing: -0.01em; }
html[data-theme] .feec-header .btn-outline { border-color: var(--feec-navy-control); color: var(--feec-navy-text); }
html[data-theme] .feec-header .btn-outline:hover { background-color: var(--feec-navy-border); }
html[data-theme] .feec-header [tabindex].cursor-pointer {
  background-color: var(--feec-accent); color: var(--feec-on-accent);
}
html[data-theme] .feec-header .dropdown-content { background-color: var(--feec-navy-card); border-color: var(--feec-navy-border-strong); color: var(--feec-navy-text); }
html[data-theme] .feec-header .dropdown-content a, html[data-theme] .feec-header .dropdown-content button { color: var(--feec-navy-text); text-decoration: none; }
html[data-theme] .feec-header .dropdown-content li > a:hover, html[data-theme] .feec-header .dropdown-content li > button:hover { background-color: var(--feec-navy-border); }
html[data-theme] .feec-header .border-base-300 { border-color: var(--feec-navy-border-strong); }

/* ---- FEEC mark: dark-scheme variant on dark surfaces */
html[data-theme] .feec-mark { display: inline-block; flex-shrink: 0; object-fit: contain; }
html[data-theme] .feec-mark-dark { display: none; }
@media screen and (prefers-color-scheme: dark) {
  html[data-theme] .feec-mark-light { display: none; }
  html[data-theme] .feec-mark-dark { display: inline-block; }
}
html[data-theme] .feec-header .feec-mark-light { display: none; }
html[data-theme] .feec-header .feec-mark-dark { display: inline-block; }

/* ---- the "Powered by DocuSeal" attribution stays visible: small, muted, still underlined */
html[data-theme] .text-center.px-2 { color: var(--feec-text-muted); font-size: .8125rem; }
html[data-theme] .text-center.px-2 a { color: var(--feec-accent-text); text-decoration: underline; }

/* ---- template builder: its header is a compiled component with DocuSeal's logo and an inline
   cream background. Swap in the FEEC mark (same files as the rest of the UI) and token colours. */
html[data-theme] template-builder .title-container { background-color: var(--feec-bg) !important; }
html[data-theme] template-builder .title-container a[href="/"] {
  display: inline-block; width: 40px; height: 40px;
  background: url("/feec/img/feec-mark-light.svg") center / contain no-repeat;
}
html[data-theme] template-builder .title-container a[href="/"] > svg { visibility: hidden; }
