/* ==========================================================================
   DTE DESIGN SYSTEM — "SENTRY" / Hệ thống nhận diện Kỷ Nguyên Số
   Brand guideline as code. One source of truth for every DTE application.
   v1.0 — 2026-10-01
   --------------------------------------------------------------------------
   TYPOGRAPHY: all three families carry FULL Vietnamese diacritics.
     Display  : Chakra Petch  (angular / technical headings)
     Mono     : JetBrains Mono (HUD labels, data, numerics)
     Body     : Be Vietnam Pro (Vietnamese-native UI text)
   NOTE: Orbitron / Rajdhani / Share Tech Mono are deliberately NOT used —
         they lack Vietnamese glyph coverage and break Vietnamese text.
   ========================================================================== */

/* Self-hosted fonts — no external requests. Works under strict CSP
   (script-src/style-src 'self') and offline. Vietnamese subsets included. */
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ChakraPetch-400-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;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ChakraPetch-400-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;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ChakraPetch-400-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;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ChakraPetch-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ChakraPetch-500-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;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ChakraPetch-500-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;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ChakraPetch-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ChakraPetch-600-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;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ChakraPetch-600-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;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ChakraPetch-700-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;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ChakraPetch-700-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;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ChakraPetch-700-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;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-300-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-300-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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-300-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;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-400-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-400-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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-400-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;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-500-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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-500-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;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-600-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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-600-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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-300-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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-300-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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-300-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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-400-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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-400-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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-400-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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-500-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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-500-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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-600-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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-600-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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-700-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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-700-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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/BeVietnamPro-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- surfaces ---------------------------------------------------- */
  --dte-void:        #000000;   /* page background */
  --dte-bg:          #050506;
  --dte-panel:       #0A0A0C;   /* card */
  --dte-panel-2:     #101013;   /* elevated card */
  --dte-raised:      #16161A;   /* hover / input */

  /* ---- hairlines --------------------------------------------------- */
  --dte-line:        #1C1C21;
  --dte-line-2:      #26262C;
  --dte-line-hot:    #3A3A43;

  /* ---- text -------------------------------------------------------- */
  --dte-text:        #FFFFFF;
  --dte-text-2:      #B9B9C2;
  --dte-muted:       #7E7E89;
  --dte-dim:         #55555E;

  /* ---- accent (signal orange) -------------------------------------- */
  --dte-accent:      #E8622C;
  --dte-accent-2:    #FF8A4C;
  --dte-accent-dim:  #8A3A1A;
  --dte-accent-glow: rgba(232, 98, 44, 0.35);

  /* ---- status ------------------------------------------------------ */
  --dte-ok:          #4ADE80;
  --dte-warn:        #E3B341;
  --dte-err:         #F0553F;
  --dte-info:        #4C9BFF;

  /* ---- type -------------------------------------------------------- */
  --dte-font-display: 'Chakra Petch', 'Be Vietnam Pro', system-ui, sans-serif;
  --dte-font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --dte-font-body:    'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- geometry ---------------------------------------------------- */
  --dte-r:    2px;      /* sharp, technical — not rounded */
  --dte-r-lg: 3px;
  --dte-gut:  20px;

  /* ---- motion ------------------------------------------------------ */
  --dte-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dte-ease-in:   cubic-bezier(0.6, 0, 0.98, 0.35);
  --dte-fast:      140ms;
  --dte-base:      280ms;
  --dte-slow:      520ms;
}

/* ==========================================================================
   BASE
   ========================================================================== */
.dte-scope, .dte-root {
  background: var(--dte-void);
  color: var(--dte-text);
  font-family: var(--dte-font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient technical grid + vignette, applied to a page shell */
.dte-grid-bg {
  position: relative;
  background-color: var(--dte-void);
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
}
.dte-grid-bg::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 35%, rgba(0,0,0,0.75) 100%);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.dte-display {
  font-family: var(--dte-font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.dte-h1 { font-family: var(--dte-font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: .012em; line-height: 1.08; margin: 0; }
.dte-h2 { font-family: var(--dte-font-display); font-weight: 500; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: .012em; margin: 0; }
.dte-h3 { font-family: var(--dte-font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0; }

/* The signature HUD label: mono, uppercase, wide tracking */
.dte-label {
  font-family: var(--dte-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dte-muted);
}
.dte-label-hot { color: var(--dte-accent); }

/* /MODE style prefixed tag */
.dte-mode {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--dte-font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dte-text-2);
  border-left: 2px solid var(--dte-accent);
  padding: 3px 10px; background: rgba(255,255,255,0.025);
}
.dte-mode b { color: var(--dte-muted); font-weight: 500; }

/* Numeric readout */
.dte-num {
  font-family: var(--dte-font-mono);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.dte-num-xl { font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.dte-num-lg { font-size: 28px; line-height: 1; }
.dte-unit { font-size: .5em; color: var(--dte-muted); margin-left: 2px; vertical-align: super; }

/* ==========================================================================
   STATUS CHIP  (■ ACTIVE)
   ========================================================================== */
.dte-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--dte-font-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dte-text-2);
  border: 1px solid var(--dte-line-2); background: var(--dte-panel);
  padding: 4px 10px; border-radius: var(--dte-r);
}
.dte-chip::before {
  content: ""; width: 6px; height: 6px; background: var(--dte-ok);
  box-shadow: 0 0 8px var(--dte-ok);
  animation: dte-pulse 2.4s var(--dte-ease) infinite;
}
.dte-chip.is-warn::before { background: var(--dte-warn); box-shadow: 0 0 8px var(--dte-warn); }
.dte-chip.is-err::before  { background: var(--dte-err);  box-shadow: 0 0 8px var(--dte-err); }
.dte-chip.is-idle::before { background: var(--dte-dim);  box-shadow: none; animation: none; }

@keyframes dte-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ==========================================================================
   PANEL / CARD — hairline box with corner ticks
   ========================================================================== */
.dte-panel {
  position: relative;
  background: var(--dte-panel);
  border: 1px solid var(--dte-line);
  border-radius: var(--dte-r-lg);
  padding: 18px 20px;
  transition: border-color var(--dte-base) var(--dte-ease), background var(--dte-base) var(--dte-ease);
}
.dte-panel:hover { border-color: var(--dte-line-hot); background: var(--dte-panel-2); }

/* corner registration ticks — the HUD signature */
.dte-panel.has-ticks::before,
.dte-panel.has-ticks::after {
  content: ""; position: absolute; width: 7px; height: 7px; pointer-events: none;
  border-color: var(--dte-accent); opacity: .55;
  transition: opacity var(--dte-base) var(--dte-ease);
}
.dte-panel.has-ticks::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.dte-panel.has-ticks::after  { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.dte-panel.has-ticks:hover::before,
.dte-panel.has-ticks:hover::after { opacity: 1; }

.dte-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}

/* ==========================================================================
   BUTTONS / INPUTS
   ========================================================================== */
.dte-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--dte-font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dte-text); background: transparent;
  border: 1px solid var(--dte-line-hot); border-radius: var(--dte-r);
  padding: 9px 18px; cursor: pointer; position: relative; overflow: hidden;
  transition: color var(--dte-fast) var(--dte-ease), border-color var(--dte-fast) var(--dte-ease);
}
.dte-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--dte-accent);
  transform: scaleX(0); transform-origin: left; z-index: -1;
  transition: transform var(--dte-base) var(--dte-ease);
}
.dte-btn:hover { border-color: var(--dte-accent); color: #fff; }
.dte-btn:hover::before { transform: scaleX(1); }
.dte-btn-primary { background: var(--dte-accent); border-color: var(--dte-accent); color: #fff; }
.dte-btn-primary:hover { background: var(--dte-accent-2); border-color: var(--dte-accent-2); }

.dte-input {
  width: 100%; background: var(--dte-bg); color: var(--dte-text);
  border: 1px solid var(--dte-line-2); border-radius: var(--dte-r);
  padding: 10px 12px; font-family: var(--dte-font-body); font-size: 14px;
  transition: border-color var(--dte-fast) var(--dte-ease), box-shadow var(--dte-fast) var(--dte-ease);
}
.dte-input::placeholder { color: var(--dte-dim); }
.dte-input:focus {
  outline: none; border-color: var(--dte-accent);
  box-shadow: 0 0 0 3px var(--dte-accent-glow);
}

/* ==========================================================================
   DATA VIZ PRIMITIVES
   ========================================================================== */
.dte-meter { height: 3px; background: var(--dte-line); border-radius: 2px; overflow: hidden; }
.dte-meter > i {
  display: block; height: 100%; background: var(--dte-accent);
  transform-origin: left; animation: dte-meter-in var(--dte-slow) var(--dte-ease) both;
}
@keyframes dte-meter-in { from { transform: scaleX(0) } to { transform: scaleX(1) } }

.dte-sparkbar { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.dte-sparkbar > i {
  flex: 1; background: var(--dte-raised); border-radius: 1px;
  transform-origin: bottom; animation: dte-bar-in var(--dte-base) var(--dte-ease) both;
}
.dte-sparkbar > i.is-hot { background: var(--dte-accent); }
@keyframes dte-bar-in { from { transform: scaleY(0) } to { transform: scaleY(1) } }

/* table */
.dte-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dte-table th {
  font-family: var(--dte-font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dte-muted); font-weight: 500;
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dte-line-2);
}
.dte-table td { padding: 11px 12px; border-bottom: 1px solid var(--dte-line); color: var(--dte-text-2); }
.dte-table tr:hover td { background: rgba(255,255,255,0.022); color: var(--dte-text); }

/* ==========================================================================
   MOTION — entrance, loading, transitions
   ========================================================================== */

/* staggered reveal (driven by dte-motion.js, with CSS fallback) */
.dte-reveal { opacity: 0; transform: translateY(14px); }
.dte-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dte-slow) var(--dte-ease), transform var(--dte-slow) var(--dte-ease);
}

/* scan line sweep across a panel on entrance */
.dte-scan { position: relative; overflow: hidden; }
.dte-scan::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,98,44,.14), transparent);
  animation: dte-scan 2.6s var(--dte-ease) infinite;
  pointer-events: none;
}
@keyframes dte-scan { 0% { left: -40% } 60%,100% { left: 120% } }

/* top loading bar (route transitions) */
#dte-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--dte-accent), var(--dte-accent-2));
  box-shadow: 0 0 12px var(--dte-accent-glow);
  z-index: 2147483647; pointer-events: none;
  transition: width 240ms var(--dte-ease), opacity 320ms var(--dte-ease);
}

/* boot / page-in curtain */
#dte-boot {
  position: fixed; inset: 0; z-index: 2147483646;
  background: var(--dte-void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 520ms var(--dte-ease), visibility 520ms;
}
#dte-boot.is-done { opacity: 0; visibility: hidden; }
#dte-boot .dte-boot-logo { width: 104px; opacity: .96; animation: dte-boot-logo 1.5s var(--dte-ease) infinite alternate; }
@keyframes dte-boot-logo { from { opacity: .45 } to { opacity: 1 } }
#dte-boot .dte-boot-bar { width: 180px; height: 2px; background: var(--dte-line); overflow: hidden; }
#dte-boot .dte-boot-bar > i { display: block; height: 100%; width: 40%; background: var(--dte-accent);
  animation: dte-boot-sweep 1.1s var(--dte-ease) infinite; }
@keyframes dte-boot-sweep { 0% { transform: translateX(-120%) } 100% { transform: translateX(360%) } }
#dte-boot .dte-boot-txt { font-family: var(--dte-font-mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--dte-muted); }

/* skeleton shimmer for loading states */
.dte-skel {
  background: linear-gradient(90deg, var(--dte-panel) 25%, var(--dte-raised) 37%, var(--dte-panel) 63%);
  background-size: 400% 100%; animation: dte-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--dte-r);
}
@keyframes dte-shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* focus ring, consistent everywhere */
.dte-scope :focus-visible { outline: 1px solid var(--dte-accent); outline-offset: 2px; }

/* scrollbars */
.dte-scope ::-webkit-scrollbar { width: 10px; height: 10px; }
.dte-scope ::-webkit-scrollbar-track { background: var(--dte-bg); }
.dte-scope ::-webkit-scrollbar-thumb { background: var(--dte-line-2); border: 2px solid var(--dte-bg); border-radius: 6px; }
.dte-scope ::-webkit-scrollbar-thumb:hover { background: var(--dte-line-hot); }

/* selection */
.dte-scope ::selection { background: var(--dte-accent); color: #fff; }

/* ==========================================================================
   ACCESSIBILITY — honour reduced motion everywhere
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .dte-reveal { opacity: 1 !important; transform: none !important; }
  #dte-boot { display: none !important; }
}
