@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;
}


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

:root {
  --accent: #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-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-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); }

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

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;
}
.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); }

@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, transform 0.14s ease;
  transform: translateY(4px);
  z-index: 1000;
}
.rogoid-tooltip-bubble.rogoid-tooltip-bubble-below { transform: translateY(-4px); }
.rogoid-tooltip-bubble.rogoid-tooltip-bubble-visible {
  opacity: 1;
  transform: translateY(0);
}
.rogoid-tooltip-bubble-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.badge-red { 
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
 }
 
.badge-green { 
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid 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;
}
.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; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.user-chip:hover { color: var(--accent); border-color: var(--accent); }
.user-chip:active { transform: scale(0.97); }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }

.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, 1fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
}
.hero-grid .hero-copy h1 { max-width: 560px; }
.hero-grid .hero-copy .lede { max-width: 500px; }

.hero-preview { position: relative; perspective: 1600px; }
.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: calc(100% + 220px);
  transform: rotateY(-10deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-preview-window:hover { transform: rotateY(-3deg) rotateX(0deg); }

.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.hero-preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.hero-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;
}
.hero-preview-window img { display: block; width: 100%; height: auto; }

@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 { perspective: none; }
  .hero-preview-window { width: 100%; transform: none; }
  .hero-preview-window:hover { transform: none; }
}


.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;
}
.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; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.feature-preview-entering { animation: featurePreviewIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 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-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; }

.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 {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 20px 14px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.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;
  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-indicator {
  position: fixed;
  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.open #sidebarSearch,
.sidebar-search-wrap.open input {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  border-radius: 8px 8px 0 0;
}
.sidebar-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top-width: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.sidebar-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.sidebar-search-result:last-child { border-bottom: none; }
.sidebar-search-result:hover, .sidebar-search-result.active { background: var(--bg-hover); }
.sidebar-search-result-locked { color: var(--text-faint); cursor: default; }
.sidebar-search-result-locked:hover { background: none; }
.sidebar-search-result-lock-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.sidebar-search-group {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--bg-raised);
}

.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; transform: translateY(6px); }

.rogoid-nav-loading .main-content-inner { pointer-events: none; }
.main-content-inner { transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); }
.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-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; }

.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:not(.activity-head):hover { background: var(--bg-hover); }
.activity-row[hidden] { display: none; }
.activity-row.row-suspended { border: 1px dashed var(--red); border-radius: 0; }
.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; }

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; }
.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 {
  -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-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); }

.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; }
.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-top-width: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 4px;
  max-height: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform-origin: top;
  transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, padding 0.24s ease, border-width 0.2s ease, border-color 0.16s ease;
}
.custom-select.open .custom-select-menu {
  max-height: 260px;
  opacity: 1;
  padding: 4px;
  border-top-width: 1px;
  border-color: var(--border-strong);
  pointer-events: auto;
}
.custom-select-options {
  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-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: var(--border-strong); background: 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); }

.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: 3000px; }
.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-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);
  transition: background 0.14s ease;
}
.alt-card.open .alt-card-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.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;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-card.open .alt-card-body { max-height: 3000px; }
.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); }

.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: 300;
  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: translate(-50%, 100%);
  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: 301;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-sheet.confirm-in { opacity: 1; transform: translate(-50%, 0); }
.confirm-message { color: var(--text); font-size: 15px; margin: 0 0 18px; }
.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: 1920 / 604;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #0c0c0e;
  transition: background-color 0.35s ease;
}
.verify-preview-bg-layer {
  position: absolute;
  inset: 0;
  background-size: 140%;
  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; }
}

.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);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.force-verify-backdrop.force-verify-in .force-verify-modal {
  transform: scale(1);
  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;
}
.force-verify-results:empty { display: none; }
.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-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-hover);
}
.force-verify-selected img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.force-verify-selected-clear { margin-left: auto; }
.force-verify-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.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);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.action-modal-backdrop.action-modal-in .action-modal {
  transform: scale(1);
  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; }

.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;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.55);
  color: var(--text);
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 360px;
  max-width: 100%;
}
.toast-in { opacity: 1; transform: translateX(0); }
.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-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-hover);
  color: var(--text-faint);
}
.toast-icon svg { display: block; }
.toast-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.toast-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.toast-message { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); overflow-wrap: anywhere; }

.toast-loading .toast-icon { background: rgba(245, 234, 81, 0.12); color: var(--accent); }
.toast-loading .toast-icon svg { animation: toast-spin 0.8s linear infinite; }
.toast-loading .toast-title { color: var(--accent); }
.toast-success .toast-icon { background: var(--green-dim); color: var(--green); }
.toast-success .toast-title { color: var(--green); }
.toast-error .toast-icon { background: var(--red-dim); color: var(--red); }
.toast-error .toast-title { color: var(--red); }
.toast-info .toast-icon { background: rgba(245, 234, 81, 0.12); color: var(--accent); }
.toast-info .toast-title { color: var(--accent); }
@keyframes toast-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s ease; transform: none; }
  .toast-out { transform: none; }
  .toast-loading .toast-icon svg { animation: none; }
}
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: 100%; }
}

.btn[disabled], .btn.btn-loading {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { 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; }
  .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; }
  .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; }
}

.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;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.cookie-banner-hide {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  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 - 100px);
  overflow-y: auto;
  padding: 0 10px 24px 0;
  border-right: 1px solid var(--border);
  scrollbar-width: none;
}
.docs-sidebar::-webkit-scrollbar { display: none; }
.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-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 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;
}
.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;
  transform: translateY(-14px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  will-change: opacity, transform;
}
.docs-palette.visible .docs-palette-backdrop { opacity: 1; }
.docs-palette.visible .docs-palette-panel { opacity: 1; transform: none; }
.docs-palette.closing .docs-palette-panel { transform: translateY(-8px) scale(0.98); transition: opacity 0.16s ease, transform 0.18s 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 .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: 24px; padding-top: 24px; }
  .docs-sidebar { position: static; width: 100%; flex: none; max-height: none; border-right: none; padding-right: 0; }
  .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;
  transform: translateY(22px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.discord-preview.discord-preview-in { opacity: 1; transform: translateY(0); }

.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 cubic-bezier(0.16, 1, 0.3, 1), transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(10px);
  transition-delay: calc(var(--i, 0) * 210ms);
}
.discord-preview-loaded .discord-msg { opacity: 1; transform: translateY(0); }
.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 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(88, 101, 242, 0.22);
  color: #c9cdfb;
  padding: 1px 2px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
  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;
  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: 24px; }
.apply-progress-track {
  height: 6px;
  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);
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.apply-progress-label { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); }

.apply-step[hidden] { display: none; }

.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);
}

.apply-step {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.apply-step-exit-left { transform: translateX(-28px); opacity: 0; }
.apply-step-exit-right { transform: translateX(28px); opacity: 0; }
.apply-step-enter-left { transform: translateX(-28px); opacity: 0; }
.apply-step-enter-right { transform: translateX(28px); 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);
}
.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), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-attribution-hidden { opacity: 0; transform: translateY(10px); }
.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; }
@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 { display: flex; align-items: center; gap: 8px; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.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; }
