/* ============================================================
   Self-hosted IBM Plex (DSGVO/GDPR-compliant)
   ============================================================ */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl1FgsAXHNlYzg.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlRFgsAXHNlYzg.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl9FgsAXHNlYzg.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgsAXHNlYzg.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgsAXHNk.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl1FgsAXHNlYzg.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwlRFgsAXHNlYzg.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl9FgsAXHNlYzg.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl5FgsAXHNlYzg.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwlBFgsAXHNk.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}

/* ============================================================
   Textnetz Publisher — Design Tokens & Components
   Extract this block to public/assets/app.css
   ============================================================ */

:root {
  /* --- Color: Warm neutrals (light) --- */
  --bg:           oklch(98.6% 0.005 75);   /* page bg, warm off-white */
  --surface:      oklch(100% 0 0);         /* cards */
  --surface-2:    oklch(97.2% 0.006 75);   /* sunken / table header */
  --surface-3:    oklch(94.8% 0.008 75);   /* hover */
  --line:         oklch(91% 0.008 75);     /* hairlines */
  --line-strong:  oklch(85% 0.01 75);

  --ink:          oklch(22% 0.012 75);     /* primary text */
  --ink-muted:    oklch(46% 0.012 75);     /* secondary */
  --ink-subtle:   oklch(62% 0.012 75);     /* tertiary, captions */
  --ink-disabled: oklch(76% 0.008 75);

  /* --- Accent: muted petrol (single brand accent) --- */
  --accent:       oklch(48% 0.07 200);
  --accent-hover: oklch(43% 0.08 200);
  --accent-bg:    oklch(95% 0.02 200);
  --accent-line:  oklch(82% 0.04 200);
  --accent-ink:   oklch(38% 0.08 200);

  /* --- Status (desaturated, accessible) --- */
  --ok:        oklch(52% 0.11 150);
  --ok-bg:     oklch(95% 0.03 150);
  --ok-line:   oklch(82% 0.06 150);

  --warn:      oklch(58% 0.12 75);
  --warn-bg:   oklch(96% 0.04 75);
  --warn-line: oklch(85% 0.07 75);

  --err:       oklch(52% 0.16 25);
  --err-bg:    oklch(96% 0.03 25);
  --err-line:  oklch(85% 0.06 25);

  --info:      oklch(50% 0.10 245);
  --info-bg:   oklch(96% 0.025 245);
  --info-line: oklch(84% 0.05 245);

  --opt:       oklch(48% 0.13 305);   /* lila — optional action */
  --opt-bg:    oklch(96% 0.03 305);
  --opt-line:  oklch(85% 0.06 305);

  /* --- Type --- */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:   11px;
  --fs-sm:   12px;
  --fs-base: 13px;
  --fs-md:   14px;
  --fs-lg:   16px;
  --fs-xl:   19px;
  --fs-2xl:  24px;
  --fs-3xl:  30px;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-base:  1.5;

  /* --- Spacing (4px base) --- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  56px;
  --s-10: 72px;

  /* --- Radius --- */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  --r-xl: 12px;

  /* --- Shadow --- */
  --sh-1: 0 1px 0 0 oklch(0% 0 0 / 0.04);
  --sh-2: 0 1px 2px 0 oklch(0% 0 0 / 0.05), 0 0 0 1px oklch(0% 0 0 / 0.04);
  --sh-3: 0 6px 16px -4px oklch(0% 0 0 / 0.08), 0 2px 4px -1px oklch(0% 0 0 / 0.06), 0 0 0 1px oklch(0% 0 0 / 0.04);

  /* --- Density (tweakable) --- */
  --row-y: 10px;
  --cell-x: 14px;
}

[data-theme="dark"] {
  --bg:          oklch(16% 0.008 75);
  --surface:     oklch(20% 0.008 75);
  --surface-2:   oklch(23% 0.008 75);
  --surface-3:   oklch(27% 0.01 75);
  --line:        oklch(28% 0.008 75);
  --line-strong: oklch(35% 0.01 75);

  --ink:          oklch(94% 0.008 75);
  --ink-muted:    oklch(72% 0.01 75);
  --ink-subtle:   oklch(58% 0.01 75);
  --ink-disabled: oklch(42% 0.008 75);

  --accent:       oklch(72% 0.09 200);
  --accent-hover: oklch(78% 0.09 200);
  --accent-bg:    oklch(28% 0.04 200);
  --accent-line:  oklch(38% 0.05 200);
  --accent-ink:   oklch(82% 0.08 200);

  --ok:    oklch(72% 0.13 150);  --ok-bg:    oklch(26% 0.04 150);  --ok-line:    oklch(36% 0.05 150);
  --warn:  oklch(78% 0.14 75);   --warn-bg:  oklch(28% 0.05 75);   --warn-line:  oklch(38% 0.06 75);
  --err:   oklch(72% 0.17 25);   --err-bg:   oklch(28% 0.05 25);   --err-line:   oklch(38% 0.07 25);
  --info:  oklch(72% 0.12 245);  --info-bg:  oklch(28% 0.04 245);  --info-line:  oklch(38% 0.05 245);
  --opt:   oklch(74% 0.14 305);  --opt-bg:   oklch(28% 0.05 305);  --opt-line:   oklch(38% 0.06 305);

  --sh-1: 0 1px 0 0 oklch(0% 0 0 / 0.4);
  --sh-2: 0 1px 2px 0 oklch(0% 0 0 / 0.5), 0 0 0 1px oklch(0% 0 0 / 0.4);
  --sh-3: 0 6px 16px -4px oklch(0% 0 0 / 0.5), 0 2px 4px -1px oklch(0% 0 0 / 0.45), 0 0 0 1px oklch(0% 0 0 / 0.4);
}

/* density */
.density-compact  { --row-y: 7px;  --cell-x: 12px; }
.density-cozy     { --row-y: 10px; --cell-x: 14px; }
.density-comfy    { --row-y: 14px; --cell-x: 16px; }

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-snug); color: var(--ink); }
p { margin: 0; }

/* ============================================================
   App chrome
   ============================================================ */
.app {
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: 0 var(--s-6);
  height: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--fs-md);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--bg); font-size: 10px; font-weight: 700;
  font-family: var(--font-mono);
}
.brand-name { color: var(--ink); }
.brand-slash { color: var(--ink-subtle); margin: 0 2px; }
.brand-app { color: var(--ink-muted); font-weight: 500; }

.nav { display: flex; gap: 2px; margin-left: var(--s-4); }
.nav a {
  padding: 6px 10px; border-radius: var(--r-md);
  color: var(--ink-muted); font-size: var(--fs-base);
}
.nav a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); background: var(--surface-2); }

.topbar-spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-muted);
}

/* Theme-Toggle (Sun/Moon-Icons werden je nach data-theme ausgetauscht) */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  margin-right: var(--s-2);
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
.theme-toggle .ic-sun  { display: none; }
.theme-toggle .ic-moon { display: block; }
[data-theme="dark"] .theme-toggle .ic-sun  { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
}

/* ===== Dropdown-Menü (Top-Bar Einstellungen) ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { display: inline-flex; align-items: center; }
.dropdown-trigger svg { transition: transform .15s ease; }
.dropdown.open .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
[data-theme="dark"] .dropdown-menu { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--surface-2);
  outline: none;
}
.dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
  list-style: none;
}

/* Trigger-Inhalte: Desktop = Label, Mobile = Avatar-Initialen */
.dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-trigger .dt-avatar {
  display: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  align-items: center; justify-content: center;
}

/* Buttons im Dropdown-Menu (für data-toggle-theme) */
.dropdown-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--ink);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu a.active { background: var(--surface-2); font-weight: 600; }

/* Theme-Label-Switch im Dropdown */
.dropdown-menu [data-theme-label-light] { display: inline; }
.dropdown-menu [data-theme-label-dark]  { display: none; }
[data-theme="dark"] .dropdown-menu [data-theme-label-light] { display: none; }
[data-theme="dark"] .dropdown-menu [data-theme-label-dark]  { display: inline; }

/* Mobile-only Items im Dropdown — auf Desktop versteckt */
.dm-mobile-only { display: none; }

/* Logout-Form als Menüitem */
.dm-logout-form { margin: 0; padding: 0; }
.dm-logout-form button { width: 100%; }

/* ===== Admin Users Tabelle ===== */
.admin-users-t .inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.admin-users-t .user-actions {
  white-space: nowrap;
}
.admin-users-t .user-actions .inline-form + .inline-form { margin-left: 4px; }
.select.sm {
  padding: 4px 26px 4px 8px;
  font-size: 13px;
  height: auto;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .admin-users-t .user-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    white-space: normal;
    width: 100%;
  }
  .admin-users-t .user-actions .inline-form { margin: 0; width: 100%; }
  .admin-users-t .user-actions .inline-form + .inline-form { margin-left: 0; }
  .admin-users-t .user-actions .btn { width: 100%; justify-content: center; }
  .admin-users-t .inline-form { flex-wrap: wrap; }
  .admin-users-t td[data-label="Rolle"] .inline-form { width: 100%; }
  .admin-users-t td[data-label="Rolle"] .select.sm { flex: 1 1 auto; }
}

.content { padding: var(--s-7) var(--s-6); flex: 1; }
.content-narrow { max-width: 560px; margin: 0 auto; }
.content-wide { max-width: 1040px; margin: 0 auto; }

/* ============================================================
   Page header
   ============================================================ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.015em;
}
.page-head .sub {
  color: var(--ink-muted);
  font-size: var(--fs-base);
  margin-top: 2px;
}

/* ============================================================
   Cards & sections
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card + .card { margin-top: var(--s-6); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  font-size: var(--fs-md);
  font-weight: 600;
}
.card-head .meta { color: var(--ink-subtle); font-size: var(--fs-sm); }
.card-body { padding: var(--s-5); }
.card-body.no-pad { padding: 0; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}
.t thead th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-subtle);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: var(--s-3) var(--cell-x);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.t tbody td {
  padding: var(--row-y) var(--cell-x);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
.t tbody tr:last-child td { border-bottom: none; }
.t tbody tr:hover td { background: var(--surface-2); }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t td.mono { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-muted); }
.t td.thin { color: var(--ink-muted); white-space: nowrap; }
.t td.title { font-weight: 500; }
.t td.title a { color: var(--ink); }
.t td.title a:hover { color: var(--accent); }

.t-empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--ink-muted);
}
.t-empty .ico { color: var(--ink-disabled); margin-bottom: var(--s-3); }
.t-empty h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }

/* ============================================================
   Status badge
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-muted);
  white-space: nowrap;
  line-height: 1.4;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.85;
  flex: none;
}
.badge.pending           { color: var(--ink-muted); }
.badge.generating        { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.badge.uploading         { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.badge.ready_for_review  { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.badge.published         { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.badge.scheduled         { color: var(--opt); background: var(--opt-bg); border-color: var(--opt-line); }
.badge.failed            { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.badge.generating::before, .badge.uploading::before {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  vertical-align: middle;
}
.dot.ok   { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err  { background: var(--err); }
.dot.info { background: var(--info); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.4;
  transition: background 80ms ease, border-color 80ms ease;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { background: var(--surface-3); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn[disabled] { color: var(--ink-disabled); background: var(--surface-2); cursor: not-allowed; }

.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover { background: oklch(from var(--ink) calc(l + 0.08) c h); }

.btn.success {
  background: var(--ok); color: white; border-color: var(--ok);
}
.btn.success:hover { background: oklch(from var(--ok) calc(l - 0.04) c h); }

.btn.danger {
  color: var(--err); border-color: var(--err-line); background: var(--surface);
}
.btn.danger:hover { background: var(--err-bg); }

.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn.sm { padding: 4px 8px; font-size: var(--fs-sm); }
.btn.lg { padding: 9px 16px; font-size: var(--fs-md); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field > label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: baseline; gap: var(--s-2);
}
.field > label .opt { font-weight: 400; color: var(--ink-subtle); font-size: var(--fs-xs); }
.field .help { font-size: var(--fs-xs); color: var(--ink-subtle); }
.input, .textarea, .select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color 80ms ease, box-shadow 80ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23999' stroke-width='1.5' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.form-actions {
  display: flex; gap: var(--s-2); justify-content: flex-end;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  margin-top: var(--s-2);
}

.hint-box {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.55;
}
.hint-box .pipe {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
}

.privacy-notice {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--opt-bg, var(--surface-2));
  border: 1px solid var(--opt-line, var(--line));
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}
.privacy-notice strong { color: var(--ink); font-weight: 600; }
.privacy-notice a { color: var(--accent); text-decoration: underline; }
.privacy-notice-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  margin-top: 1px;
}
.privacy-notice-detail {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-subtle);
  margin: 4px 0 6px;
}

/* Bulk-Generierung: Grid für Site-Auswahl */
.bulk-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.bulk-site-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: background .12s, border-color .12s;
}
.bulk-site-pick:hover { background: var(--surface-2); border-color: var(--line-strong); }
.bulk-site-pick input[type="checkbox"] { margin: 0; }
.bulk-site-pick:has(input:checked) { background: var(--accent-bg); border-color: var(--accent); }
.bulk-site-domain { font-weight: 500; color: var(--ink); flex: 1; }
.bulk-site-key { font-size: 11px; color: var(--ink-subtle); }

/* Job-History / Audit-Log */
.job-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.job-event {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.job-event.is-failure {
  background: var(--err-bg);
  border-color: var(--err-line, var(--err));
  color: var(--err);
}
.job-event-time {
  font-size: 11px;
  color: var(--ink-subtle);
  flex: 0 0 auto;
}
.job-event-label {
  font-weight: 500;
  color: var(--ink);
}
.job-event.is-failure .job-event-label { color: var(--err); }
.job-event-actor {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}
.job-event-detail {
  font-size: var(--fs-xs);
  color: var(--ink-subtle);
  flex: 1 1 100%;
  margin-left: 0;
}
@media (min-width: 641px) {
  .job-event-detail { flex: 1 1 auto; margin-left: auto; text-align: right; }
}

/* ============================================================
   Login
   ============================================================ */
.login-shell {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: var(--s-7);
  background: var(--bg);
}
.login-card {
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6) var(--s-6);
  box-shadow: var(--sh-2);
}
.login-card .brand { justify-content: center; margin-bottom: var(--s-2); }
.login-card .tag {
  text-align: center;
  font-size: var(--fs-sm); color: var(--ink-subtle);
  margin-bottom: var(--s-6);
}
.login-card .btn { width: 100%; justify-content: center; }
.login-card .footnote {
  margin-top: var(--s-5);
  font-size: var(--fs-xs); color: var(--ink-subtle);
  text-align: center;
}

/* ============================================================
   Job detail
   ============================================================ */
.job-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.job-head .crumbs {
  font-size: var(--fs-sm); color: var(--ink-subtle);
  margin-bottom: 6px;
}
.job-head .crumbs a { color: var(--ink-muted); }
.job-head h1 {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  max-width: 760px;
  text-wrap: balance;
}
.job-head .meta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  margin-top: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-muted);
}
.job-head .meta-row span strong { color: var(--ink); font-weight: 500; }
.job-head .meta-row .mono { color: var(--ink-muted); }

.status-block {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.status-block.is-running { background: var(--info-bg); border-color: var(--info-line); }
.status-block.is-ready { background: var(--warn-bg); border-color: var(--warn-line); }
.status-block.is-failed { background: var(--err-bg); border-color: var(--err-line); }
.status-block .text { flex: 1; }
.status-block .text h3 { font-size: var(--fs-md); margin-bottom: 2px; }
.status-block .text p { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5; }
.status-block .right { font-size: var(--fs-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.progress-steps {
  display: flex;
  margin-top: var(--s-3);
  gap: 2px;
}
.progress-steps .step {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--line);
}
.progress-steps .step.done { background: var(--info); }
.progress-steps .step.active { background: var(--info); position: relative; overflow: hidden; }
.progress-steps .step.active::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(100% 0 0 / 0.4), transparent);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* spec preview */
.spec-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: var(--s-2);
  column-gap: var(--s-4);
  font-size: var(--fs-base);
}
.spec-meta dt { color: var(--ink-subtle); font-size: var(--fs-sm); padding-top: 1px; }
.spec-meta dd { margin: 0; color: var(--ink); }
.spec-meta dd .mono { color: var(--ink-muted); font-size: var(--fs-sm); }
.spec-meta dd .len {
  color: var(--ink-subtle); font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  margin-left: var(--s-2);
}
.spec-meta dd .len.ok   { color: var(--ok); }
.spec-meta dd .len.warn { color: var(--warn); }

/* block timeline */
.blocks { border-top: 1px solid var(--line); }
.block-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-base);
}
.block-item:last-child { border-bottom: none; }
.block-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.block-tag.h2 { color: var(--accent-ink); font-weight: 600; }
.block-content.h2-text { font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.block-content.muted { color: var(--ink-muted); }
.block-content .img-row {
  display: flex; gap: var(--s-3); align-items: center;
}
.block-content .thumb {
  width: 64px; height: 40px; border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, var(--surface-3) 4px, var(--surface-3) 8px);
  border: 1px solid var(--line);
  flex: none;
}
.block-content .caption {
  font-size: var(--fs-sm); color: var(--ink-muted); font-style: italic;
}

/* validator */
.issue-list { display: flex; flex-direction: column; }
.issue {
  display: grid;
  grid-template-columns: 70px 110px 1fr;
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-base);
}
.issue:last-child { border-bottom: none; }
.issue-level {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  display: inline-block;
  text-align: center;
  width: fit-content;
}
.issue-level.error { color: var(--err); background: var(--err-bg); border: 1px solid var(--err-line); }
.issue-level.warn  { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.issue-level.info  { color: var(--info); background: var(--info-bg); border: 1px solid var(--info-line); }
.issue-code {
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-muted);
}
.issue-msg { color: var(--ink); }
.issue-msg .ref { color: var(--ink-muted); }

.issue-empty {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ok);
}

/* WP box */
.wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-4);
}
.wp-cell label {
  display: block;
  font-size: var(--fs-xs); color: var(--ink-subtle);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.wp-cell .val { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); }
.wp-cell a.val { color: var(--accent); }

/* action cards */
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.action-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  min-height: 200px;
}
.action-card.warn  { border-color: var(--warn-line); background: var(--warn-bg); }
.action-card.opt   { border-color: var(--opt-line); background: var(--opt-bg); }
.action-card.ok    { border-color: var(--ok-line); background: var(--ok-bg); }
.action-card.disabled { opacity: 0.5; }
.action-card h3 {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-md); margin-bottom: var(--s-2);
}
.action-card h3 .ico-wrap {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.action-card.warn h3 .ico-wrap { color: var(--warn); border-color: var(--warn-line); }
.action-card.opt  h3 .ico-wrap { color: var(--opt);  border-color: var(--opt-line); }
.action-card.ok   h3 .ico-wrap { color: var(--ok);   border-color: var(--ok-line); }
.action-card .desc {
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5;
  margin-bottom: var(--s-3);
}
.action-card .grow { flex: 1; }
.action-card .textarea { background: var(--surface); }
.action-card .btn { align-self: flex-start; margin-top: var(--s-3); }

/* ============================================================
   Flash
   ============================================================ */
.flash {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  margin-bottom: var(--s-4);
  background: var(--surface);
}
.flash.info  { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.flash.ok    { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok); }
.flash.err   { background: var(--err-bg);  border-color: var(--err-line);  color: var(--err); }
.flash .body { flex: 1; color: var(--ink); }
.flash .body strong { color: inherit; font-weight: 600; }
.flash.info  .body strong { color: var(--info); }
.flash.ok    .body strong { color: var(--ok); }
.flash.err   .body strong { color: var(--err); }
.flash .close { color: inherit; opacity: 0.7; background: none; border: none; padding: 0; }
.flash .close:hover { opacity: 1; }

/* ============================================================
   Empty / 404
   ============================================================ */
.error-shell {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: var(--s-7);
}
.error-card {
  text-align: center;
  max-width: 360px;
}
.error-card .code {
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  color: var(--ink-subtle);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.error-card h1 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.error-card p { color: var(--ink-muted); font-size: var(--fs-base); margin-bottom: var(--s-5); line-height: 1.55; }
.error-card .btn-row { display: flex; gap: var(--s-2); justify-content: center; }

/* ============================================================
   Components-preview helpers
   ============================================================ */
.preview-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.preview-row:last-child { border-bottom: none; }
.preview-row .label {
  font-size: var(--fs-xs);
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 130px;
  flex: none;
}

/* misc utilities */
.hstack { display: flex; align-items: center; gap: var(--s-3); }
.vstack { display: flex; flex-direction: column; gap: var(--s-3); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   Filter bar
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 3px;
  box-shadow: var(--sh-1);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 60ms ease, color 60ms ease;
}
.filter-pill:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.filter-pill.is-active {
  background: var(--ink);
  color: var(--bg);
}
.filter-pill.is-active:hover { background: var(--ink); color: var(--bg); }
.filter-pill.is-active .filter-pill-count {
  color: var(--bg);
  background: oklch(from var(--ink) calc(l + 0.15) c h);
}
.filter-pill-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--surface-3);
  color: var(--ink-subtle);
  padding: 1px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.filter-pill-warn:not(.is-active) .filter-pill-count {
  background: var(--err-bg);
  color: var(--err);
}

.filter-controls {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
.filter-search {
  width: 220px;
  padding: 6px 10px;
  font-size: var(--fs-sm);
}
.filter-site {
  width: 180px;
  padding: 6px 28px 6px 10px;
  font-size: var(--fs-sm);
}

@media (max-width: 760px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
  }
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
  }
  .filter-pills::-webkit-scrollbar { height: 6px; }
  .filter-pills::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .filter-controls { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .filter-search, .filter-site { flex: 1 1 calc(50% - var(--s-2)); width: auto; min-width: 0; }
  .filter-bar > * { min-width: 0; max-width: 100%; }
}

/* ============================================================
   Calendar
   ============================================================ */
.cal-legend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); color: var(--ink-subtle);
  margin-left: var(--s-3);
}
.cal-legend .dot { width: 7px; height: 7px; }
.dot.opt { background: var(--opt); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
}
.cal-weekhead {
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
}
.cal-weekhead:nth-child(7n) { border-right: none; }

.cal-day {
  min-height: 110px;
  min-width: 0; /* sonst dehnen lange Event-Titel die 1fr-Grid-Spalten auseinander → horizontaler Overflow */
  padding: var(--s-2);
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; } /* So spalte */
.cal-day.is-other { background: var(--surface-2); }
.cal-day.is-other .cal-date { color: var(--ink-disabled); }
.cal-day.is-weekend:not(.is-other) { background: oklch(from var(--surface-2) l c h / 0.6); }

.cal-date {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 2px 0;
  align-self: flex-end;
}
.cal-day.is-today .cal-date {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 999px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0;
}

.cal-events {
  display: flex; flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.cal-event {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
  text-decoration: none;
  border-left-width: 3px;
}
.cal-event:hover { text-decoration: none; box-shadow: var(--sh-2); transform: translateY(-1px); }
.cal-event-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-right: 4px;
}
.cal-event-site {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-subtle);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.cal-event-title {
  display: block;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.cal-event-published      { border-left-color: var(--ok);   background: var(--ok-bg); }
.cal-event-scheduled      { border-left-color: var(--opt);  background: var(--opt-bg); }
.cal-event-ready_for_review { border-left-color: var(--warn); background: var(--warn-bg); }
.cal-event-generating,
.cal-event-uploading,
.cal-event-pending        { border-left-color: var(--info); background: var(--info-bg); }
.cal-event-failed         { border-left-color: var(--err);  background: var(--err-bg); }

.cal-list-card { margin-top: var(--s-6); }
.cal-list { display: flex; flex-direction: column; }
.cal-list-row {
  display: grid;
  grid-template-columns: 110px 200px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-base);
}
.cal-list-row:last-child { border-bottom: none; }
.cal-list-row:hover { background: var(--surface-2); text-decoration: none; }
.cal-list-day { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: var(--fs-sm); }
.cal-list-site { color: var(--ink-muted); font-size: var(--fs-sm); }
.cal-list-topic { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */

/* tablet */
@media (max-width: 900px) {
  .content { padding: var(--s-5) var(--s-4); }
  .actions { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: 1fr 1fr; }
  .spec-meta { grid-template-columns: 1fr; row-gap: 6px; }
  .spec-meta dt { padding-top: 0; }

  .page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .page-head .btn { align-self: flex-start; }

  .job-head { flex-direction: column; }
  .job-head h1 { font-size: var(--fs-lg); }

  .status-block { flex-direction: column; }
  .status-block .right { align-self: flex-end; font-size: var(--fs-xs); }

  .issue {
    grid-template-columns: 70px 1fr;
    grid-template-areas:
      "level code"
      "msg   msg";
    row-gap: 4px;
  }
  .issue-level { grid-area: level; }
  .issue-code  { grid-area: code; }
  .issue-msg   { grid-area: msg; }

  .block-item { grid-template-columns: 60px 1fr; }
}

/* phone */
@media (max-width: 640px) {
  body { font-size: var(--fs-md); }

  .topbar {
    padding: 0 var(--s-3);
    gap: var(--s-2);
    height: 52px;
  }
  .topbar .brand img { height: 24px !important; width: 24px !important; }
  .topbar .brand-app { display: none; }
  .nav { display: none; }
  .theme-toggle { display: none; }

  .user-chip { gap: 4px; margin-left: auto; }
  .user-chip .avatar-desktop,
  .user-chip .user-name { display: none; }

  /* Trigger: Avatar + Chevron statt "Einstellungen" */
  .dropdown-trigger .dt-label { display: none; }
  .dropdown-trigger .dt-avatar { display: inline-flex; }
  .user-chip .dropdown-trigger {
    padding: 4px;
    border-radius: 999px;
  }

  /* Dropdown-Menu Mobile: breiter, Mobile-only Items sichtbar */
  .dropdown-menu { min-width: 220px; }
  .dm-mobile-only { display: list-item; }
  .dropdown-menu a, .dropdown-menu button { padding: 10px 14px; font-size: var(--fs-md); }

  .content { padding: var(--s-5) var(--s-3); }
  .content-narrow, .content-wide { max-width: 100%; }

  .page-head { margin-bottom: var(--s-4); padding-bottom: var(--s-3); }
  .page-head h1 { font-size: var(--fs-xl); }
  .page-head .sub { font-size: var(--fs-sm); }

  .card-head { padding: var(--s-3) var(--s-4); }
  .card-body { padding: var(--s-4); }
  .card + .card { margin-top: var(--s-4); }

  .login-shell { padding: var(--s-4); }
  .login-card {
    width: 100%;
    max-width: 380px;
    padding: var(--s-6) var(--s-5) var(--s-5);
  }

  .form-stack { padding: var(--s-4); }
  .form-actions { flex-direction: column-reverse; gap: var(--s-2); }
  .form-actions .btn { width: 100%; justify-content: center; }

  .job-head h1 { font-size: var(--fs-lg); }
  .job-head .meta-row {
    flex-direction: column;
    gap: var(--s-1);
  }

  .wp-grid { grid-template-columns: 1fr; }

  .action-card { padding: var(--s-4); min-height: 0; }
  .action-card .btn { width: 100%; justify-content: center; }

  .spec-meta {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .spec-meta dt { font-size: var(--fs-xs); padding-top: var(--s-2); }
  .spec-meta dd { font-size: var(--fs-sm); }
  .spec-meta dd .len { display: block; margin-left: 0; margin-top: 2px; }

  .block-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: var(--s-3) 0;
  }
  .block-tag { padding-top: 0; }
  .block-content .img-row { flex-direction: column; align-items: flex-start; }

  .issue {
    padding: var(--s-3) var(--s-4);
  }

  /* Tabellen: Header verstecken, Rows als „Cards" ausspielen */
  .t thead { display: none; }
  .t, .t tbody, .t tr, .t td { display: block; }
  .t tr {
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .t tbody tr:hover td { background: transparent; }
  .t tbody tr:hover { background: var(--surface-2); }
  .t td {
    padding: 2px 0;
    border: none;
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }
  .t td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 80px;
    flex: none;
  }
  .t td.title {
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--s-1);
  }
  .t td.title::before { display: none; }
  .t td.title a { font-weight: 500; }

  /* Hidden / decoration cells (empty data-label) verstecken; nur Action-Cells (data-label=" ") behalten */
  .t td[data-label=""] { display: none; }
  .t td[data-label=" "]::before { display: none; }
  .t td[data-label=" "] { padding-top: var(--s-2); margin-top: 2px; }

  .badge { font-size: var(--fs-xs); padding: 2px 7px 2px 5px; }

  .topbar-spacer { flex: 1; }
}

/* very small phones */
@media (max-width: 360px) {
  .topbar { gap: 4px; padding: 0 var(--s-2); }
  .nav a { padding: 5px 6px; }
}

/* Calendar mobile: Grid weg, alleine die List zeigen */
@media (max-width: 760px) {
  .cal-grid, .card-head .cal-legend { display: none; }
  .cal-list-card { margin-top: 0; }
  .cal-list-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "day  badge"
      "site badge"
      "topic topic";
    row-gap: 4px;
  }
  .cal-list-day   { grid-area: day; }
  .cal-list-site  { grid-area: site; }
  .cal-list-topic { grid-area: topic; font-weight: 500; }
  .cal-list-row .badge { grid-area: badge; align-self: flex-start; }
}
