/* Self-hosted fonts (OFL 1.1: Kanit, IBM Plex Sans Thai, Noto Sans Thai, Inter, JetBrains Mono) —
   no font request ever leaves this origin (M3). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/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: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-vietnamese.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/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: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-vietnamese.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/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: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-vietnamese.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/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: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-vietnamese.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/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: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-vietnamese.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-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: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-vietnamese.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-latin-ext.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-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: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-vietnamese.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-latin-ext.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jetbrainsmono-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: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/notosansthai-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/notosansthai-latin-ext.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;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/notosansthai-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;
}
/* ============================================================
   ARSAjudvein by ชพส. — shared arsaMD visual system
   Warm cream canvas (#fff9f3), brown ink (#2e1a0e), campaign
   orange accents (#f7841f / #b8320d), Kanit + IBM Plex Sans Thai
   typography, JetBrains Mono technical data, soft card depth.
   ============================================================ */

/* arsaMD fonts, self-hosted under the bundled SIL Open Font Licenses. */
/* Self-hosted arsaMD font families. Original OFL licenses are in assets/fonts. */

/* kanit-thai-500-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('./assets/fonts/kanit-thai-500-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* kanit-latin-500-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('./assets/fonts/kanit-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;
}

/* kanit-thai-600-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('./assets/fonts/kanit-thai-600-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* kanit-latin-600-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('./assets/fonts/kanit-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;
}

/* kanit-thai-700-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('./assets/fonts/kanit-thai-700-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* kanit-latin-700-normal */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('./assets/fonts/kanit-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-thai-thai-400-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('./assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* ibm-plex-sans-thai-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('./assets/fonts/ibm-plex-sans-thai-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-thai-thai-500-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('./assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* ibm-plex-sans-thai-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('./assets/fonts/ibm-plex-sans-thai-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-thai-thai-600-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('./assets/fonts/ibm-plex-sans-thai-thai-600-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* ibm-plex-sans-thai-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('./assets/fonts/ibm-plex-sans-thai-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-thai-thai-700-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('./assets/fonts/ibm-plex-sans-thai-thai-700-normal.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* ibm-plex-sans-thai-latin-700-normal */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('./assets/fonts/ibm-plex-sans-thai-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;
}

/* Shared arsaMD identity: cream, campaign orange, brown ink, and Thai typography.
   Status colours retain their scheduling meaning; the club artwork stays intact. */
:root {
  --paper: #fff9f3;
  --paper-2: #fff0e1;
  --card: #ffffff;
  --ink: #2e1a0e;
  --ink-deep: #3b1a07;
  --ink-soft: #6e4f3d;
  --muted: #6e4f3d;
  --faint: #6e4f3d;
  --line: #f1dccb;
  --line-soft: #f8eade;
  --accent: #f7841f;
  --accent-strong: #b8320d;
  --accent-soft: #ffead4;
  --accent-ink: #6a2e08;
  --heading-red: #d62a16;
  --primary-fill: linear-gradient(135deg, #b8320d, #cf4309);
  --ok: #216b4c;
  --ok-soft: #edf6f0;
  --warn: #87521b;
  --warn-soft: #fff1da;
  --danger: #b23c35;
  --danger-soft: #fdf0ee;
  /* Text-field boundary (WCAG 1.4.11): 4.2:1 on #fff, 3.7:1 on --paper-2. */
  --field-border: #8f7866;
  /* Placeholder text (WCAG 1.4.3): 5.4:1 on #fff, 5.3:1 on the #fdfcfb fill. */
  --placeholder: #7a6656;
  /* One in-page anchor offset: the 72px sticky header, its 1px rule and a
     15px gap, so a jump lands just below the header (see html below). */
  --anchor-offset: 88px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --touch-target: 44px;
  --shadow-pop: 0 1px 2px rgb(91 38 6 / 8%), 0 2px 6px rgb(91 38 6 / 6%);
  --shadow-pop-lg: 0 2px 4px rgb(91 38 6 / 6%), 0 12px 28px rgb(91 38 6 / 12%);
  --font-thai: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-latin: "IBM Plex Sans Thai", "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Kanit", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-brand: "Kanit", "IBM Plex Sans Thai", sans-serif;
  --font-code: "JetBrains Mono", "Noto Sans Thai", ui-monospace, monospace;
  --font: var(--font-thai);
  --font-display: var(--font-heading);
  --mono: var(--font-thai);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* The only anchor offset. Targets carry no scroll-margin of their own:
   Chromium adds both, which used to park #demo 208px down the viewport. */
html { scroll-padding-top: var(--anchor-offset); scroll-behavior: smooth; font-synthesis: none; }
html:lang(en) { --font: var(--font-latin); --font-display: var(--font-heading); --mono: var(--font-latin); }
html:lang(th) { --font: var(--font-thai); --font-display: var(--font-heading); --mono: var(--font-thai); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
button, a, summary, input, textarea { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
::selection { background: #ffdbab; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); }
p { text-wrap: pretty; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Product and club names (อาสาจัดเวร, ชมรมแพทย์อาสา), short Thai terms the
   line breaker would split, and time ranges break before or after the run,
   never inside it. */
.keep-together { white-space: nowrap; }
/* A protected phrase that can be wider than a narrow line (app.js,
   KEEP_TOGETHER_BOX_MIN) is one atomic box instead: it moves to the next line
   whole and wraps inside only when it is wider than the whole line. */
.keep-together-box { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.keep-together-run { min-width: 0; max-width: 100%; }
/* Shown only on paper; the matching rule lives in @media print below. */
.print-only { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 0; display: inline-flex; align-items: center; min-height: var(--touch-target); padding: 12px 20px; background: var(--ink); color: #fff; z-index: 100; }
.skip-link:focus { left: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 60; pointer-events: none; }

/* Quiet masthead. The original square artwork is never cropped or stretched. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 249 243 / 97%); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: var(--touch-target); min-height: var(--touch-target); color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 10px; }
.brand-copy { display: flex; flex-direction: column; }
.wordmark { font-family: var(--font-brand); font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; white-space: nowrap; }
.wordmark .accent { color: var(--accent-strong); }
.brand-subtitle { font-family: var(--font-thai); font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.primary-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch-target); padding: 8px 12px; border-radius: 999px; color: var(--accent-ink); text-decoration: none; font-size: .86rem; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.primary-nav a:hover, .primary-nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.primary-nav .nav-cta { display: none; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-group { display: flex; padding: 2px; border: 1px solid var(--field-border); border-radius: 999px; background: #fff; }
.lang-btn { min-width: var(--touch-target); min-height: var(--touch-target); border: 0; border-radius: 999px; padding: 0 9px; font-family: var(--font-latin); font-size: .75rem; font-weight: 600; background: transparent; color: var(--ink-soft); }
.lang-btn[aria-pressed="true"] { background: var(--card); color: var(--accent-ink); box-shadow: 0 1px 4px rgb(80 40 0 / 12%); }
.lang-btn:hover { background: var(--accent-soft); }
.nav-cta-desktop, .nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 19px; border-radius: 999px; border: 1px solid transparent; background: var(--primary-fill); color: #fff; text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgb(184 50 13 / 18%); }
.nav-cta-desktop:hover, .primary-nav .nav-cta:hover { background: #a32c0b; color: #fff; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--field-border); border-radius: 8px; background: #fff; }
.nav-toggle-bar { height: 2px; width: 18px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
/* While the menu is open the three bars fold into a close (×) mark. Bars are
   2px tall with a 5px gap, so the outer two travel 7px onto the middle one. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* A compact introduction, with an explicitly illustrative roster. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 52px; background: radial-gradient(120% 90% at 85% 10%, #ffd2a88c, transparent 60%), linear-gradient(180deg, #fffdfa, var(--paper)); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; background: linear-gradient(115deg, var(--accent) 0 3%, transparent 3% 100%), linear-gradient(115deg, transparent 0 4%, #ffb36b 4% 5%, transparent 5% 100%), linear-gradient(295deg, var(--accent) 0 3%, transparent 3% 100%), linear-gradient(295deg, transparent 0 4%, #ffd2a8 4% 5.5%, transparent 5.5% 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-strong); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-pop); font-size: .86rem; font-weight: 600; margin: 0 0 20px; }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-title { font-family: var(--font-display); color: var(--heading-red); font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 18px; }
.hero-title > span:first-child { display: block; }
.hero-title .accent { color: var(--ink-deep); }
.hero-title-end { display: block; color: #8a3e0c; font-size: .6em; font-weight: 500; margin-top: 6px; }
html:lang(en) .hero-title { line-height: 1.22; }
html:lang(th) :where(.wordmark, .hero-title, .section-title, .card-paraphrase, .btn, .primary-nav a) { letter-spacing: normal; }
.hero-sub { font-size: .96rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.8; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; padding: 8px 0; min-width: 0; }
.hero-emblem { position: absolute; width: 180px; height: 200px; right: -16px; top: -35px; background: #ffd2a8; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }
.roster-preview { position: relative; background: #fff; border: 10px solid var(--accent); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-pop-lg); }
.preview-heading { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; }
.preview-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.preview-month { margin-left: auto; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.preview-grid { display: grid; grid-template-columns: 28px repeat(3, 1fr); gap: 10px; align-items: center; }
.preview-grid > span { color: var(--muted); font-size: .75rem; }
.preview-day { font-variant-numeric: tabular-nums; }
.preview-shift { display: block; height: 26px; border-radius: 5px; background: #f5f0e9; }
.preview-shift.filled { background: #f79a43; }
.preview-shift.soft { background: #ffe0b8; }
.preview-note { border-top: 1px solid var(--line-soft); margin: 21px 0 0; padding-top: 14px; display: flex; gap: 9px; color: var(--ink-soft); font-size: .78rem; }
.preview-note > span:first-child { color: var(--ok); }

/* Stable, generously sized controls. No cursor-following movement. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font); font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.65; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-primary { background: var(--primary-fill); color: #fff; box-shadow: 0 6px 16px rgb(184 50 13 / 20%); }
.btn-primary:hover { background: #a32c0b; }
.btn-primary:active { background: #8a280b; }
.btn-ghost { background: var(--card); color: var(--accent-ink); border-color: #b05e1a; }
.btn-ghost:hover { background: var(--paper-2); border-color: #8f4710; }
.btn:disabled { background: var(--paper-2); color: var(--muted); border-color: var(--line); box-shadow: none; }
/* Busy controls keep keyboard focus (RF-03): they use aria-disabled instead of
   the disabled attribute, so they must look exactly like disabled ones,
   including on hover and press. */
.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:active { background: var(--paper-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
/* Destructive confirmation (e.g. delete my email): #fff on --danger is 5.9:1. */
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: none; }
.btn-danger:hover { background: #962f29; border-color: #962f29; }
.btn-danger:active { background: #7d2621; border-color: #7d2621; }

/* Requests, review and roster live in one workspace. */
.workspace { padding-top: 34px; padding-bottom: 42px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-kicker { font-size: .84rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.workspace-demo { margin: 0; color: var(--muted); font-size: .75rem; }
.workspace-period { display: flex; flex-direction: column; align-items: flex-end; }
.workspace-period strong { font-size: .9rem; font-weight: 600; }
.workspace-period span { font-size: .78rem; color: var(--muted); }
.workflow-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 22px; padding: 15px 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.workflow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; gap: 8px; align-items: center; font-size: .83rem; color: var(--ink-soft); }
.workflow-steps li + li::before { content: ""; width: 24px; height: 1px; margin-right: 10px; background: var(--line); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); color: var(--ink-soft); font-size: .75rem; font-weight: 600; }
.workflow-steps [aria-current="step"] { color: var(--accent-ink); font-weight: 600; }
.workflow-steps [aria-current="step"] .step-number { background: var(--accent); color: var(--ink-deep); }
.workflow-steps .is-complete .step-number { background: var(--accent-soft); color: var(--accent-ink); }
#workflow-status { font-size: .75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin: 0; margin-inline-start: auto; }
#workspace-account { padding: 6px 16px; border: 1px solid #d9b592; border-radius: 999px; background: var(--paper); color: var(--accent-strong); font-weight: 600; max-width: 100%; transition: background .15s, border-color .15s, color .15s; }
#workspace-account:hover { background: var(--accent-soft); border-color: #b05e1a; color: var(--accent-ink); text-decoration: none; }
.workspace-quota { flex-basis: 100%; font-size: .78rem; color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0; padding-top: 6px; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(115deg, rgb(255 255 255 / 14%) 0 18%, transparent 18% 100%), linear-gradient(160deg, #f7841f, #ee6a0e 55%, #cf4309); box-shadow: var(--shadow-pop-lg); }
.workspace-grid > .section { min-width: 0; padding: 0; }
.workspace-section-inner { min-width: 0; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-pop); }
.workspace-section-inner > .section-title { color: var(--ink-deep); font-size: 1.4rem; margin: 0 0 4px; font-weight: 600; }
.workspace-section-inner > .section-sub { font-size: .88rem; margin: 0 0 20px; color: var(--ink-soft); }
.demo-panel, .sched-panel { padding: 0; min-width: 0; }
.demo-label { display: block; margin: 0 0 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.demo-person, .demo-input { display: block; width: 100%; color: var(--ink); background: #fdfcfb; border: 1px solid var(--field-border); border-radius: 9px; font-family: var(--font); font-size: 1rem; padding: 12px 14px; line-height: 1.7; box-shadow: none; }
.demo-person { margin-bottom: 20px; min-height: 48px; }
.demo-input { min-height: 124px; resize: vertical; }
/* The focus ring carries the whole signal for a keyboard user, so it is drawn
   in the strong accent (5.9:1 on white) rather than the soft tint it used to
   use (1.3:1), which WCAG 1.4.11 does not accept as an indicator. The tint
   survives as a halo outside the ring. */
.demo-person:focus, .demo-input:focus, .sched-shift-start:focus, .sched-shift-end:focus, #sched-days:focus,
.sched-shift-start:focus-within, .sched-shift-end:focus-within,
#account-email:focus,
.suggestion-textarea:focus, .feedback-comment:focus,
.examples-filters input:focus, .examples-filters select:focus { background: #fff; border-color: var(--accent-strong); outline: 3px solid var(--accent-strong); outline-offset: 1px; box-shadow: 0 0 0 6px #ffdfb9; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
/* A message tied to one field, right under it: --danger is 5.9:1 on #fff and
   5.6:1 on --paper. An empty message keeps its node (and any live region)
   but takes no space. */
.field-error { display: block; margin: 6px 0 0; font-size: .875rem; font-weight: 600; line-height: 1.6; color: var(--danger); overflow-wrap: anywhere; }
.field-error:empty { margin: 0; }
.demo-examples-label { font-size: .78rem; color: var(--muted); margin: 18px 0 8px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch-target); padding: 8px 13px; border: 1px solid var(--field-border); border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: .8rem; }
.chip-btn:hover { border-color: var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.demo-more { margin: 3px 0 15px; }
.demo-more a { display: inline-flex; align-items: center; min-height: var(--touch-target); font-size: .78rem; text-decoration: none; }
.demo-more a:hover { text-decoration: underline; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#demo-reset { border: 0; background: transparent; color: var(--ink-soft); padding: 10px 12px; font-size: .78rem; }
#demo-reset:hover { background: var(--paper-2); }
.reset-hint { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.demo-status { font-size: .84rem; color: var(--ink-soft); margin: 12px 0 0; overflow-wrap: anywhere; }
.demo-status:empty { margin: 0; }
.demo-progress { height: 5px; background: var(--accent-soft); border-radius: 5px; overflow: hidden; margin-top: 18px; }
.demo-progress-bar { width: 40%; height: 100%; background: var(--accent); animation: progress-slide 1.2s linear infinite; }
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.demo-results { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.demo-results-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.demo-results-title { font-size: 1rem; font-weight: 600; line-height: 1.5; margin: 0; }
.engine-badge { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 9px; border-radius: 6px; font-family: var(--font); font-size: .78rem; line-height: 1.65; }
.engine-badge::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.engine-badge.ai { background: var(--ok-soft); color: var(--ok); }
.engine-badge.mock { background: var(--warn-soft); color: var(--warn); }
.engine-badge.failed { background: var(--danger-soft); color: var(--danger); }
.engine-badge.partial { background: var(--warn-soft); color: var(--warn); }
.review-progress { margin: 0 0 13px; color: var(--ink-soft); font-size: .8rem; }
.demo-cards { display: grid; gap: 12px; }
.condition-card { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 18px; background: #fff; }
.condition-card.confirmed { background: var(--ok-soft); border-color: #a3c8af; }
.condition-card.rejected { background: var(--danger-soft); border-color: var(--danger); }
.card-head { display: flex; flex-direction: column; gap: 5px; margin: 0 0 10px; }
.card-type { font-size: .78rem; color: var(--muted); font-weight: 600; }
.card-paraphrase { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-flex; font-size: .78rem; padding: 3px 9px; border-radius: 5px; background: var(--paper-2); color: var(--ink-soft); }
.chip.enf-hard-pending { color: var(--accent-ink); background: var(--accent-soft); }
.chip.enf-soft-high { color: var(--ok); background: var(--ok-soft); }
.chip.enf-soft-normal { color: var(--ink-soft); background: var(--paper-2); }
.chip.enf-unresolved { color: var(--warn); background: var(--warn-soft); }
.chip.approval-yes { background: var(--warn-soft); color: var(--warn); }
.chip.approval-no { color: var(--ink-soft); }
.card-block { margin-top: 12px; }
.card-block h4, .card-block h5 { margin: 0 0 5px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.card-block ul { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--ink-soft); }
.card-structured { border-top: 1px solid var(--line); }
.card-structured summary { min-height: var(--touch-target); padding: 10px 0; font-size: .78rem; color: var(--ink-soft); cursor: pointer; }
.card-structured summary::marker { color: var(--accent-ink); }
/* Condition details wrap at spaces and stay fully visible at every width and
   text size: no hidden sideways scrolling (the reflow contract). break-word,
   not anywhere, keeps rule codes whole whenever they fit on a line (HS-F14). */
.card-structured pre { font-family: var(--font-code); font-size: .78rem; line-height: 1.7; background: var(--paper); padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
/* app.js and examples.js wrap each ISO date or stamp (2026-09-03T00:00:00+07:00)
   in a .keep-together span. Here it is one atomic box: it stays whole and moves
   to the next line when it fits there, and only a stamp wider than a whole
   line (large text on a narrow phone) wraps inside its own box (LAYOUT-01). */
.card-structured pre .keep-together { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
/* A plain-language caption above the technical codes (home and gallery). */
.card-structured-caption { margin: 0 0 8px; font-size: .78rem; line-height: 1.6; color: var(--ink-soft); }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.card-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch-target); padding: 8px 13px; border: 1px solid var(--field-border); border-radius: 7px; color: var(--ink); background: #fff; font-family: var(--font); font-size: .78rem; font-weight: 600; }
.card-btn:hover { background: var(--paper-2); }
.card-btn.confirm { color: var(--ok); border-color: #4b7d60; }
.card-btn.confirm[aria-pressed="true"] { color: #fff; background: var(--ok); border-color: var(--ok); }
.card-btn.reject[aria-pressed="true"] { color: #fff; background: var(--danger); border-color: var(--danger); }
.card-btn.strength { margin-left: auto; color: var(--ink-soft); border-color: var(--field-border); font-weight: 400; }
.review-footer { padding-top: 16px; }
.review-footer p { margin: 0 0 12px; font-size: .76rem; color: var(--ink-soft); }
.review-footer .review-status { padding: 11px 13px; border-left: 3px solid var(--danger); border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: .82rem; }
.review-footer .btn { width: 100%; }

/* Team and settings, with a clear empty roster and checked result state. */
.team-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sched-block-title { margin: 0 0 14px; font-size: .93rem; font-weight: 600; }
.team-heading .sched-block-title { margin: 0; }
.team-count { padding: 2px 8px; border-radius: 6px; color: var(--accent-ink); background: var(--accent-soft); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sched-block { margin-bottom: 24px; }
.sched-block + .sched-block { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.sched-empty { padding: 16px; border-radius: 8px; margin: 0; font-size: .82rem; line-height: 1.8; color: var(--ink-soft); background: var(--paper); border: 1px dashed #d3c6b6; }
.empty-link { display: inline-flex; min-height: var(--touch-target); align-items: center; padding: 6px 0; font-size: .8rem; text-decoration: none; }
.empty-link:hover { text-decoration: underline; }
.sched-team { display: flex; flex-wrap: wrap; gap: 8px; }
.team-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-width: 0; align-items: start; gap: 8px; padding: 5px 8px 5px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf9; }
.team-member-rules { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.team-member-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; row-gap: 2px; min-height: var(--touch-target); padding-block: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.team-member-rules > summary { position: relative; cursor: pointer; list-style: none; border-radius: 6px; padding-inline-start: 18px; padding-inline-end: calc(2.5rem + 16px); }
html:lang(en) .team-member-rules > summary { padding-inline-end: calc(3.85rem + 12px); }
.team-member-rules > summary::-webkit-details-marker { display: none; }
.team-member-rules > summary::before { content: ""; position: absolute; inset-inline-start: 3px; top: calc(10px + .72em - 3.5px); width: 7px; height: 7px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); transition: transform .15s ease; }
.team-member-rules[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.team-member-rules > summary:hover .team-chip-count { text-decoration: underline; }
.team-rule-list { margin: 0 0 8px; padding: 10px 4px 2px 1.25rem; border-top: 1px solid var(--line-soft); font-size: .88rem; line-height: 1.65; overflow-wrap: anywhere; }
.team-rule-list li + li { margin-top: 10px; }
.team-rule-level { display: block; width: fit-content; max-width: 100%; margin-top: 4px; padding: 2px 9px; border-radius: 5px; font-size: .78rem; font-weight: 500; line-height: 1.5; background: var(--paper-2); color: var(--ink-soft); }
.team-rule-level.enf-hard-pending { color: var(--accent-ink); background: var(--accent-soft); }
.team-rule-level.enf-soft-high { color: var(--ok); background: var(--ok-soft); }
.team-rule-level.enf-soft-normal { color: var(--ink-soft); background: var(--paper-2); }
.team-chip-name { font-size: .88rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; unicode-bidi: isolate; }
.team-chip-count { display: inline-block; max-width: 100%; font-size: .8rem; color: var(--accent-ink); }
.team-chip-remove { grid-column: 2; grid-row: 1; z-index: 1; align-self: start; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: var(--touch-target); min-height: var(--touch-target); padding: 5px 6px; border: 0; background: transparent; border-radius: 6px; color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.team-chip-remove:hover { color: var(--danger); background: var(--danger-soft); }
.sched-shifts { display: grid; gap: 10px; }
/* The three rows are separate grids, so the name column is one fixed width
   for all of them (the Start fields stay aligned). It is set in rem so it
   grows with the text size: 4.375rem is 70px at the default 16px (LAYOUT-06). */
.sched-shift-row { display: grid; grid-template-columns: 4.375rem repeat(2, minmax(0, 1fr)); align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.sched-shift-row:last-child { border-bottom: 0; }
.sched-shift-name { display: flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 500; }
/* flex: none keeps the colour dot (the roster legend) at 7px when a long
   label such as "Morning" fills its column. */
.sched-shift-name::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #dc7c29; }
.sched-shift-row:nth-child(2) .sched-shift-name::before { background: #ad8b58; }
.sched-shift-row:nth-child(3) .sched-shift-name::before { background: #687b83; }
.sched-shift-start-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.sched-shift-start, .sched-shift-end, #sched-days { min-height: var(--touch-target); padding: 7px 9px; border: 1px solid var(--field-border); border-radius: 7px; color: var(--ink); background: #fff; font-family: var(--font); font-size: .88rem; font-variant-numeric: tabular-nums; }
.sched-shift-hours { justify-self: end; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sched-days-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: .83rem; }
#sched-days { width: 74px; }
.sched-rest-option { margin-top: 8px; }
.sched-rest-help { margin: 0; }
.sched-month-coverage { margin: 8px 0; font-weight: 600; }
.sched-period { width: 100%; display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
#sched-generate { width: 100%; }
.sched-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sched-actions:has(> [hidden]:only-child) { display: none; }
#sched-results .sched-actions { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 16px; }
#sched-print { background: var(--accent-soft); color: var(--accent-ink); border-color: #b05e1a; }
#sched-print:hover { background: #ffddb9; border-color: #8f4710; }
.schedule-empty { display: flex; align-items: center; flex-direction: column; margin-top: 22px; padding: 26px 14px 14px; border-top: 1px solid var(--line-soft); text-align: center; }
.empty-calendar { display: grid; grid-template-columns: repeat(3, 9px); gap: 5px; border: 1px solid #d9caba; border-top: 6px solid #f0cfa8; padding: 10px 9px; border-radius: 7px; margin-bottom: 16px; }
.empty-calendar span { width: 9px; height: 8px; border-radius: 2px; background: #ede3d7; }
.empty-calendar span:nth-child(2), .empty-calendar span:nth-child(6) { background: #f5bb7c; }
.schedule-empty h3 { font-size: .85rem; font-weight: 500; margin: 0 0 4px; color: var(--ink-soft); }
.schedule-empty p { margin: 0; font-size: .78rem; color: var(--muted); }
.sched-results { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 23px; }
.roster-output { grid-column: 1 / -1; margin-top: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-pop); min-width: 0; }
.roster-output .demo-results-title { font-size: 1.2rem; }
.roster-output .sched-grid th, .roster-output .sched-grid td { padding: 14px 18px; }
.roster-output .sched-person { font-size: .85rem; }
.roster-scroll-hint { margin: 0 0 7px; font-size: .78rem; color: var(--muted); }
.sched-grid-wrap { overflow-x: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7b79c var(--paper); border: 1px solid var(--line); border-radius: 9px; background: #fff; margin: 0 0 14px; }
.sched-grid { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
.sched-grid th, .sched-grid td { border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); padding: 11px 12px; text-align: left; vertical-align: top; }
.sched-grid th:last-child, .sched-grid td:last-child { border-right: 0; }
.sched-grid tr:last-child td, .sched-grid tr:last-child th { border-bottom: 0; }
.sched-grid thead th { background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; font-weight: 600; box-shadow: inset 0 -1px 0 var(--line), 0 -1px 0 var(--accent-soft); }
.sched-grid thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line), 0 -1px 0 var(--accent-soft); }
.sched-col-name { font-size: .84rem; font-weight: 700; color: var(--ink-deep); }
.sched-col-time { display: inline-block; font-size: .75rem; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.sched-grid .sched-day-cell { position: sticky; left: 0; z-index: 1; white-space: nowrap; background: #fcfaf7; font-size: .78rem; font-weight: 500; box-shadow: inset -1px 0 0 var(--line); }
@media screen {
  .sched-grid-wrap:has(tbody tr:nth-child(8)) { max-block-size: 70vh; }
  .sched-grid thead th { position: sticky; top: 0; z-index: 2; }
  .sched-grid thead th:first-child { z-index: 3; }
}
.sched-grid td.sched-cell-night { background: #f6f7f7; }
.sched-person { display: inline-block; background: #fff0de; color: var(--accent-ink); border-radius: 5px; padding: 3px 7px; margin: 2px 0; font-size: .78rem; overflow-wrap: anywhere; unicode-bidi: isolate; }
.sched-verify { font-size: .79rem; }
.sched-verify-note { background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: 7px; margin: 0 0 12px; }
.sched-verify-note.partial { color: var(--warn); background: var(--warn-soft); }
.sched-verify-label { font-weight: 600; font-size: .8rem; margin: 14px 0 6px; }
.sched-verify-gaps > summary { cursor: pointer; min-height: var(--touch-target); display: flex; align-items: center; gap: 10px; list-style: none; }
.sched-verify-gaps > summary::-webkit-details-marker { display: none; }
/* display:flex drops the native disclosure marker in every engine, so the
   folded gap list draws its own chevron: right while folded, down when open. */
.sched-verify-gaps > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 3px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); transition: transform .15s ease; }
.sched-verify-gaps[open] > summary::before { transform: rotate(45deg); }
.sched-verify-gaps > summary:hover { color: var(--accent-ink); }
/* Plain copy of the folded gap rows, shown only in print (see @media print). */
.sched-verify-gaps-print { display: none; }

/* Star rating + comment after an AI answer (signed-in only).
   On --paper-2 (#fff0e1): unset --ink-soft (#6e4f3d) is 6.60:1 and
   chosen --accent-strong (#b8320d) is 5.37:1. Outline (☆) vs filled
   (★) glyphs keep the two states distinct without colour. */
.feedback-box { margin-top: 18px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.feedback-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-deep); }
.feedback-stars { display: flex; width: fit-content; gap: 4px; margin-bottom: 12px; border-radius: 999px; }
.feedback-stars[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.feedback-star { width: var(--touch-target); height: var(--touch-target); border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.7rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.feedback-star.on { color: var(--accent-strong); }
.feedback-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); }
.feedback-comment { width: 100%; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); padding: 10px 12px; resize: vertical; }
.feedback-submit { margin-top: 12px; }
.feedback-status { margin: 10px 0 0; font-size: .9rem; color: var(--danger); overflow-wrap: anywhere; }
.feedback-status:empty { margin: 0; }
.feedback-thanks { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.sched-verify ul { margin: 0; padding-left: 18px; }
.sched-verify-hint { margin: 14px 0 0; color: var(--ink-soft); font-size: .77rem; }
.sched-verify-hint.sched-rest-note { margin: 0 0 12px; }
.v-hard { color: var(--danger); }
.v-gap { color: var(--warn); }
.v-soft, .v-na { color: var(--ink-soft); }
.workspace-session { text-align: center; color: var(--muted); font-size: .78rem; margin: 20px 0 0; }

/* Secondary guidance stays below the working interface. */
.section { padding: 52px 0; }
.section-title { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; line-height: 1.5; }
.section-sub { color: var(--ink-soft); font-size: .95rem; max-width: 70ch; margin: 0 0 28px; }
.how { border-top: 1px solid var(--line); background: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-card { border-top: 2px solid #f8c58f; padding: 16px 0 0; }
.how-card h3 { margin: 0 0 8px; font-size: .93rem; font-weight: 600; }
.how-card p { margin: 0; font-size: .83rem; color: var(--ink-soft); }
.principle { padding: 38px 0 46px; background: #fff; }
.principle .section-kicker { font-size: .8rem; color: var(--accent-ink); }
.principle-quote { font-size: 1.4rem; font-weight: 600; line-height: 1.6; margin: 0 0 24px; max-width: 62ch; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle-card { padding: 20px; border-radius: 10px; background: var(--paper); }
.principle-card h3 { font-size: .95rem; font-weight: 600; margin: 0 0 7px; }
.principle-card p { font-size: .83rem; margin: 0; color: var(--ink-soft); }
.principle-note { font-size: .78rem; color: var(--ink-soft); margin: 20px 0 0; }
.product-details { margin-top: 24px; margin-bottom: 20px; }
.product-details > summary { min-height: var(--touch-target); padding: 18px 0; border-block: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.product-details .container { padding: 0; }
.product-details .section { padding: 32px 0 8px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* app.js builds each tile as icon, h3, p. The icon holds the first column and
   the title sits above its description in the second, so short Thai titles
   are not squeezed into a narrow column beside the text. */
.feature-tile { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; padding: 20px; background: #fff; border-radius: 10px; }
.feature-tile > .feature-icon { grid-row: 1 / span 2; }
.feature-tile > h3, .feature-tile > p { grid-column: 2; }
.feature-icon, .deployment-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; color: var(--accent-ink); background: var(--accent-soft); }
.feature-icon svg, .deployment-icon svg { width: 20px; height: 20px; }
.feature-tile h3, .vertical-tile h3, .deployment-tile h3 { font-size: .9rem; font-weight: 600; margin: 0 0 6px; }
.feature-tile p, .vertical-tile p, .deployment-tile p { color: var(--ink-soft); font-size: .8rem; margin: 0; }
.verticals-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.vertical-tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 15px; }
.deployment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deployment-tile { display: flex; flex-direction: column; gap: 12px; background: #fff; padding: 20px; border-radius: 10px; }
.cta { padding: 30px 40px 40px; }
.cta-inner { background: var(--accent-strong); color: #fff; padding: 34px; border-radius: 16px; }
.cta-inner .section-title { font-size: 1.35rem; }
.cta-inner .section-sub { color: #fff1e1; font-size: .88rem; margin-bottom: 18px; }
.cta-inner .btn-primary { background: #fff; color: var(--accent-strong); }
.cta-inner .btn-primary:hover { background: var(--accent-soft); }
.cta-inner :focus-visible { outline-color: #fff; }
.cta-note { color: #fff1e1; font-size: .78rem; margin: 18px 0 0; }
.site-footer { padding: 30px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.footer-brand { display: grid; grid-template-columns: 80px 1fr; gap: 0 18px; align-items: center; }
.footer-logo { width: 80px; height: 80px; object-fit: contain; grid-row: 1 / 3; background: #fff; }
.footer-product { font-family: var(--font-brand); font-size: 1.1rem; font-weight: 700; margin: 0; align-self: end; }
.footer-tagline { font-size: .78rem; color: var(--ink-soft); max-width: 45ch; margin: 3px 0 0; align-self: start; }
.footer-legal { max-width: 48ch; }
.footer-legal p { margin: 0 0 4px; font-size: .78rem; color: var(--muted); }

/* Companion pages share the same identity and rhythm. */
.examples-page { padding-top: 40px; }
.example-how { background: var(--accent-soft); border-radius: 12px; padding: 22px 26px; margin-bottom: 30px; }
.example-steps { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: .87rem; }
.example-steps li { margin-bottom: 6px; }
.example-steps li::marker { color: var(--accent-ink); font-weight: 600; }
.example-note { border-top: 1px solid #efd5b4; padding-top: 12px; margin: 14px 0 0; color: var(--ink-soft); font-size: .8rem; }
.examples-list { display: grid; gap: 20px; }
.examples-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 220px) auto; gap: 12px 16px; align-items: end; margin: 28px 0 20px; }
.examples-filters label { display: block; margin-bottom: 7px; font-size: .83rem; font-weight: 600; }
.examples-filters input, .examples-filters select { width: 100%; min-width: 0; min-height: var(--touch-target); border: 1px solid var(--field-border); border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 12px; font: inherit; font-size: .86rem; }
#examples-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%236e4f3d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.example-language-field { position: relative; }
.examples-filters select { -webkit-appearance: none; appearance: none; background-image: none; min-height: 47px; padding-right: 34px; }
.examples-filters select::picker-icon { display: none; }
.example-language-field::after { content: ""; position: absolute; right: 16px; bottom: 20px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; }
.examples-filters .card-btn { min-height: 47px; }
/* Inactive reads as inactive: no fill, faint rule and softer ink (3.98:1 on
   --paper), unlike the filled hover state of the enabled button. */
.examples-filters .card-btn:disabled,
.examples-filters .card-btn:disabled:hover { color: #8f7866; background: transparent; border-color: var(--line); box-shadow: none; }
.examples-count { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.examples-empty { padding: 32px; border: 1px dashed #d3c6b6; border-radius: 14px; background: #fffdf9; }
.examples-empty h2 { margin: 0 0 8px; font-size: 1.1rem; }
.examples-empty p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.example-item { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 20px; padding: 28px; min-width: 0; }
.example-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; }
.example-desc { font-size: .86rem; color: var(--ink-soft); margin: 0 0 22px; }
.example-io { min-width: 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.example-input,
.example-output { min-width: 0; }
.example-io h4 { margin: 0 0 10px; font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.example-output .card-paraphrase { font-size: .95rem; color: var(--ink); margin: 0; font-weight: 600; }
.example-io > div > h3 { font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.example-actions .try-btn { text-decoration: none; background: var(--accent-soft); color: var(--accent-ink); border-color: #b05e1a; }
.example-input pre { font-family: var(--font-code); font-size: .84rem; white-space: pre-wrap; word-break: break-word; background: var(--paper); border-left: 3px solid var(--accent); border-radius: 6px; color: var(--ink); padding: 16px; margin: 0 0 14px; line-height: 1.75; }
/* Thai request text is a sentence, not a code: in the code face its spaces
   and digits take monospace advances around proportional Thai glyphs and the
   gaps go uneven. It uses the Thai UI face; monospace stays for codes. */
.example-input pre:lang(th) { font-family: var(--font-thai); font-size: .9rem; }
.example-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.example-readonly { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.example-dependency-notice { padding: 32px; border: 1px dashed #d3c6b6; border-radius: 14px; background: #fffdf9; color: var(--ink-soft); font-size: .86rem; margin: 0; }
.notfound { min-height: 100dvh; padding: 24px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at top right, #ffd2a8, transparent 60%), var(--paper); }
.notfound-card { position: relative; background: #fff; width: 100%; max-width: 600px; padding: 76px 40px 40px; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 20px; box-shadow: var(--shadow-pop-lg); text-align: center; }
.notfound-lang { position: absolute; right: 16px; top: 16px; }
.notfound-logo { width: 104px; height: 104px; object-fit: contain; margin: 0 auto 16px; }
.notfound-code { font-family: var(--font-brand); font-size: 5.5rem; line-height: 1.15; color: var(--accent-strong); margin: 0 0 14px; font-weight: 700; }
.notfound-card h1 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 10px; line-height: 1.6; }
.notfound-lead, .notfound-sub { color: var(--ink-soft); font-size: .9rem; margin: 0 0 12px; }
.notfound-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Reveal hooks stay compatible; working content never waits for animation. */
html.js .reveal { opacity: 1; transform: none; }
@media (max-width: 1200px) {
  .hero::before { background: linear-gradient(295deg, var(--accent) 0 3%, transparent 3% 100%), linear-gradient(295deg, transparent 0 4%, #ffd2a8 4% 6%, transparent 6% 100%); }
  .nav-inner { gap: 16px; }
  .primary-nav a { padding-inline: 9px; font-size: .8rem; }
  .nav-right { gap: 10px; }
  .brand-subtitle { font-size: .75rem; }
  .hero-inner { gap: 40px; }
  .workflow-bar { align-items: flex-start; flex-direction: column; gap: 10px; }
  #workflow-status { margin-inline-start: 0; }
  /* 4.5rem (72px at 16px) fits the 7px dot, its gap and "Morning" (about
     51px) in English, and scales with the text size (LAYOUT-06). */
  .sched-shift-row { grid-template-columns: 4.5rem repeat(2, minmax(0, 1fr)); }
  .sched-shift-hours { grid-column: 2; justify-self: start; margin-top: -10px; }
}
@media (max-width: 960px) {
  .container { padding-inline: 28px; }
  .nav-inner { min-height: 72px; }
  .brand-logo { width: 46px; height: 46px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta-desktop { display: none; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 5px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 16px rgb(73 44 16 / 6%); padding: 14px 28px 20px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { justify-content: flex-start; padding: 12px; font-size: .9rem; }
  .primary-nav .nav-cta { display: flex; justify-content: center; margin-top: 6px; }
  .hero { padding: 32px 0; }
  .hero-inner { grid-template-columns: 1.2fr .8fr; gap: 28px; }
  .hero-title { font-size: 2rem; }
  .hero-title-end { display: block; }
  .roster-preview { padding: 16px; }
  .preview-heading { flex-wrap: wrap; }
  .preview-month { width: 100%; margin: 0; }
  .hero-emblem { right: -10px; width: 150px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 28px; }
  .workspace-section-inner { padding: 24px; }
  .sched-shift-row { grid-template-columns: 6.25rem repeat(2, minmax(0, 1fr)); }
  .sched-shift-hours { grid-column: auto; justify-self: end; margin: 0; }
  .how-grid, .features-grid, .deployment-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { gap: 14px; }
  .example-io { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .cta { padding-inline: 28px; }
  .cta-inner { padding: 28px; }
}
@media (max-width: 600px) {
  :root { --anchor-offset: 84px; }
  .container { padding-inline: 20px; }
  .nav-inner { gap: 8px; min-height: 68px; }
  .brand { gap: 7px; flex-shrink: 1; min-width: var(--touch-target); }
  .brand-copy { min-width: 0; }
  .brand-logo { width: 40px; height: 40px; }
  .wordmark { font-size: 1.15rem; }
  .brand-subtitle { font-size: .75rem; line-height: 1.3; }
  .nav-right { gap: 0; flex-shrink: 0; }
  .lang-group { padding: 0; }
  .lang-btn { padding: 0 7px; }
  .hero-inner { display: block; }
  .hero { padding: 26px 0 30px; }
  .hero-badge { font-size: .78rem; margin-bottom: 12px; }
  .hero-title { font-size: 2rem; line-height: 1.42; }
  .hero-title-end { display: block; font-size: 1.25rem; }
  .hero-sub { font-size: .88rem; margin-bottom: 20px; }
  .hero-visual { display: none; }
  .hero-actions .btn { flex: 1 1 160px; padding-inline: 12px; font-size: .84rem; }
  .workspace { padding-top: 24px; padding-bottom: 30px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .workspace-period { align-items: flex-start; border-left: 3px solid #f6b36e; padding-left: 11px; }
  .workflow-bar { padding: 14px; margin-bottom: 22px; }
  .workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; width: 100%; gap: 8px; }
  .workflow-steps li { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; font-size: .78rem; line-height: 1.45; }
  .workflow-steps li + li::before { display: none; }
  #workflow-status { font-size: .78rem; }
  .workspace-section-inner > .section-title { font-size: 1.15rem; }
  .workspace-section-inner > .section-sub { font-size: .78rem; }
  .workspace-grid { padding: 10px; gap: 14px; border-radius: 22px; }
  .workspace-section-inner { padding: 18px; border-radius: 16px; }
  .roster-output { padding: 16px; border-radius: 13px; }
  .roster-output .sched-grid th, .roster-output .sched-grid td { padding: 11px 12px; }
  .sched-grid thead th:first-child, .sched-grid .sched-day-cell { width: 1%; }
  #sched-results .sched-actions .btn { flex: 1 1 140px; }
  .demo-input { min-height: 150px; }
  .demo-chips { gap: 6px; }
  .chip-btn { font-size: .78rem; padding-inline: 10px; }
  .demo-actions .btn-primary { width: 100%; }
  #demo-reset { padding-left: 0; }
  .condition-card { padding: 14px; }
  .card-paraphrase { font-size: .94rem; }
  .card-btn { padding-inline: 11px; }
  .card-btn.strength { margin-left: 0; }
  /* 3.5rem / 4.5rem are 56px / 72px at 16px. minmax(0, 1fr) keeps the row
     inside the panel when large text makes the name column wider: the Start
     label then wraps above its field, but only when "Start" and the field at
     its minimum width no longer fit side by side (flex basis 0). At the
     default text size the row is unchanged down to 320px (LAYOUT-06). */
  .sched-shift-row { grid-template-columns: 3.5rem repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* English shift names are longer than the Thai ones (เช้า, บ่าย, ดึก). */
  html:lang(en) .sched-shift-row { grid-template-columns: 4.5rem repeat(2, minmax(0, 1fr)); }
  .sched-shift-hours { grid-column: 2; justify-self: start; margin: -5px 0 0; }
  .sched-shift-start-label { justify-content: space-between; flex-wrap: wrap; }
  .sched-shift-start { flex: 1 1 0; max-width: 144px; width: 100%; }
  .review-footer .btn { font-size: .82rem; }
  .section { padding: 34px 0; }
  .section-title { font-size: 1.4rem; }
  .section-sub { font-size: .86rem; margin-bottom: 22px; }
  .how-grid, .principle-grid, .features-grid, .deployment-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-card { padding-top: 12px; }
  .principle { padding: 10px 0 30px; }
  .principle-quote { font-size: 1.14rem; }
  .principle-card { padding: 17px; }
  .cta { padding: 12px 20px 30px; }
  .cta-inner { padding: 24px; }
  .cta-inner .section-title { font-size: 1.2rem; }
  .footer-inner { gap: 22px; }
  .footer-brand { gap: 0 12px; }
  .example-item { padding: 20px; }
  .examples-filters { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .example-search-field { grid-column: 1 / -1; }
  .examples-empty { padding: 22px; }
  .example-how { padding: 20px; }
  .example-title { font-size: 1.08rem; }
  .notfound { padding: 16px; }
  .notfound-card { padding: 76px 22px 30px; }
}
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .brand-copy { display: none; }
  .nav-inner { gap: 8px; }
  .hero-title { font-size: 1.8rem; }
  .hero-title-end { font-size: 1.15rem; }
  .workspace-section-inner { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-progress-bar { width: 100%; }
}

/* Roster settings stay in the same reading order at all widths. */
#demo-add-unrestricted { margin: 8px 0 18px; }
.sched-days-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.sched-days-row input { width: fit-content; max-width: 100%; min-height: 44px; }
.sched-days-row .sched-period { grid-column: 1 / -1; }
.sched-shift-row { column-gap: 8px; }
.sched-shift-start-label { display: grid; justify-content: stretch; min-width: 0; gap: 4px; }
.sched-shift-row input[type="time"] { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; }
@media (max-width: 480px) {
  .sched-shift-row, html:lang(en) .sched-shift-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sched-shift-row .sched-shift-name, .sched-shift-row .sched-shift-hours { grid-column: 1 / -1; }
  .sched-days-row { grid-template-columns: minmax(0, 1fr); }
}
.sched-shift-hours { grid-column: 2 / -1; justify-self: start; margin: 0; }
#sched-month-options[hidden], #demo-add-unrestricted[hidden] { display: none; }

/* ---------- Which line of work the person does ----------
   The chooser sits first in the workspace because it changes the words the
   rest of the workspace uses. It must stay legible for a 60-year-old reading
   Thai on a ward phone, so nothing here drops below 0.82rem.

   Each native radio is stretched, invisible, over its whole chip. The input
   itself is then the 44px target — which is what the repo's touch-target
   specs measure — while keeping native semantics, arrow-key movement inside
   the group, and its screen-reader role. The visible dot is drawn. */
.role-picker { padding: 18px 20px; margin-bottom: 22px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.role-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.role-sub { margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); max-width: 62ch; }
.profession-suggestion { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.suggestion-summary { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch-target, 44px); padding: 6px 12px; border: 1px solid var(--field-border); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.suggestion-summary::-webkit-details-marker { display: none; }
.suggestion-summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; line-height: 1; }
.profession-suggestion[open] > .suggestion-summary { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-ink); }
.profession-suggestion[open] > .suggestion-summary::before { content: "−"; }
.suggestion-summary:hover { border-color: #d19a67; background: var(--accent-soft); color: var(--accent-ink); }
.suggestion-summary:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.suggestion-form { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); max-width: 620px; }
.suggestion-field { margin-bottom: 12px; }
.suggestion-field .demo-person, .suggestion-textarea { width: 100%; max-width: 100%; margin-bottom: 0; box-sizing: border-box; }
/* display: block drops the inline baseline gap under the textarea, so its
   message sits as close to it as the inputs' messages do (LAYOUT-03). */
.suggestion-textarea { display: block; min-height: 96px; padding: 10px 12px; border: 1px solid var(--field-border); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.6; resize: vertical; }
.suggestion-input[aria-invalid="true"], .suggestion-textarea[aria-invalid="true"] { border-color: var(--danger, #b42318); }
/* These lines carry e-mail addresses, which have no break point of their own;
   anywhere lets one wrap inside the form at large text sizes (LAYOUT-05). */
.suggestion-disclosure { margin: 4px 0 12px; font-size: .85rem; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
.suggestion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.suggestion-submit { min-height: var(--touch-target, 44px); }
.suggestion-status { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.5; color: var(--accent-ink); overflow-wrap: anywhere; }
.suggestion-status:empty { display: none; }
.suggestion-status[data-tone="error"] { color: var(--danger, #b42318); }
.suggestion-status[data-tone="ok"] { color: var(--ok, #166534); }
@media (max-width: 600px) {
  .suggestion-form { padding: 12px; }
  .suggestion-actions { flex-direction: column; align-items: stretch; }
  .suggestion-submit { width: 100%; justify-content: center; }
}
.role-choices { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; border: 0; min-width: 0; }
.role-chip { position: relative; display: inline-flex; max-width: 100%; }
.role-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.role-chip span { display: inline-flex; align-items: center; gap: 9px; min-height: var(--touch-target); padding: 8px 16px 8px 12px; border: 1px solid var(--field-border); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; transition: background .15s, border-color .15s, color .15s; }
/* The ring is the control's boundary, so it takes the strong ink (7:1), not the tint. */
.role-chip span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--ink-soft); border-radius: 50%; background: #fff; }
.role-chip:hover span { border-color: #d19a67; background: var(--accent-soft); color: var(--accent-ink); }
.role-chip input:checked + span { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.role-chip input:checked + span::before { border-color: var(--accent-strong); background: radial-gradient(circle, var(--accent-strong) 0 4px, #fff 4.5px); }
.role-chip input:focus-visible + span { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.role-status { margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: var(--accent-ink); overflow-wrap: anywhere; }
.role-status:empty { margin: 0; }
.role-note { margin: 10px 0 0; font-size: .875rem; color: var(--muted); max-width: 72ch; }

/* The worked example for the chosen role, offered next to the generic chips. */
.role-hint { margin: 16px 0 0; padding: 14px 16px; border: 1px dashed #d19a67; border-radius: 10px; background: var(--accent-soft); }
.role-hint-label { margin: 0 0 7px; font-size: .85rem; font-weight: 600; color: var(--accent-ink); }
.role-hint-text { margin: 0 0 12px; font-size: .95rem; line-height: 1.75; color: var(--ink); border: 0; padding: 0; }
.role-hint .btn { background: #fff; }

/* ---------- Email one-time-code sign-in and the PDPA notice ---------- */
.account-inner { max-width: 760px; }
/* The intro explains a privacy choice, so it keeps 14px+ even where the
   shared section intro shrinks on small screens. */
.account .section-sub { font-size: max(.9rem, 14px); }
.account-panel { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-pop); }
/* This badge says sign-in is unavailable here, so it is read at body size,
   not as a 0.7rem status chip. */
.account-panel > .engine-badge { margin-bottom: 16px; font-size: .88rem; padding: 8px 12px; line-height: 1.6; }
.account-email-row { margin-bottom: 18px; max-width: 420px; }
.account-email-row .demo-person { margin-bottom: 0; }
.account-code-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 520px; }
/* The 12px before the buttons lives on the buttons, so a wrong-code message
   sits 6px under the code field and 12px above Verify (LAYOUT-03). */
.account-code-row .demo-person { max-width: 220px; margin-bottom: 0; }
.account-code-row .demo-actions { margin-top: 12px; }
.account-code { font-size: 1.2rem; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.account-identity { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.account-quota { margin: 0 0 6px; font-size: .95rem; line-height: 1.7; color: var(--ink); }
.account-subscription { margin: 0 0 16px; font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }
/* Inline confirm / cancel row shown before a destructive account action.
   The question is a <p> (p.account-confirm-prompt in index.html) in --ink on
   --danger-soft (14.9:1); the confirm button is .btn.btn-danger and the
   cancel a .btn-ghost, both inside a .demo-actions row. */
.account-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--danger); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--ink); }
.account-confirm > p, .account-confirm-prompt { flex: 1 1 100%; margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }

/* The native checkbox covers the full label and retains keyboard focus.
   Its companion span draws the visible box and focus ring. */
.consent-row, .sched-rest-option { position: relative; display: flex; min-height: var(--touch-target); }
.consent-row { margin: 2px 0; }
.consent-row input, .sched-rest-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.consent-row span, .sched-rest-option > span { display: flex; align-items: flex-start; gap: 12px; padding: 9px 4px; font-size: .92rem; line-height: 1.7; color: var(--ink); }
.sched-rest-option > span { align-items: center; font-size: .83rem; }
.consent-row span::before, .sched-rest-option > span::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--ink-soft); border-radius: 6px; background: #fff center / 16px no-repeat; }
.consent-row input:checked + span::before, .sched-rest-option input:checked + span::before { border-color: var(--accent-strong); background-color: var(--accent-strong); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.consent-row input:focus-visible + span, .sched-rest-option input:focus-visible + span { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }
.consent-row input[aria-invalid="true"] + span::before { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
/* The Thai line-break pass wraps protected words of the label in spans of its
   own (app.js, isConsentLabelText); they stay plain text, never a second box. */
.consent-row span span { display: inline; padding: 0; }
.consent-row span span::before { content: none; }
/* A long protected term (.keep-together-box) stays the atomic box it is
   everywhere else; display: inline above would leave it white-space: normal,
   free to split "ความเป็นส่วน|ตัว" again. */
.consent-row span .keep-together-box { display: inline-block; }
/* Its message lines up with the label text (4px padding + the 28px drawn box,
   whose 2px border sits outside its 24px because ::before is content-box,
   + 12px gap) and keeps clear space before the next checkbox (LAYOUT-03). */
.consent-row + .field-error:not(:empty) { margin: 0 0 10px; padding-left: 44px; }

/* The three points a person must see before consenting stay on the page; the
   rest of the notice is one click away but never hidden behind a link. */
.pdpa-summary { margin: 0 0 14px; padding-left: 20px; font-size: .9rem; line-height: 1.75; color: var(--ink-soft); }
.pdpa-summary li { margin-bottom: 6px; }
.pdpa-details { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.pdpa-details > summary { min-height: var(--touch-target); display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .9rem; font-weight: 600; color: var(--accent-ink); cursor: pointer; list-style: none; }
.pdpa-details > summary::-webkit-details-marker { display: none; }
.pdpa-details > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 3px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); transition: transform .15s ease; }
.pdpa-details[open] > summary::before { transform: rotate(45deg); }
.pdpa-details[open] > summary { border-bottom: 1px solid var(--line); }
.pdpa-title { margin: 14px 14px 8px; font-size: .95rem; font-weight: 700; color: var(--ink); }
/* Several items end with the contact address; it wraps inside the box (LAYOUT-05). */
.pdpa-list { margin: 0 14px 12px; padding-left: 20px; font-size: .88rem; line-height: 1.8; color: var(--ink-soft); overflow-wrap: anywhere; }
.pdpa-list li { margin-bottom: 7px; }
.pdpa-note { margin: 0 14px 14px; font-size: .88rem; color: var(--warn); background: var(--warn-soft); border-radius: 7px; padding: 9px 11px; }

@media (max-width: 600px) {
  .role-picker { padding: 16px; }
  .sched-shift-start, .sched-shift-end, #sched-days, .examples-filters input,
  .examples-filters select, .suggestion-textarea { font-size: 1rem; }
  .role-choices { gap: 8px; }
  .account-panel { padding: 16px; }
  /* On phones the button row takes the full width and the two buttons share
     it (they wrap one per line only where both cannot fit) (LAYOUT-09). */
  .account-confirm > .demo-actions { flex: 1 1 100%; }
  .account-confirm .btn { flex: 1 1 auto; }
}

/* Forced colours repaint backgrounds, which would erase the drawn dot and
   tick. Hand those modes back their native controls instead. */
@media (forced-colors: active) {
  .role-chip input, .consent-row input { position: static; opacity: 1; width: 22px; height: 22px; margin: 12px 0 0 10px; }
  .sched-rest-option input { position: static; opacity: 1; flex: none; width: var(--touch-target); height: var(--touch-target); }
  .role-chip span::before, .consent-row span::before, .sched-rest-option > span::before { display: none; }
  /* Busy and used buttons keep focus with aria-disabled instead of the
     disabled attribute; forced colours drop their author colours, so give
     them the system colour a :disabled button gets (LAYOUT-02). */
  .btn[aria-disabled="true"] { color: GrayText; border-color: GrayText; }
}

/* Without JavaScript the workspace cannot run; say so instead of showing
   inert controls. */
.noscript-note { margin: 0; padding: 14px 18px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; line-height: 1.8; text-align: center; }


@media screen and (scripting: none) {
  .planner-home :is(.nav-toggle, .lang-group, .scroll-progress, .workflow-bar,
    #role, .demo-panel > :not(.demo-more), #schedule .sched-block,
    #schedule .demo-actions, #account-email-row, #account .consent-row,
    #account .demo-actions) { display: none; }
}

@media screen and (max-width: 960px) and (scripting: none) {
  .planner-home .site-header { position: static; }
  .planner-home .nav-inner { height: auto; flex-wrap: wrap; gap: 4px; padding-block: 8px; }
  .planner-home .nav-right { display: none; }
  .planner-home .primary-nav {
    display: flex;
    position: static;
    flex: 1 0 100%;
    flex-flow: row wrap;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .planner-home .primary-nav .nav-cta { display: none; }
}

/* Print the proposed roster and its check result without the app chrome, so
   a scheduler can pin the draft up or file it. Screen layout is untouched. */
@media print {
  .scroll-progress, .skip-link, .site-header, .hero, .workflow-bar,
  .workspace-heading, .workspace-session,
  #demo, #schedule, #account, #how, .principle, .product-details, #cta,
  .site-footer, .sched-actions, .roster-scroll-hint, #sched-feedback,
  #examples-filters, .example-actions { display: none !important; }
  body { background: #fff; }
  .workspace, .workspace-grid, .sched-results { margin: 0; padding: 0; max-width: none; background: #fff !important; border: 0 !important; box-shadow: none !important; }
  .workspace-grid { display: block; }
  .sched-results[hidden] { display: none !important; }
  .sched-grid-wrap { overflow: visible; }
  /* Print CSS cannot force a closed <details> open, so swap the folded
     gap list for the plain copy built next to it from the same rows. The
     recovery hints point at the hidden action buttons; the rest note
     explains the empty slots on the roster itself, so it stays. */
  .sched-verify-gaps { display: none !important; }
  .sched-verify-gaps-print { display: block !important; }
  .sched-verify-hint:not(.sched-rest-note) { display: none !important; }
  .sched-grid { width: 100%; min-width: 0; font-size: 10pt; }
  .sched-grid thead { display: table-header-group; }
  .sched-grid thead th:first-child, .sched-grid .sched-day-cell { position: static; }
  .sched-grid tr, .sched-verify-note { break-inside: avoid; page-break-inside: avoid; }
  .example-item, .condition-card { break-inside: avoid; page-break-inside: avoid; }
  .sched-grid th, .sched-grid td { border: 1px solid #999; padding: 4px 6px; box-shadow: none; }
  .engine-badge, .sched-person, .sched-verify-note { border: 1px solid #999; }
  a { color: inherit; text-decoration: none; }
  /* Paper-only content, such as the roster's period / demo-data header. It
     must sit inside a printed block (for example #sched-results), not inside
     one of the blocks hidden above. */
  .print-only { display: block !important; }
  .print-only[hidden] { display: none !important; }
  .print-empty-notice { margin: 16pt 0; padding: 12pt; border: 1pt solid #999; color: #000; font-size: 11pt; line-height: 1.6; }
  .print-roster-header { margin: 0 0 12pt; padding: 0 0 8pt; border-bottom: 1pt solid #999; color: #000; font-size: 10pt; line-height: 1.5; }
  .print-roster-header > * { margin: 0 0 3pt; }
  .print-roster-header > :first-child { font-family: var(--font-display); font-size: 13pt; font-weight: 700; }
  .print-roster-header > :last-child { margin-bottom: 0; }
}

/* Keep the fallback text available to assistive technology when scripts are disabled. */
.static-fallback { display: none; }

@media (scripting: none) {
  .static-fallback { display: block; }
  .examples-document :is(.nav-toggle, .nav-right, .example-how, .examples-filters),
  .notfound-lang {
    display: none;
  }
  .examples-document .primary-nav a,
  .notfound-actions a {
    flex-direction: column;
    gap: 2px;
  }
  .notfound-card {
    padding-top: 40px;
  }
}
@media (scripting: none) and (max-width: 960px) {
  .examples-document .nav-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 0;
    padding-block: 8px;
  }
  .examples-document .primary-nav {
    display: flex;
    position: static;
    flex-flow: row wrap;
    flex-basis: 100%;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
