@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/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: 300;
  font-display: swap;
  src: url('/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: 300;
  font-display: swap;
  src: url('/fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/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: 300;
  font-display: swap;
  src: url('/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: 300;
  font-display: swap;
  src: url('/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: 300;
  font-display: swap;
  src: url('/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: 400;
  font-display: swap;
  src: url('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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('/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: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-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('/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-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('/fonts/jetbrains-mono-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('/fonts/jetbrains-mono-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('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/notosans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/notosans-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;
}


* { scrollbar-width: thin; scrollbar-color: var(--border-strong, #35353d) var(--bg-raised, #16161a); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-raised, #16161a); }
::-webkit-scrollbar-thumb { background: var(--border-strong, #35353d); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong, #35353d); }

:root {
  --accent: #f5ea51;
  --brand: #f5ea51;
  --accent-dim: #d8ce3f;
  --accent-ink: #1a1704;
  --bg: #0c0c0e;
  --bg-raised: #131316;
  --bg-card: #17171b;
  --bg-hover: #1a1a1f;
  --border: #26262c;
  --border-strong: #35353d;
  --text: #ededf0;
  --text-dim: #9a9aa4;
  --text-faint: #6a6a74;
  --red: #f2555a;
  --red-dim: #3a1a1c;
  --green: #4ade80;
  --green-dim: #123322;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

button, input, select, textarea { font-family: var(--font); }

html {
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
.site-footer { margin-top: auto; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
.link-accent { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s ease; }
.link-accent:hover { color: var(--accent-dim); }
.settings-section-note .link-accent { font-size: inherit; font-weight: 400; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.masked-link { color: var(--text); text-decoration: none; transition: color 0.18s ease; }
.masked-link:hover { color: var(--accent); }

.discord-link-blue { color: #00aff4; text-decoration: none; }
.discord-link-blue:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-dim); }
code, .mono { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dim); }

.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); }

.btn-ghost { background: transparent; color: var(--text-dim); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }

.btn-danger { background: var(--red-dim); color: var(--red); border-color: #4a2224; }
.btn-danger:hover { background: #4a2224; }

.unlink-btn:hover { background: var(--bg-raised); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge-accent { background: rgba(245, 234, 81, 0.12); color: var(--accent); border-color: rgba(245, 234, 81, 0.3); }

.plus-lock-emoji { width: 18px; height: 18px; display: block; opacity: 0.9; transition: opacity 0.15s ease, transform 0.15s ease; }
.rogoid-tooltip { display: inline-flex; }
.rogoid-tooltip:hover .plus-lock-emoji { opacity: 1; transform: scale(1.1); }

.api-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

#api .api-showcase { align-items: start; }

.api-steps { display: flex; flex-direction: column; gap: 4px; }
.api-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.api-step:last-of-type { border-bottom: none; }
.api-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.api-step-body h3 { font-size: 15px; margin: 1px 0 5px; }
.api-step-body p { font-size: 13.5px; margin: 0; }
.api-steps-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.75);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.code-window-file {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-window-body {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: height 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}
.code-window-body .c-dim { color: var(--text-faint); }
.code-window-body .c-key { color: var(--text); }
.code-window-body .c-str { color: var(--accent); }
.code-window-body .c-accent { color: var(--accent); }

.member-preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.75);
}
.member-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.member-preview-url {
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-preview-window img { display: block; width: 100%; height: auto; }
.member-preview-placeholder {
  aspect-ratio: 1860 / 896;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  color: var(--text-faint);
  font-size: 13px;
}

@media (max-width: 980px) {
  .api-showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.settings-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.settings-section-note {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.label-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rogoid-tooltip:hover .label-hint { color: var(--accent); border-color: var(--accent); }

.rogoid-tooltip-bubble {
  position: fixed;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  padding: 7px 11px;
  border-radius: 7px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 1000;
}
.rogoid-tooltip-bubble.rogoid-tooltip-bubble-visible {
  opacity: 1;
}
.rogoid-tooltip-bubble-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.badge-red,
.badge-green {
  background: var(--bg-hover);
  color: var(--text-dim);
  border-color: var(--border);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.verify-card { padding: 36px 40px; }
@media (max-width: 480px) {
  .verify-card { padding: 26px 22px; }
}

.topnav {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
}
a.brand { transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease; -webkit-tap-highlight-color: transparent; }
a.brand:active { transform: scale(0.95); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { a.brand { transition: none; } a.brand:active { transform: none; } }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: (#ffffff);
  color: (#ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
  margin-right: auto;
}
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 14px; position: relative; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 14px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }

.nav-user { position: relative; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.nav-user img, .nav-user a { -webkit-user-drag: none; }
.nav-user-button {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}
.nav-user-button img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; background: var(--bg-hover); pointer-events: none; transition: filter 0.18s ease; }
.nav-user-button:hover,
.nav-user.open .nav-user-button { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14); }
.nav-user-button:active { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.nav-user-button:active img { filter: brightness(0.72); }
.nav-user-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 240px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top right;
  clip-path: inset(-40px -40px -70px -40px round 14px);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.4, 0, 1, 1), visibility 0s linear 0.22s, clip-path 0s linear 0.22s;
}
.nav-user:not(.open) .nav-user-menu { clip-path: inset(0 0 100% 0 round 14px); }
.nav-user.open .nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  clip-path: inset(-40px -40px -70px -40px round 14px);
  transition: opacity 0.24s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.45s cubic-bezier(0.5, 1, 0.89, 1), visibility 0s;
}
.nav-user .nav-user-menu > * {
  --nav-user-delay: 0ms;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0s linear 0.2s, transform 0s linear 0.2s, background-color 0.18s ease, color 0.18s ease;
}
.nav-user.open .nav-user-menu > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.26s ease var(--nav-user-delay), transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) var(--nav-user-delay), background-color 0.18s ease, color 0.18s ease;
}
.nav-user-menu > :nth-child(2) { --nav-user-delay: 30ms; }
.nav-user-menu > :nth-child(3) { --nav-user-delay: 75ms; }
.nav-user-menu > :nth-child(4) { --nav-user-delay: 120ms; }
.nav-user-menu > :nth-child(5) { --nav-user-delay: 165ms; }
.nav-user-menu > :nth-child(6) { --nav-user-delay: 210ms; }
.nav-user-name { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.nav-user-form { margin: 0; border-top: 1px solid var(--border); }
.nav-user-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-user-item:hover,
.nav-user-item:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--text); outline: none; }
.nav-user-item:active { background: rgba(255, 255, 255, 0.03); color: var(--text-dim); transform: none; }
.nav-user-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); transition: color 0.18s ease; }
.nav-user-item:active svg { color: var(--text-faint); }
@media (prefers-reduced-motion: reduce) {
  .nav-user-menu,
  .nav-user:not(.open) .nav-user-menu,
  .nav-user.open .nav-user-menu { transform: none; transition: none; clip-path: none; }
  .nav-user .nav-user-menu > *,
  .nav-user.open .nav-user-menu > * { transform: none; transition: none; }
}

.hero {
  padding: 90px 0 70px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  max-width: 820px;
  line-height: 1.08;
}
.hero .lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 44px;
  align-items: center;
  max-width: 1380px;
}
.hero-grid .hero-copy h1 { max-width: 560px; }
.hero-grid .hero-copy .lede { max-width: 500px; }

.hero-preview { position: relative; }
.hero-preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.8);
  width: 100%;
}

@media (min-width: 1900px) {
  .hero-preview-window { width: calc(100% + 180px); }
}

.hero-preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.hero-video { position: relative; background: #000; }
.hero-video video { display: block; width: 100%; height: auto; background: #000; }
.hero-video-mute {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.hero-video-mute:hover { background: var(--accent-dim); }
.hero-video-mute:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.hero-video-mute[hidden] { display: none; }
.hero-video-mute svg { width: 18px; height: 18px; fill: currentColor; }
.hero-video-mute .icon-sound { display: none; }
.hero-video-mute.is-unmuted { background: rgba(0, 0, 0, 0.62); color: #fff; }
.hero-video-mute.is-unmuted:hover { background: rgba(0, 0, 0, 0.8); }
.hero-video-mute.is-unmuted .icon-muted { display: none; }
.hero-video-mute.is-unmuted .icon-sound { display: block; }
@media (max-width: 560px) {
  .hero-video-mute { right: 8px; bottom: 8px; padding: 6px 11px 6px 8px; font-size: 12px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid .hero-copy h1,
  .hero-grid .hero-copy .lede { max-width: 720px; }
  .hero-preview-window { width: 100%; }
}


.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); margin-top: 10px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 234, 81, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; margin: 0; }

.feature-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 40px;
  align-items: start;
}

#dashboard-tour .container { max-width: 1320px; }
#dashboard-tour .feature-explorer { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.45fr); gap: 36px; }
#dashboard-tour .feature-visual { padding: 14px; min-height: 0; }
#dashboard-tour .member-preview-window { display: flex; flex-direction: column; aspect-ratio: 1860 / 940; }
#dashboard-tour .member-preview-bar { flex-shrink: 0; }
#dashboard-tour .member-preview-window img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 1080px) {
  #dashboard-tour .feature-explorer { grid-template-columns: minmax(0, 1fr); }
  #dashboard-tour .feature-visual { display: block; position: static; margin-top: 24px; }
}
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 22px 6px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.feature-list .feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row-index {
  flex-shrink: 0;
  width: 26px;
  padding-top: 2px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  transition: color 0.18s ease;
}
.feature-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.feature-row-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.feature-row-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-faint);
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: height 0.3s ease, opacity 0.22s ease, margin-top 0.3s ease;
}
.feature-row:hover .feature-row-title { color: var(--text); }
.feature-row.active .feature-row-index,
.feature-row.active .feature-row-title { color: var(--accent); }
.feature-row.active .feature-row-desc { height: var(--desc-max-height, 44px); opacity: 1; margin-top: 8px; }

.feature-visual {
  position: sticky;
  top: 110px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px;
  overflow: hidden;
}
@keyframes featurePreviewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.feature-preview-entering { animation: featurePreviewIn 0.25s ease forwards; }
.feature-preview-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.feature-preview-msg { display: flex; gap: 14px; padding: 7px 0; }
.discord-container-yellow { --c: #f5ea51; }

.feature-preview-chart { display: flex; flex-direction: column; gap: 6px; }
.feature-preview-chart svg { width: 100%; height: auto; display: block; }
.feature-preview-chart .chart-legend { margin-top: 6px; gap: 14px; }
.feature-preview-chart .chart-legend-item { font-size: 12px; }

.feature-preview-alt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-preview-alt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-raised);
}
.feature-preview-alt-header .cell-user img { width: 30px; height: 30px; }
.feature-preview-alt-header .cell-user { min-width: 0; }
.feature-preview-alt-header .badge { flex-shrink: 0; white-space: nowrap; }
.feature-preview-alt-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-preview-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
}
.feature-preview-alt-row .cell-user img { width: 24px; height: 24px; }

.feature-preview-nick-change {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.feature-preview-nick-old { color: var(--text-faint); text-decoration: line-through; }
.feature-preview-nick-arrow { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }
.feature-preview-nick-new { color: #4ade80; }

.feature-preview-privacy-row {
  position: relative;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border-strong);
}
.feature-preview-privacy-row-accent { border-left-color: var(--accent); }
.feature-preview-privacy-row + .feature-preview-privacy-row { margin-top: 18px; }
.feature-preview-privacy-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-preview-privacy-sub { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .feature-explorer { grid-template-columns: 1fr; gap: 8px; }
  .feature-visual { display: none; }
}

.plus-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.plus-feature-row:last-child { border-bottom: none; }
.plus-feature-row .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.plus-feature-row h3 { font-size: 15px; margin-bottom: 4px; }
.plus-feature-row p { font-size: 13.5px; margin: 0; }

.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 48px 32px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }

.band-yellow {
  background: var(--accent);
  padding: 80px 0;
}
.band-yellow p { margin-top: 10px; margin-bottom: 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 13px;
  background: var(--bg);
  position: relative;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px 24px; }
.footer-brand { flex: 1 1 220px; min-width: 200px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.footer-col-title { color: var(--text-dim); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.footer-link-external { display: inline-flex; align-items: center; gap: 5px; }
.footer-link-external svg { width: 12px; height: 12px; flex-shrink: 0; }
.footer-col a { color: var(--text-faint); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.legal-page { padding-top: 56px; padding-bottom: 90px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 6px; }
.legal-page .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; margin-top: 36px; }
.legal-page ul { color: var(--text-dim); padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s ease; }
.legal-page a:hover { color: var(--accent-dim); }
.enforcement-codes { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.enforcement-code { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); scroll-margin-top: 90px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.enforcement-code:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 234, 81, 0.12); }
.enforcement-code-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.enforcement-code-head h3 { margin: 0; font-size: 16px; }
.enforcement-code-id { flex-shrink: 0; padding: 3px 8px; border-radius: 6px; background: var(--bg-hover); border: 1px solid var(--border-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700; color: var(--text); }
.legal-page .enforcement-code-anchor { margin-left: auto; color: var(--text-faint); text-decoration: none; opacity: 0; transition: opacity 0.15s ease; }
.enforcement-code:hover .enforcement-code-anchor, .enforcement-code-anchor:focus-visible { opacity: 1; }
.enforcement-code p { margin: 0 0 8px; }
.enforcement-code ul { margin: 0; }
.enforcement-code li { margin-bottom: 4px; font-size: 14px; }

.auth-callback-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 20px;
}
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  position: relative;
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 20px 14px 32px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar::-webkit-scrollbar-track, .docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar, .admin-rail { -webkit-user-select: none; user-select: none; }
.sidebar :is(input, textarea), .admin-rail :is(input, textarea) { -webkit-user-select: text; user-select: text; }
.sidebar :is(a, img), .admin-rail :is(a, img) { -webkit-user-drag: none; }
.sidebar-section { margin-bottom: 22px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 0 10px; margin-bottom: 8px; }
.sidebar-link {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  transform: translateX(0);
  transition: color 0.16s ease, transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-hover);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
  z-index: -1;
}
.sidebar-link:hover:not(.active)::before { opacity: 1; }
.sidebar-link:hover:not(.active) { color: var(--text); }
.sidebar-link.active { color: var(--accent); }
.sidebar-link-locked, .sidebar-link.sidebar-link-locked:hover { cursor: not-allowed; color: var(--text-faint); background: none; user-select: none; }
.sidebar-link.sidebar-link-locked:hover::before { opacity: 0; }
.sidebar-link-icon { display: block; flex-shrink: 0; width: 16px; height: 16px; }
.sidebar-link-icon svg { display: block; width: 100%; height: 100%; }
.sidebar-link-main { display: flex; align-items: center; gap: 10px; min-width: 0; }

.sidebar-link-indicator {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(245, 234, 81, 0.1);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), height 0.24s ease;
}
.sidebar-link-indicator[hidden] { display: none; }
.sidebar-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-server img { width: 32px; height: 32px; border-radius: 8px; }
.sidebar-server-name { font-size: 13.5px; font-weight: 600; }
.sidebar-server-sub { font-size: 11.5px; color: var(--text-faint); }

.sidebar-search-wrap { position: relative; }
.sidebar-search-wrap #sidebarSearch::-webkit-search-cancel-button { display: none; }
.sidebar-search-results {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0d0d10;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: height 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-search-results[hidden] { display: none; }
.sidebar-search-results.is-animating .ss-list { overflow: hidden; }
.ss-head { flex-shrink: 0; padding: 11px 16px 9px; border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 500; color: var(--text-faint); }
.ss-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 6px 6px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.ss-cursor {
  position: absolute; left: 6px; right: 6px; top: 0; height: 0; opacity: 0;
  border-radius: 10px; background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.16s ease;
}
.ss-group { padding: 11px 10px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.ss-row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font-family: var(--font); text-align: left; cursor: pointer;
}
.ss-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, 0.03); color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ss-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ss-label { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-label mark { background: none; color: var(--accent); }
.ss-desc { font-size: 12px; line-height: 1.35; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.ss-end { display: flex; flex-shrink: 0; color: var(--text-dim); opacity: 0; transform: translateX(-4px); transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.ss-end img { width: 16px; height: 16px; }
.ss-row.is-active .ss-icon { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: var(--border-strong); }
.ss-row.is-active .ss-desc { color: var(--text-dim); }
.ss-row.is-active .ss-end { opacity: 1; transform: none; }
.ss-row.is-locked { cursor: not-allowed; }
.ss-row.is-locked .ss-icon, .ss-row.is-locked .ss-text { opacity: 0.5; }
.ss-row.is-locked .ss-end { opacity: 0.85; transform: none; }
.ss-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 24px; text-align: center; font-size: 12.5px; color: var(--text-faint); overflow-wrap: anywhere; }
.ss-empty .ss-icon { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; }
.ss-empty strong { font-size: 13.5px; color: var(--text); }
.sidebar-search-results.is-empty .ss-head, .sidebar-search-results.is-empty .ss-foot { display: none; }
.ss-foot { display: flex; flex-shrink: 0; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); font-size: 11px; color: var(--text-faint); }
.ss-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ss-foot kbd { min-width: 18px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 5px; background: rgba(255, 255, 255, 0.04); font-family: var(--font); font-size: 10px; line-height: 14px; text-align: center; color: var(--text-dim); }
.ss-foot kbd + kbd { margin-right: 2px; }
.ss-rows .is-new { animation: sidebarSearchIn 0.24s ease both; }
@keyframes sidebarSearchIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (hover: none) { .ss-foot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sidebar-search-results, .ss-cursor, .ss-icon, .ss-desc, .ss-end { transition: none; }
  .ss-rows .is-new { animation: none; }
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px;
  transition: opacity 0.12s ease;
}
.main-content-inner.rogoid-page-fade { opacity: 0; }

.rogoid-nav-loading .main-content-inner { pointer-events: none; }
.main-content-inner { transition: opacity 0.22s ease; }
.main-content-inner { max-width: none; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 34px; margin: 0; }
.page-head p { margin: 16px 0 0; }

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
  z-index: 40;
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-grid:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .label { font-size: 12.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat-card .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.stat-card-locked { opacity: 0.4; filter: grayscale(0.3); cursor: not-allowed; user-select: none; }
.stat-card.rogoid-tooltip { display: block; }
#panelThumbnailControl.rogoid-tooltip, #welcomeDmThumbnailControl.rogoid-tooltip { display: block; }
.toggle-row.rogoid-tooltip { display: flex; }

.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.server-card-head { display: flex; align-items: center; gap: 12px; }
.server-card-head img {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-hover); object-fit: cover;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.server-card.uninstalled img { filter: grayscale(1); opacity: 0.55; }
.server-card-name { font-weight: 700; font-size: 15px; }
.server-card-head img.plus-badge {
  width: 18px; height: 18px; margin-left: 6px;
  background: none; border-radius: 0; object-fit: contain;
  vertical-align: middle;
}
.server-card-status { font-size: 12.5px; color: var(--text-faint); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.activity-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.activity-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr 1fr 1.3fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  min-width: 720px;
  transition: background 0.14s ease;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:nth-last-child(1 of .activity-row:not([hidden])) { border-bottom: none; }
.activity-row:not(.activity-head):hover { background: var(--bg-hover); }
.activity-row[hidden] { display: none; }
.activity-row.row-suspended { position: relative; }
.row-suspended-outline { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--red); pointer-events: none; }
.activity-head {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-raised);
}
.activity-status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.server-toggle-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.server-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  transition: background 0.14s ease;
}
.server-toggle-row:last-child { border-bottom: none; }
.server-toggle-row:hover { background: var(--bg-hover); }
.server-toggle-row form { display: flex; align-items: center; }
.server-toggle-list.is-collapsed .server-toggle-row.is-extra { display: none; }
.server-toggle-list.is-collapsed .server-toggle-row:nth-child(5) { border-bottom: none; }
.account-show-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 2px; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: color 0.16s ease; }
.account-show-all:hover { color: var(--text); }
.account-show-all svg { width: 15px; height: 15px; transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.account-show-all[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .account-show-all svg { transition: none; } }
.account-billing-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 36px 0 4px; }
.account-billing-initial { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.account-billing-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.account-billing-note { font-size: 12.5px; color: var(--text-faint); text-align: right; }
[data-billing-link].is-opening { opacity: 0.7; pointer-events: none; }

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; vertical-align: middle; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
th { color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-raised); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.14s ease; }
tbody tr:hover { background: var(--bg-hover); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user img { width: 28px; height: 28px; border-radius: 50%; }
.cell-user > div { line-height: 1.3; }

.form-grid { display: grid; gap: 20px; max-width: 560px; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=text] { font-family: var(--mono); text-transform: uppercase; }

.swatch-picker { position: relative; flex-shrink: 0; }
.swatch-trigger {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.swatch-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: min(220px, calc(100vw - 48px));
}
.swatch-picker.open .swatch-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch-option {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.14s ease;
}
.swatch-option.selected { outline: 2px solid var(--text); outline-offset: 1px; }
.swatch-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatch-none, .swatch-trigger-none {
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--red) calc(50% - 1px), var(--red) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-conic-gradient(var(--bg-hover) 0% 25%, var(--bg-raised) 0% 50%) 0 0 / 10px 10px !important;
}

.swatch-custom-panel {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, margin-top 0.22s ease;
}
.swatch-custom-panel.open { max-height: 200px; opacity: 1; }
.hs-field { position: relative; width: 200px; height: 120px; border-radius: 7px; overflow: hidden; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; }
.hue-slider { touch-action: none; }
.hs-canvas { display: block; width: 100%; height: 100%; }
.hs-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hue-slider,
.hue-slider:focus {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
}
.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.hue-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plus-card { max-width: 640px; margin: 0 auto; }
.plus-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.plus-card-name { font-size: 19px; margin: 0; }
.plus-price { font-size: 22px; font-weight: 700; }
.plus-price span { font-size: 13px; font-weight: 500; color: var(--text-faint); margin-left: 4px; }

.plus-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plus-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.plus-checklist li:last-child { border-bottom: none; }
.plus-checklist h3 { font-size: 15px; margin: 0 0 4px; }
.plus-checklist p { font-size: 13.5px; margin: 0; }

.plus-buy {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 24px;
}
.plus-buy-method { max-width: 220px; margin-bottom: 18px; }
.plus-buy-alert { margin-bottom: 16px; font-size: 13.5px; }
.plus-alert-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.plus-alert-link:hover { opacity: 0.8; }
.plus-method-fade { transition: opacity 0.14s ease, transform 0.14s ease; }
.plus-method-fade.is-out { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .plus-method-fade { transition: none; } }
.plus-checkout-form { display: flex; flex-direction: column; gap: 14px; }
.plus-checkout-form .role-option-icon { width: 20px; height: 20px; border-radius: 7px; }
.plus-checkout-form .role-option-emoji { width: 20px; height: 20px; border-radius: 7px; background: var(--bg-hover); color: var(--text-dim); font-size: 8.5px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; white-space: nowrap; }
.plus-buy-footnote + .plus-buy-footnote { border-top: 0; padding-top: 0; }
body.site .site-plus-buy .plus-buy .plus-buy-footnote + .plus-buy-footnote { margin-top: 8px; }
.plus-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.plus-buy-footnote {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--text-faint); }
input[type=text], input[type=search], input[type=number], input[type=url], input[type=email], select, textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-strong); background: var(--bg-hover); }
:is(input[type=text], input[type=search], input[type=number], input[type=url], input[type=email], textarea):where(*) { transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
:is(input[type=text], input[type=search], input[type=number], input[type=url], input[type=email], textarea):where(:focus:not(.docs-palette-field, .ep-search input)) { border-color: #27272c; background: color-mix(in srgb, var(--bg-raised) 62%, var(--bg-hover)); box-shadow: inset 0 0 0 1px #27272c; }
.field input.field-error:focus, .field textarea.field-error:focus { box-shadow: inset 0 0 0 1px var(--red); }

.field-float { position: relative; --ff-top: 8px; --ff-rest: 11px; --ff-right: 26px; }
.field-float > .ff-box.ff-box { margin-top: var(--ff-top) !important; }
.aff-approve-field.field-float { display: flex; flex-direction: column; gap: 7px; }
.aff-approve-field.field-float > .hint { margin-bottom: 0; }
.admin-page-head-search > .field-float { --ff-top: 0px; }
.field-float:has(textarea.ff-control) { --ff-rest: 13px; }
.field-float:has(.ep-field, .number-stepper) { --ff-right: 62px; }
.field-float > .hint { order: 1; }
.field-float > .ff-label.ff-label {
  position: absolute; z-index: 1; margin: 0;
  max-width: calc(100% - var(--ff-right));
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 14px; font-weight: 500; line-height: 17px; color: #7e7e88;
  pointer-events: none; transform-origin: 0 0; transform: translate(14px, calc(var(--ff-top) - 7px)) scale(0.86);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.field-float .ff-select {
  -webkit-mask: linear-gradient(#000 0 0) 10px 0 / var(--ff-notch, 0px) 2px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) 10px 0 / var(--ff-notch, 0px) 2px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.field-float .custom-select-trigger.ff-select { padding: 10px 12px; font-size: 14px; line-height: 17px; min-height: 39px; }
.field-float .ff-control {
  -webkit-mask: linear-gradient(#000 0 0) 10px 0 / var(--ff-notch, 0px) 2px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) 10px 0 / var(--ff-notch, 0px) 2px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, -webkit-mask-size 0.2s cubic-bezier(0.4, 0, 0.2, 1), mask-size 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
:is(input, textarea):where(:focus)::placeholder { color: #5c5c66; opacity: 1; }
.field-float .ff-control::placeholder { transition: opacity 0.2s ease; }
.field-float .ff-control:not(:focus)::placeholder { opacity: 0; }
.field-float:has(.ff-control:placeholder-shown:not(:focus)) > .ff-label.ff-label { transform: translate(13px, calc(var(--ff-top) + var(--ff-rest))); font-weight: 400; color: var(--text-faint); }
.field-float .ff-control:placeholder-shown:not(:focus) { -webkit-mask-size: 0 2px, auto; mask-size: 0 2px, auto; }
.field-float:has(.ff-control:focus) > .ff-label.ff-label { color: #7e7e88; }
.field-float:has(.ff-control.field-error) > .ff-label.ff-label { color: var(--red); }
.field-float:has(.ff-control:disabled) > .ff-label.ff-label { opacity: 0.6; }
.field-float.ff-still > .ff-label, .field-float.ff-still .ff-control { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .field-float > .ff-label, .field-float .ff-control { transition: none !important; }
}

.number-stepper { position: relative; }
.number-stepper input[type="number"] { padding-right: 32px; }
.number-stepper input[type="number"]::-webkit-inner-spin-button,
.number-stepper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.number-stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.number-stepper-btns {
  position: absolute; top: 1px; right: 1px; bottom: 1px;
  display: flex; flex-direction: column; width: 26px;
  border-left: 1px solid var(--border-strong);
  border-radius: 0 7px 7px 0; overflow: hidden;
}
.number-stepper input:focus ~ .number-stepper-btns { top: 2px; right: 2px; bottom: 2px; width: 25px; border-radius: 0 6px 6px 0; }
.number-stepper-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); border: 0; color: var(--text-faint); cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.number-stepper-btn:first-child { border-bottom: 1px solid var(--border-strong); }
.number-stepper-btn:hover { background: var(--border-strong); color: var(--text); }
.number-stepper-btn:active { background: var(--accent); color: var(--accent-ink); }
.number-stepper input[disabled] ~ .number-stepper-btns .number-stepper-btn { pointer-events: none; opacity: 0.4; }

.custom-select { position: relative; width: 100%; }
.custom-select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, border-radius 0.16s ease;
}
.custom-select-trigger:hover { background: var(--bg-hover); }
.custom-select.open .custom-select-trigger { border-color: var(--border-strong); background: var(--bg-hover); border-radius: 8px 8px 0 0; }
.target-picker { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.target-picker > .custom-select,
.target-picker > .role-multiselect { flex: 1; min-width: 0; width: auto; }
.target-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  aspect-ratio: 1 / 1;
  min-height: 36px;
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.target-refresh-btn:hover { background: var(--bg-hover); color: var(--text); }
.target-refresh-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.target-refresh-btn .site-icon { width: 16px; height: 16px; }
.target-refresh-btn[data-state="busy"] .site-icon { animation: target-refresh-spin 0.8s linear infinite; }
.target-refresh-btn[data-state="busy"],
.target-refresh-btn[data-state="cooldown"] { cursor: not-allowed; opacity: 0.7; }
.target-refresh-btn[data-state="done"] { color: #4ade80; border-color: rgba(74, 222, 128, 0.55); }
@keyframes target-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .target-refresh-btn[data-state="busy"] .site-icon { animation-duration: 2.4s; }
}
.custom-select-label-icon:empty { display: none; }
.custom-select-label-icon { display: flex; align-items: center; flex-shrink: 0; }
.custom-select-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron {
  display: flex;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.role-option-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.role-option-spacer { background: transparent; }
.role-option-icon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.role-option-emoji { display: flex; align-items: center; justify-content: center; font-size: 12px; width: 16px; height: 16px; }
.custom-select-option { display: flex; align-items: center; gap: 8px; }
.custom-select-option[hidden] { display: none; }
.custom-select-chevron svg { width: 12px; height: 12px; }
.custom-select.open .custom-select-chevron { transform: rotate(180deg); color: var(--text); }

.custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 8px 8px;
  padding: 4px;
  overflow: visible;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scaleY(0.96) translateY(-4px);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  pointer-events: auto;
}
.custom-select-options {
  flex-shrink: 0;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-card);
}
.custom-select-menu:has(.custom-select-search) .custom-select-options {
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb { background: var(--border-strong); border-color: var(--bg-card); }
.custom-select-options::-webkit-scrollbar-track { background: var(--bg-card); }
.custom-select-option {
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.custom-select-option:hover { background: var(--bg-hover); color: var(--text); }
.custom-select-option.selected { background: var(--bg-hover); color: var(--text); font-weight: 600; }
.custom-select:has(> select[multiple]) .custom-select-options { max-height: none; overflow-y: visible; }
.custom-select-option.selected:has(+ .custom-select-option.selected) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.custom-select-option.selected + .custom-select-option.selected { border-top-left-radius: 0; border-top-right-radius: 0; }
.custom-select-check { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; margin-left: auto; border: 1px solid var(--border-strong); border-radius: 5px; color: transparent; transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.custom-select-check svg { width: 11px; height: 11px; }
.custom-select-option.selected .custom-select-check { background: var(--text); border-color: var(--text); color: var(--bg); }
.custom-select-option[aria-selected] { font-weight: 500; }

.custom-select-search {
  flex-shrink: 0;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12.5px;
  font-family: var(--font);
  margin: 0 0 4px;
}
.custom-select-search:focus { outline: none; border-color: #27272c; background: color-mix(in srgb, var(--bg-raised) 62%, var(--bg-hover)); }
.custom-select-search::placeholder { color: var(--text-faint); }
.custom-select-empty { padding: 8px 9px; font-size: 12.5px; color: var(--text-faint); }

.role-multiselect { width: 100%; }
.role-picker-bar { flex-wrap: wrap; align-items: center; min-height: 20px; row-gap: 6px; }
.role-picker-bar[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.role-picker-bar[aria-disabled="true"]:hover { background: var(--bg-raised); }
.role-chip-bar { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.role-picker-placeholder { color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.role-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 5px 3px 9px;
  font-size: 12px;
  color: var(--text);
  max-width: 100%;
}
.role-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.role-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 0;
  background: none;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 0;
  line-height: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}
.role-chip-remove::before,
.role-chip-remove::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}
.role-chip-remove::before { transform: translate(-50%, -50%) rotate(45deg); }
.role-chip-remove::after { transform: translate(-50%, -50%) rotate(-45deg); }
.role-chip-remove:hover { background: var(--border-strong); color: var(--text); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.divider-before-image-control { width: fit-content; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row-label { font-weight: 600; font-size: 14px; }
.toggle-row .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }

.welcome-dm-customize {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-dm-customize.open { max-height: none; }
.welcome-dm-customize.settled { overflow: visible; }
.welcome-dm-customize-inner { padding: 16px 0 18px; border-top: 1px solid var(--border); margin-top: 14px; }
.image-upload-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.image-upload-preview { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-hover); flex-shrink: 0; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-upload-preview-wide { width: 130px; height: 46px; border-radius: 6px; }
.image-upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(12, 12, 14, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.image-upload-preview:hover .image-upload-remove { opacity: 1; }
.image-upload-remove:hover { background: var(--red); }
.image-upload-btn { cursor: pointer; }
.image-upload-status { font-size: 12.5px; color: var(--text-faint); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; box-sizing: border-box; background: var(--bg-hover); border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.switch-track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 50%; transform: translateY(-50%); background: var(--text-faint); border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.switch input:checked + .switch-track { background: rgba(245, 234, 81, 0.25); border-color: var(--accent); }
.switch input:checked + .switch-track::before { transform: translate(20px, -50%); background: var(--accent); }
.switch-disabled { opacity: 0.5; cursor: not-allowed; }
.switch-disabled .switch-track { cursor: not-allowed; }

.alt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.alt-card-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 16px 20px;
  background: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  --corner-delay: 0.32s;
  transition: background 0.14s ease, border-radius 0.18s ease var(--corner-delay);
}
.alt-card.open .alt-card-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; transition: background 0.14s ease, border-radius 0s linear 0s; }
.alt-card-header:hover { background: var(--bg-hover) }
.alt-card-header:disabled { cursor: not-allowed; }
.alt-card-header:disabled:hover { background: none; }
.alt-card-title-locked { color: var(--text-faint); }
.alt-card-header > *:first-child { flex: 1; min-width: 0; }
.alt-card-header .cell-user { min-width: 0; }
.alt-card-header .cell-user > *:not(img) { min-width: 0; }

.alt-card-header-stacked { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; }
.alt-card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; }
.alt-card-header-row > *:first-child { flex: 1; min-width: 0; }
.alt-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.alt-card-badges .badge { font-size: 10.5px; padding: 2px 7px; }
.alt-card-title {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.alt-card-subtitle { font-size: 13px; color: var(--text-faint); margin-top: 6px; }
.alt-card-summary { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; justify-content: flex-end; }
.alt-card-chevron {
  display: flex;
  color: var(--text-faint);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-card.open .alt-card-chevron { transform: rotate(180deg); color: var(--accent); }
.alt-card-body {
  max-height: 0;
  overflow: hidden;
  --body-duration: 0.32s;
  transition: max-height var(--body-duration) cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-card-body.overflow-visible { overflow: visible; }
.alt-card.overflow-visible { overflow: visible; }
.alt-card-body-inner {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}
.empty-state .icon { font-size: 32px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); font-size: 16px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 37%, var(--bg-hover) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.chart-wrap { position: relative; height: 220px; }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.chart-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.chart-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.chart-legend-item-locked { color: var(--text-faint); cursor: not-allowed; }
.chart-legend-item-locked .chart-legend-dot { opacity: 0.4; }
.chart-tooltip-row-locked, .chart-tooltip-row-locked b { color: var(--text-faint); }
.chart-tooltip-row-locked .chart-tooltip-dot { opacity: 0.4; }

.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: var(--green-dim); border-color: #1c4a34; color: var(--green); }
.alert-error { background: var(--red-dim); border-color: #4a2224; color: var(--red); }
.alert-info { background: rgba(245, 234, 81, 0.08); border-color: rgba(245, 234, 81, 0.3); color: var(--accent); }
.alert-success .link-accent, .alert-error .link-accent { color: inherit; transition: opacity 0.15s ease; }
.alert-success .link-accent:hover, .alert-error .link-accent:hover { color: inherit; opacity: 0.75; }

.tab-strip { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-strip a { padding: 10px 4px; margin-right: 20px; font-size: 14px; font-weight: 500; color: var(--text-faint); border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.16s ease, border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.tab-strip a:hover { color: var(--text); }
.tab-strip a.active { color: var(--text); border-color: var(--accent); }

.avatar-lg { width: 64px; height: 64px; border-radius: 16px; }

.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.status-page .code { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.status-page-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.confirm-backdrop.confirm-in {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.confirm-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6);
  z-index: 1101;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.confirm-sheet.confirm-in { opacity: 1; }
.confirm-message { color: var(--text); font-size: 15px; margin: 0 0 18px; }
.confirm-title { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 8px; }
.confirm-title.confirm-title-neutral { color: var(--text); }
.confirm-message:has(+ .confirm-link) { margin-bottom: 10px; }
.confirm-link { display: inline-block; margin: 0 0 18px; font-size: 13.5px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

.approval-preview-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--border-strong); transition: transform 0.15s ease, border-color 0.15s ease; }
.approval-preview-thumb:hover { transform: scale(1.08); border-color: var(--accent); }
.approval-preview-thumb-banner { width: 52px; height: 22px; border-radius: 5px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--border-strong); transition: transform 0.15s ease, border-color 0.15s ease; }
.approval-preview-thumb-banner:hover { transform: scale(1.08); border-color: var(--accent); }

.vpn-off-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-width 0.3s ease;
}
.vpn-off-alert[hidden] { display: none; }
.vpn-off-alert.vpn-off-alert-dismissing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
}

.verify-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  aspect-ratio: 1876 / 678;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #0c0c0e;
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  transition: background-color 0.35s ease, opacity 0.3s ease, max-height 0.4s ease, min-height 0.4s ease, padding 0.4s ease, border-width 0.4s ease;
}
.verify-preview.verify-preview-visible {
  opacity: 1;
  max-height: 2000px;
  min-height: 160px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.verify-preview-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.verify-preview-bg-layer.active { opacity: 1; }
.verify-preview-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); pointer-events: none; }
.verify-preview-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(340px, 32%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.verify-preview-heading { font-size: 15px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.verify-preview-text { font-size: 11.5px; line-height: 1.5; color: var(--text-dim); margin-bottom: 12px; text-align: center; }
.verify-preview-btn { width: 100%; font-size: 12.5px; padding: 9px 14px; cursor: default; }
.verify-preview-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 4px auto 12px;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.verify-preview-note { font-size: 10.5px; line-height: 1.5; color: var(--text-faint); text-align: center; }
.verify-preview-note .link-accent { pointer-events: none; }

@media (max-width: 460px) {
  .verify-preview { min-height: 260px; }
  .verify-preview-card { max-width: min(540px, 60%); padding: 5px; }
  .verify-preview-heading { font-size: 13px; margin-bottom: 6px; }
  .verify-preview-text { font-size: 11px; margin-bottom: 10px; }
  .verify-preview-note { font-size: 9.5px; }
  .verify-preview-avatar { width: 40px; height: 40px; margin: 2px auto 10px; }
}

.transfer-conflict-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: background 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease, opacity 0.2s ease;
}
.transfer-conflict-overlay.in {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
}
.transfer-conflict-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 24px;
  transform: scale(0.96) translateY(4px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.transfer-conflict-overlay.in .transfer-conflict-card { transform: scale(1) translateY(0); }
.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
  cursor: zoom-out;
}
.image-lightbox-backdrop[hidden] { display: none; }
.image-lightbox-backdrop.image-lightbox-in {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.image-lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  opacity: 0;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.image-lightbox-backdrop.image-lightbox-in .image-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.force-verify-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.force-verify-backdrop[hidden] { display: none; }
.force-verify-backdrop.force-verify-in {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.force-verify-modal {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.force-verify-backdrop.force-verify-in .force-verify-modal {
  opacity: 1;
}
.force-verify-modal h2 { font-size: 16px; margin: 0 0 4px; }
.force-verify-modal .force-verify-sub { font-size: 13px; color: var(--text-faint); margin: 0 0 16px; }
.force-verify-results {
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 240px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, margin-top 0.22s ease;
}
.force-verify-results:empty { margin-top: 0; border-width: 0; }
.force-verify-results.has-selected { border-color: rgba(34, 197, 94, 0.75); }
.force-verify-results.is-collapsing { border-color: transparent; }
.force-verify-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.force-verify-result-row:last-child { border-bottom: none; }
.force-verify-result-row:hover, .force-verify-result-row.force-verify-active { background: var(--bg-hover); }
.force-verify-result-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-hover); }
.force-verify-result-name { font-weight: 600; font-size: 13.5px; }
.force-verify-result-display { font-size: 11.5px; color: var(--text-faint); }
.force-verify-empty, .force-verify-loading { padding: 14px; text-align: center; font-size: 13px; color: var(--text-faint); }
.force-verify-loading { display: flex; justify-content: center; align-items: center; padding: 0; height: 57px; box-sizing: border-box; }
.force-verify-spinner { display: block; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: btn-busy-spin 0.7s linear infinite; }
.force-verify-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bg-hover);
  transition: opacity 0.18s ease;
}
.force-verify-selected.is-leaving { opacity: 0; }
.force-verify-selected img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-hover); }
.force-verify-selected .btn-sm { padding-top: 0; padding-bottom: 0; height: 28px; }
.force-verify-selected-clear { margin-left: auto; }
.account-save-bar {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 125px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(620px, calc(100vw - 250px - 48px));
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.account-save-bar[hidden] { display: none; }
.account-save-bar.is-visible { opacity: 1; transform: translate(-50%, 0); }
.account-save-bar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.account-save-bar-text span { font-size: 12.5px; color: var(--text-faint); }
.account-save-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 860px) {
  .account-save-bar { left: 50%; width: calc(100vw - 32px); bottom: 16px; }
}
@media (max-width: 520px) {
  .account-save-bar { flex-direction: column; align-items: stretch; }
  .account-save-bar-actions .btn { flex: 1; }
}
.member-row-updated { animation: member-row-updated 1.6s ease; }
.member-row-updated > * { animation: member-row-in 0.35s ease; }
@keyframes member-row-updated { 0%, 35% { background: rgba(34, 197, 94, 0.1); } 100% { background: transparent; } }
@keyframes member-row-in { from { opacity: 0; } to { opacity: 1; } }
.force-verify-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.force-verify-skip {
  display: block; background: none; border: 0; padding: 0; margin-top: 12px;
  font-size: 12.5px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; transition: color 0.15s ease;
}
.force-verify-skip:hover { color: var(--accent-dim); }
.force-verify-skip:disabled { opacity: 0.6; cursor: default; text-decoration: none; }

.action-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.action-modal-backdrop[hidden] { display: none; }
.action-modal-backdrop.action-modal-in {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.action-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.action-modal-backdrop.action-modal-in .action-modal {
  opacity: 1;
}
.action-modal h2 { font-size: 16px; margin: 0 0 4px; }
.action-modal .action-modal-sub { font-size: 13px; color: var(--text-faint); margin: 0 0 16px; }
.action-modal .action-modal-warning {
  font-size: 12.5px;
  color: var(--red);
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 14px;
}
.action-modal label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.action-modal input[type=text], .action-modal textarea { width: 100%; }
.action-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.crop-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.crop-modal-backdrop.crop-modal-in {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.crop-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.crop-modal-backdrop.crop-modal-in .crop-modal { opacity: 1; }
.crop-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.crop-modal-head h2 { font-size: 17px; margin: 0; }
.crop-modal-close {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex;
}
.crop-modal-close:hover { color: var(--text); background: var(--bg-hover); }
.crop-modal-stage-wrap { display: flex; justify-content: center; background: var(--bg-raised); border-radius: 10px; padding: 24px; }
.crop-modal-stage { position: relative; overflow: hidden; background: #000; cursor: grab; border-radius: 6px; }
.crop-modal-stage:active { cursor: grabbing; }
.crop-modal-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-modal-mask { position: absolute; inset: 0; pointer-events: none; border: 2px solid #fff; box-sizing: border-box; }
.crop-modal-mask-circle { border-radius: 50%; }
.crop-modal-mask-rect { border-radius: 8px; }
.crop-modal-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.crop-modal-zoom-icon { color: var(--text-faint); flex-shrink: 0; }
.crop-modal-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: 999px; cursor: pointer; background: var(--border-strong);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: var(--crop-fill, 0%) 100%;
}
.crop-modal-slider::-webkit-slider-thumb {
  -webkit-appearance: none; box-sizing: border-box; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.crop-modal-slider::-moz-range-track { height: 4px; border-radius: 999px; background: var(--border-strong); }
.crop-modal-slider::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.crop-modal-slider::-moz-range-thumb {
  box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.crop-modal-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.crop-modal-actions-right { display: flex; gap: 10px; }
.crop-modal-reset { font-size: 13.5px; color: var(--accent); text-decoration: none; }
.crop-modal-reset:hover { text-decoration: underline; }

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--text-faint);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.55);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.26s ease;
  width: 360px;
  max-width: 100%;
}
.toast-in { opacity: 1; }
.toast-out {
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.36s cubic-bezier(0.4, 0, 1, 1), transform 0.36s cubic-bezier(0.4, 0, 1, 1);
}
.toast-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.toast-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.toast-message { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); overflow-wrap: anywhere; }

.toast-loading { border-left-color: var(--accent); }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-warning { border-left-color: #e5a449; }
.toast-info { border-left-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s ease; transform: none; }
  .toast-out { transform: none; }
}
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: 100%; }
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
:is(button, .btn)[aria-busy="true"] { cursor: progress; }
html[data-busy-buttons] :is(button, .btn)[aria-busy="true"] { position: relative; -webkit-text-fill-color: transparent; }
html[data-busy-buttons] :is(button, .btn)[aria-busy="true"] > * { visibility: hidden; }
html[data-busy-buttons] :is(button, .btn)[aria-busy="true"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; box-sizing: border-box; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: btn-busy-spin 0.7s linear infinite; }
html[data-busy-buttons] .btn-sm[aria-busy="true"]::after { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
@keyframes btn-busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html[data-busy-buttons] :is(button, .btn)[aria-busy="true"]::after { animation-duration: 1.6s; } }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid:has(> :nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
  .server-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-add-discord { display: none; }
  .sidebar { display: none; }
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    inset: 0 20% 0 0;
    z-index: 60;
    height: 100vh;
    box-shadow: 30px 0 60px rgba(0,0,0,0.5);
  }
  .main-content { padding: 20px 16px 60px; height: auto; overflow-y: visible; }
  .mobile-topbar { display: flex; margin: -20px -16px 20px; }
  .main-content > .incident-banner { margin: -20px -16px 20px; }
  .main-content > .promo-banner { margin: -20px -16px 20px; }
  .app-shell { display: block; height: auto; overflow: visible; }
  .sidebar-link-indicator { display: none !important; }
}

@media (max-width: 700px) {
  .activity-row { gap: 48px; min-width: 940px; }
  .activity-row > :nth-child(3),
  .activity-row > :nth-child(4) {
    text-align: center;
    padding-left: 22px;
  }
  .activity-row > * { min-width: 0; }
  .activity-row .cell-user > *:not(img) { min-width: 0; }
  .activity-row .cell-user .mono { white-space: nowrap; }

  .table-wrap { border: none; overflow-x: visible; }
  .table-wrap table { min-width: 0; width: 100%; }
  .table-wrap table thead { display: none; }
  .table-wrap table, .table-wrap table tbody, .table-wrap table tr { display: block; width: 100%; }
  .table-wrap table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 10px;
    padding: 4px 14px;
  }
  .table-wrap table tr:last-child { margin-bottom: 0; }
  .table-wrap table td {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
  }
  .table-wrap table td:last-child { border-bottom: none; }
  .table-wrap table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 4px;
  }
  .table-wrap table td.cell-user { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .table-wrap table td.cell-user[data-label]::before { flex-basis: 100%; margin-bottom: 0; }
  .table-wrap .cell-user .mono, .table-wrap .cell-user .copy-id-wrap { white-space: nowrap; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .footer-grid { flex-direction: column; }
  .footer-brand { flex: none; min-width: 0; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .btn { width: 100%; }
  th, td { padding: 10px 12px; font-size: 12.5px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.incident-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 44px;
  background: rgba(229, 72, 77, 0.12);
  border-bottom: 1px solid rgba(229, 72, 77, 0.35);
  color: var(--text);
  font-size: 13.5px;
  text-align: center;
  position: relative;
}
.incident-banner[hidden] { display: none; }
.main-content > .incident-banner { margin: -32px -32px 20px; }
.incident-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
  flex-shrink: 0;
  animation: incident-banner-pulse 1.8s ease-in-out infinite;
}
@keyframes incident-banner-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.incident-banner-text a { color: inherit; font-weight: 600; text-decoration: underline; }
.incident-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.16s ease;
}
.incident-banner-close:hover { color: var(--text); }

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 44px;
  background: rgba(245, 234, 81, 0.08);
  border-bottom: 1px solid rgba(245, 234, 81, 0.3);
  color: var(--text);
  font-size: 13.5px;
  text-align: center;
  position: relative;
}
.promo-banner[hidden] { display: none; }
.main-content > .promo-banner { margin: -32px -32px 20px; }
.main-content > .incident-banner + .promo-banner { margin-top: -20px; }
.promo-banner-code { color: var(--accent); letter-spacing: 0.03em; }
.promo-banner-countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.promo-banner-time,
.promo-banner-text a { white-space: nowrap; }
.promo-banner-sep { margin: 0 6px; color: var(--text-faint); }
.promo-banner-text a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.promo-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.16s ease;
}
.promo-banner-close:hover { color: var(--text); }

@media (max-width: 640px) {
  .incident-banner { font-size: 12.5px; padding: 10px 36px; }
  .promo-banner { font-size: 12.5px; padding: 10px 36px; }
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 380px;
  opacity: 1;
  transition: opacity 0.28s ease;
}
.cookie-banner-hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner span { font-size: 13px; color: var(--text-dim); }
.cookie-banner a { color: var(--text); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

@media (max-width: 480px) {
  .cookie-banner { left: 16px; right: 16px; max-width: none; flex-direction: column; align-items: stretch; text-align: center; }
}

html:has(.docs-shell),
html:has(.docs-shell) body { overflow-x: clip; overflow-y: visible; }
.docs-shell {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 36px 24px 90px;
  box-sizing: border-box;
}
.docs-sidebar {
  position: sticky;
  top: 84px;
  flex: 0 0 248px;
  width: 248px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 0 10px 40px 0;
  border-right: 1px solid var(--border);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.docs-mobilebar, .docs-sidebar-backdrop { display: none; }
@media (prefers-reduced-motion: reduce) { .docs-sidebar, .docs-sidebar-backdrop { transition: none !important; } }
.docs-search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px 9px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-faint);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, color 0.14s ease;
}
.docs-search-trigger:hover { border-color: var(--border-strong); color: var(--text-dim); }
.docs-search-trigger:focus { outline: none; }
.docs-search-trigger:focus-visible { border-color: var(--text-faint); }
.docs-search-trigger span { flex: 1; }
.docs-search-trigger kbd,
.docs-palette kbd {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.docs-nav { position: relative; }
.docs-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), height 0.24s ease;
}
.docs-nav-indicator[hidden] { display: none; }
.docs-nav.has-indicator .docs-nav-link { position: relative; z-index: 1; }
.docs-nav.has-indicator .docs-nav-link.active { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .docs-nav-indicator { transition: none; }
}
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 0 12px 8px;
}
.docs-nav-group-title .docs-icon { color: var(--text); }
.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  margin-bottom: 1px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-dim);
  transition: color 0.14s ease, background 0.14s ease;
}
.docs-nav-link .docs-icon { flex-shrink: 0; color: var(--text-faint); transition: color 0.14s ease; }
.docs-nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.docs-nav-link:hover .docs-icon { color: var(--text-dim); }
.docs-nav-link.active { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.07); }
.docs-nav-link.active .docs-icon { color: var(--text); }
.docs-nav-external { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.docs-method {
  flex-shrink: 0;
  width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 5px;
  padding: 2px 0;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
}
.docs-method-get { color: #9fd9b0; }
.docs-method-post { color: #9fbde0; }
.docs-method-put { color: #e0cf8f; }
.docs-method-delete { color: #e09f9f; }

.docs-content { flex: 1; min-width: 0; max-width: 760px; }
.docs-content .docs-eyebrow { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-bottom: 6px; }
.docs-content .docs-eyebrow-link { color: inherit; text-decoration: none; }
.docs-content .docs-eyebrow-link:hover { color: var(--accent); }
.docs-content p a, .docs-content li a, .docs-content td a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.docs-content p a:hover, .docs-content li a:hover, .docs-content td a:hover { color: var(--accent-dim); }
.docs-content h1 { margin-top: 0; }
.docs-content .updated { margin-bottom: 36px; }
.docs-content section { margin-bottom: 52px; scroll-margin-top: 96px; }
.docs-content section:last-child { margin-bottom: 0; }
.docs-content h3 { scroll-margin-top: 96px; font-size: 16px; margin: 26px 0 10px; }
.docs-content pre.mono {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.code-tabs {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}
.code-tabs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.code-tabs-bar {
  position: relative;
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}
.code-tabs-bar::-webkit-scrollbar { display: none; }
.code-tabs-pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 8px;
  background: #222228;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
.code-tabs-pill.is-ready { opacity: 1; }
.code-tabs-pill.no-anim { transition: none; }
.code-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.code-tab:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.025); }
.code-tab.is-active { color: var(--text); background: transparent; }
.code-tab:focus-visible { outline: 2px solid var(--border-strong); outline-offset: -2px; }
.code-tab-logo {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: currentColor;
  opacity: 0.75;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.code-tab:hover .code-tab-logo { opacity: 1; }
.code-tab.is-active .code-tab-logo { opacity: 1; }
.code-tab.is-active[data-lang="javascript"] .code-tab-logo { color: #f7df1e; }
.code-tab.is-active[data-lang="python"] .code-tab-logo { color: #5a9fd4; }
.code-tab.is-active[data-lang="go"] .code-tab-logo { color: #00add8; }
.code-tab.is-active[data-lang="php"] .code-tab-logo { color: #8892bf; }
.code-tab.is-active[data-lang="curl"] .code-tab-logo { color: var(--text); }
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.code-copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.code-copy.is-copied { color: var(--green); }
.code-copy svg { width: 14px; height: 14px; }
.code-copy-label { display: inline-block; min-width: 46px; transition: opacity 0.12s ease, transform 0.12s ease; }
.code-copy-label.is-swapping { opacity: 0; transform: translateY(2px); }
.code-tabs-body { position: relative; }
.code-tabs-body.is-resizing { overflow: hidden; transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.code-panel {
  transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.code-panel[hidden] { display: none; }
.code-panel.is-entering { opacity: 0; transform: translateY(6px); transition: none; }
.code-panel.is-leaving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.code-needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px 0;
  color: var(--text-faint);
  font-size: 12.5px;
}
.code-needs-install {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: 12px;
}
.docs-content .code-tabs pre.mono {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  tab-size: 4;
}
.docs-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.docs-table th { text-align: left; font-weight: 600; color: var(--text); padding: 10px 12px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.docs-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.docs-table td:first-child { white-space: nowrap; overflow-wrap: normal; }
.docs-table tr:last-child td { border-bottom: 1px solid var(--border); }
.docs-table code { white-space: nowrap; }
.docs-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 14px;
}
.docs-callout strong { color: var(--text); }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.docs-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.14s ease;
}
.docs-card:hover { border-color: var(--border-strong); }
.docs-card .docs-icon { color: var(--text); margin-bottom: 10px; }
.docs-card-title { display: block; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.docs-card-desc { display: block; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.docs-endpoint-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #9fd9b0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 10px;
  vertical-align: middle;
}

.docs-toc {
  position: sticky;
  top: 84px;
  flex: 0 0 200px;
  width: 200px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.docs-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.docs-toc-link {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.docs-toc-link:hover { color: var(--text-dim); }
.docs-toc-link.active { color: var(--text); border-left-color: var(--text); }

html.docs-palette-open { overflow: hidden; }
.docs-palette {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}
.docs-palette[hidden] { display: none; }
.docs-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.docs-palette-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #111114;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.docs-palette.visible .docs-palette-backdrop { opacity: 1; }
.docs-palette.visible .docs-palette-panel { opacity: 1; }
.docs-palette.closing .docs-palette-panel { transition: opacity 0.16s ease; }
.docs-palette.closing .docs-palette-backdrop { transition-duration: 0.18s; }
.docs-palette-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  cursor: text;
}
.docs-palette .docs-palette-field,
.docs-palette .docs-palette-field:focus {
  flex: 1;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
}
.docs-palette .docs-palette-field::-webkit-search-cancel-button { display: none; }
.docs-palette-results { transition: height 0.26s cubic-bezier(0.4, 0, 0.2, 1); }
.docs-palette-results.is-animating { overflow: hidden; }
.docs-palette-results .is-new { animation: docsResultIn 0.26s ease both; }
@keyframes docsResultIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .docs-palette-results { transition: none; }
  .docs-palette-results .is-new { animation: none; }
}
.docs-palette .docs-palette-field::placeholder { color: var(--text-faint); font-weight: 400; }
.docs-palette-esc {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  transition: color 0.14s ease;
}
.docs-palette-esc:hover { color: var(--text); }
.docs-palette-results { flex: 1; overflow-y: auto; padding: 8px; }
.docs-palette-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
}
.docs-palette-item.selected { background: rgba(255, 255, 255, 0.06); }
.docs-palette-hash { color: var(--text-faint); font-size: 15px; line-height: 20px; }
.docs-palette-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docs-palette-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.docs-palette-crumb,
.docs-palette-snippet { font-size: 12.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-palette-snippet { color: var(--text-dim); }
.docs-palette mark { background: none; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--text-faint); text-underline-offset: 3px; }
.docs-palette-title mark { color: #fff; }
.docs-palette-empty { padding: 26px 12px; text-align: center; font-size: 13.5px; color: var(--text-faint); }
.docs-palette-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}
.docs-palette-footer span { display: inline-flex; align-items: center; gap: 5px; }
.docs-palette-footer-close { margin-left: auto; }

@media (max-width: 1180px) {
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-shell { flex-direction: column; gap: 20px; padding-top: 0; }
  .docs-mobilebar {
    display: flex;
    position: sticky;
    top: var(--docs-topnav-height, 64px);
    z-index: 40;
    width: calc(100% + 48px);
    margin: 0 -24px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 6, 0.94);
    backdrop-filter: blur(14px);
  }
  .docs-mobilebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .docs-mobilebar-toggle svg { flex-shrink: 0; color: var(--accent); }
  .docs-mobilebar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(320px, 82vw);
    max-height: none;
    padding: 20px 16px 32px;
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    overscroll-behavior: contain;
  }
  .docs-sidebar.mobile-open {
    transform: none;
    visibility: visible;
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  }
  .docs-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .docs-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  html.docs-drawer-open, html.docs-drawer-open body { overflow: hidden; }
  .docs-content { width: 100%; }
  .docs-cards { grid-template-columns: 1fr; }
  .docs-palette { padding-top: 16px; }
  .docs-palette-footer span:not(.docs-palette-footer-close) { display: none; }
}

.cmd-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 40px 0 14px;
}
.cmd-group-title:first-child { margin-top: 0; }
.cmd-perm-hint {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-faint);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.cmd-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cmd-row { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cmd-row:last-child { border-bottom: none; }
.cmd-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cmd-name {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}
.cmd-arg { color: var(--text-faint); font-weight: 400; }
.cmd-desc { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.copy-id-wrap { display: inline-flex; align-items: center; gap: 4px; }
.copy-id-btn {
  background: none;
  border: none;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.copy-id-btn:hover { color: var(--text); background: var(--bg-hover); }

.chart-hover-line {
  position: absolute;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.chart-tooltip {
  position: absolute;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  min-width: 130px;
  z-index: 5;
}
.chart-tooltip-date { color: var(--text-faint); font-size: 11px; margin-bottom: 5px; font-weight: 600; }
.chart-tooltip-today { color: var(--accent); }
.chart-tooltip-row { display: flex; align-items: center; gap: 6px; color: var(--text-dim); line-height: 1.6; }
.chart-tooltip-row b { color: var(--text); font-weight: 700; }
.chart-tooltip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.range-switch { position: relative; display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.range-switch-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--accent);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}
.range-switch a,
.range-switch button {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s ease;
}
.range-switch a:hover,
.range-switch button:hover { color: var(--text); }
.range-switch a.active:hover,
.range-switch button.active:hover { color: var(--accent-ink); }
.range-switch a.active,
.range-switch button.active { color: var(--accent-ink); }
.range-switch a + a,
.range-switch button + button { border-left: 1px solid var(--border-strong); }
.range-switch a.active,
.range-switch button.active,
.range-switch a.active + a,
.range-switch button.active + button { border-left-color: transparent; }

.api-showcase.live-log-showcase { align-items: start; }
.live-log-copy .eyebrow { display: block; margin-bottom: 10px; }
.live-log-copy h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 14px; }
.live-log-copy p { font-size: 15px; max-width: 460px; }
.live-log-copy p:last-child { margin-bottom: 0; }

.discord-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.5s linear;
}
.discord-preview.discord-preview-in { opacity: 1; }

.discord-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.discord-preview-hash { color: var(--text-faint); font-size: 19px; font-weight: 800; line-height: 1; }
.discord-preview-channel { font-weight: 700; font-size: 15px; color: var(--text); }
.discord-preview-topic-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 2px; flex-shrink: 0; }
.discord-preview-topic {
  font-size: 12.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.discord-preview-messages { background: var(--bg); padding: 12px 0 16px; }

.dcp {
  background: #323339;
  border-radius: var(--radius);
  padding: 8px;
  max-width: 640px;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
.dcp-msg-header { display: none; }
.dcp-card {
  position: relative;
  background: #36393f;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  padding: 16px;
  margin: 0;
  max-width: 100%;
}
.dcp-card-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #f5ea51;
}
.dcp-card-body { display: flex; flex-direction: column; }

.dcp-content-block { display: flex; align-items: flex-start; gap: 16px; }
.dcp-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.375; color: #dcddde; white-space: pre-wrap; word-wrap: break-word; }
.dcp-text:empty::before { content: '\A0'; }
.dcp-text h1 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.3; }
.dcp-text strong { color: #dcddde; font-weight: 700; }
.dcp-text code { background: #2e2f33; padding: 1px 4px; border-radius: 3px; font-family: Consolas, monospace; font-size: 13.5px; }
.dcp-text a { color: #00a8fc; text-decoration: none; }
.dcp-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

.dcp-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 12px 0; flex-shrink: 0; }
.dcp-image { width: 100%; border-radius: 8px; display: block; max-height: 260px; object-fit: cover; }

.dcp-buttons { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.dcp-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 4px; border: none;
  font-size: 13px; font-weight: 500; line-height: 1; color: #fff; cursor: pointer;
  font-family: inherit; transition: background 0.12s ease;
}
.dcp-btn.dcp-style-secondary { background: #4f545c; color: #fff; }
.dcp-btn.dcp-style-secondary:hover { background: #6d6f78; }
.dcp-btn.dcp-style-primary { background: #5865f2; }
.dcp-btn.dcp-style-primary:hover { background: #4752c4; }
.dcp-btn.dcp-style-success { background: #248046; }
.dcp-btn.dcp-style-success:hover { background: #1a6334; }
.dcp-btn.dcp-style-danger { background: #da373c; }
.dcp-btn.dcp-style-danger:hover { background: #a12828; }
.dcp-btn.dcp-style-link { background: #4f545c; color: #fff; }
.dcp-btn.dcp-style-link:hover { background: #6d6f78; }
.dcp-btn-emoji { display: inline-flex; align-items: center; line-height: 1; }
.dcp-btn-emoji img { width: 16px; height: 16px; vertical-align: middle; }
.dcp-btn-link-icon { width: 13px; height: 13px; }

.discord-msg {
  display: flex;
  gap: 14px;
  padding: 7px 18px;
  transition: opacity 0.36s linear;
  opacity: 0;
  transition-delay: calc(var(--i, 0) * 210ms);
}
.discord-preview-loaded .discord-msg { opacity: 1; }
.discord-msg-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; object-fit: cover; }
.discord-msg-body { min-width: 0; flex: 1; }
.discord-msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.discord-msg-author { font-weight: 600; font-size: 14.5px; color: var(--text); }
.discord-msg-time { font-size: 11px; color: var(--text-faint); }

.discord-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 5px 2px 4px;
  border-radius: 4px;
  line-height: 1;
}
.discord-app-badge svg { width: 9px; height: 9px; color: #fff; }

.discord-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 10px 17px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 480px;
}
.discord-container::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--c, var(--border-strong));
}
.discord-container strong { color: var(--text); font-weight: 700; }
.discord-container-green { --c: #4caf82; }
.discord-container-red { --c: #e5484d; }

.discord-container-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.discord-container-title { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 2px; }
.discord-container-thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; margin: 2px 2px 0 0; }
.discord-container-divider { height: 1px; background: var(--border); margin: 10px 0; }
.discord-container-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }
.discord-container-meta > div { white-space: nowrap; }

.discord-timestamp {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 3px;
  border-radius: 4px;
  transition: background 0.14s ease;
}
.discord-timestamp:hover { background: rgba(255, 255, 255, 0.14); }

.discord-mention {
  background: rgba(88, 101, 242, 0.22);
  color: #c9cdfb;
  padding: 1px 2px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.14s ease;
}
.discord-mention:hover { background: rgba(88, 101, 242, 0.38); }

@media (max-width: 640px) {
  .discord-msg { padding: 7px 12px; gap: 10px; }
  .discord-msg-avatar { width: 32px; height: 32px; }
  .discord-container { max-width: none; }
  .discord-preview-header { padding: 13px 14px; }
  .discord-preview-topic { display: none; }
  .discord-preview-topic-sep { display: none; }
}

.apply-rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .apply-rank-grid { grid-template-columns: 1fr; }
}

a.review-category-card,
a.review-category-card:hover {
  text-decoration: none;
  color: inherit;
}
a.review-category-card {
  display: block;
  will-change: transform;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
a.review-category-card:hover { border-color: var(--accent); background: var(--bg-hover); }
a.review-category-card:active { transform: scale(0.98); }

.apply-progress { margin-bottom: 28px; }
.apply-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.apply-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 75%, white) 100%);
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.apply-progress-label {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.apply-step[hidden] { display: none; }
.apply-step { padding: 28px 26px; margin-bottom: 20px; }

.apply-step-title {
  font-size: 18px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.apply-step-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.apply-step-subtitle { color: var(--text-faint); font-size: 13.5px; margin: -12px 0 20px; }

.apply-field {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.apply-field:first-of-type { padding-top: 0; }
.apply-field:last-child { padding-bottom: 0; border-bottom: none; }
.apply-question-label { line-height: 1.45; }
.apply-field textarea.apply-autogrow,
.apply-field input[type=text] { margin-top: 12px; }

.apply-review-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.apply-review-row:last-child { border-bottom: none; }
.apply-review-question { font-size: 12.5px; font-weight: 600; color: var(--text-faint); margin-bottom: 4px; }
.apply-review-answer { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

.field input.field-error,
.field textarea.field-error {
  border-color: var(--red);
}

.required-star { color: var(--red); margin-left: 3px; }

.apply-checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.apply-checkbox-wrap { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-top: 0; }
.apply-checkbox-wrap input[type="checkbox"] {
  position: absolute; inset: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer;
}
.apply-checkbox-box {
  position: absolute; inset: 0; border-radius: 6px; border: 2px solid var(--border-strong);
  background: var(--bg-raised); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.apply-checkbox-box::after {
  content: ''; width: 5px; height: 9px; margin-top: -2px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
  opacity: 0; transition: opacity 0.1s ease;
}
.apply-checkbox-wrap input[type="checkbox"]:hover ~ .apply-checkbox-box { border-color: var(--text-faint); }
.apply-checkbox-wrap input[type="checkbox"]:checked ~ .apply-checkbox-box { background: var(--accent); border-color: var(--accent); }
.apply-checkbox-wrap input[type="checkbox"]:checked ~ .apply-checkbox-box::after { opacity: 1; }
.apply-checkbox-wrap input[type="checkbox"]:focus-visible ~ .apply-checkbox-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply-checkbox-wrap input[type="checkbox"].field-error ~ .apply-checkbox-box {
  border-color: var(--red);
}

.apply-step {
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.field label.apply-question-label { font-weight: 400; }
.apply-step-exit-left { opacity: 0; }
.apply-step-exit-right { opacity: 0; }
.apply-step-enter-left { opacity: 0; }
.apply-step-enter-right { opacity: 0; }

.apply-rank-card { display: flex; flex-direction: column; height: 100%; }
.apply-rank-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.apply-rank-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apply-rank-list li { line-height: 1.45; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-link:hover { color: var(--accent); }
.back-link-arrow { display: inline-flex; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.back-link:hover .back-link-arrow { transform: translateX(-4px); }

.discord-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid;
}
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-carousel[data-testimonial-carousel] {
  transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}
.testimonial-carousel[data-testimonial-carousel]:active { cursor: grabbing; }
.testimonial-track { display: flex; }
.testimonial-carousel[data-testimonial-carousel] .testimonial-track {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-track .testimonial-spotlight { flex: 0 0 100%; min-width: 0; align-self: flex-start; }

.testimonial-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
}
.testimonial-spotlight-text { max-width: 520px; }
.testimonial-spotlight-reverse .testimonial-spotlight-text { order: 2; justify-self: end; }
.testimonial-spotlight-reverse .testimonial-spotlight-image { order: 1; }
.testimonial-spotlight-noimage {
  grid-template-columns: 1fr;
  justify-items: start;
}
.testimonial-spotlight-noimage .testimonial-spotlight-text {
  max-width: 640px;
  order: initial;
  justify-self: start;
}
.testimonial-spotlight-quote {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.testimonial-spotlight-quote::before,
.testimonial-spotlight-quote::after {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-spotlight-quote::before { content: '\201C'; margin-right: 2px; }
.testimonial-spotlight-quote::after { content: '\201D'; margin-left: 2px; }
.testimonial-spotlight-quote.tw-hide-open::before { opacity: 0; }
.testimonial-spotlight-quote.tw-hide-close::after { opacity: 0; }
.testimonial-highlight { color: var(--accent); font-weight: 700; }
.testimonial-spotlight-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-attribution-hidden { opacity: 0; }
.testimonial-spotlight-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.testimonial-spotlight-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.testimonial-spotlight-rank { color: var(--text-faint); font-weight: 700; }
.testimonial-spotlight-server {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
.testimonial-spotlight-server-icon { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.testimonial-spotlight-image {
  height: 380px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 100%);
  mask-image: linear-gradient(to left, black 55%, transparent 100%);
}
.testimonial-spotlight-reverse .testimonial-spotlight-image {
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
  mask-image: linear-gradient(to right, black 55%, transparent 100%);
}
@media (max-width: 860px) {
  .testimonial-spotlight { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-spotlight-text { max-width: none; }
  .testimonial-spotlight-reverse .testimonial-spotlight-text { justify-self: stretch; }
  .testimonial-spotlight-noimage .testimonial-spotlight-text { justify-self: stretch; }
  .testimonial-spotlight-image { display: none; }
  .testimonial-spotlight-quote { font-size: 18px; }
}

.inline-arrow {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.45em;
  vertical-align: -0.17em;
  opacity: 0.85;
  flex-shrink: 0;
}

.docs-nav-link .docs-icon:empty { display: none; }
.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 18px 20px 16px;
  margin: 14px 0;
  scroll-margin-top: 96px;
}
.guide-card h3 { margin: 0 0 12px; font-size: 16px; scroll-margin-top: 110px; }
.guide-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 14px 0 6px;
}
.guide-card h3 + .guide-label { margin-top: 0; }
.guide-quote {
  padding: 10px 14px;
  border-left: 2px solid var(--border-strong);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
}
.guide-list { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; }
.guide-list li { margin: 4px 0; }
.guide-note {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-dim);
}
.guide-card.guide-flash { animation: guide-flash 1.6s ease-out; }
@keyframes guide-flash {
  0%, 30% {
    border-color: rgba(255, 255, 255, 0.5);
    background: #1f1f25;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  }
  100% {
    border-color: var(--border);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
  }
}

.notfound {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 16px 80px;
  overflow: hidden;
}
.notfound-stars,
.notfound-stars::before,
.notfound-stars::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.notfound-stars {
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.35) 45%, #000 100%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.35) 45%, #000 100%);
  background-image:
    radial-gradient(1.6px 1.6px at 7% 12%, rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.6px 1.6px at 23% 41%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.6px 1.6px at 38% 8%, rgba(255, 255, 255, 0.84), transparent),
    radial-gradient(1.6px 1.6px at 51% 63%, rgba(255, 255, 255, 0.96), transparent),
    radial-gradient(1.6px 1.6px at 66% 27%, rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.6px 1.6px at 79% 85%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.6px 1.6px at 91% 46%, rgba(255, 255, 255, 0.84), transparent),
    radial-gradient(1.6px 1.6px at 14% 77%, rgba(255, 255, 255, 0.96), transparent),
    radial-gradient(1.6px 1.6px at 31% 94%, rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.6px 1.6px at 58% 18%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.6px 1.6px at 72% 55%, rgba(255, 255, 255, 0.84), transparent),
    radial-gradient(1.6px 1.6px at 86% 9%, rgba(255, 255, 255, 0.96), transparent),
    radial-gradient(1.6px 1.6px at 4% 52%, rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.6px 1.6px at 45% 33%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.6px 1.6px at 63% 90%, rgba(255, 255, 255, 0.84), transparent),
    radial-gradient(1.6px 1.6px at 96% 71%, rgba(255, 255, 255, 0.96), transparent);
  background-size: 260px 260px;
  animation: notfound-twinkle 5s ease-in-out infinite alternate;
}
.notfound-stars::before {
  content: '';
  background-image:
    radial-gradient(2.2px 2.2px at 11% 30%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2.2px 2.2px at 34% 68%, rgba(255, 255, 255, 0.87), transparent),
    radial-gradient(2.2px 2.2px at 57% 12%, rgba(255, 255, 255, 0.99), transparent),
    radial-gradient(2.2px 2.2px at 77% 44%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2.2px 2.2px at 92% 88%, rgba(255, 255, 255, 0.87), transparent),
    radial-gradient(2.2px 2.2px at 20% 90%, rgba(255, 255, 255, 0.99), transparent),
    radial-gradient(2.2px 2.2px at 48% 52%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2.2px 2.2px at 69% 76%, rgba(255, 255, 255, 0.87), transparent);
  background-size: 410px 410px;
  animation: notfound-twinkle 7s ease-in-out -2s infinite alternate;
}
.notfound-stars::after {
  content: '';
  background-image:
    radial-gradient(2.8px 2.8px at 18% 22%, rgba(255, 255, 255, 1.00), transparent),
    radial-gradient(2.8px 2.8px at 73% 64%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(2.2px 2.2px at 42% 86%, rgba(245, 234, 81, 0.85), transparent),
    radial-gradient(2.8px 2.8px at 88% 30%, rgba(245, 234, 81, 0.80), transparent),
    radial-gradient(2.2px 2.2px at 61% 40%, rgba(255, 255, 255, 1.00), transparent);
  background-size: 620px 620px;
  animation: notfound-twinkle 3.6s ease-in-out -1s infinite alternate;
}
.notfound-code {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(96px, 22vw, 180px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #3a3a43 0%, #18181d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  user-select: none;
}
.notfound-planet {
  width: 0.82em;
  height: 0.82em;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(245, 234, 81, 0.25));
  animation: notfound-float 4.5s ease-in-out infinite;
}
.notfound h1 { position: relative; font-size: clamp(26px, 5vw, 36px); margin: 0 0 10px; }
.notfound p { position: relative; max-width: 460px; color: var(--text-dim); margin: 0 0 28px; }
.notfound-path {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-all;
}
.notfound-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@keyframes notfound-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}
@keyframes notfound-twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .notfound-planet, .notfound-stars, .notfound-stars::before, .notfound-stars::after { animation: none; }
}

.mail-page { max-width: 1180px; padding-top: 48px; padding-bottom: 80px; }
.mail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.mail-form { display: flex; flex-direction: column; gap: 16px; }
.mail-field { display: flex; flex-direction: column; gap: 6px; }
.mail-field > span { font-size: 13px; font-weight: 600; color: var(--text); }
.mail-field > span small, .mail-field > small { font-weight: 400; color: var(--text-faint); font-size: 12.5px; }
.mail-field textarea { resize: vertical; min-height: 220px; font-family: var(--font); line-height: 1.6; }
.mail-form .btn { align-self: flex-start; }
.mail-preview { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mail-preview-head { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.mail-preview iframe { display: block; width: 100%; flex: 1; min-height: 480px; border: 0; background: #09090b; }
@media (max-width: 900px) {
  .mail-layout { grid-template-columns: 1fr; }
  .mail-preview iframe { min-height: 560px; }
}
.mail-attach { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mail-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.mail-attach-btn:hover { color: var(--text); border-color: var(--text-faint); background: rgba(255, 255, 255, 0.03); }
.mail-attach-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.mail-attach-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-attach-list:empty { display: none; }
.mail-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-hover);
  font-size: 13px;
}
.mail-attach-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.mail-attach-size { color: var(--text-faint); flex-shrink: 0; }
.mail-attach-remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.mail-attach-remove:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.mail-preview-attachments { padding: 14px 16px 16px; border-top: 1px solid var(--border); background: var(--bg-card); }
.mail-preview-attachments-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }
.mail-preview-files { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-preview-file {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 210px;
  max-width: 100%;
  padding: 8px 6px 8px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-hover);
}
.mail-preview-file-type {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f5ea51;
  color: #1a1704;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mail-preview-file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mail-preview-file-name { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-preview-file-size { font-size: 11.5px; color: var(--text-faint); }
.mail-preview-file-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.mail-preview-file-remove:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.mail-button-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
.mail-field > .mail-button-fields:has(.field-float) { margin-top: -2px; }
@media (max-width: 520px) { .mail-button-fields { grid-template-columns: 1fr; } }

.mail-sent-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 40px 0 14px; flex-wrap: wrap; }
.mail-sent-status { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.mail-sent-card .alt-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-sent-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; overflow-wrap: anywhere; }
.mail-sent-files { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
.mail-sent-files .mail-preview-file { max-width: 260px; }
.mail-sent-section-label { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.mail-sent-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 12px; background: #09090b; }
.mail-sent-empty { margin: 0; font-size: 13.5px; color: var(--text-faint); }
.mail-reply { border: 1px solid var(--border); border-left: 3px solid var(--green, #3ecf8e); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.mail-reply + .mail-reply { margin-top: 10px; }
.mail-reply-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.mail-reply-from { font-weight: 600; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.mail-reply-address { font-size: 12.5px; color: var(--text-faint); overflow-wrap: anywhere; }
.mail-reply-time { flex-shrink: 0; font-size: 12.5px; color: var(--text-faint); }
.mail-reply-text { font-size: 14px; line-height: 1.65; color: var(--text-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-reply-files { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .mail-sent-frame { height: 460px; }
  .mail-reply-head { flex-direction: column; gap: 4px; }
}
.mail-sent-card .apply-review-answer { white-space: normal; }
.mail-sent-head > div:first-child { flex: 1; min-width: 0; }
.mail-replied-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.mail-sent-card { scroll-margin-top: 84px; }

.signal-remove-cell { display: flex; justify-content: flex-end; }
.signal-remove-cell form { margin: 0; }
.signal-remove-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text-faint); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.signal-remove-btn:hover, .signal-remove-btn:focus-visible { color: var(--red); background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.25); outline: none; }
.btn.apply-closed-btn[disabled] { opacity: 1; line-height: inherit; color: var(--text-faint); cursor: not-allowed; }

.testimonial-dots { margin-top: 32px; padding: 4px 0; }
.testimonial-dots-windowed { width: 90px; overflow: hidden; }
.testimonial-dots-strip { position: relative; display: flex; align-items: center; gap: 8px; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-dots-indicator {
  position: absolute;
  top: 0;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.testimonial-dot {
  flex-shrink: 0; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--border-strong); cursor: pointer;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}
.testimonial-dot:hover { background: var(--text-faint); }
.testimonial-dot.active { width: 26px; background: var(--accent); }
.testimonial-dot.edge { transform: scale(0.6); }
.testimonial-dot.hidden-dot { opacity: 0; pointer-events: none; }
.testimonial-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sup-page { max-width: 780px; padding-top: 48px; padding-bottom: 80px; }
.sup-head-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.sup-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-dim); }
.sup-status[hidden] { display: none; }
.sup-status[data-status="closed"] { color: var(--red); border-color: rgba(229, 72, 77, 0.3); background: rgba(229, 72, 77, 0.08); }
.sup-head-meta[hidden] { display: none; }

.sup-identity { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); font-size: 13.5px; font-weight: 600; }
.sup-identity img { width: 26px; height: 26px; border-radius: 50%; }
.sup-identity span { color: var(--text-faint); font-weight: 500; }

.sup-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.sup-card + .sup-card { margin-top: 16px; }
.sup-card h2 { font-size: 19px; margin: 0 0 6px; }
.sup-card-sub { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.6; }
.sup-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 24px 0 12px; }

.sup-view { animation: supFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes supFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


.sup-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border: 0; padding: 0; margin: 0; }
.sup-category { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-raised); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color 0.16s ease, background 0.16s ease; }
.sup-category:hover { border-color: var(--text-faint); }
.sup-category input { position: absolute; opacity: 0; pointer-events: none; }
.sup-category-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.sup-category:has(input:checked) { border-color: var(--accent); background: rgba(245, 234, 81, 0.06); }
.sup-category:has(input:checked) .sup-category-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-raised), inset 0 0 0 8px var(--accent); }
.sup-category:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.sup-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease; }
.sup-reveal.open { grid-template-rows: 1fr; opacity: 1; }
.sup-reveal-inner { overflow: hidden; min-height: 0; }
.sup-reveal-field { padding: 16px 2px 2px; }
.sup-reveal-field textarea { resize: vertical; min-height: 84px; }
@media (prefers-reduced-motion: reduce) { .sup-reveal { transition: none; } }
.sup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sup-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-faint); line-height: 1.55; margin-top: 16px; }
.sup-note svg { flex-shrink: 0; margin-top: 2px; }

.sup-queue { text-align: center; padding: 34px 26px; }
.sup-queue-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.sup-queue-position { font-size: 68px; font-weight: 800; line-height: 1.05; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.sup-queue-ahead { color: var(--text-dim); font-size: 14.5px; }
.sup-queue-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px auto 0; max-width: 440px; text-align: left; }
.sup-queue-stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-raised); }
.sup-queue-stat-label { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.sup-queue-stat-value { font-size: 17px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.sup-queue-stat-hint { font-size: 12px; color: var(--text-faint); margin-top: 2px; line-height: 1.4; }
.sup-pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; margin-top: 18px; }

.sup-meter { height: 6px; border-radius: 999px; background: var(--bg-hover); overflow: hidden; margin-top: 10px; }
.sup-meter-fill { height: 100%; width: 0%; background: var(--green); border-radius: inherit; transition: width 0.08s linear; }

.sup-call { text-align: center; padding: 34px 26px 28px; }
.sup-call-avatar { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; }
.sup-call-avatar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; background: var(--bg-hover); }
.sup-call-avatar::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.sup-mute-badge {
  position: absolute; z-index: 2; right: -2px; bottom: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transform: scale(0.6); opacity: 0; transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
  pointer-events: none;
}
.sup-mute-badge:not([hidden]) { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sup-mute-badge { transition: none; } }
.sup-call[data-call-state="connected"] .sup-call-avatar::after { border-color: transparent; }
.sup-call[data-call-state="connected"].is-speaking .sup-call-avatar::after { border-color: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.sup-call[data-call-state="connecting"] .sup-call-avatar::after,
.sup-call[data-call-state="reconnecting"] .sup-call-avatar::after {
  border: none;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin 1s linear infinite;
}
.sup-call[data-call-state="failed"] .sup-call-avatar::after { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .sup-call[data-call-state="connecting"] .sup-call-avatar::after,
  .sup-call[data-call-state="reconnecting"] .sup-call-avatar::after { animation: none; border: 2px solid var(--accent); background: none; -webkit-mask: none; mask: none; }
}
.sup-call-name { font-size: 19px; font-weight: 700; }
.sup-call-rank { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.sup-call-rank:empty { display: none; }
.sup-call-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-dim); margin-top: 16px; }
.sup-call-timer { font-size: 30px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.sup-call-flags { display: grid; justify-items: center; align-items: center; margin-top: 12px; min-height: 26px; }
.sup-flag {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.sup-flag.show {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) { .sup-flag { transition: opacity 0.2s ease, visibility 0s linear 0.2s; transform: none; } .sup-flag.show { transition: opacity 0.2s ease; } }
.sup-controls { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }
.sup-volume-row {
  display: flex; align-items: center; gap: 10px;
  width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 9px 14px 9px 12px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-faint); transition: border-color 0.16s ease;
}
.sup-volume-row:focus-within { border-color: var(--text-faint); }
.sup-volume-row svg { flex-shrink: 0; }
.sup-volume-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 130px; height: 4px; border-radius: 999px; cursor: pointer; background: var(--border-strong);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: var(--sup-vol-fill, 50%) 100%;
}
.sup-volume-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; box-sizing: border-box; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.sup-volume-row input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--border-strong); }
.sup-volume-row input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.sup-volume-row input[type="range"]::-moz-range-thumb {
  box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.sup-volume-row #volumeValue { font-size: 12px; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.sup-ctrl { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; color: var(--text-dim); font: 600 12px var(--font); cursor: pointer; padding: 0; }
.sup-ctrl-icon { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-hover); border: 1px solid var(--border-strong); color: var(--text); transition: background 0.16s ease, border-color 0.16s ease, transform 0.15s ease, filter 0.16s ease; }
.sup-ctrl:hover .sup-ctrl-icon { border-color: var(--text-faint); }
.sup-ctrl:active .sup-ctrl-icon { transform: scale(0.95); }
.sup-ctrl:focus-visible { outline: none; }
.sup-ctrl:focus-visible .sup-ctrl-icon { outline: 2px solid var(--accent); outline-offset: 3px; }
.sup-ctrl[aria-pressed="true"] .sup-ctrl-icon { background: #2a2a30; border-color: #45454d; color: var(--text); }
.sup-ctrl-end .sup-ctrl-icon { background: var(--red); border-color: var(--red); color: #fff; }
.sup-ctrl-end:hover .sup-ctrl-icon { border-color: var(--red); filter: brightness(1.08); }
.sup-ctrl:disabled { opacity: 0.45; cursor: not-allowed; }

.sup-alt { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-raised); margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.sup-alt .sup-actions { margin-top: 0; }
.sup-chat-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sup-chat-card > div { flex: 1 1 320px; min-width: 0; }
.sup-chat-card h2 { font-size: 16px; }
.sup-chat-card .sup-actions { margin-top: 0; flex: 0 0 auto; }

.sup-console .main-content-inner { max-width: 1240px; }
.sup-me { display: flex; align-items: center; gap: 10px; padding: 6px 10px 12px; }
.sup-me img { width: 32px; height: 32px; border-radius: 50%; }
.sup-me-name { font-size: 13.5px; font-weight: 600; }
.sup-me-role { font-size: 11.5px; color: var(--text-faint); }
.sup-nav button.sidebar-link { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--font); justify-content: space-between; }
.sup-nav button.sidebar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sup-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bg-hover); color: var(--text-dim); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sup-count[data-hot="1"] { background: var(--accent); color: var(--accent-ink); }
.sup-sidebar-foot { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.sup-sound { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-dim); padding: 4px 10px; }
.sup-sound[hidden] { display: none; }
.sup-sound + .sup-sound { margin-top: 8px; }
.sup-notify { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 13px; color: var(--text-dim); margin-top: 16px; cursor: pointer; }
.sup-queue .sup-notify { justify-content: center; }
.sup-notify[hidden] { display: none; }

.sup-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sup-stat-grid .stat-card .hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.sup-two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sup-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sup-panel + .sup-panel { margin-top: 16px; }
.sup-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sup-panel-head h2 { font-size: 15px; margin: 0; }
.sup-panel-body { padding: 6px 0; }
.sup-panel-empty { padding: 34px 18px; text-align: center; color: var(--text-faint); font-size: 13.5px; }
.sup-panel-empty strong { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 4px; }

.sup-row { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, 1.2fr) 92px 110px auto; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; transition: background 0.14s ease; }
.sup-row:last-child { border-bottom: 0; }
.sup-row:hover { background: var(--bg-hover); }
.sup-row-calls { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) 120px 92px auto; }
.sup-row-compact { grid-template-columns: 34px minmax(0, 1fr) 56px auto; }
.sup-row-pos { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-hover); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.sup-row-pos.is-next { background: rgba(245, 234, 81, 0.14); color: var(--accent); }
.sup-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sup-person img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--bg-hover); }
.sup-person-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-person-sub { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sup-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.sup-muted { color: var(--text-faint); }
.sup-mono { font-variant-numeric: tabular-nums; }
.sup-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.sup-icon-btn:hover { color: var(--text); border-color: var(--text-faint); }
.sup-icon-btn.danger:hover { color: var(--red); border-color: rgba(242, 85, 90, 0.4); background: var(--red-dim); }
.sup-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sup-badge-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-dim); white-space: nowrap; }
.sup-badge-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.sup-badge-state[data-s="waiting"], .sup-badge-state[data-s="assigned"], .sup-badge-state[data-s="connecting"], .sup-badge-state[data-s="escalated"], .sup-badge-state[data-s="busy"] { color: var(--accent); border-color: rgba(245, 234, 81, 0.28); background: rgba(245, 234, 81, 0.07); }
.sup-badge-state[data-s="in_call"], .sup-badge-state[data-s="resolved"], .sup-badge-state[data-s="available"] { color: var(--green); border-color: rgba(74, 222, 128, 0.25); background: rgba(74, 222, 128, 0.07); }
.sup-badge-state[data-s="failed"] { color: var(--red); border-color: rgba(242, 85, 90, 0.3); background: rgba(242, 85, 90, 0.07); }

.sup-staff-list { display: flex; flex-direction: column; }
.sup-staff-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.sup-staff-item:last-child { border-bottom: 0; }

.sup-workspace { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 22px; }
.sup-workspace .sup-call { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.sup-workspace-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid rgba(245, 234, 81, 0.3); background: rgba(245, 234, 81, 0.06); border-radius: var(--radius); margin-bottom: 14px; font-size: 13.5px; }
.sup-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; padding: 14px 18px; margin: 0; }
.sup-kv dt { color: var(--text-faint); }
.sup-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sup-notes { padding: 0 18px 16px; }
.sup-notes textarea { min-height: 120px; resize: vertical; }
.sup-notes-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.sup-modal-error { color: var(--red); font-size: 12.5px; min-height: 0; margin-top: 8px; }
.sup-modal-error:empty { display: none; }
.sup-transfer-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding: 2px; }
.sup-transfer-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-raised); cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease; }
.sup-transfer-option:hover { border-color: var(--text-faint); }
.sup-transfer-option input { position: absolute; opacity: 0; pointer-events: none; }
.sup-transfer-option img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.sup-transfer-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sup-transfer-option:has(input:checked) { border-color: var(--accent); background: rgba(245, 234, 81, 0.06); }
.sup-transfer-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sup-transfer-option.is-disabled { opacity: 0.5; cursor: not-allowed; }
.sup-incoming { border-color: rgba(245, 234, 81, 0.45); box-shadow: 0 0 0 3px rgba(245, 234, 81, 0.08); margin-bottom: 22px; animation: supFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.force-verify-modal textarea { resize: vertical; min-height: 84px; }
.sup-diag-list { list-style: none; margin: 0; padding: 0; }
.sup-diag-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 13px; }
.sup-diag-list li:first-child { border-top: 0; }
.sup-diag-list li > :last-child { text-align: right; flex-shrink: 0; }
.sup-diag-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); padding: 14px 18px 8px; }
.sup-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }

.sup-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sup-filters input[type=search] { width: 260px; max-width: 100%; }
.sup-filters select:not(.custom-select-native) { width: auto; min-width: 150px; }
.sup-filters .custom-select { width: 190px; }
.sup-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }
.sup-table-wrap { overflow-x: auto; }
.sup-table-wrap table { min-width: 760px; }
.sup-table-wrap tbody tr.sup-clickable { cursor: pointer; }
.sup-table-wrap tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.sup-cat-editor { display: flex; flex-direction: column; gap: 8px; }
.sup-cat-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }

.sup-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 200; opacity: 0; transition: opacity 0.22s ease; }
.sup-drawer-backdrop.open { opacity: 1; }
.sup-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg-raised); border-left: 1px solid var(--border); z-index: 201; overflow-y: auto; transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1); }
.sup-drawer.open { transform: none; }
.sup-drawer:focus { outline: none; }
.sup-drawer-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-raised); z-index: 1; }
.sup-drawer-head h2 { font-size: 16px; margin: 0; }
.sup-drawer .sup-panel { margin: 14px 18px; }
.sup-skel-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sup-skel-row:last-child { border-bottom: 0; }
.sup-skel-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sup-skel-line { display: block; height: 11px; border-radius: 6px; }
.sup-skel-circle { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.sup-skel-pill { width: 72px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.sup-skel-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 14px; padding: 16px 18px; }
.stat-card .skeleton { display: block; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.sup-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 18px; color: var(--text-faint); font-size: 13.5px; }
.sup-loading .spinner { width: 20px; height: 20px; border-width: 2px; }
.sup-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; }

@media (max-width: 1100px) {
  .sup-two-col, .sup-workspace { grid-template-columns: minmax(0, 1fr); }
  .sup-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sup-row, .sup-row-calls, .sup-row-compact { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .sup-row .sup-row-pos, .sup-row .sup-hide-sm { display: none; }

}
@media (max-width: 560px) {
  .sup-page { padding-top: 32px; }
  .sup-card { padding: 20px; }
  .sup-categories { grid-template-columns: 1fr; }
  .sup-queue-position { font-size: 56px; }
  .sup-queue-stats { grid-template-columns: 1fr; }
  .sup-kv { grid-template-columns: 1fr; gap: 2px; }
  .sup-kv dd { margin-bottom: 8px; }
  .sup-outcomes { grid-template-columns: 1fr; }
  .sup-filters input[type=search], .sup-filters select, .sup-filters .custom-select { width: 100%; }
  .sup-cat-item { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sup-view, .sup-call-avatar::after { animation: none !important; }
  .sup-drawer, .sup-drawer-backdrop { transition: none; }
}

.cb-counts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 520px; opacity: 1; overflow: hidden; transition: opacity 0.22s ease, max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.26s cubic-bezier(0.4, 0, 0.2, 1); }
.cb-counts.is-off { max-width: 0; opacity: 0; transform: translateX(6px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cb-counts { transition: none; } }
.cb-editor-note { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; }
.cb-field-note { display: block; padding: 10px 0 0; }
.cb-card .alt-card-body-inner { padding-top: 18px; }
.cb-count { font-size: 12px; font-weight: 600; color: var(--text-dim); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.cb-count-over { color: var(--red); border-color: rgba(242, 85, 90, 0.45); background: var(--red-dim); }

@media (max-width: 640px) {
  .cb-card .alt-card-header { flex-wrap: wrap; }
  .cb-card .alt-card-summary { width: 100%; justify-content: flex-start; margin-top: 10px; }
}

.cb { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 640px); gap: 24px; align-items: start; }
.cb-editor, .cb-preview-col { min-width: 0; }
.cb-preview-sticky { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }

.cb-blocks { display: flex; flex-direction: column; gap: 10px; }
.cb-block { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; }
.cb-block:hover { border-color: var(--border-strong); }
.cb-block.dragging { opacity: 0.5; border-style: dashed; }
.cb-block-new { animation: cbBlockFlash 0.9s ease; }
@keyframes cbBlockFlash {
  0% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 234, 81, 0.16); }
  100% { border-color: var(--border); box-shadow: 0 0 0 0 rgba(245, 234, 81, 0); }
}
.cb-block-head { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 6px; user-select: none; }
.cb-drag { display: flex; color: var(--text-faint); cursor: grab; padding: 4px 2px; border-radius: 6px; }
.cb-drag:hover { color: var(--text); background: var(--bg-hover); }
.cb-drag:active { cursor: grabbing; }
.cb-block-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; background: none; border: none; color: var(--text); font-family: var(--font); cursor: pointer; padding: 3px 2px; text-align: left; }
.cb-block-icon { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 7px; background: var(--bg-hover); color: var(--accent); flex-shrink: 0; }
.cb-block-title { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.cb-block-summary { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cb-block-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.cb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; border: none; background: none; color: var(--text-faint); cursor: pointer; flex-shrink: 0; transition: background 0.12s ease, color 0.12s ease; }
.cb-icon-btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.cb-icon-btn:disabled { opacity: 0.3; cursor: default; }
.cb-icon-btn[hidden] { display: none; }
.cb-icon-danger:hover:not(:disabled) { color: var(--red); background: var(--red-dim); }
.cb-collapse-btn svg { transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); }
.cb-block:not(.collapsed) .cb-collapse-btn { color: var(--accent); }
.cb-block:not(.collapsed) .cb-collapse-btn svg { transform: rotate(180deg); }
.cb-block-body { overflow: hidden; --cb-body-duration: 0.32s; transition: max-height var(--cb-body-duration) cubic-bezier(0.4, 0, 0.2, 1); }
.cb-block.collapsed .cb-block-body { max-height: 0; }
.cb-block.cb-settled .cb-block-body { overflow: visible; }
.cb-block-body-inner { padding: 12px 14px 14px; border-top: 1px solid var(--border); }

.cb-block .cb-input, .cb-block .cb-textarea, .cb-button-settings input[type=text] { background: var(--bg); }
.cb-input { padding: 8px 10px; font-size: 13.5px; }
.cb-input-invalid { border-color: var(--red) !important; }
.cb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border-strong); border-bottom: none; border-radius: 8px 8px 0 0; }
.cb-tool { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 6px; border: none; background: none; color: var(--text-dim); font-family: var(--font); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.12s ease, color 0.12s ease; }
.cb-tool:hover { background: var(--bg-hover); color: var(--text); }
.cb-tool code { font-family: var(--mono); font-size: 11.5px; background: none; padding: 0; color: inherit; }
.cb-tool-spoiler { font-weight: 700; letter-spacing: -1px; }
.cb-toolbar-sep { width: 1px; height: 16px; background: var(--border-strong); margin: 0 4px; }
.cb-textarea { display: block; border-radius: 0 0 8px 8px; min-height: 96px; font-size: 14px; line-height: 1.55; }

.cb-sub { margin-top: 14px; }
.cb-sub-head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cb-sub-title { font-size: 13px; font-weight: 650; }
.cb-sub-hint { font-size: 12px; color: var(--text-faint); }
.cb-sub-head .cb-inline-toggle { margin-left: auto; }
.cb-inline-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-dim); cursor: pointer; user-select: none; white-space: nowrap; }
.cb-inline-toggle .switch { width: 36px; height: 20px; }
.cb-inline-toggle .switch-track::before { width: 13px; height: 13px; }
.cb-inline-toggle .switch input:checked + .switch-track::before { transform: translate(16px, -50%); }

.cb-image { display: flex; gap: 12px; align-items: flex-start; }
.cb-image-preview { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-hover); flex-shrink: 0; }
.cb-image-preview[hidden] { display: none; }
.cb-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-image-preview.cb-image-broken img { display: none; }
.cb-image-preview.cb-image-broken::after { content: "No image"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--text-faint); text-align: center; }
.cb-image-preview.cb-image-hidden img { opacity: 0.35; filter: grayscale(1); }
.cb-image-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-image-row { display: flex; gap: 8px; align-items: center; }
.cb-image-row .cb-input { flex: 1; min-width: 0; }
.cb-upload-btn { cursor: pointer; flex-shrink: 0; gap: 6px; }
.cb-image-msg { font-size: 12px; color: var(--text-faint); line-height: 1.45; }
.cb-image-msg:empty { display: none; }
.cb-image-msg-error { color: var(--red); }
.cb-image-msg-warn { color: var(--accent); }
.cb-uploading { opacity: 0.7; pointer-events: none; }
.cb-locked { opacity: 0.4; pointer-events: none; }

.cb-gallery-items { display: flex; flex-direction: column; gap: 8px; }
.cb-gallery-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.cb-gi-index { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-hover); color: var(--text-faint); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px; }
.cb-gi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cb-gi-extra { display: flex; gap: 12px; align-items: center; }
.cb-gi-extra .cb-input { flex: 1; min-width: 0; }
.cb-gi-actions { display: flex; flex-direction: column; gap: 2px; }
.cb-gallery-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cb-add-item, .cb-add-link { gap: 6px; }
.cb-empty-hint { font-size: 12.5px; color: var(--text-faint); padding: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; text-align: center; }

.cb-sep-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cb-segment { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); }
.cb-segment-label { font-size: 12px; color: var(--text-faint); padding: 0 8px 0 6px; }
.cb-segment button { border: none; background: none; color: var(--text-dim); font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }
.cb-segment button:hover { color: var(--text); }
.cb-segment button.active { background: var(--bg-hover); color: var(--accent); }

.cb-add-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.cb-add-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 0 4px 0 2px; }
.cb-add-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.cb-add-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--bg-hover); }
.cb-add-btn svg { color: var(--accent); }
.cb-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cb-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.cb-button-settings[hidden] { display: none; }
.cb-links { display: flex; flex-direction: column; gap: 8px; }
.cb-links:empty { display: none; }
.cb-link-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr) 28px; gap: 8px; align-items: center; }
.cb-add-link { margin-top: 8px; }
.cb-add-link[hidden] { display: none; }
.cb-fixed-note { font-size: 12px; color: var(--text-faint); margin: 14px 0 0; }
.cb-post-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.cb-post-hint { font-size: 12.5px; color: var(--text-faint); flex: 1; min-width: 220px; line-height: 1.5; }

.cb-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 24px; }
.cb-preview-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.cb-preview-note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--accent); background: rgba(245, 234, 81, 0.07); border: 1px solid rgba(245, 234, 81, 0.25); border-radius: 10px; padding: 9px 12px; }
.cb-preview-note[hidden] { display: none; }
.cb-cheatsheet { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
.cb-cheatsheet-toggle { width: 100%; cursor: pointer; padding: 10px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-dim); background: none; border: 0; border-radius: 10px; text-align: left; display: flex; align-items: center; gap: 8px; transition: color 0.14s ease; }
.cb-cheatsheet-toggle:hover { color: var(--text); }
.cb-cheatsheet-toggle::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); margin-right: 2px; }
.cb-cheatsheet.open .cb-cheatsheet-toggle::before { transform: rotate(45deg); }
.cb-cheatsheet-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.cb-cheatsheet.open .cb-cheatsheet-body { grid-template-rows: 1fr; }
.cb-cheatsheet-body-inner { min-height: 0; overflow: hidden; }
.cb-cheatsheet-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; padding: 12px; font-size: 12.5px; align-items: center; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { .cb-cheatsheet-body, .cb-cheatsheet-toggle::before { transition: none; } }
.cb-cheatsheet-grid code { font-family: var(--mono); font-size: 11.5px; color: var(--text); background: var(--bg-hover); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.cb-cheatsheet-grid span { color: var(--text-faint); }

.cb-popover { position: absolute; z-index: 60; width: 270px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6); padding: 6px; }
.cb-popover[hidden] { display: none; }
.cb-popover-search { margin-bottom: 6px; }
.cb-popover-list { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.cb-popover-group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); padding: 8px 8px 4px; }
.cb-popover-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: none; border-radius: 7px; background: none; color: var(--text); font-family: var(--font); font-size: 13px; cursor: pointer; text-align: left; }
.cb-popover-item:hover { background: var(--bg-hover); }
.cb-role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cb-channel-hash { color: var(--text-faint); font-weight: 700; width: 10px; text-align: center; }
.cb-popover-empty { padding: 12px 8px; font-size: 12.5px; color: var(--text-faint); }


.dc-chat { background: #1a1a1e; border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 18px 0; font-family: "gg sans", "Noto Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #efeff1; overflow: hidden; -webkit-font-smoothing: antialiased; }
.dc-chat .dc-text { color: #dbdee1; font-size: 14.5px; }
.dc-msg { position: relative; padding-left: 72px; min-height: 44px; }
.dc-avatar { position: absolute; left: 16px; top: 2px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2b2b30; }
.dc-msg-head { display: flex; align-items: center; flex-wrap: wrap; line-height: 22px; }
.dc-author { font-size: 16px; font-weight: 500; color: #f2f3f5; }
.dc-app-badge { display: inline-flex; align-items: center; gap: 1px; height: 15px; padding: 0 4px 0 2px; margin-left: 4px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }
.dc-app-badge svg { width: 13px; height: 13px; }
.dc-guild-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px 0 4px; margin-left: 6px; border-radius: 4px; background: rgba(151, 151, 159, 0.2); color: #dbdee1; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; cursor: default; }
.dc-guild-tag-badge { width: 12px; height: 12px; object-fit: contain; }
.dc-role-icon { width: 20px; height: 20px; margin-left: 6px; object-fit: contain; cursor: default; }
.dc-role-icon-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 20px; }
.dc-role-icon-emoji .dmd-emoji { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.dc-time { font-size: 12px; color: #94959c; margin-left: 6px; }
.dc-container { margin-top: 4px; max-width: 600px; background: #242429; border: 1px solid #323237; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dc-container.dc-has-accent { border-left: 4px solid var(--dc-accent); padding-left: 13px; }
.dc-container:empty { display: none; }

.dc-text { font-size: 16px; line-height: 1.375; color: #efeff1; overflow-wrap: anywhere; min-width: 0; }
.dc-text strong { font-weight: 700; }
.dmd-p { white-space: pre-wrap; }
.dmd-h { font-weight: 700; color: #fbfbfb; line-height: 1.375; margin: 16px 0 8px; overflow-wrap: anywhere; }
.dc-text > .dmd-h:first-child { margin-top: 0; }
.dmd-h:last-child { margin-bottom: 0; }
.dmd-h1 { font-size: 24px; }
.dmd-h2 { font-size: 20px; }
.dmd-h3 { font-size: 16px; }
.dmd-subtext { font-size: 13px; line-height: 1.33; color: #94959c; }
.dmd-link { color: #5197ed; text-decoration: none; }
.dmd-link:hover { text-decoration: underline; }
.dmd-inline-code { font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", monospace; font-size: 0.85em; line-height: 1.125rem; background: #2b2b30; border: 1px solid #3a3a40; border-radius: 4px; padding: 0 0.2em; white-space: pre-wrap; }
.dmd-codeblock { margin: 6px 0 0; padding: 7px 9px; background: #1e1e22; border: 1px solid #2e2e33; border-radius: 4px; font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", monospace; font-size: 14px; line-height: 1.125rem; color: #dbdee1; white-space: pre-wrap; overflow-wrap: anywhere; }
.dmd-codeblock code { font: inherit; background: none; padding: 0; color: inherit; }
.dmd-quote { display: flex; }
.dmd-quote::before { content: ""; width: 4px; border-radius: 4px; background: #4e5058; flex-shrink: 0; margin-right: 12px; }
.dmd-quote-body { min-width: 0; flex: 1; }
.dmd-list { margin: 4px 0 0 16px; padding: 0 0 0 4px; list-style: disc; }
ol.dmd-list { list-style: decimal; padding-left: 10px; }
.dmd-list li { margin-bottom: 4px; }
.dmd-list .dmd-list { list-style-type: circle; }
.dmd-mention { background: rgba(88, 101, 242, 0.3); color: #dee0fc; border-radius: 3px; padding: 0 2px; font-weight: 500; cursor: pointer; transition: background 0.1s ease, color 0.1s ease; unicode-bidi: plaintext; }
.dmd-mention:not(.dmd-mention-role):hover { background: #5865f2; color: #fff; }
.dmd-channel-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 1px; }
.dmd-timestamp { background: rgba(255, 255, 255, 0.06); border-radius: 3px; padding: 0 2px; }
.dmd-spoiler { background: #121214; border-radius: 3px; cursor: pointer; transition: background 0.1s ease; }
.dmd-spoiler:not(.revealed) .dmd-spoiler-inner { opacity: 0; }
.dmd-spoiler:not(.revealed):hover { background: #26262b; }
.dmd-spoiler.revealed { background: rgba(255, 255, 255, 0.1); cursor: text; }
.dmd-emoji { width: 1.375em; height: 1.375em; vertical-align: bottom; object-fit: contain; margin: 0 0.05em 0 0.1em; }
.dmd-jumbo .dmd-emoji { width: 48px; height: 48px; }

.dc-section { display: flex; gap: 16px; align-items: flex-start; }
.dc-section > .dc-text { flex: 1; }
.dc-thumb { position: relative; width: 85px; height: 85px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #2b2b30; }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dc-sep { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.dc-sep-small { min-height: 4px; padding: 2px 0; }
.dc-sep-large { min-height: 24px; padding: 12px 0; }
.dc-sep-divider::after { content: ""; display: block; height: 1px; background: #3b3b41; }

.dc-gallery { display: grid; gap: 4px; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: 8px; overflow: hidden; }
.dc-media { position: relative; background: transparent; overflow: hidden; grid-column: span 2; aspect-ratio: 1; }
.dc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-gallery-1 { display: block; overflow: visible; }
.dc-gallery-1 .dc-media { display: inline-block; vertical-align: top; aspect-ratio: auto; max-width: 100%; border-radius: 8px; background: transparent; }
.dc-gallery-1 .dc-media img { width: auto; height: auto; max-width: 100%; max-height: 450px; }
.dc-gallery-2 .dc-media { grid-column: span 3; }
.dc-gallery-3 .dc-media:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.dc-gallery-4 .dc-media { grid-column: span 3; aspect-ratio: 16 / 10; }
.dc-gallery-5 .dc-media:nth-child(-n+2), .dc-gallery-8 .dc-media:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
.dc-gallery-7 .dc-media:first-child, .dc-gallery-10 .dc-media:first-child { grid-column: span 6; aspect-ratio: 16 / 9; }
.dc-media-spoiler img { filter: blur(44px); transform: scale(1.15); }
.dc-media-spoiler-tag { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; padding: 6px 12px; border-radius: 20px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; }
.dc-media-spoiler.revealed img { filter: none; transform: none; }
.dc-media-spoiler.revealed .dc-media-spoiler-tag { display: none; }
.dc-media-alt { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; background: rgba(0, 0, 0, 0.65); color: #fff; padding: 1px 5px; border-radius: 4px; }
.dc-img-error { background: #2b2b30 !important; min-height: 85px; min-width: 85px; display: flex; align-items: center; justify-content: center; }
.dc-img-error img { display: none !important; }
.dc-img-error::after { content: "Image failed to load"; font-size: 12px; color: #94959c; padding: 8px; text-align: center; }
.dc-thumb.dc-img-error::after { font-size: 10.5px; }

.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 60px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 16px; color: #fff; cursor: pointer; user-select: none; white-space: nowrap; transition: background 0.17s ease; }
.dc-btn-secondary, .dc-btn-link { background: #323237; border-color: #38383e; }
.dc-btn-secondary:hover, .dc-btn-link:hover { background: #3c3c42; }
.dc-btn-primary { background: #5865f2; }
.dc-btn-primary:hover { background: #4752c4; }
.dc-btn-success { background: #248046; }
.dc-btn-success:hover { background: #1a6334; }
.dc-btn-danger { background: #da373c; }
.dc-btn-danger:hover { background: #a12828; }
.dc-btn-emoji { width: 18px; height: 18px; object-fit: contain; }
.dc-btn-emoji-text .dmd-emoji { width: 18px; height: 18px; margin: 0; vertical-align: -3px; }
.dc-btn-external { width: 16px; height: 16px; margin-right: -4px; }

@media (prefers-reduced-motion: reduce) {
  .cb-block-body { transition: none !important; }
}

.scan-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); flex-wrap: wrap; }
.scan-results-hint { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; }
.scan-stat-alert { color: var(--accent); }
.stat-card .value.scan-stat-time { font-size: 22px; line-height: 34px; }
.scan-action-cell { display: flex; justify-content: flex-end; }
.scan-empty-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--bg-hover); color: var(--accent); margin-bottom: 14px; }
.scan-empty-icon .site-icon { width: 24px; height: 24px; }
.scan-empty p { max-width: 540px; margin: 8px auto 0; line-height: 1.55; }

#scanBody { transition: opacity 0.16s ease, transform 0.16s ease; }
#scanBody.scan-fade-out { opacity: 0; transform: translateY(4px); }
#scanBody.scan-enter > * { animation: scanRise 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes scanRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.scan-progress { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 22px 26px; overflow: hidden; }
.scan-progress-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: var(--bg-hover); color: var(--accent); flex-shrink: 0; animation: scanPulse 1.6s ease-in-out infinite; }
.scan-progress-icon .site-icon { width: 22px; height: 22px; }
.scan-progress-title { font-weight: 700; font-size: 15px; }
.scan-progress-sub { font-size: 13px; color: var(--text-faint); margin-top: 4px; line-height: 1.5; }
.scan-progress-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bg-hover); overflow: hidden; }
.scan-progress-bar span { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: 3px; background: var(--accent); animation: scanSweep 1.3s cubic-bezier(0.45, 0, 0.35, 1) infinite; }
@keyframes scanSweep {
  from { left: -34%; }
  to { left: 100%; }
}
@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 234, 81, 0); }
  50% { box-shadow: 0 0 0 6px rgba(245, 234, 81, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  #scanBody, #scanBody.scan-enter > *, .scan-progress-icon, .scan-progress-bar span { animation: none !important; transition: none !important; }
}

@media (max-width: 1180px) {
  .cb { grid-template-columns: minmax(0, 1fr); }
  .cb-preview-col { order: -1; }
  .cb-preview-sticky { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .cb-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .cb-link-row { grid-template-columns: 70px minmax(0, 1fr) 28px; }
  .cb-link-row [data-link-url] { grid-column: 1 / 3; grid-row: 2; }
  .cb-block-summary { display: none; }
  .cb-image { flex-direction: column; }
  .cb-image-row { flex-wrap: wrap; }
  .dc-msg { padding-left: 60px; }
  .dc-avatar { left: 10px; }
  .transcript-system-icon { left: 10px; }
  .dc-text { font-size: 15px; }
}

.ep-field { position: relative; display: block; width: 100%; min-width: 0; }
.ep-field > input { padding-right: 40px !important; }
.ep-field-area > textarea { padding-right: 44px !important; }
.ep-trigger { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 7px; background: none; color: var(--text-faint); cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.ep-field-area > .ep-trigger { top: 8px; transform: none; }
.ep-trigger svg { width: 19px; height: 19px; transition: transform 0.15s ease; }
.ep-trigger:hover, .ep-trigger.active { color: var(--accent); background: var(--bg-hover); }
.ep-trigger:hover svg, .ep-trigger.active svg { transform: scale(1.1) rotate(-6deg); }
input:disabled + .ep-trigger, textarea:disabled + .ep-trigger { opacity: 0.35; pointer-events: none; }
.cb-gi-extra .ep-field { flex: 1; }

.ep { position: fixed; z-index: 1200; width: 440px; height: 450px; display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85); overflow: hidden; opacity: 0; transform: translateY(6px) scale(0.98); transform-origin: top right; transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); font-family: var(--font); }
.ep.ep-visible { opacity: 1; transform: none; }
.ep[hidden] { display: none; }
.ep-head { padding: 10px; border-bottom: 1px solid var(--border); }
.ep-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; color: var(--text-faint); cursor: text; }
.ep-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.ep-search input[type=search] { border: none; background: none; padding: 9px 0; font-size: 13.5px; }
.ep-search input[type=search]:focus { background: none; }
.ep-main { flex: 1; min-height: 0; display: flex; }
.ep-rail { width: 52px; flex-shrink: 0; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; overflow-y: auto; scrollbar-width: none; }
.ep-rail-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: none; color: var(--text-faint); cursor: pointer; flex-shrink: 0; transition: color 0.12s ease, background 0.12s ease; }
.ep-rail-btn svg { width: 20px; height: 20px; }
.ep-rail-btn:hover { color: var(--text); background: var(--bg-hover); }
.ep-rail-btn.active { color: var(--accent); background: var(--bg-hover); }
.ep-rail-guild img, .ep-rail-guild span { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); font-weight: 700; font-size: 12px; color: var(--text); }
.ep-rail-guild.active img, .ep-rail-guild.active span { box-shadow: 0 0 0 2px var(--accent); }
.ep-rail-sep { width: 22px; height: 1px; background: var(--border-strong); margin: 4px 0; flex-shrink: 0; }
.ep-scroll { position: relative; flex: 1; min-width: 0; overflow-y: auto; padding: 0 10px 10px; scrollbar-width: thin; }
.ep-section-title { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 10px 2px 6px; background: var(--bg-raised); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.ep-section-title svg { width: 14px; height: 14px; }
.ep-section-guild { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; }
.ep-emoji { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: none; border-radius: 7px; background: none; cursor: pointer; padding: 5px; }
.ep-emoji::before { content: ''; position: absolute; inset: 34%; border-radius: 50%; background: var(--bg-hover); transition: opacity 0.12s ease; }
.ep-emoji img { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: transform 0.1s ease, opacity 0.12s ease; }
.ep-emoji.ep-ready::before { opacity: 0; }
.ep-emoji.ep-ready img { opacity: 1; }
.ep-native { position: relative; font-size: 24px; line-height: 1; }
.ep-emoji:hover { background: var(--bg-hover); }
.ep-emoji:hover img { transform: scale(1.12); }
.ep-foot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg-card); min-height: 52px; }
.ep-foot-emoji { width: 32px; height: 32px; flex-shrink: 0; }
.ep-foot-emoji img { width: 100%; height: 100%; object-fit: contain; }
.ep-foot-text { min-width: 0; }
.ep-foot-name { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-foot-sub { font-size: 12px; color: var(--text-faint); }
.ep-loading, .ep-empty { padding: 24px 8px; text-align: center; font-size: 13px; color: var(--text-faint); }
@media (max-width: 520px) {
  .ep { width: calc(100vw - 20px); height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep, .ep-trigger svg, .ep-emoji img { transition: none !important; }
}

.transcript-page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; box-sizing: border-box; }
.transcript-header { margin-bottom: 24px; }
.transcript-header-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.transcript-header-top h1 { font-size: 22px; margin: 0; }
.transcript-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.transcript-meta-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.transcript-meta-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.transcript-locked-banner { margin: 16px 0 0; }
.transcript-end { text-align: center; font-size: 20px; font-weight: 700; color: var(--text-faint); margin-top: 28px; }

.transcript-messages { display: flex; flex-direction: column; text-align: left; background: var(--bg-card); border-radius: var(--radius); padding: 16px 16px 20px; font-family: "gg sans", "Noto Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.transcript-messages .dc-msg { margin-top: 18px; }
.transcript-messages .dc-msg:first-child { margin-top: 0; }
.transcript-messages .dc-msg-grouped { margin-top: 0; padding-top: 4px; min-height: 0; }
.transcript-messages .dc-msg-has-reply .dc-avatar { top: 26px; }
.transcript-messages .dc-msg-has-reply .dc-avatar-decoration { top: 22px; }
.transcript-messages .dc-container { max-width: 620px; background: #1c1c20; }
.transcript-messages .dc-text { color: #dbdee1; font-size: 14.5px; }
.transcript-messages .dc-text strong { color: #fff; }
.transcript-messages .dmd-quote-body { color: #96989f; font-size: 15px; }
.transcript-messages .dmd-subtext { font-size: 10px; }
.dc-avatar-decoration { position: absolute; left: 12px; top: -2px; width: 48px; height: 48px; pointer-events: none; }
.transcript-grouped-row { display: flex; align-items: flex-start; gap: 16px; }
.transcript-grouped-time { flex-shrink: 0; width: 56px; margin-left: -72px; padding-top: 3px; text-align: center; font-size: 10.5px; color: var(--text-faint); opacity: 0; }
.transcript-grouped-body { flex: 1; min-width: 0; }
.dc-msg-grouped:hover .transcript-grouped-time { opacity: 1; }
.transcript-edited-tag { font-size: 10px; color: var(--text-faint); margin-left: 4px; }

.transcript-reply { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-faint); min-height: 18px; margin-bottom: 4px; }
.transcript-reply-connector { width: 56px; margin-left: -36px; margin-top: 8px; height: 10px; border-left: 2px solid var(--border); border-top: 2px solid var(--border); border-radius: 6px 0 0 0; flex-shrink: 0; }
@media (max-width: 760px) {
  .transcript-reply-connector { margin-left: -30px; }
}
.transcript-reply-avatar { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.transcript-reply-author { font-weight: 600; color: var(--text); }
.transcript-reply-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.transcript-reply-deleted { font-style: italic; }
.transcript-reply-clickable { cursor: pointer; }
.transcript-forward { position: relative; margin: 2px 0 4px; padding: 2px 0 2px 14px; min-width: 0; }
.transcript-forward::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: #4e5058; }
.transcript-forward-label { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 14px; font-style: italic; font-weight: 600; color: #949ba4; }
.transcript-forward-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.transcript-forward .dc-container { margin-top: 4px; }
.transcript-forward-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: #949ba4; text-decoration: none; }
a.transcript-forward-meta:hover { color: #dbdee1; }
.transcript-forward-meta svg { width: 14px; height: 14px; }
.transcript-forward-dot { margin: 0 2px; }
.transcript-reply-clickable:hover .transcript-reply-author,
.transcript-reply-clickable:hover .transcript-reply-text { text-decoration: underline; }

.transcript-highlight-flash { animation: transcript-highlight-flash-anim 1.4s ease-out; }
@keyframes transcript-highlight-flash-anim {
  0% { background-color: rgba(245, 234, 81, 0.35); box-shadow: inset 4px 0 0 0 #a8900f; }
  100% { background-color: transparent; box-shadow: inset 4px 0 0 0 transparent; }
}
.transcript-interaction-command { background: rgba(88,101,242,0.3); color: #c9cdfb; padding: 0 4px; border-radius: 3px; font-weight: 500; }

.transcript-messages .transcript-system { min-height: 0; padding-top: 2px; padding-bottom: 2px; }
.transcript-system-icon { position: absolute; left: 16px; top: 2px; width: 40px; height: 22px; display: flex; align-items: center; justify-content: center; color: #949ba4; }
.transcript-system-icon svg { width: 16px; height: 16px; }
.transcript-system-text { font-size: 14.5px; line-height: 22px; color: #949ba4; overflow-wrap: anywhere; }
.transcript-system-author { font-weight: 500; color: #f2f3f5; }
.transcript-system-strong { font-weight: 600; color: #f2f3f5; }
.transcript-system-link { cursor: pointer; border-radius: 3px; }
.transcript-system-link:hover { text-decoration: underline; }
.transcript-system-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.transcript-system-text .dc-time { margin-left: 6px; }

.transcript-pins { position: absolute; z-index: 60; width: 420px; max-width: calc(100vw - 32px); background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6); overflow: hidden; font-family: "gg sans", "Noto Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.transcript-pins[hidden] { display: none; }
.transcript-pins-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.transcript-pins-head-icon { display: inline-flex; color: #949ba4; }
.transcript-pins-head-icon svg { width: 16px; height: 16px; }
.transcript-pins-list { max-height: 380px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.transcript-pins-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.transcript-pins-item:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.transcript-pins-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.transcript-pins-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #2b2b30; }
.transcript-pins-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.transcript-pins-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; line-height: 20px; }
.transcript-pins-author { font-size: 14px; font-weight: 500; color: #f2f3f5; }
.transcript-pins-time { font-size: 11.5px; color: #94959c; }
.transcript-pins .dc-text { font-size: 13.5px; color: #dbdee1; max-height: 92px; overflow: hidden; }
.transcript-pins .dc-text strong { color: #fff; }
.transcript-pins-empty { font-size: 13px; font-style: italic; color: var(--text-faint); }

.transcript-jumbo .dmd-emoji { width: 48px; height: 48px; margin: 2px 0; }

.transcript-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.transcript-reaction { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-size: 12.5px; color: var(--text); }
.transcript-reaction-emoji { width: 16px; height: 16px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; }
.transcript-reaction-emoji .dmd-emoji { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
.transcript-reaction-count { font-weight: 600; color: var(--text-faint); }

.transcript-files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 420px; }
.transcript-file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background 0.15s ease; }
.transcript-file-chip:hover { background: var(--bg-hover); }
.transcript-file-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--text-faint); }
.transcript-file-info { min-width: 0; display: flex; flex-direction: column; }
.transcript-file-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transcript-file-size { font-size: 12px; color: var(--text-faint); }

.transcript-stickers { margin-top: 6px; }
.transcript-sticker { width: 120px; height: 120px; object-fit: contain; }
.transcript-sticker-lottie { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); font-size: 12px; color: var(--text-faint); text-align: center; padding: 8px; }

.transcript-embed { margin-top: 4px; max-width: 520px; padding: 12px 14px; border-radius: 4px; border-left: 4px solid var(--border-strong); background: var(--bg-card); display: flex; flex-direction: column; gap: 6px; }
.transcript-embed-author { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.transcript-embed-author-icon { width: 20px; height: 20px; border-radius: 50%; }
.transcript-embed-title { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.transcript-embed-title[href]:hover { text-decoration: underline; color: var(--accent); }
.transcript-embed-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.transcript-embed-field { flex: 1 1 100%; font-size: 13px; }
.transcript-embed-field-inline { flex: 1 1 calc(33.333% - 7px); min-width: 110px; }
.transcript-embed-field-name { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.transcript-embed-image { max-width: 100%; max-height: 300px; border-radius: 6px; margin-top: 4px; cursor: zoom-in; }
.transcript-embed-thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; float: right; }
.transcript-embed-footer { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.transcript-embed-footer-icon { width: 18px; height: 18px; border-radius: 50%; }

.transcript-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.transcript-section-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.transcript-section-accessory { flex-shrink: 0; }
.transcript-section-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }

.dc-btn-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.dc-select-placeholder { min-width: 180px; justify-content: flex-start; }

.alt-card-grid { display: flex; flex-direction: column; gap: 10px; }
.intel-config-grid { display: flex; flex-direction: column; gap: 16px; }
.intel-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.intel-row:last-child { border-bottom: none; }
.badge.lookup-danger { color: var(--red); background: rgba(242, 85, 90, 0.1); border-color: rgba(242, 85, 90, 0.3); }
.badge.lookup-ok { color: var(--green); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); }
.lookup-content .intel-row > span:last-child { text-align: right; margin-left: auto; min-width: 0; overflow-wrap: anywhere; }
.lookup-content .intel-row > span:first-child { flex: 0 1 auto; min-width: 0; }
.lookup-ips { cursor: pointer; border-radius: 8px; outline-offset: 2px; }
.lookup-ips .intel-secret-value { transition: filter 0.25s ease; }
.lookup-ips.intel-blurred .intel-secret-value { filter: blur(6px); }
.lookup-ips .badge { margin-left: 6px; }
.intel-secret { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.intel-secret-value { font-size: 12.5px; word-break: break-all; transition: filter 0.25s ease; }
.intel-secret.intel-blurred .intel-secret-value { filter: blur(6px); }
.intel-secret-eye { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; transition: color 0.15s ease; }
.intel-secret:hover .intel-secret-eye { color: var(--text); }
.intel-log-list { display: flex; flex-direction: column; gap: 2px; }
.intel-content { opacity: 1; transition: opacity 0.18s ease; }
.intel-content-loading { opacity: 0; }
.intel-log-entry { display: inline-flex; align-items: center; gap: 6px; }
.intel-status-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; color: #fff; flex-shrink: 0; }
.intel-status-badge svg { width: 12px; height: 12px; }
.intel-status-success { background: var(--green); }
.intel-status-fail { background: var(--red); }

.upload-removed { font-size: 12px; font-style: italic; color: var(--text-faint); vertical-align: middle; margin-right: 4px; }

body > .incident-banner { position: sticky; top: 0; z-index: 51; background: linear-gradient(rgba(229, 72, 77, 0.12), rgba(229, 72, 77, 0.12)), var(--bg); }
body > .incident-banner ~ .topnav { top: var(--incident-banner-height, 0px); }
body > .promo-banner { position: sticky; top: var(--incident-banner-height, 0px); z-index: 51; background: linear-gradient(rgba(245, 234, 81, 0.08), rgba(245, 234, 81, 0.08)), var(--bg); }
body > .promo-banner ~ .topnav { top: calc(var(--incident-banner-height, 0px) + var(--promo-banner-height, 0px)); }
.incident-banner-maintenance { border-bottom-color: rgba(96, 165, 250, 0.35); }
body > .incident-banner-maintenance { background: linear-gradient(rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0.12)), var(--bg); }
.main-content > .incident-banner-maintenance { background: rgba(96, 165, 250, 0.12); }
.incident-banner-maintenance .incident-banner-dot { background: #60a5fa; }

.subsite-session-pending .nav-actions > a.btn { visibility: hidden; }

.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 88px;
  align-items: start;
}
.admin-rail {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 14px 10px 16px;
}
.admin-rail-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.admin-rail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-dim);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.admin-rail-back:hover { color: var(--text); border-color: var(--text-faint); }
.admin-rail-back svg { width: 16px; height: 16px; }
.admin-rail-title { font-size: 15px; font-weight: 700; color: var(--text); }
.admin-rail-sub { font-size: 12.5px; color: var(--accent); margin-top: 2px; }
.admin-rail-nav { position: relative; }
.admin-rail-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border: 1px solid var(--site-line-strong, rgba(245, 234, 81, 0.34));
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(245, 234, 81, 0.13), rgba(245, 234, 81, 0.04)) border-box;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), height 0.24s ease;
}
.admin-rail-indicator[hidden] { display: none; }
.admin-rail-group { margin-top: 12px; }
.admin-rail-label { position: relative; z-index: 1; padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.admin-rail-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin-bottom: 1px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.14s ease, background 0.14s ease;
}
.admin-rail-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.admin-rail-item.is-active { color: var(--accent); background: linear-gradient(180deg, rgba(245, 234, 81, 0.13), rgba(245, 234, 81, 0.04)); box-shadow: inset 0 0 0 1px var(--site-line-strong, rgba(245, 234, 81, 0.34)); font-weight: 600; }
.admin-rail-nav.has-indicator .admin-rail-item.is-active { background: transparent; box-shadow: none; color: var(--text-dim); font-weight: 400; }
.admin-rail-nav.has-indicator .admin-rail-item.is-lit { color: var(--accent); font-weight: 600; }
.admin-rail-icon { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; color: var(--text-faint); transition: color 0.14s ease; }
.admin-rail-icon svg { width: 16px; height: 16px; }
.admin-rail-item.is-active .admin-rail-icon { color: var(--accent); }
.admin-rail-nav.has-indicator .admin-rail-item.is-active .admin-rail-icon { color: var(--text-faint); }
.admin-rail-nav.has-indicator .admin-rail-item.is-lit .admin-rail-icon { color: var(--accent); }
.admin-rail-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; text-align: center; }


.admin-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin-page-body { min-width: 0; }
.admin-pages[hidden] { display: none; }
.admin-skel-bar { display: block; }
.admin-skel-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 6px 22px; }
.admin-skel-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.admin-skel-row + .admin-skel-row { border-top: 1px solid var(--border); }
.admin-skel-lines { flex: 1; min-width: 0; }
.admin-page-error { padding: 48px 24px; text-align: center; color: var(--text-faint); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.admin-page-body.mail-page { max-width: none; padding: 0; }
.admin-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.admin-page-head > div { flex: 1; min-width: 0; }
.admin-page-head > form { flex-shrink: 0; margin: 0; }
.admin-page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.admin-page-head p { margin: 0; color: var(--text-dim); font-size: 14px; }
.admin-page-head p + p { margin-top: 6px; }
.admin-page-head { flex-wrap: wrap; }
.admin-page-head > .admin-page-head-search { flex: 1 1 100%; display: flex; gap: 10px; margin-top: 4px; }
.admin-out { display: flex; flex-direction: column; gap: 14px; }
.admin-out-summary { display: flex; align-items: center; gap: 16px; }
.admin-out-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-out-main { flex: 1; min-width: 0; }
.admin-out-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-out-title-row h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.admin-out-text { margin-top: 6px; font-size: 14px; color: var(--text-dim); overflow-wrap: anywhere; }
.admin-out-note { margin-top: 6px; }
.admin-out-note + .admin-out-text { margin-top: 14px; }
.admin-out .hint { color: var(--text-faint); font-size: 12.5px; }
.admin-out .intel-row .hint { font-size: 13.5px; }
.admin-out-section { padding: 18px 20px; }
.admin-out-section h3 { margin: 0 0 6px; font-size: 15px; }
.admin-out-value { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.admin-inline > * { display: inline; margin: 0; white-space: normal; color: inherit; font-size: inherit; }
.admin-inline .dmd-link { color: #5197ed; }
.admin-inline > .inline-arrow, .admin-inline .inline-arrow, .admin-text .inline-arrow { display: inline-block; margin: 0 0.45em; }
.admin-inline .dmd-mention { background: rgba(88, 101, 242, 0.3); color: #dee0fc; border-radius: 4px; padding: 0 3px; cursor: default; }
.admin-inline .dmd-mention:not(.dmd-mention-role):hover,
.admin-text .dmd-mention:not(.dmd-mention-role):hover { background: #5865f2; color: #fff; }
.admin-inline .dmd-inline-code { background: var(--bg-hover); border-color: var(--border-strong); font-family: var(--mono); }
.admin-inline .dmd-timestamp { background: none; padding: 0; }
@media (max-width: 640px) {
  .admin-page-head { flex-wrap: wrap; padding: 20px 18px; }
}
.admin-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 26px 26px 24px;
}
.admin-panel.is-active { display: block; }
.admin-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-panel-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.admin-panel-head p { margin: 0; color: var(--text-dim); font-size: 14px; max-width: 640px; }
.admin-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--text-dim);
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
}
.admin-panel-icon svg { width: 22px; height: 22px; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.admin-field-wide,
.admin-fields > .admin-check { grid-column: 1 / -1; }
.admin-field textarea { resize: vertical; min-height: 84px; }
.admin-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-collapse-inner { min-height: 0; overflow: hidden; padding: 3px; margin: -3px; }
.admin-collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-top: -16px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .admin-collapse { transition: none; }
}
.admin-optional { font-weight: 500; color: var(--text-faint); font-size: 12px; margin-left: 4px; }
.admin-toggles { display: flex; flex-direction: column; gap: 10px; }
.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  cursor: pointer;
}
.admin-toggle-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-toggle-label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.admin-toggle-state { font-size: 13px; color: var(--text-faint); }
.admin-output[hidden] { display: none; }
.admin-panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

.admin-check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); user-select: none; }
.admin-check input { position: absolute; opacity: 0; pointer-events: none; }
.admin-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-raised);
  color: transparent;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.admin-check-box svg { width: 13px; height: 13px; }
.admin-check input:checked + .admin-check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.admin-check input:focus-visible + .admin-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-check small { display: block; font-size: 12px; color: var(--text-faint); }

.admin-output { min-width: 0; }
.admin-output-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.admin-output-title { margin-left: 6px; color: var(--text-dim); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; }
.admin-output-title:not(:empty)::before { content: "·"; margin-right: 6px; color: var(--text-faint); }
.admin-output-clear { background: none; border: 0; padding: 4px 6px; font: inherit; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--text-dim); cursor: pointer; border-radius: 6px; transition: color 0.16s ease, background-color 0.16s ease; }
.admin-output-clear:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.admin-output-clear[hidden] { display: none; }
.admin-page-body > .admin-output-head { min-height: 26px; }
.admin-output-head:has(+ .intel-content .admin-feed-empty) .admin-output-clear { display: none; }
.admin-page-head > .admin-page-head-search { align-items: center; }
.admin-output.is-auto .admin-output-head { display: none; }
.admin-skel-inline { display: inline-block; vertical-align: middle; max-width: 100%; border-radius: 6px; }
.admin-feed {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.admin-feed-empty { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--text-faint); font-size: 14px; }
.admin-feed-empty[hidden] { display: none; }
.admin-feed-empty { animation: adminFadeIn 0.2s ease; }
.admin-run { transition: height 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.26s cubic-bezier(0.4, 0, 0.2, 1); }
.admin-run.is-entering { opacity: 0; padding-top: 0; padding-bottom: 0; }
.admin-run.is-clearing { height: 0 !important; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; border-top-color: transparent; }
@keyframes adminFadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .admin-run, .admin-feed-empty { transition: none; animation: none; }
}
.admin-run { padding: 18px 22px 20px; }
.admin-run + .admin-run { border-top: 1px solid var(--border); }
.admin-run-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-run-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.admin-run-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.admin-run-status.is-running::before { background: var(--accent); animation: adminPulse 1.2s ease-in-out infinite; }
.admin-run-status.is-done::before { background: var(--green); }
.admin-run-time { font-size: 12.5px; color: var(--text-faint); }
.admin-run-note { font-size: 13.5px; color: var(--text-faint); }
.admin-result + .admin-result { margin-top: 12px; }
.admin-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  overflow: hidden;
}
.admin-text { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.admin-text .dmd-h { color: var(--text); margin: 14px 0 6px; letter-spacing: -0.01em; }
.admin-text .dmd-h:first-child { margin-top: 0; }
.admin-text .dmd-h1 { font-size: 20px; font-weight: 800; }
.admin-text .dmd-h2 { font-size: 17px; }
.admin-text .dmd-h3 { font-size: 15px; }
.admin-text .dmd-subtext { color: var(--text-faint); font-size: 12.5px; }
.admin-text .dmd-link { color: #5197ed; }
.admin-text .dmd-inline-code { background: var(--bg-hover); border-color: var(--border-strong); font-family: var(--mono); }
.admin-text .dmd-codeblock { background: var(--bg); border-color: var(--border); color: var(--text-dim); font-family: var(--mono); font-size: 13px; }
.admin-text .dmd-mention { background: rgba(88, 101, 242, 0.3); color: #dee0fc; cursor: default; }
.admin-text .dmd-mention:not(.dmd-mention-role):hover { background: #5865f2; color: #fff; }
.admin-text .dmd-timestamp { background: var(--bg-hover); }
.admin-text .dmd-quote::before { background: var(--border-strong); }
.admin-sep { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.admin-gap { height: 4px; }
.admin-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-buttons .btn { gap: 6px; }
.admin-btn-emoji { width: 16px; height: 16px; object-fit: contain; }
.admin-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-section-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: transparent; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.admin-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.admin-working { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.admin-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: adminSpin 0.8s linear infinite; }
@keyframes adminSpin { to { transform: rotate(360deg); } }
@keyframes adminPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.admin-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.14s ease;
}
.admin-file:hover { border-color: var(--text-faint); }
.admin-file svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.admin-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.admin-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.admin-modal-head { padding: 20px 22px 6px; }
.admin-modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.admin-modal-body { display: flex; flex-direction: column; gap: 16px; padding: 14px 22px 4px; }
.admin-modal-label { font-size: 13.5px; font-weight: 600; }
.admin-modal-options { display: flex; flex-direction: column; gap: 9px; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 20px; }
body.admin-modal-open { overflow: hidden; }

.admin-mobilebar { display: none; }
.admin-rail-backdrop { display: none; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; padding-top: 16px; }
  .admin-mobilebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
  }
  .admin-mobilebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .admin-mobilebar-toggle svg { width: 18px; height: 18px; }
  .admin-mobilebar-text { display: flex; flex-direction: column; min-width: 0; }
  .admin-mobilebar-title { font-size: 12px; font-weight: 600; color: var(--text-faint); }
  .admin-mobilebar-current { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: min(300px, 86vw);
    overflow-y: auto;
    border-radius: 0 16px 16px 0;
    border-left: 0;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .admin-shell.rail-open .admin-rail { transform: none; }
  .admin-rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .admin-shell.rail-open .admin-rail-backdrop { opacity: 1; pointer-events: auto; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .admin-rail, .admin-rail-backdrop { transition: none; }
}
@media (max-width: 640px) {
  .admin-shell { padding: 16px 16px 64px; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-panel { padding: 20px 18px; }
  .admin-panel-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .admin-run { padding: 16px; }
  .admin-section { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-rail-indicator { transition: none; }
  .admin-spinner, .admin-run-status.is-running::before { animation: none; }
}

.ref-link-row, .ref-code-row { display: flex; gap: 10px; align-items: stretch; }
.ref-link-display { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-raised); font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; cursor: default; }
.ref-copy { flex-shrink: 0; }
.ref-code-field { flex: 1; min-width: 0; display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-raised); padding: 0 12px; cursor: text; transition: border-color 0.2s ease, background-color 0.2s ease; }
.ref-code-field:focus-within { border-color: #27272c; background-color: color-mix(in srgb, var(--bg-raised) 62%, var(--bg-hover)); box-shadow: inset 0 0 0 1px #27272c; }
.ref-save { flex-shrink: 0; }
.ref-code-prefix { color: var(--text-faint); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ref-code-field input, .ref-code-field input:focus { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 2px; font-family: var(--mono); font-size: 13px; box-shadow: none; outline: none; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ref-stats > div { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ref-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ref-stat-label { font-size: 12px; color: var(--text-faint); }
.ref-list { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; }
.ref-row + .ref-row { border-top: 1px solid var(--border); }
.ref-row-main { min-width: 0; }
.ref-row-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-row-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.ref-row-status { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-align: right; }
.ref-row-text { font-size: 12.5px; color: var(--text-dim); }
.ref-progress { width: 72px; height: 6px; border-radius: 999px; background: var(--bg-hover); overflow: hidden; }
.ref-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ref-empty { margin: 16px 0 0; font-size: 13px; color: var(--text-faint); }
.alt-card-body-inner { transition: opacity 0.12s ease; }
.alt-card-body-inner.card-swapping { opacity: 0; }
.ref-off { padding: 16px; border: 1px dashed var(--border-strong); border-radius: 10px; margin-bottom: 4px; }
.ref-off p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-dim); }
.ref-off-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-off-actions form { margin: 0; }
.alert-enter { animation: alert-enter 0.32s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes alert-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ref-disable { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ref-disable-text { min-width: 0; }
.ref-disable-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.ref-disable-sub { font-size: 12.5px; color: var(--text-faint); line-height: 1.45; }
.ref-disable .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .ref-disable { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .ref-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ref-row-status { text-align: left; }
  .ref-code-prefix { display: none; }
}

.aff-page { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.aff-lede { margin: 14px 0 24px; max-width: 620px; font-size: 15.5px; line-height: 1.6; color: var(--text-dim); }
.aff-reqs { margin-bottom: 16px; }
.aff-reqs-title, .aff-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--text); }
.aff-reqs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.aff-reqs li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.aff-reqs li b { color: var(--text); }
.aff-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-dim); }
.aff-tick svg { width: 13px; height: 13px; }
.aff-apps { margin-bottom: 16px; }
.aff-apps-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.aff-apps-head .aff-section-title { margin-bottom: 0; }
.aff-apps-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg-hover); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-dim); }
.aff-apps .aff-apps-none { margin: 0; padding-top: 16px; }
.aff-app-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.aff-apps-head + .aff-app-row { border-top: 0; }
.aff-app-row:last-child { padding-bottom: 0; }
.aff-app-main { min-width: 0; flex: 1; }
.aff-app-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-app-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.aff-app-reason { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.aff-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.aff-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aff-status-pending { color: var(--accent); background: rgba(245, 234, 81, 0.1); border-color: rgba(245, 234, 81, 0.3); }
.aff-status-approved { color: var(--green); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); }
.aff-status-denied { color: var(--red); background: rgba(242, 85, 90, 0.1); border-color: rgba(242, 85, 90, 0.3); }
.aff-apps-empty .btn { margin-top: 4px; }
.aff-apps-new { margin-top: 6px; }
.aff-form { display: flex; flex-direction: column; gap: 26px; }
.aff-step.field { gap: 6px; }
.aff-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-dim); font-size: 13px; font-weight: 800; }
.aff-hint { margin: -4px 0 12px; font-size: 13px; color: var(--text-faint); }
.aff-empty { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.aff-servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aff-server { position: relative; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-raised); cursor: pointer; transition: border-color 0.16s ease, background-color 0.16s ease; }
.aff-server:hover { background: var(--bg-hover); }
.aff-server input { position: absolute; opacity: 0; pointer-events: none; }
.aff-server:has(input:checked) { border-color: var(--text-faint); background: var(--bg-hover); }
.aff-server:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.aff-server.is-disabled { cursor: not-allowed; opacity: 0.55; }
.aff-server.is-disabled:hover { background: var(--bg-raised); }
.aff-server.field-error, .aff-form .field input.field-error, .aff-form .field textarea.field-error { border-color: var(--red); }
.aff-collapse { overflow: hidden; height: 0; margin-inline: -2px; transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.aff-collapse.is-open { height: auto; }
.aff-collapse-inner { padding-inline: 2px; transform: translateY(-100%); transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.aff-collapse.is-open .aff-collapse-inner { transform: none; }
.aff-collapse .aff-server:has(input:focus-visible) { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .aff-collapse, .aff-collapse-inner { transition: none; }
}
.aff-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-hover); }
.aff-picked-icon { display: flex; flex-shrink: 0; }
.aff-picked .btn { flex-shrink: 0; }
.aff-standing { margin: 0; }
.aff-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.aff-server-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.aff-server-letter { display: grid; place-items: center; background: var(--bg-hover); font-weight: 700; color: var(--text-dim); }
.aff-server-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.aff-server-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-server-sub { font-size: 12px; color: var(--text-faint); line-height: 1.35; margin-top: 2px; }
.aff-server-radio { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.aff-server:has(input:checked) .aff-server-radio { border-color: var(--text-dim); box-shadow: inset 0 0 0 4px var(--bg-hover), inset 0 0 0 9px var(--text-dim); }
.aff-about-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.aff-count { flex-shrink: 0; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.aff-submit { align-self: flex-start; }
.aff-note { margin: -12px 0 0; font-size: 13px; color: var(--text-faint); line-height: 1.55; }
.aff-review-card { margin-bottom: 16px; }
.aff-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.aff-review-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 7px 14px; margin: 0 0 14px; font-size: 13px; }
.aff-review-kv dt { color: var(--text-faint); }
.aff-review-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.aff-review-about { padding: 12px 14px; border-radius: 10px; background: var(--bg-raised); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; margin-bottom: 14px; }
.aff-review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.action-modal.aff-approve-modal { max-width: 540px; max-height: calc(100vh - 48px); overflow-y: auto; }
.aff-approve-field { margin-bottom: 14px; }
.aff-approve-field label { margin-bottom: 3px; }
.aff-approve-field .hint { display: block; font-size: 12.5px; color: var(--text-faint); margin-bottom: 8px; line-height: 1.45; }
.aff-approve-field textarea { resize: vertical; min-height: 120px; }
.aff-approve-count { display: block; text-align: right; font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.aff-approve-banner-preview { display: block; width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; margin-top: 8px; border: 1px solid var(--border); }
.aff-approve-banner-preview[hidden] { display: none; }
.aff-approve-color { display: flex; gap: 8px; align-items: center; }
.aff-approve-color input[type=color] { flex: 0 0 auto; width: 40px; height: 38px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-input, transparent); cursor: pointer; }
.aff-approve-color input[type=text] { flex: 1 1 auto; }
.aff-approve-color input.is-invalid { border-color: var(--red); }
@media (max-width: 640px) {
  .aff-servers { grid-template-columns: minmax(0, 1fr); }
  .aff-picked { flex-wrap: wrap; }
  .aff-picked .btn { width: 100%; }
  .aff-app-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 8px; }
  .aff-app-row .aff-status { grid-column: 2; justify-self: start; }
  .aff-review-kv { grid-template-columns: 1fr; gap: 2px; }
  .aff-review-kv dd { margin-bottom: 8px; }
}

.ban-page { display: flex; justify-content: center; padding: 72px 20px 100px; }
.ban-notice { width: 100%; max-width: 640px; animation: ban-notice-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
@keyframes ban-notice-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ban-notice { animation: none; } }
.ban-notice-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }
.ban-notice-bar b { color: var(--text-dim); font-weight: 600; }
.ban-notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red, #e5484d); box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15); flex-shrink: 0; }
.ban-notice-title { margin: 0 0 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.ban-notice-subtitle { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.ban-notice-text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.ban-notice-text b { color: var(--text); }
.ban-notice-code { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--bg-hover); color: var(--text); font-family: var(--mono); font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.18s ease; }
.ban-notice-code:hover { background: rgba(255, 255, 255, 0.12); }
.ban-notice-reason { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0; padding-left: 14px; border-left: 2px solid var(--border-strong); font-size: 15px; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.ban-notice-reason span { font-size: 12px; font-weight: 600; color: var(--text-faint); }
.ban-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ban-notice-rule { margin: 34px 0 28px; border: 0; border-top: 1px solid var(--border); }
.ban-notice-meta { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-faint); }
.ban-notice-meta a { color: var(--text-dim); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; transition: color 0.18s ease; }
.ban-notice-meta a:hover { color: var(--accent); }
.ban-notice-compact { max-width: none; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.ban-notice-compact .ban-notice-title { font-size: 21px; }
.ban-notice-compact .ban-notice-rule { margin: 24px 0 20px; }
@media (max-width: 560px) {
  .ban-page { padding: 48px 16px 80px; }
  .ban-notice-title { font-size: 23px; }
  .ban-notice-actions .btn { flex: 1; }
}

.api-can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.api-can-col { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.api-can-col h3 { margin: 0 0 10px; font-size: 14px; }
.api-can-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.api-can-col li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.api-can-col li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(-45deg); }
.api-cant li::before { top: 4px; width: 11px; height: 11px; border: 0; transform: none; background: linear-gradient(45deg, transparent 43%, var(--text-faint) 43%, var(--text-faint) 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--text-faint) 43%, var(--text-faint) 57%, transparent 57%); }
@media (max-width: 700px) { .api-can { grid-template-columns: 1fr; } }

.dq-list { display: grid; gap: 14px; }
.card.dq-card { padding: 18px 20px; }
.dq-head { display: flex; align-items: center; gap: 12px; }
.dq-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--bg-hover); }
.dq-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dq-who strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-id { font-size: 12px; color: var(--text-faint); }
.dq-badge { flex-shrink: 0; color: var(--text-dim); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.dq-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; margin: 16px 0 0; }
.dq-facts dt { margin-bottom: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.dq-facts dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.dq-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); font-size: 13.5px; line-height: 1.6; color: var(--text-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.dq-warn { margin: 12px 0 0; font-size: 12.5px; color: var(--text-faint); }
.dq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dq-actions form { margin: 0; }
.dq-recent-head { margin-top: 28px; }
.card.dq-recent { padding: 4px 18px; }
.dq-recent-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.dq-recent-row:last-child { border-bottom: none; }
.dq-recent-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-recent-type, .dq-recent-state { color: var(--text-dim); }
.dq-recent-ref { font-size: 12px; color: var(--text-faint); }
.alert.dq-replying { border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: var(--text-dim); }
@media (max-width: 720px) { .dq-recent-row { grid-template-columns: 1fr auto; } .dq-recent-type, .dq-recent-ref { display: none; } }
