/*
  Guardy dashboard global stylesheet.
  Add shared UI styles here instead of creating page-specific CSS.
*/
  @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

  :root {
    color-scheme: dark;
    --color-bg: #111217;
    --body-bg:
      radial-gradient(circle at 82% 0%, rgba(60, 70, 150, .32), transparent 34%),
      linear-gradient(135deg, #16171d 0%, #1c1e28 44%, #101116 100%);
    --main-bg:
      radial-gradient(circle at 88% 0%, rgba(56, 66, 146, .28), transparent 30%),
      linear-gradient(180deg, rgba(24, 25, 31, .84), rgba(18, 19, 24, .96)),
      var(--color-bg);
    --login-bg:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .24), transparent 36%),
      linear-gradient(180deg, rgba(31, 28, 60, .42), rgba(12, 14, 22, .22) 48%, rgba(10, 10, 17, .52)),
      url("/assets/DB-Background.png") center / cover no-repeat fixed,
      #090b15;
    --sidebar-bg: rgba(19, 20, 25, .98);
    --color-surface-hover: #292b33;
    --color-surface: #2b2c32;
    --color-surface-raised: #34353c;
    --color-surface-soft: #202128;
    --color-border: rgba(255, 255, 255, .08);
    --color-text: #f2f3f5;
    --color-muted: #b5bac1;
    --color-muted-2: #80848e;
    --input-bg: #1e1f22;
    --input-hover-bg: #24252b;
    --dropdown-bg: #24252b;
    --dropdown-hover-bg: #30323a;
    --panel-bg: rgba(43, 44, 50, .94);
    --soft-card-bg: rgba(43, 44, 50, .88);
    --success-bg: rgba(35, 165, 90, .16);
    --success-border: rgba(35, 165, 90, .32);
    --success-text: #a6f3bf;
    --danger-bg: rgba(242, 63, 66, .14);
    --danger-border: rgba(242, 63, 66, .34);
    --danger-text: #ffb1b8;
    --warning-bg: rgba(240, 178, 50, .13);
    --warning-border: rgba(240, 178, 50, .30);
    --warning-text: #ffe2a3;
    --info-bg: rgba(88, 101, 242, .14);
    --info-border: rgba(88, 101, 242, .30);
    --info-text: #dbe0ff;
    --color-primary: #5865f2;
    --color-primary-strong: #4752c4;
    --color-primary-hover: #4752c4;
    --color-success: #23a55a;
    --color-danger: #f23f42;
    --color-warning: #f0b232;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --spacing-sm: 8px;
    --spacing-md: 14px;
    --spacing-lg: 18px;
    --shadow: 0 16px 42px rgba(0, 0, 0, .28);
    --shadow-strong: 0 24px 70px rgba(0, 0, 0, .42);
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --color-bg: #eef2f8;
    --body-bg:
      radial-gradient(circle at 86% 0%, rgba(88, 101, 242, .12), transparent 32%),
      linear-gradient(135deg, #f7f9fd 0%, #eef2f8 48%, #f7f9fc 100%);
    --main-bg:
      radial-gradient(circle at 88% 0%, rgba(88, 101, 242, .10), transparent 30%),
      linear-gradient(180deg, rgba(247, 249, 253, .96), rgba(239, 243, 250, .98)),
      var(--color-bg);
    --login-bg:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .18), transparent 36%),
      linear-gradient(180deg, rgba(247, 248, 255, .84), rgba(231, 236, 248, .72)),
      url("/assets/DB-Background.png") center / cover no-repeat fixed,
      #eef2fb;
    --sidebar-bg: linear-gradient(180deg, rgba(248, 250, 254, .99), rgba(239, 243, 250, .99));
    --color-surface-hover: #e2e7f1;
    --color-surface: #ffffff;
    --color-surface-raised: #f4f7fc;
    --color-surface-soft: #f2f5fb;
    --color-border: rgba(33, 45, 69, .16);
    --color-text: #172033;
    --color-muted: #4c5a70;
    --color-muted-2: #68758b;
    --input-bg: #fbfcff;
    --input-hover-bg: #eef3fb;
    --dropdown-bg: #ffffff;
    --dropdown-hover-bg: #edf1fb;
    --panel-bg: rgba(255, 255, 255, .96);
    --soft-card-bg: rgba(255, 255, 255, .90);
    --success-bg: rgba(35, 165, 90, .11);
    --success-border: rgba(35, 165, 90, .28);
    --success-text: #136c3a;
    --danger-bg: rgba(242, 63, 66, .10);
    --danger-border: rgba(242, 63, 66, .26);
    --danger-text: #b4232a;
    --warning-bg: rgba(240, 178, 50, .14);
    --warning-border: rgba(190, 120, 10, .26);
    --warning-text: #8a5700;
    --info-bg: rgba(88, 101, 242, .10);
    --info-border: rgba(88, 101, 242, .24);
    --info-text: #3642aa;
    --color-primary: #5865f2;
    --color-primary-strong: #4752c4;
    --color-primary-hover: #4752c4;
    --color-success: #158a49;
    --color-danger: #d92d36;
    --color-warning: #b7791f;
    --shadow: 0 18px 42px rgba(15, 23, 42, .11);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, .16);
  }
  * { box-sizing: border-box; }
  html,
  body {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  }
  body {
    margin: 0;
    min-height: 100vh;
    background: var(--body-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.45;
  }
  a { color: inherit; text-decoration: none; }
  select, input, textarea, button {
    font: inherit;
  }
  select, input[type="number"], input[type="text"], input[type="search"], input:not([type]), textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--input-bg);
    color: var(--color-text);
    border-radius: 4px;
    padding: 9px 10px;
    outline: none;
  }
  textarea { resize: vertical; min-height: 84px; }
  select:focus, input:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .18);
  }
  .native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .custom-select {
    position: relative;
    width: 100%;
  }
  .custom-select-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--color-text);
    padding: 9px 10px;
    text-align: left;
    font-weight: 800;
  }
  .custom-select-button:hover,
  .custom-select.open .custom-select-button {
    border-color: rgba(88, 101, 242, .78);
    background: var(--input-hover-bg);
  }
  .custom-select.open .custom-select-button {
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .16);
  }
  .custom-select-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .custom-select-caret {
    width: 8px;
    height: 8px;
    justify-self: end;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
  }
  .custom-select.open .custom-select-caret {
    transform: rotate(225deg) translateY(-1px);
  }
  .custom-select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 80;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(181, 186, 193, .22);
    border-radius: 8px;
    background: var(--dropdown-bg);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
  }
  .custom-select.open .custom-select-list {
    display: grid;
    gap: 2px;
  }
  .custom-select-option {
    width: 100%;
    min-height: 36px;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text);
    padding: 8px 10px;
    text-align: left;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .custom-select-option:hover,
  .custom-select-option.active {
    background: var(--dropdown-hover-bg);
  }
  .custom-select-option:disabled {
    cursor: not-allowed;
    opacity: .45;
  }
  button {
    border: 0;
    border-radius: 4px;
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    padding: 9px 12px;
    cursor: pointer;
  }
  button:hover { background: var(--color-primary-hover); }
  .danger-button {
    background: var(--color-danger);
  }
  .danger-button:hover {
    background: #d83c3e;
  }
  .shell { min-height: 100vh; }
  .sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--dropdown-bg);
    place-items: center;
    gap: 4px;
  }
  .sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, .54);
    opacity: 1;
  }
  .sidebar-backdrop[hidden] {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--color-border);
    padding: 18px 14px;
    background: var(--sidebar-bg);
  }
  .sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 14px;
  }
  .brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 8px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
  }
  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .16);
  }
  .brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  .brand strong { display: block; font-size: 15px; font-weight: 800; }
  .brand-subtitle { color: var(--color-muted-2); font-size: 12px; font-weight: 600; }
  .brand-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: #a6f3bf;
    font-size: 12px;
    font-weight: 850;
  }
  .brand-invite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    background: rgba(88, 101, 242, .18);
    border: 1px solid rgba(88, 101, 242, .36);
    color: #dbe0ff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
  }
  .brand-invite:hover {
    background: var(--color-primary);
    color: #fff;
  }
  .sidebar-account {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(181, 186, 193, .14);
  }
  .sidebar-account-user {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--soft-card-bg);
  }
  .sidebar-account-user div {
    min-width: 0;
  }
  .sidebar-account .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .sidebar-account-user span:not(.user-avatar) {
    display: block;
    color: var(--color-muted-2);
    font-size: 11px;
    font-weight: 800;
  }
  .sidebar-account-user strong {
    display: block;
    overflow: hidden;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-account .ghost-button {
    width: 100%;
    min-height: 38px;
  }
  .nav-title {
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 800;
    margin: 20px 10px 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .guild-link {
    display: block;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
  }
  .guild-link:hover { background: var(--color-surface-hover); color: var(--color-text); }
  .guild-link.active {
    background: var(--color-surface-hover);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
  .nav-list {
    display: grid;
    gap: 2px;
  }
  .nav-sort-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 7px;
  }
  .nav-list.is-sortable .nav-sort-item {
    cursor: grab;
  }
  .nav-sort-item.is-dragging {
    opacity: .58;
    background: rgba(88, 101, 242, .14);
  }
  .nav-drag-handle {
    width: 26px;
    min-width: 26px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted-2);
    cursor: grab;
    font-weight: 900;
    line-height: 1;
  }
  .nav-drag-handle:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
  }
  .server-menu {
    margin: 0 0 6px;
    border: 1px solid rgba(181, 186, 193, .28);
    border-radius: 8px;
    background: #1f2026;
    overflow: hidden;
  }
  .server-menu[open] {
    border-color: rgba(88, 101, 242, .78);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, .16);
  }
  .server-menu summary {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--color-text);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
  }
  .server-menu summary::-webkit-details-marker {
    display: none;
  }
  .server-menu summary:hover,
  .server-menu[open] summary {
    background: rgba(88, 101, 242, .08);
  }
  .server-menu summary img,
  .server-menu-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, .20);
  }
  .server-menu summary span,
  .server-menu-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .server-menu-caret {
    width: 8px;
    height: 8px;
    justify-self: end;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
  }
  .server-menu[open] .server-menu-caret {
    transform: rotate(225deg) translateY(-1px);
  }
  .server-menu-list {
    display: grid;
    gap: 0;
    padding: 6px;
    border-top: 1px solid rgba(181, 186, 193, .16);
    background: #24252b;
  }
  .server-menu-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--color-text);
    font-weight: 800;
  }
  .server-menu-item:hover,
  .server-menu-item.active {
    background: #30323a;
  }
  .server-empty-state {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin: 0 0 6px;
    padding: 9px 11px;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: 8px;
    background: rgba(31, 32, 38, .76);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 750;
  }
  .server-empty-state span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .server-empty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(181, 186, 193, .38);
    box-shadow: 0 0 0 3px rgba(181, 186, 193, .07);
  }
  .main {
    min-height: 100vh;
    margin-left: 280px;
    padding: 36px 32px 120px;
    background: var(--main-bg);
  }
  .topbar {
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin: 0 auto 14px;
    max-width: 1120px;
  }
  .topbar-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }
  h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: 0; }
  .subtle { color: var(--color-muted); margin: 0; max-width: 680px; }
  .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    background: var(--soft-card-bg);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
  }
  .user-avatar {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    object-fit: cover;
  }
  .ghost-button {
    border: 1px solid var(--color-border);
    background: var(--soft-card-bg);
    color: var(--color-muted);
    padding: 8px 10px;
  }
  .ghost-button:hover { background: var(--color-surface-raised); color: var(--color-text); }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-border);
    background: var(--soft-card-bg);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--shadow);
  }
  .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-success); }
  .notice {
    max-width: 1120px;
    margin: 0 auto 14px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
  }
  .notice.danger {
    margin: 14px 0 0;
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
  }
  .toast-region {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
  }
  .toast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    background: var(--dropdown-bg);
    color: var(--color-text);
    padding: 12px 12px 12px 14px;
    font-weight: 800;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
  }
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  .toast-success {
    border-left-color: var(--color-success);
    background: var(--success-bg);
    border-top-color: var(--success-border);
    border-right-color: var(--success-border);
    border-bottom-color: var(--success-border);
    color: var(--success-text);
  }
  .toast-error {
    border-left-color: var(--color-danger);
    background: var(--danger-bg);
    border-top-color: var(--danger-border);
    border-right-color: var(--danger-border);
    border-bottom-color: var(--danger-border);
    color: var(--danger-text);
  }
  .toast-warning {
    border-left-color: var(--color-warning);
    background: var(--warning-bg);
    border-top-color: var(--warning-border);
    border-right-color: var(--warning-border);
    border-bottom-color: var(--warning-border);
    color: var(--warning-text);
  }
  .toast-info {
    border-left-color: var(--color-primary);
    background: var(--info-bg);
    border-top-color: var(--info-border);
    border-right-color: var(--info-border);
    border-bottom-color: var(--info-border);
    color: var(--info-text);
  }
  .toast-close {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    line-height: 1;
  }
  .toast-close:hover {
    background: rgba(255, 255, 255, .12);
  }
  .login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 18px;
    background: var(--login-bg);
  }
  .login-shell {
    width: min(100%, 520px);
  }
  .login-panel {
    background: var(--panel-bg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 34px 36px 32px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(8px);
  }
  .login-panel h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 30px;
    font-weight: 850;
    text-align: center;
  }
  .login-description {
    margin: 12px auto 0;
    max-width: 420px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.62;
    text-align: center;
    white-space: pre-line;
  }
  .login-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
  }
  .login-field {
    gap: 8px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 800;
  }
  .required { color: #ff8796; }
  .login-form input {
    height: 44px;
    border-color: var(--color-border);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 16px;
  }
  .login-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .20);
  }
  .login-form button {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
  }
  .login-form button:hover:not(:disabled) {
    background: var(--color-primary-strong);
    transform: translateY(-1px);
  }
  .login-form button:disabled {
    cursor: not-allowed;
    opacity: .62;
  }
  .discord-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(88, 101, 242, .26);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
  }
  .discord-login-button:hover {
    background: var(--color-primary-strong);
    box-shadow: 0 16px 34px rgba(88, 101, 242, .34);
    transform: translateY(-1px);
  }
  .discord-login-button:focus-visible {
    outline: 3px solid rgba(88, 101, 242, .36);
    outline-offset: 3px;
  }
  .login-help {
    display: grid;
    gap: 4px;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
  }
  .login-help strong {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
  }
  .login-help span {
    color: #9db3ff;
    font-weight: 600;
  }
  .theme-picker {
    display: grid;
    gap: 7px;
    min-width: 0;
  }
  .theme-picker span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
  }
  .theme-picker select {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 850;
  }
  .login-panel .theme-picker {
    margin-top: 18px;
    text-align: left;
  }
  .sidebar-account .theme-picker select {
    min-height: 40px;
  }
  .sidebar-account .custom-select-list {
    top: auto;
    bottom: calc(100% + 4px);
    z-index: 240;
  }
  .storage-notice {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 220;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(960px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .storage-notice[hidden] {
    display: none;
  }
  .storage-notice.is-hiding {
    opacity: 0;
    transform: translateY(8px);
  }
  .storage-notice p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
  }
  .storage-notice-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }
  .storage-notice-link,
  .storage-notice-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
  }
  .storage-notice-link {
    border: 1px solid var(--color-border);
    background: var(--soft-card-bg);
    color: var(--color-text);
  }
  .storage-notice-link:hover {
    border-color: rgba(88, 101, 242, .42);
    background: var(--color-surface-hover);
  }
  .storage-notice-accept {
    background: var(--color-primary);
    color: #fff;
  }
  .storage-notice-accept:hover {
    background: var(--color-primary-hover);
  }
  .public-document-main {
    min-height: 100vh;
    margin-left: 0;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
  }
  .card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px rgba(0, 0, 0, .18);
  }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
  .metric-label {
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .metric-value { font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
  .section-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
  .home-page {
    gap: 16px;
  }
  .home-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .home-stat-card,
  .home-hero-card,
  .home-account-card,
  .home-quick-panel,
  .home-section-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  }
  .home-stat-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "icon value";
    align-items: center;
    gap: 3px 14px;
    min-height: 118px;
    padding: 18px;
    background:
      radial-gradient(circle at 92% 8%, rgba(88, 101, 242, .24), transparent 38%),
      linear-gradient(135deg, rgba(44, 47, 65, .92), rgba(24, 26, 35, .98));
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .home-stat-card.latency {
    background:
      radial-gradient(circle at 92% 8%, rgba(240, 178, 50, .16), transparent 38%),
      linear-gradient(135deg, rgba(45, 42, 58, .92), rgba(24, 26, 35, .98));
  }
  .home-stat-card.servers {
    background:
      radial-gradient(circle at 92% 8%, rgba(35, 165, 90, .15), transparent 38%),
      linear-gradient(135deg, rgba(35, 47, 58, .92), rgba(24, 26, 35, .98));
  }
  .home-stat-card:hover,
  .home-feature-card:hover,
  .home-record-card:hover,
  .home-quick-links a:hover {
    transform: translateY(-4px);
    border-color: rgba(130, 148, 255, .38);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .3), 0 0 34px rgba(88, 101, 242, .12);
  }
  .home-stat-icon {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    font-size: 21px;
  }
  .home-stat-label {
    grid-area: label;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
  }
  .home-stat-card strong {
    grid-area: value;
    color: #fff;
    font-size: 30px;
    line-height: 1.04;
    font-weight: 950;
    overflow-wrap: anywhere;
  }
  .home-hero-card {
    padding: 28px;
    background:
      radial-gradient(circle at 84% 10%, rgba(88, 101, 242, .34), transparent 32%),
      radial-gradient(circle at 18% 92%, rgba(108, 76, 255, .2), transparent 34%),
      linear-gradient(135deg, rgba(25, 27, 42, .98), rgba(37, 39, 66, .94) 52%, rgba(17, 18, 28, .98));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .32), 0 0 48px rgba(88, 101, 242, .12);
  }
  .home-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, .08) 46%, transparent 62%),
      radial-gradient(circle at 55% 108%, rgba(88, 101, 242, .2), transparent 34%);
    opacity: .68;
  }
  .home-hero-card > * {
    position: relative;
    z-index: 1;
  }
  .home-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #cfd6ff;
    font-size: 12px;
    font-weight: 950;
  }
  .home-hero-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.08;
    font-weight: 950;
  }
  .home-hero-card p {
    margin: 12px 0 0;
    max-width: 650px;
    color: #d7dbff;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 650;
  }
  .home-announcement-slot {
    margin-top: 24px;
  }
  .home-announcement-card {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(125, 148, 255, .26);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 92% 12%, rgba(88, 101, 242, .28), transparent 34%),
      linear-gradient(135deg, rgba(17, 18, 30, .82), rgba(32, 34, 52, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .22);
    padding: 16px 18px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .home-announcement-card:hover {
    transform: translateY(-2px);
    border-color: rgba(152, 167, 255, .44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 42px rgba(0, 0, 0, .28), 0 0 34px rgba(88, 101, 242, .12);
  }
  .home-announcement-card.is-important {
    border-color: rgba(240, 178, 50, .38);
    background:
      radial-gradient(circle at 88% 12%, rgba(240, 178, 50, .24), transparent 32%),
      linear-gradient(135deg, rgba(32, 25, 18, .88), rgba(34, 36, 58, .88));
  }
  .home-announcement-card.is-empty {
    border-style: dashed;
    opacity: .82;
  }
  .home-announcement-top,
  .home-announcement-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }
  .home-announcement-kicker,
  .home-announcement-meta span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(88, 101, 242, .18);
    color: #dce1ff;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }
  .home-announcement-date {
    color: #aeb6dc;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
  .home-announcement-card strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 950;
    overflow-wrap: anywhere;
  }
  .home-announcement-card p {
    margin: 0;
    max-width: none;
    color: #d7dbff;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 650;
    overflow-wrap: anywhere;
  }
  .home-announcement-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2px;
  }
  .home-announcement-meta span {
    background: rgba(255, 255, 255, .07);
    color: #c9cedf;
    font-size: 11px;
  }
  .home-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
  }
  .home-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 8px 13px;
    font-weight: 900;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .home-quick-links a:hover {
    background: rgba(88, 101, 242, .24);
  }
  .home-quick-panel {
    padding: 18px;
    background:
      radial-gradient(circle at 95% 0%, rgba(88, 101, 242, .18), transparent 30%),
      linear-gradient(145deg, rgba(40, 42, 55, .88), rgba(23, 24, 32, .96));
  }
  .home-quick-panel .home-quick-links {
    margin-top: 0;
  }
  .home-account-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 22px;
    background:
      radial-gradient(circle at 88% 0%, rgba(88, 101, 242, .18), transparent 32%),
      linear-gradient(145deg, rgba(45, 47, 60, .92), rgba(25, 27, 36, .98));
  }
  .home-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(88, 101, 242, .18);
    font-size: 20px;
  }
  .home-account-card h2,
  .home-section-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }
  .home-account-rows {
    display: grid;
    gap: 12px;
  }
  .home-account-rows > div {
    display: grid;
    gap: 5px;
    border-top: 1px solid rgba(181, 186, 193, .12);
    padding-top: 12px;
  }
  .home-account-rows span,
  .home-section-header p,
  .home-feature-card p,
  .home-record-card p {
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 750;
  }
  .home-account-rows strong {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    overflow-wrap: anywhere;
  }
  .home-role-badge {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(88, 101, 242, .35);
    border-radius: 999px;
    background: rgba(88, 101, 242, .18);
    color: #dbe0ff;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 950;
  }
  .home-section-card {
    padding: 22px;
    background:
      radial-gradient(circle at 95% 4%, rgba(88, 101, 242, .16), transparent 28%),
      linear-gradient(145deg, rgba(42, 43, 51, .88), rgba(24, 25, 32, .96));
  }
  .home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
  .home-section-header.compact {
    margin-bottom: 12px;
  }
  .home-section-header p {
    margin: 5px 0 0;
    font-size: 13px;
  }
  .home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .home-feature-card,
  .home-record-card {
    display: block;
    min-width: 0;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: var(--radius-lg);
    background: rgba(30, 31, 41, .7);
    padding: 15px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .home-feature-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .home-feature-card:focus-visible {
    outline: 2px solid rgba(130, 148, 255, .9);
    outline-offset: 3px;
  }
  .home-feature-card.is-on {
    background:
      radial-gradient(circle at 100% 0%, rgba(35, 165, 90, .13), transparent 34%),
      rgba(30, 31, 41, .7);
  }
  .home-feature-card.is-off {
    background:
      radial-gradient(circle at 100% 0%, rgba(242, 63, 66, .08), transparent 34%),
      rgba(30, 31, 41, .62);
  }
  .home-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .home-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    font-size: 17px;
  }
  .home-status-badge {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 950;
  }
  .home-status-badge.on {
    border-color: rgba(35, 165, 90, .28);
    background: rgba(35, 165, 90, .16);
    color: #8de4af;
  }
  .home-status-badge.off {
    border-color: rgba(181, 186, 193, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--color-muted);
  }
  .home-feature-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
  }
  .home-feature-card p {
    margin: 7px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .home-record-card {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 18px;
    background:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .16), transparent 36%),
      rgba(30, 31, 41, .7);
  }
  .home-record-card > span {
    font-size: 24px;
  }
  .home-record-card strong {
    margin-top: 8px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
  }
  .home-record-card em {
    margin-top: 6px;
    color: #dbe0ff;
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
  }
  .home-record-card p {
    margin: 5px 0 0;
  }
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }
  .settings-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 14px 28px rgba(0, 0, 0, .14);
  }
  .settings-card.wide { grid-column: span 2; }
  .settings-card h3 { margin: 0; font-size: 15px; }
  .settings-subsection {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  }
  .settings-subsection-heading {
    display: grid;
    gap: 4px;
  }
  .settings-subsection-heading h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--color-text);
  }
  .settings-subsection-heading p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .collapsible-card {
    padding: 0;
    align-self: start;
    overflow: visible;
    scroll-margin-top: 24px;
  }
  .collapsible-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    line-height: 1;
  }
  .collapsible-card summary::-webkit-details-marker {
    display: none;
  }
  .collapsible-card summary:hover {
    background: rgba(255, 255, 255, .025);
  }
  .collapsible-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 900;
    transform: translateY(1px);
  }
  .collapsible-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe0ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(1px);
  }
  .collapsible-state::before {
    content: "펼치기";
  }
  .collapsible-state::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .16s ease;
  }
  .collapsible-card[open] .collapsible-state::before {
    content: "접기";
  }
  .collapsible-card[open] .collapsible-state::after {
    transform: rotate(225deg);
  }
  .collapsible-content {
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
  }
  .collapsible-card.is-animating .collapsible-content {
    overflow: hidden;
    transition: height .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
    will-change: height, opacity;
  }
  .collapsible-card[open] summary {
    border-bottom: 1px solid rgba(181, 186, 193, .12);
    margin-bottom: 14px;
  }
  .field { display: grid; gap: 6px; color: var(--color-muted); font-weight: 700; }
  .field-help {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
  }
  .term-editor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    padding: 7px 8px;
    cursor: text;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .term-editor:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .18);
  }
  .term-chip-list {
    display: contents;
  }
  .term-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    color: var(--color-text);
    padding: 5px 6px 5px 9px;
    font-weight: 800;
  }
  .term-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .term-chip-remove {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1;
  }
  .term-chip-remove:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
  }
  .term-editor-input,
  .term-editor-input:focus {
    flex: 1 1 180px;
    width: auto;
    min-width: 160px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    padding: 6px 4px;
    box-shadow: none;
  }
  .term-editor-input::placeholder {
    color: var(--color-muted-2);
  }
  .secondary-locale {
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 4px;
    background: rgba(30, 31, 34, .34);
    padding: 0;
  }
  .secondary-locale summary {
    cursor: pointer;
    color: var(--color-muted);
    font-weight: 800;
    padding: 10px 12px;
  }
  .secondary-locale .field {
    padding: 0 12px 12px;
  }
  .toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: var(--color-text);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
  }
  .toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
  }
  .toggle-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background: #4e5058;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .toggle-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
  }
  .toggle:hover .toggle-switch { background: #5c5f68; }
  .toggle input:checked + .toggle-switch {
    border-color: var(--color-primary);
    background: var(--color-primary);
  }
  .toggle:hover input:checked + .toggle-switch { background: var(--color-primary-hover); }
  .toggle input:checked + .toggle-switch::before { transform: translateX(18px); }
  .toggle input:focus-visible + .toggle-switch { box-shadow: 0 0 0 3px rgba(88, 101, 242, .30); }
  .toggle-label { line-height: 1.25; }
  .command-list {
    display: grid;
    gap: 14px;
  }
  .command-section {
    display: grid;
    gap: 8px;
  }
  .command-section-title {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .command-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .command-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 4px;
    background: rgba(30, 31, 34, .38);
    padding: 10px;
  }
  .command-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
  }
  .command-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  .command-names {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }
  .command-names code {
    color: #dbe0ff;
    background: rgba(88, 101, 242, .14);
    border: 1px solid rgba(88, 101, 242, .20);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 12px;
  }
  .command-description {
    color: var(--color-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .command-badge {
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }
  .command-badge.general { background: rgba(88, 101, 242, .16); color: #c4cbff; }
  .command-badge.admin { background: rgba(242, 185, 68, .14); color: #ffd88a; }
  .two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .actions { display: flex; justify-content: flex-end; }
  .rows { display: grid; gap: 8px; }
  .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(181, 186, 193, .12);
  }
  .row:last-child { border-bottom: 0; }
  .row span:first-child { color: var(--color-muted); }
  .row span:last-child { text-align: right; overflow-wrap: anywhere; color: var(--color-text); font-weight: 650; }
  .announcement-results { display: grid; gap: 12px; }
  .announcement-result-group {
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 8px;
    padding: 12px;
    background: rgba(10, 11, 15, .2);
  }
  .announcement-result-group h4 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 13px;
  }
  .announcement-result-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .announcement-result-group li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    font-size: 13px;
  }
  .announcement-result-group li strong { overflow-wrap: anywhere; }
  .announcement-result-group li span { color: var(--color-muted); font-weight: 700; }
  .announcement-result-group li em {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-style: normal;
    overflow-wrap: anywhere;
  }
  .document-page {
    max-width: 1160px;
  }
  .document-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid rgba(130, 148, 255, .22);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 92% 12%, rgba(88, 101, 242, .28), transparent 34%),
      radial-gradient(circle at 0% 0%, rgba(88, 101, 242, .16), transparent 28%),
      linear-gradient(135deg, rgba(39, 42, 62, .96), rgba(22, 24, 34, .98));
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 0 40px rgba(88, 101, 242, .10);
  }
  .document-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 42%),
      radial-gradient(circle at 70% 95%, rgba(130, 148, 255, .12), transparent 32%);
    opacity: .78;
  }
  .document-hero-privacy {
    background:
      radial-gradient(circle at 92% 12%, rgba(35, 165, 90, .18), transparent 34%),
      radial-gradient(circle at 0% 0%, rgba(88, 101, 242, .16), transparent 28%),
      linear-gradient(135deg, rgba(36, 48, 58, .96), rgba(20, 23, 32, .98));
  }
  .document-hero-guide {
    background:
      radial-gradient(circle at 88% 10%, rgba(240, 178, 50, .15), transparent 31%),
      radial-gradient(circle at 0% 0%, rgba(88, 101, 242, .22), transparent 30%),
      linear-gradient(135deg, rgba(42, 43, 68, .96), rgba(20, 22, 34, .98));
  }
  .document-hero > * {
    position: relative;
    z-index: 1;
  }
  .document-kicker {
    display: inline-flex;
    width: max-content;
    border: 1px solid rgba(157, 179, 255, .24);
    border-radius: 999px;
    background: rgba(88, 101, 242, .14);
    color: #dbe0ff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 950;
  }
  .document-hero h2 {
    margin: 13px 0 10px;
    color: #fff;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
    font-weight: 950;
  }
  .document-hero p {
    max-width: 660px;
    margin: 0;
    color: #d9ddff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
  }
  .document-updated {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 18px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: 999px;
    background: rgba(0, 0, 0, .20);
    color: #f2f3f5;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
  }
  .document-hero-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
    font-size: 38px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 34px rgba(0, 0, 0, .24);
  }
  .document-shell {
    display: grid;
    gap: 16px;
  }
  .document-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .document-layout-no-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-layout > .document-content-card:only-child,
  .document-layout-no-toc .document-content-card {
    grid-column: 1 / -1;
  }
  .document-toc-card {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .10), transparent 34%),
      rgba(32, 33, 40, .92);
    padding: 15px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
  }
  .document-toc-card strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
  }
  .document-toc-card nav {
    display: grid;
    gap: 4px;
  }
  .document-toc-card a {
    display: block;
    overflow: hidden;
    border-radius: 7px;
    color: var(--color-muted);
    padding: 8px 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .document-toc-card a:hover {
    background: rgba(88, 101, 242, .14);
    color: #fff;
  }
  .document-content-card {
    min-width: 0;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .08), transparent 28%),
      rgba(43, 44, 50, .94);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
  }
  .document-body {
    display: grid;
    gap: 16px;
    color: var(--color-text);
    line-height: 1.78;
    font-size: 15px;
  }
  .document-body h3 {
    scroll-margin-top: 18px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(19px, 2.8vw, 24px);
    line-height: 1.32;
    font-weight: 950;
  }
  .document-body h3:first-child {
    margin-top: 0;
  }
  .document-body p,
  .document-body ul,
  .document-body ol {
    margin: 0;
  }
  .document-body p,
  .document-body li {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .document-body ul,
  .document-body ol {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(181, 186, 193, .10);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .12);
    padding: 13px 16px 13px 30px;
  }
  .document-body li::marker {
    color: #9db3ff;
    font-weight: 950;
  }
  .document-callout {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    border: 1px solid rgba(181, 186, 193, .12);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: rgba(30, 31, 38, .86);
    padding: 14px 15px;
  }
  .document-callout.important {
    border-left-color: var(--color-warning);
  }
  .document-callout.info {
    border-left-color: var(--color-success);
  }
  .document-callout.guide {
    border-left-color: #9db3ff;
  }
  .document-callout strong {
    color: #fff;
    font-weight: 950;
  }
  .document-callout p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.6;
  }
  .document-code-block {
    overflow: auto;
    margin: 0;
    border: 1px solid rgba(130, 148, 255, .18);
    border-radius: var(--radius-md);
    background: #17181e;
    color: #dfe4ff;
    padding: 14px;
    line-height: 1.65;
  }
  .document-code-block code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .document-guide-body {
    width: 100%;
  }
  .document-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: var(--radius-md);
  }
  .document-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: rgba(0, 0, 0, .10);
  }
  .document-table th,
  .document-table td {
    border-bottom: 1px solid rgba(181, 186, 193, .10);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .document-table th {
    background: rgba(88, 101, 242, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
  }
  .document-table td {
    color: var(--color-muted);
    font-weight: 700;
  }
  .document-table tr:hover td {
    background: rgba(255, 255, 255, .025);
  }
  .document-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed rgba(181, 186, 193, .22);
    border-radius: var(--radius-lg);
    color: var(--color-muted);
    background: rgba(10, 11, 15, .16);
  }
  .document-cta {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .16), transparent 36%),
      rgba(43, 44, 50, .92);
    padding: 22px;
  }
  .document-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(88, 101, 242, .22);
  }
  .document-cta-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
  }
  .document-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .10), transparent 28%),
      rgba(32, 33, 40, .92);
    padding: 16px;
  }
  .document-footer-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
  }
  .document-footer-card p {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-weight: 700;
  }
  .document-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .document-editor {
    margin-top: 0;
  }
  .split-actions {
    justify-content: space-between;
  }
  .rank-page {
    display: grid;
    gap: 16px;
  }
  .rank-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    min-height: 190px;
    padding: 28px;
    border: 1px solid rgba(130, 148, 255, .24);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 82% 18%, rgba(240, 178, 50, .18), transparent 28%),
      radial-gradient(circle at 12% 16%, rgba(88, 101, 242, .36), transparent 32%),
      linear-gradient(135deg, rgba(23, 25, 38, .96), rgba(33, 36, 62, .92) 48%, rgba(15, 17, 28, .98));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34), 0 0 48px rgba(88, 101, 242, .14);
  }
  .rank-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, .08) 42%, transparent 58%),
      radial-gradient(circle at 60% 105%, rgba(88, 101, 242, .24), transparent 34%);
    opacity: .72;
  }
  .rank-hero > * {
    position: relative;
    z-index: 1;
  }
  .rank-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #cfd6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
  }
  .rank-hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
  }
  .rank-hero-description {
    margin: 10px 0 0;
    max-width: 560px;
    color: #d7dbff;
    font-size: 16px;
    font-weight: 650;
  }
  .rank-hero-updated {
    margin: 18px 0 0;
    color: rgba(220, 224, 255, .72);
    font-size: 13px;
    font-weight: 800;
  }
  .rank-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(88, 101, 242, .18);
    color: #fff;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .rank-refresh-button:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 148, 255, .66);
    background: rgba(88, 101, 242, .34);
    box-shadow: 0 14px 30px rgba(88, 101, 242, .18);
  }
  .rank-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .rank-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 18px;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(42, 44, 58, .92), rgba(28, 30, 42, .94));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .rank-summary-card:hover {
    transform: translateY(-4px);
    border-color: rgba(130, 148, 255, .36);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .3);
  }
  .rank-summary-card.level {
    background: linear-gradient(135deg, rgba(84, 66, 30, .82), rgba(34, 31, 42, .94));
  }
  .rank-summary-card.xp {
    background: linear-gradient(135deg, rgba(50, 43, 92, .82), rgba(28, 30, 42, .94));
  }
  .rank-summary-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
  }
  .rank-summary-label {
    display: block;
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
  }
  .rank-summary-card strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 950;
  }
  .rank-podium-section {
    display: grid;
    gap: 12px;
  }
  .rank-section-heading,
  .rank-board-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
  .rank-board-header {
    justify-content: center;
    text-align: center;
  }
  .rank-section-heading span,
  .rank-board-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }
  .rank-section-heading small,
  .rank-board-header p {
    margin: 4px 0 0;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 750;
  }
  .rank-podium {
    display: flex;
    align-items: flex-end;
    gap: 14px;
  }
  .rank-podium-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    flex: 1;
    min-height: 238px;
    overflow: hidden;
    padding: 22px 18px;
    border: 1px solid rgba(181, 186, 193, .16);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(42, 43, 51, .96), rgba(27, 29, 39, .98));
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .rank-podium-card:hover {
    transform: translateY(-5px);
  }
  .rank-podium-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    opacity: .7;
  }
  .rank-podium-card.rank-1 {
    order: 2;
    flex: 1.22;
    min-height: 300px;
    border-color: rgba(240, 178, 50, .58);
    background:
      radial-gradient(circle at 50% 0%, rgba(240, 178, 50, .25), transparent 36%),
      radial-gradient(circle at 80% 22%, rgba(88, 101, 242, .3), transparent 34%),
      linear-gradient(145deg, rgba(55, 43, 25, .98), rgba(27, 29, 47, .98));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .36), 0 0 54px rgba(240, 178, 50, .18);
  }
  .rank-podium-card.rank-2 {
    order: 1;
    border-color: rgba(201, 207, 219, .34);
  }
  .rank-podium-card.rank-3 {
    order: 3;
    border-color: rgba(202, 128, 75, .38);
  }
  .rank-podium-card.empty {
    opacity: .58;
    filter: saturate(.72);
  }
  .rank-podium-crown {
    position: relative;
    z-index: 1;
    font-size: 34px;
    line-height: 1;
  }
  .rank-podium-card.rank-1 .rank-podium-crown {
    font-size: 48px;
    filter: drop-shadow(0 0 16px rgba(240, 178, 50, .45));
  }
  .rank-podium-top {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: #dfe4ff;
    font-size: 13px;
    font-weight: 950;
  }
  .rank-podium-name,
  .rank-podium-empty {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    margin-top: 13px;
    color: #fff;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 950;
    overflow-wrap: anywhere;
  }
  .rank-podium-card.rank-1 .rank-podium-name {
    font-size: 30px;
  }
  .rank-podium-id,
  .rank-podium-card p {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
  }
  .rank-podium-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }
  .rank-podium-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    padding: 0 12px;
    font-weight: 950;
  }
  .rank-self-card {
    display: flex;
    align-items: center;
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid rgba(88, 101, 242, .28);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 12% 50%, rgba(88, 101, 242, .18), transparent 32%),
      linear-gradient(135deg, rgba(31, 33, 47, .96), rgba(25, 27, 36, .98));
    box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
  }
  .rank-self-card.empty {
    border-color: rgba(181, 186, 193, .12);
    background: rgba(43, 44, 50, .66);
  }
  .rank-self-label {
    display: block;
    color: #cfd6ff;
    font-size: 12px;
    font-weight: 950;
  }
  .rank-self-card strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
  }
  .rank-self-card p {
    margin: 5px 0 0;
    color: var(--color-muted-2);
    font-weight: 750;
  }
  .rank-tools {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .rank-search-wrap {
    position: relative;
    display: block;
    width: min(440px, 100%);
  }
  .rank-search-wrap > span {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--color-muted-2);
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .rank-tools input[type="search"] {
    width: 100%;
    min-height: 44px;
    border-color: rgba(181, 186, 193, .16);
    border-radius: var(--radius-md);
    background: rgba(18, 19, 25, .9);
    color: var(--color-text);
    padding: 11px 13px 11px 42px;
    font-weight: 750;
  }
  .rank-tools input[type="search"]::placeholder {
    color: rgba(181, 186, 193, .46);
  }
  .rank-tools input[type="search"]:focus {
    border-color: rgba(130, 148, 255, .92);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, .18), 0 0 28px rgba(88, 101, 242, .12);
  }
  .rank-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: var(--radius-lg);
    background: rgba(20, 21, 28, .68);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  }
  .rank-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
  }
  .rank-table th,
  .rank-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(181, 186, 193, .1);
    text-align: center;
  }
  .rank-table th {
    background: rgba(255, 255, 255, .03);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 950;
  }
  .rank-table tbody tr {
    transition: background .16s ease, transform .16s ease;
  }
  .rank-table tbody tr:hover {
    background: rgba(88, 101, 242, .08);
  }
  .rank-table tr.rank-row-1 {
    background: rgba(240, 178, 50, .08);
  }
  .rank-table tr.rank-row-2 {
    background: rgba(201, 207, 219, .07);
  }
  .rank-table tr.rank-row-3 {
    background: rgba(202, 128, 75, .07);
  }
  .rank-table td:first-child {
    width: 92px;
    font-weight: 950;
    color: #dbe0ff;
  }
  .rank-table td strong,
  .rank-table td span {
    display: block;
    text-align: center;
  }
  .rank-table td strong {
    color: #fff;
    font-weight: 950;
  }
  .rank-table td span {
    margin-top: 3px;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 700;
  }
  .rank-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 190px;
    padding: 28px;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: var(--radius-lg);
    background: rgba(30, 31, 34, .5);
    text-align: center;
  }
  .rank-empty-state span {
    font-size: 34px;
  }
  .rank-empty-state strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }
  .rank-empty-state p {
    margin: 0;
    color: var(--color-muted-2);
    font-weight: 750;
  }
  .rank-empty-state[hidden] {
    display: none;
  }
  .rank-board-header[hidden],
  .rank-table-wrap[hidden] {
    display: none;
  }
  .server-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .server-settings-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: 7px;
    background: rgba(30, 31, 34, .48);
    color: #dbe0ff;
    padding: 8px 12px;
    font-weight: 850;
  }
  .server-settings-tab:hover {
    border-color: rgba(88, 101, 242, .56);
    background: rgba(88, 101, 242, .16);
    color: #fff;
  }
  .server-settings-section {
    scroll-margin-top: 24px;
  }
  .settings-section-description {
    margin-bottom: 14px;
  }
  .settings-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .settings-overview-panel {
    min-width: 0;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 8px;
    background: rgba(30, 31, 34, .28);
    padding: 14px;
  }
  .settings-overview-panel h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 850;
  }
  .server-console {
    max-width: 1160px;
  }
  .server-console-hero {
    grid-column: span 12;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid rgba(130, 148, 255, .24);
    border-radius: var(--radius-lg);
    padding: 26px;
    background:
      radial-gradient(circle at 86% 12%, rgba(88, 101, 242, .36), transparent 34%),
      radial-gradient(circle at 8% 0%, rgba(35, 165, 90, .12), transparent 28%),
      linear-gradient(135deg, rgba(43, 46, 68, .94), rgba(22, 24, 35, .98));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28), 0 0 42px rgba(88, 101, 242, .10);
  }
  .server-console-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 38%),
      radial-gradient(circle at 72% 70%, rgba(88, 101, 242, .16), transparent 30%);
    opacity: .72;
  }
  .server-console-hero > * {
    position: relative;
    z-index: 1;
  }
  .server-console-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border: 1px solid rgba(157, 179, 255, .26);
    border-radius: 999px;
    background: rgba(88, 101, 242, .14);
    color: #dbe0ff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 950;
  }
  .server-console-hero h2 {
    margin: 13px 0 9px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.04;
    font-weight: 950;
  }
  .server-console-hero p {
    max-width: 640px;
    margin: 0;
    color: #d8dcff;
    font-size: 15px;
    font-weight: 700;
  }
  .server-console-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }
  .server-console-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 999px;
    background: rgba(0, 0, 0, .20);
    color: #f2f3f5;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
  }
  .server-console-hero-status {
    display: grid;
    justify-items: end;
    gap: 12px;
  }
  .server-console-hero-status img,
  .server-console-icon-fallback {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .25);
  }
  .server-console-icon-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
  }
  .server-console-hero-status > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .console-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #dbe0ff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
  }
  .console-status-badge.is-on {
    border-color: rgba(35, 165, 90, .34);
    background: rgba(35, 165, 90, .17);
    color: #9ff0bd;
  }
  .console-status-badge.is-off {
    border-color: rgba(242, 63, 66, .28);
    background: rgba(242, 63, 66, .12);
    color: #ffb0b6;
  }
  .console-status-badge.is-saved {
    border-color: rgba(88, 101, 242, .32);
    background: rgba(88, 101, 242, .17);
    color: #dbe0ff;
  }
  .console-status-badge.needs-save {
    border-color: rgba(240, 178, 50, .36);
    background: rgba(240, 178, 50, .16);
    color: #ffe0a3;
  }
  .server-console-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .server-console-summary-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 116px;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .16), transparent 34%),
      rgba(32, 33, 40, .86);
    padding: 15px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  }
  .server-console-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 148, 255, .32);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  }
  .server-console-summary-card.is-on {
    border-color: rgba(35, 165, 90, .20);
  }
  .server-console-summary-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
  }
  .server-console-summary-card p {
    margin: 0 0 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
  }
  .server-console-summary-card strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .server-console-summary-card .console-status-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .server-console-section {
    display: grid;
    gap: 16px;
    border-color: rgba(181, 186, 193, .13);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .08), transparent 30%),
      rgba(43, 44, 50, .94);
    scroll-margin-top: 24px;
  }
  .server-console-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .server-console-section-header > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(88, 101, 242, .15);
    box-shadow: inset 0 0 0 1px rgba(130, 148, 255, .12);
  }
  .server-console-section-header .section-title {
    margin-bottom: 4px;
  }
  .server-console-section-header .subtle {
    max-width: 760px;
  }
  .server-console-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }
  .server-console-settings .settings-card {
    min-height: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .08), transparent 34%),
      rgba(31, 32, 38, .86);
    border-color: rgba(181, 186, 193, .13);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  .server-console-settings .settings-card:hover {
    border-color: rgba(130, 148, 255, .28);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
  }
  .server-console-settings .settings-card.wide {
    grid-column: span 2;
  }
  .server-console-settings .collapsible-card summary {
    min-height: 58px;
  }
  .setting-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(181, 186, 193, .10);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .14);
  }
  .setting-control-row strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
  }
  .setting-control-row p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 650;
  }
  .setting-control {
    min-width: 0;
  }
  .command-console-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(130, 148, 255, .16);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(135deg, rgba(88, 101, 242, .13), rgba(30, 31, 38, .72));
    padding: 14px 16px;
  }
  .command-console-summary span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
  }
  .command-console-summary strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
  }
  .server-console-section .command-section {
    border: 1px solid rgba(181, 186, 193, .10);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .12);
    padding: 12px;
  }
  .server-console-section .command-section-title {
    color: #dbe0ff;
    text-transform: none;
    font-size: 13px;
  }
  .server-advanced-settings {
    border: 1px solid rgba(181, 186, 193, .11);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, .12);
    padding: 0;
  }
  .server-advanced-settings > summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    color: #dbe0ff;
    font-weight: 950;
  }
  .server-advanced-settings > summary::-webkit-details-marker {
    display: none;
  }
  .server-advanced-settings > summary::after {
    content: "펼치기";
    float: right;
    color: #dbe0ff;
    font-size: 12px;
    font-weight: 950;
  }
  .server-advanced-settings[open] > summary {
    border-bottom: 1px solid rgba(181, 186, 193, .10);
    margin-bottom: 12px;
  }
  .server-advanced-settings[open] > summary::after {
    content: "접기";
  }
  .server-advanced-settings .server-console-settings {
    padding: 0 14px 14px;
  }
  .server-console-save-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(35, 165, 90, .18);
    border-radius: var(--radius-lg);
    background: rgba(35, 165, 90, .08);
    padding: 14px 16px;
    color: #dcefe5;
    font-weight: 850;
  }
  .server-console-save-hint span {
    color: #9ff0bd;
    font-weight: 950;
  }
  .system-console {
    max-width: 1160px;
  }
  .system-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 220px;
    border: 1px solid rgba(130, 148, 255, .24);
    border-radius: var(--radius-lg);
    padding: 28px;
    background:
      radial-gradient(circle at 86% 10%, rgba(88, 101, 242, .32), transparent 34%),
      radial-gradient(circle at 12% 0%, rgba(121, 76, 255, .18), transparent 30%),
      linear-gradient(135deg, rgba(40, 44, 68, .96), rgba(18, 20, 30, .98));
    box-shadow: 0 24px 62px rgba(0, 0, 0, .30), 0 0 42px rgba(88, 101, 242, .11);
  }
  .system-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(105deg, rgba(255, 255, 255, .09), transparent 38%),
      radial-gradient(circle at 76% 80%, rgba(88, 101, 242, .14), transparent 28%);
  }
  .system-hero > * {
    position: relative;
    z-index: 1;
  }
  .system-kicker {
    display: inline-flex;
    width: max-content;
    border: 1px solid rgba(157, 179, 255, .24);
    border-radius: 999px;
    background: rgba(88, 101, 242, .16);
    color: #dbe0ff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 950;
  }
  .system-hero h2 {
    margin: 13px 0 9px;
    color: #fff;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.05;
    font-weight: 950;
  }
  .system-hero p {
    max-width: 650px;
    margin: 0;
    color: #d8dcff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
  }
  .system-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }
  .system-hero-meta span {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 999px;
    background: rgba(0, 0, 0, .20);
    color: #f2f3f5;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .system-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 15px;
    color: #fff;
    font-weight: 950;
    white-space: nowrap;
  }
  .system-hero-badge.is-normal {
    border: 1px solid rgba(35, 165, 90, .35);
    background: rgba(35, 165, 90, .17);
    color: #a6f3bf;
  }
  .system-hero-badge.is-maintenance {
    border: 1px solid rgba(240, 178, 50, .36);
    background: rgba(240, 178, 50, .16);
    color: #ffe0a3;
  }
  .system-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .system-summary-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 116px;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .17), transparent 34%),
      rgba(32, 33, 40, .88);
    padding: 15px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  }
  .system-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 148, 255, .32);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  }
  .system-summary-card.is-on {
    border-color: rgba(88, 101, 242, .22);
  }
  .system-summary-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    color: #dfe3ff;
    font-size: 18px;
    font-weight: 950;
  }
  .system-summary-card p,
  .system-summary-card em {
    margin: 0;
    font-style: normal;
  }
  .system-summary-card p {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
  }
  .system-summary-card strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .system-summary-card em {
    grid-column: 1 / -1;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 800;
  }
  .system-maintenance-card,
  .announcement-compose-card,
  .announcement-list-panel {
    border-color: rgba(181, 186, 193, .13);
    background:
      radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .08), transparent 32%),
      rgba(31, 32, 38, .88);
  }
  .system-setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(181, 186, 193, .10);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .14);
    padding: 13px;
  }
  .system-setting-row strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 950;
  }
  .system-setting-row p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 650;
  }
  .presence-preview {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(130, 148, 255, .16);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .16);
    padding: 13px;
  }
  .presence-preview > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .presence-preview strong {
    color: #fff;
    font-weight: 950;
  }
  .presence-preview p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 750;
  }
  .presence-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(35, 165, 90, .14);
  }
  .presence-dot.dnd {
    background: var(--color-danger);
    box-shadow: 0 0 0 4px rgba(242, 63, 66, .13);
  }
  .announcement-console {
    display: grid;
    gap: 16px;
  }
  .announcement-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }
  .announcement-list-panel {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    padding: 16px;
  }
  .announcement-list-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
  }
  .announcement-list-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }
  .announcement-list-heading p {
    margin: 6px 0 0;
    color: var(--color-muted);
  }
  .announcement-list-heading > span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(88, 101, 242, .14);
    border: 1px solid rgba(136, 149, 255, .24);
    color: #dfe3ff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(88, 101, 242, .12);
  }
  .announcement-card-list {
    display: grid;
    gap: 12px;
  }
  .announcement-card {
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(145deg, rgba(33, 34, 42, .96), rgba(25, 26, 34, .98));
    padding: 16px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  }
  .announcement-card:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 148, 255, .28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  }
  .announcement-card.is-published {
    border-color: rgba(35, 165, 90, .20);
  }
  .announcement-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
  }
  .announcement-card h4 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    overflow-wrap: anywhere;
  }
  .announcement-card p {
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .announcement-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 950;
  }
  .announcement-status-badge.published {
    border: 1px solid rgba(35, 165, 90, .30);
    background: rgba(35, 165, 90, .15);
    color: #9ff0bd;
  }
  .announcement-status-badge.private {
    border: 1px solid rgba(181, 186, 193, .16);
    background: rgba(181, 186, 193, .08);
    color: #c8ccd5;
  }
  .announcement-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
  }
  .announcement-card-meta span {
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: var(--color-muted-2);
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 850;
  }
  .announcement-actions {
    margin-top: 14px;
  }
  .announcement-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .12), transparent 42%),
      rgba(31, 32, 38, .76);
    padding: 34px 18px;
    text-align: center;
  }
  .announcement-empty-state strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }
  .announcement-empty-state p {
    margin: 0;
    color: var(--color-muted);
  }
  .nav-empty {
    margin: 0 10px 8px;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 700;
  }
  .pill {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
  }
  .pill.on { background: rgba(35, 165, 90, .16); color: #8de4af; border-color: rgba(35, 165, 90, .28); }
  .pill.off { background: rgba(242, 63, 66, .13); color: #ff9aa2; border-color: rgba(242, 63, 66, .28); }
  .emoji-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
  .emoji-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--color-surface-raised);
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 0;
  }
  .emoji-item:hover { background: #404249; border-color: #5865f2; }
  .emoji-item img { width: 24px; height: 24px; object-fit: contain; }
  .emoji-item code { color: #dbe0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .patch-timeline {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }
  .patch-entry {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 8px;
    background: #1f2026;
  }
  .patch-time {
    color: #dbe0ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
  }
  .patch-body {
    min-width: 0;
  }
  .patch-body h3 {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 15px;
  }
  .patch-body ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
  }
  .patch-body li::marker {
    color: var(--color-primary);
  }
  .patch-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .patch-pagination a,
  .patch-pagination .disabled,
  .patch-page-count {
    min-height: 36px;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 900;
  }
  .patch-pagination a {
    background: var(--color-primary);
    color: #fff;
  }
  .patch-pagination a:hover {
    background: var(--color-primary-hover);
  }
  .patch-pagination .disabled {
    background: rgba(255, 255, 255, .05);
    color: var(--color-muted-2);
  }
  .patch-page-count {
    color: var(--color-muted);
    background: rgba(30, 31, 34, .48);
  }
  .patch-note-form {
    margin-top: 18px;
  }
  .patch-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .patch-edit-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
  }
  .patch-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 82px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }
  .patch-edit-button:hover {
    background: var(--color-primary-hover);
  }
  .patch-delete-form {
    margin: 0;
  }
  .patch-delete-form .danger-button {
    min-width: 82px;
  }
  .patch-edit-form {
    flex: 1 0 100%;
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid rgba(181, 186, 193, .12);
    border-radius: 8px;
    background: rgba(30, 31, 34, .42);
  }
  .patch-edit-toggle:not(:checked) ~ .patch-edit-form {
    display: none;
  }
  .support-center {
    display: grid;
    gap: 16px;
  }
  .support-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .support-method-card,
  .support-check-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(181, 186, 193, .14);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(145deg, rgba(58, 61, 72, .88), rgba(27, 29, 37, .92)),
      radial-gradient(circle at 12% 0%, rgba(88, 101, 242, .22), transparent 38%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  }
  .support-method-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 220px;
    padding: 20px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .support-method-card:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 101, 242, .38);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .34), 0 0 28px rgba(88, 101, 242, .12);
  }
  .support-method-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(88, 101, 242, .16);
    font-size: 22px;
    box-shadow: inset 0 0 18px rgba(88, 101, 242, .12);
  }
  .support-method-card h3,
  .support-check-card strong {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--color-text);
  }
  .support-method-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
  }
  .support-method-card .document-cta-button,
  .support-disabled {
    justify-self: start;
    align-self: end;
    margin-top: auto;
  }
  .support-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    color: var(--color-muted-2);
    font-weight: 900;
  }
  .support-check-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-left: 3px solid var(--color-primary);
  }
  .support-check-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--color-muted);
    line-height: 1.62;
  }
  .support-check-card li::marker {
    color: var(--color-primary);
  }
  .patch-page {
    align-items: start;
  }
  .patch-hero,
  .patch-feature-card,
  .patch-filter-card,
  .patch-list-card {
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  }
  .patch-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 220px;
    padding: 28px;
    background:
      radial-gradient(circle at 82% 12%, rgba(88, 101, 242, .32), transparent 34%),
      radial-gradient(circle at 12% 0%, rgba(121, 76, 255, .24), transparent 34%),
      linear-gradient(145deg, rgba(42, 45, 61, .94), rgba(19, 20, 29, .96));
  }
  .patch-hero::before,
  .patch-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 38%);
  }
  .patch-hero > *,
  .patch-feature-card > * {
    position: relative;
    z-index: 1;
  }
  .patch-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(88, 101, 242, .18);
    color: #dfe3ff;
    font-size: 12px;
    font-weight: 900;
  }
  .patch-hero h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
  }
  .patch-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
  }
  .patch-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }
  .patch-hero-meta span {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(17, 18, 24, .46);
    color: #dbe0ff;
    font-size: 12px;
    font-weight: 800;
  }
  .patch-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    background: linear-gradient(135deg, #5865f2, #7c5cff);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(88, 101, 242, .24);
    transition: transform .18s ease, filter .18s ease;
    white-space: nowrap;
  }
  .patch-new-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }
  .patch-feature-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    padding: 22px;
    background:
      radial-gradient(circle at 92% 0%, rgba(88, 101, 242, .25), transparent 34%),
      linear-gradient(145deg, rgba(48, 50, 62, .95), rgba(25, 26, 34, .96));
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .patch-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, .34);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .3), 0 0 32px rgba(88, 101, 242, .11);
  }
  .patch-feature-header,
  .patch-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .patch-latest-badge,
  .patch-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
  }
  .patch-latest-badge {
    background: rgba(88, 101, 242, .18);
    color: #e0e4ff;
  }
  .patch-type-badge {
    border: 1px solid transparent;
    background: rgba(181, 186, 193, .1);
    color: #d7dbe7;
  }
  .patch-type-badge.feature {
    background: rgba(88, 101, 242, .16);
    border-color: rgba(88, 101, 242, .28);
    color: #cfd5ff;
  }
  .patch-type-badge.improvement {
    background: rgba(146, 96, 255, .16);
    border-color: rgba(146, 96, 255, .3);
    color: #decfff;
  }
  .patch-type-badge.fix {
    background: rgba(35, 165, 90, .15);
    border-color: rgba(35, 165, 90, .28);
    color: #99ebb9;
  }
  .patch-version {
    color: #dfe3ff;
    font-weight: 950;
    letter-spacing: .01em;
  }
  .patch-feature-body h3 {
    margin: 8px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
  }
  .patch-feature-body p {
    max-width: 840px;
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
  }
  .patch-feature-body small {
    display: inline-flex;
    margin-top: 12px;
    color: var(--color-muted-2);
    font-weight: 800;
  }
  .patch-feature-changes {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 14px;
    background: rgba(17, 18, 24, .38);
  }
  .patch-feature-changes strong {
    color: var(--color-text);
  }
  .patch-feature-changes ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
  }
  .patch-filter-card,
  .patch-list-card {
    padding: 16px;
    background: rgba(43, 44, 52, .86);
  }
  .patch-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
    align-items: end;
    gap: 10px;
  }
  .patch-search-field {
    position: relative;
    display: grid;
    align-content: end;
  }
  .patch-search-field span {
    position: absolute;
    left: 13px;
    bottom: 11px;
    color: var(--color-muted-2);
    font-size: 16px;
    pointer-events: none;
  }
  .patch-search-field input {
    min-height: 42px;
    border-radius: var(--radius-md);
    padding-left: 40px;
    background: rgba(18, 19, 25, .84);
  }
  .patch-list-card {
    display: grid;
    gap: 16px;
  }
  .patch-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
  }
  .patch-list-heading h3 {
    margin: 0;
    font-size: 20px;
  }
  .patch-list-heading p {
    margin: 6px 0 0;
    color: var(--color-muted);
  }
  .patch-list-heading > span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(88, 101, 242, .14);
    color: #dfe3ff;
    font-weight: 900;
    white-space: nowrap;
  }
  .patch-timeline.release-timeline {
    position: relative;
    gap: 16px;
    margin-top: 0;
    padding-left: 28px;
  }
  .patch-timeline.release-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 7px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(88, 101, 242, .8), rgba(88, 101, 242, .08));
  }
  .patch-entry.release-card {
    position: relative;
    display: block;
    grid-template-columns: none;
    gap: 0;
    padding: 18px;
    border-color: rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(145deg, rgba(33, 34, 42, .98), rgba(26, 27, 34, .98)),
      radial-gradient(circle at 0% 0%, rgba(88, 101, 242, .13), transparent 35%);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
  }
  .patch-entry.release-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, .3);
    background:
      linear-gradient(145deg, rgba(38, 40, 50, .98), rgba(28, 29, 38, .98)),
      radial-gradient(circle at 0% 0%, rgba(88, 101, 242, .18), transparent 35%);
  }
  .patch-node {
    position: absolute;
    top: 24px;
    left: -28px;
    width: 16px;
    height: 16px;
    border: 3px solid #202128;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c5cff, #5865f2);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, .14), 0 0 18px rgba(88, 101, 242, .48);
  }
  .patch-card-meta {
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 800;
  }
  .patch-body h3 {
    margin-top: 10px;
    font-size: 18px;
  }
  .patch-summary {
    margin: 0 0 12px;
    color: var(--color-muted);
    line-height: 1.65;
  }
  .patch-author {
    margin: 12px 0 0;
    color: var(--color-muted-2);
    font-size: 12px;
    font-weight: 800;
  }
  .patch-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid rgba(181, 186, 193, .13);
    border-radius: var(--radius-lg);
    padding: 38px 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .14), transparent 42%),
      rgba(31, 32, 38, .76);
    text-align: center;
  }
  .patch-empty-state span {
    font-size: 34px;
  }
  .patch-empty-state strong {
    font-size: 18px;
  }
  .patch-empty-state p {
    margin: 0;
    color: var(--color-muted);
  }
  .patch-published-toggle {
    justify-content: start;
  }
  .unsaved-bar {
    position: fixed;
    left: calc(280px + ((100vw - 280px) / 2));
    right: auto;
    bottom: 22px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(760px, calc(100vw - 344px));
    min-height: 50px;
    padding: 10px 12px 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--panel-bg);
    box-shadow: var(--shadow-strong);
    animation: unsavedSlideUp .24s cubic-bezier(.2, .8, .2, 1) both;
  }
  .unsaved-bar.is-hiding {
    animation: unsavedSlideDown .22s cubic-bezier(.4, 0, 1, 1) both;
  }
  .unsaved-bar[hidden] { display: none; }
  .unsaved-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 850;
  }
  .unsaved-message::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-warning);
    color: #202128;
    font-weight: 900;
    flex: 0 0 auto;
  }
  .unsaved-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
  }
  .unsaved-reset {
    background: transparent;
    color: #aeb9ff;
    padding: 7px 9px;
  }
  .unsaved-reset:hover {
    background: rgba(88, 101, 242, .12);
    color: #dbe0ff;
  }
  .unsaved-save {
    background: var(--color-success);
    color: #fff;
    min-width: 116px;
    padding: 8px 10px;
  }
  .unsaved-save:hover { background: #1f8f4f; }
  .unsaved-save:disabled {
    cursor: progress;
    opacity: .72;
  }
  @keyframes unsavedSlideUp {
    from {
      transform: translate(-50%, 18px);
    }
    to {
      transform: translate(-50%, 0);
    }
  }
  @keyframes unsavedSlideDown {
    from {
      transform: translate(-50%, 0);
    }
    to {
      transform: translate(-50%, 18px);
    }
  }
  @keyframes unsavedSlideUpMobile {
    from {
      transform: translateY(18px);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes unsavedSlideDownMobile {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(18px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .unsaved-bar { animation: none; }
    .collapsible-card.is-animating .collapsible-content { transition: none; }
  }
  code { font-family: inherit; }
  @media (max-width: 1023px) {
    .main {
      padding: 32px 24px 120px;
    }
    .top-actions {
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .home-feature-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 768px) {
    body.sidebar-open {
      overflow: hidden;
    }
    .sidebar-toggle {
      display: inline-grid;
    }
    .sidebar {
      position: fixed;
      z-index: 120;
      width: min(320px, calc(100vw - 48px));
      height: 100vh;
      border-right: 1px solid var(--color-border);
      border-bottom: 0;
      transform: translateX(-105%);
      transition: transform .24s cubic-bezier(.2, .8, .2, 1);
      box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    }
    body.sidebar-open .sidebar {
      transform: translateX(0);
    }
    .main {
      margin-left: 0;
      padding: 18px 16px 132px;
    }
    .grid {
      grid-template-columns: 1fr;
      width: 100%;
    }
    .rank-page {
      gap: 12px;
    }
    .rank-hero {
      flex-direction: column;
      align-items: flex-start;
      min-height: auto;
      gap: 14px;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 18px 44px rgba(0, 0, 0, .3), 0 0 30px rgba(88, 101, 242, .12);
    }
    .rank-eyebrow {
      margin-bottom: 8px;
    }
    .rank-hero-title {
      font-size: clamp(24px, 7.6vw, 34px);
    }
    .rank-hero-description {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.5;
    }
    .rank-hero-updated {
      margin-top: 12px;
      font-size: 12px;
    }
    .rank-refresh-button {
      width: 100%;
      min-height: 44px;
    }
    .rank-summary-grid {
      grid-template-columns: 1fr;
    }
    .rank-summary-card {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      column-gap: 12px;
      min-height: 78px;
      padding: 14px;
    }
    .rank-summary-icon {
      grid-row: span 2;
    }
    .rank-summary-label {
      margin-top: 0;
    }
    .rank-summary-card strong {
      margin-top: 2px;
      font-size: 22px;
    }
    .rank-podium {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .rank-podium-card,
    .rank-podium-card.rank-1 {
      flex: none;
      min-height: auto;
      padding: 16px 14px;
    }
    .rank-podium-card.rank-1 {
      order: 1;
      padding: 20px 14px;
    }
    .rank-podium-card.rank-2 {
      order: 2;
    }
    .rank-podium-card.rank-3 {
      order: 3;
    }
    .rank-section-heading,
    .rank-board-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
    }
    .rank-board-header {
      align-items: center;
      text-align: center;
    }
    .rank-podium-crown {
      font-size: 28px;
    }
    .rank-podium-card.rank-1 .rank-podium-crown {
      font-size: 38px;
    }
    .rank-podium-top {
      margin-top: 9px;
    }
    .rank-podium-name,
    .rank-podium-empty {
      margin-top: 12px;
      font-size: 18px;
    }
    .rank-podium-card.rank-1 .rank-podium-name {
      font-size: 24px;
    }
    .rank-podium-stats {
      margin-top: 12px;
    }
    .rank-self-card {
      min-height: auto;
      padding: 15px 16px;
    }
    .rank-self-card strong {
      font-size: 17px;
      line-height: 1.35;
    }
    .rank-tools {
      align-items: stretch;
    }
    .rank-search-wrap {
      width: 100%;
    }
    .rank-tools input[type="search"] {
      width: 100%;
      min-width: 0;
    }
    .rank-table-wrap {
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .rank-table {
      min-width: 0;
    }
    .rank-table thead {
      display: none;
    }
    .rank-table,
    .rank-table tbody,
    .rank-table tr,
    .rank-table td {
      display: block;
      width: 100%;
    }
    .rank-table tbody {
      display: grid;
      gap: 10px;
    }
    .rank-table tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) max-content max-content;
      grid-template-areas:
        "rank level xp"
        "user user user";
      align-items: center;
      gap: 12px 8px;
      border: 1px solid rgba(181, 186, 193, .14);
      border-radius: 10px;
      background: rgba(30, 31, 34, .42);
      padding: 16px;
    }
    .rank-table tr.rank-row-1 {
      border-color: rgba(240, 178, 50, .34);
      background: rgba(240, 178, 50, .08);
    }
    .rank-table tr.rank-row-2 {
      border-color: rgba(201, 207, 219, .24);
      background: rgba(201, 207, 219, .07);
    }
    .rank-table tr.rank-row-3 {
      border-color: rgba(202, 128, 75, .26);
      background: rgba(202, 128, 75, .07);
    }
    .rank-table td {
      display: block;
      min-width: 0;
      border-bottom: 0;
      padding: 0;
      text-align: center;
    }
    .rank-table td::before {
      display: none;
    }
    .rank-table td:first-child {
      grid-area: rank;
      width: auto;
      color: var(--color-text);
      font-size: 20px;
      font-weight: 950;
      line-height: 1;
      white-space: nowrap;
    }
    .rank-table td:first-child::after {
      content: "위";
      margin-left: 2px;
      font-size: 15px;
      color: var(--color-muted);
      font-weight: 900;
    }
    .rank-table td:nth-child(2) {
      grid-area: user;
    }
    .rank-table td:nth-child(3),
    .rank-table td:nth-child(4) {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      justify-self: center;
      min-height: 30px;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 999px;
      background: rgba(0, 0, 0, .18);
      color: #fff;
      padding: 5px 10px;
      font-size: 13px;
      font-weight: 950;
      white-space: nowrap;
    }
    .rank-table td:nth-child(3) {
      grid-area: level;
    }
    .rank-table td:nth-child(4) {
      grid-area: xp;
    }
    .rank-table td strong,
    .rank-table td span {
      text-align: center;
    }
    .rank-table td strong {
      font-size: 18px;
      line-height: 1.2;
    }
    .rank-table td span {
      margin-top: 4px;
      overflow-wrap: anywhere;
    }
    .rank-empty-state {
      min-height: 150px;
      padding: 22px 16px;
    }
    .support-method-grid {
      grid-template-columns: 1fr;
    }
    .support-method-card {
      min-height: auto;
    }
    .patch-hero {
      grid-template-columns: 1fr;
      align-items: start;
      min-height: auto;
      padding: 22px;
    }
    .patch-hero h2 {
      font-size: clamp(28px, 8vw, 38px);
    }
    .patch-hero p {
      font-size: 14px;
    }
    .patch-new-button {
      width: 100%;
    }
    .patch-feature-card,
    .patch-filter-card,
    .patch-list-card {
      padding: 16px;
    }
    .patch-filter-form {
      grid-template-columns: 1fr;
      align-items: stretch;
    }
    .patch-list-heading {
      align-items: flex-start;
      flex-direction: column;
    }
    .patch-timeline.release-timeline {
      padding-left: 0;
    }
    .patch-timeline.release-timeline::before,
    .patch-node {
      display: none;
    }
    .patch-entry.release-card {
      padding: 16px;
    }
    .span-3, .span-4, .span-5, .span-7, .span-8, .span-12 {
      grid-column: 1 / -1;
    }
    .home-stat-grid {
      grid-template-columns: 1fr;
      width: 100%;
    }
    .home-stat-card {
      min-height: 92px;
      padding: 15px;
      border-color: rgba(130, 148, 255, .22);
      background:
        radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .24), transparent 36%),
        linear-gradient(135deg, rgba(46, 49, 70, .96), rgba(25, 27, 38, .98));
    }
    .home-stat-card strong {
      font-size: 25px;
    }
    .home-hero-card {
      padding: 22px;
      border-color: rgba(130, 148, 255, .28);
    }
    .home-hero-card h2 {
      font-size: clamp(26px, 7.8vw, 36px);
    }
    .home-hero-card p {
      font-size: 14px;
      line-height: 1.55;
    }
    .home-announcement-card {
      padding: 14px;
    }
    .home-announcement-top {
      align-items: flex-start;
      flex-direction: column;
    }
    .home-announcement-date {
      white-space: normal;
    }
    .home-quick-links {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
    }
    .home-quick-links a {
      justify-content: center;
      min-height: 42px;
    }
    .home-account-card,
    .home-quick-panel,
    .home-section-card {
      padding: 18px;
      border-color: rgba(181, 186, 193, .16);
    }
    .home-section-header {
      align-items: flex-start;
      flex-direction: column;
    }
    .home-feature-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .home-feature-card {
      display: grid;
      justify-items: center;
      text-align: center;
      gap: 8px;
      padding: 14px;
      border-color: rgba(181, 186, 193, .16);
      background:
        radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .12), transparent 34%),
        rgba(30, 31, 41, .86);
    }
    .home-feature-top {
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 0;
    }
    .home-feature-card p {
      max-width: 100%;
      text-align: center;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .home-record-grid {
      grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }
    .home-record-card {
      border-color: rgba(181, 186, 193, .16);
      background:
        radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .16), transparent 36%),
        rgba(30, 31, 41, .86);
    }
    .topbar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    .topbar-heading {
      width: 100%;
    }
    .topbar-heading > div {
      min-width: 0;
    }
    .top-actions {
      justify-content: flex-start;
      width: 100%;
    }
    .patch-entry {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .settings-grid, .two-columns, .command-items {
      grid-template-columns: 1fr;
    }
    .settings-overview-grid {
      grid-template-columns: 1fr;
    }
    .server-console-hero {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 22px;
    }
    .server-console-hero-status {
      justify-items: start;
    }
    .server-console-hero-status > div {
      justify-content: flex-start;
    }
    .server-console-meta span {
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .server-console-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .system-hero {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 22px;
    }
    .system-hero-badge {
      justify-self: start;
    }
    .system-hero-meta span {
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .system-summary-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .system-setting-row {
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .announcement-list-heading,
    .announcement-card-top {
      align-items: flex-start;
      flex-direction: column;
    }
    .server-console-settings {
      grid-template-columns: 1fr;
    }
    .server-console-settings .settings-card.wide {
      grid-column: span 1;
    }
    .setting-control-row {
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .document-hero {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 22px;
    }
    .document-hero-icon {
      justify-self: start;
      width: 60px;
      height: 60px;
      border-radius: 18px;
      font-size: 28px;
    }
    .document-updated {
      white-space: normal;
    }
    .document-layout {
      grid-template-columns: 1fr;
    }
    .document-toc-card {
      position: static;
      max-height: none;
    }
    .document-toc-card nav {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 2px;
    }
    .document-toc-card a {
      flex: 0 0 auto;
      max-width: 220px;
      white-space: nowrap;
    }
    .document-footer-card {
      align-items: flex-start;
      flex-direction: column;
    }
    .document-footer-actions {
      justify-content: flex-start;
      width: 100%;
    }
    .command-console-summary {
      align-items: flex-start;
      flex-direction: column;
    }
    .server-console-save-hint {
      align-items: flex-start;
      flex-direction: column;
    }
    .settings-card.wide {
      grid-column: span 1;
    }
    button,
    .custom-select-button,
    .server-menu summary {
      min-height: 44px;
    }
    .toggle {
      min-height: 36px;
    }
    .toast-region {
      top: 14px;
      right: 14px;
      width: min(360px, calc(100vw - 28px));
    }
    .unsaved-bar {
      left: 16px;
      right: 16px;
      bottom: 16px;
      width: auto;
      min-height: 50px;
      padding: 10px 12px;
      align-items: stretch;
      flex-direction: column;
      animation: unsavedSlideUpMobile .24s cubic-bezier(.2, .8, .2, 1) both;
    }
    .unsaved-bar.is-hiding {
      animation: unsavedSlideDownMobile .22s cubic-bezier(.4, 0, 1, 1) both;
    }
    .unsaved-actions {
      justify-content: space-between;
      flex-wrap: wrap;
    }
  }
  @media (max-width: 640px) {
    .login-body {
      padding: 18px 14px;
    }
    .login-panel {
      border-radius: 10px;
      padding: 28px 22px 26px;
    }
    .login-panel h1 {
      font-size: 26px;
    }
    .login-description {
      font-size: 15px;
      line-height: 1.56;
    }
    .discord-login-button {
      min-height: 48px;
    }
    .main {
      padding: 14px 12px 150px;
    }
    h1 {
      font-size: 22px;
    }
    .top-actions > *,
    .ghost-button,
    .badge {
      flex: 1 1 auto;
    }
    .user-chip {
      max-width: 100%;
    }
    .collapsible-card summary {
      min-height: 56px;
    }
    .toast-region {
      top: 12px;
      left: 12px;
      right: 12px;
      width: auto;
    }
    .support-method-card,
    .support-check-card,
    .patch-hero,
    .patch-feature-card,
    .patch-filter-card,
    .patch-list-card,
    .patch-entry.release-card {
      border-radius: 10px;
    }
    .support-method-card,
    .support-check-card {
      padding: 16px;
    }
    .patch-hero {
      padding: 20px;
    }
    .patch-hero-meta {
      display: grid;
      grid-template-columns: 1fr;
    }
    .patch-hero-meta span {
      width: 100%;
    }
    .patch-card-meta,
    .patch-feature-header {
      align-items: flex-start;
      flex-direction: column;
    }
    .patch-feature-body h3 {
      font-size: 21px;
    }
    .patch-body h3 {
      font-size: 17px;
    }
    .patch-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: stretch;
    }
    .patch-edit-button,
    .patch-delete-form .danger-button {
      width: 100%;
    }
    .patch-edit-form {
      grid-column: 1 / -1;
    }
    .patch-pagination {
      display: grid;
      grid-template-columns: 1fr;
    }
    .patch-pagination a,
    .patch-pagination .disabled,
    .patch-page-count {
      width: 100%;
      text-align: center;
    }
    .unsaved-actions {
      flex-direction: column;
      align-items: stretch;
    }
    .unsaved-actions button {
      width: 100%;
    }
    .server-settings-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 2px;
    }
    .server-settings-tab {
      white-space: nowrap;
    }
    .server-console-hero {
      padding: 20px;
      border-radius: 10px;
    }
    .server-console-hero h2 {
      font-size: clamp(27px, 9vw, 36px);
    }
    .document-hero {
      padding: 20px;
      border-radius: 10px;
    }
    .document-hero h2 {
      font-size: clamp(27px, 9vw, 36px);
    }
    .document-content-card {
      padding: 16px;
      border-radius: 10px;
    }
    .document-body {
      gap: 14px;
      font-size: 14px;
      line-height: 1.72;
    }
    .document-body h3 {
      font-size: 19px;
    }
    .document-body ul,
    .document-body ol {
      padding-left: 26px;
    }
    .document-footer-actions {
      display: grid;
      grid-template-columns: 1fr;
    }
    .document-footer-actions a {
      width: 100%;
    }
    .server-console-summary {
      grid-template-columns: 1fr;
    }
    .system-hero {
      padding: 20px;
      border-radius: 10px;
    }
    .system-hero h2 {
      font-size: clamp(28px, 9vw, 38px);
    }
    .system-hero-meta {
      display: grid;
      grid-template-columns: 1fr;
    }
    .system-summary-grid {
      grid-template-columns: 1fr;
    }
    .system-summary-card {
      min-height: 100px;
    }
    .announcement-toggle-row {
      align-items: stretch;
      flex-direction: column;
    }
    .announcement-card,
    .announcement-list-panel {
      padding: 14px;
      border-radius: 10px;
    }
    .server-console-summary-card {
      min-height: 100px;
    }
    .server-console-section {
      padding: 14px;
    }
    .server-console-section-header {
      gap: 10px;
    }
    .server-console-section-header > span {
      width: 36px;
      height: 36px;
      border-radius: 12px;
    }
    .command-console-summary strong {
      font-size: 19px;
    }
    .home-feature-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-record-grid {
      grid-template-columns: 1fr;
    }
    .home-record-card {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr) auto;
      grid-template-areas:
        "icon label value"
        "icon desc value";
      align-items: center;
      justify-items: start;
      column-gap: 12px;
      padding: 15px;
      text-align: left;
    }
    .home-record-card > span {
      grid-area: icon;
      display: inline-grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 13px;
      background: rgba(255, 255, 255, .08);
      font-size: 18px;
    }
    .home-record-card strong {
      grid-area: value;
      margin-top: 0;
      justify-self: end;
      font-size: 28px;
    }
    .home-record-card em {
      grid-area: label;
      margin-top: 0;
    }
    .home-record-card p {
      grid-area: desc;
      margin-top: 3px;
    }
    .rank-table td {
      font-size: 13px;
    }
    .rank-table tr {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas:
        "rank"
        "level"
        "xp"
        "user";
      gap: 8px;
    }
    .rank-table td:nth-child(3),
    .rank-table td:nth-child(4) {
      justify-self: center;
    }
    .rank-table td:nth-child(2) {
      margin-top: 4px;
    }
  }

/* Shared global utility classes for future dashboard UI. */
:where(.page) { max-width: 1120px; margin: 0 auto; }
:where(.page-header) { margin: 0 0 var(--spacing-md); }
:where(.page-title) { margin: 0 0 6px; font-size: 22px; font-weight: 850; }
:where(.page-description) { color: var(--color-muted); margin: 0; max-width: 680px; }
:where(.content-grid) { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spacing-md); }
:where(.dashboard-card), :where(.section-card) { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--spacing-md); box-shadow: var(--shadow); }
:where(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 0; border-radius: var(--radius-sm); padding: 9px 12px; color: #fff; font-weight: 800; cursor: pointer; }
:where(.btn-primary) { background: var(--color-primary); }
:where(.btn-primary:hover) { background: var(--color-primary-hover); }
:where(.btn-secondary) { border: 1px solid var(--color-border); background: var(--soft-card-bg); color: var(--color-muted); }
:where(.btn-secondary:hover) { background: var(--color-surface-raised); color: var(--color-text); }
:where(.btn-danger) { background: var(--color-danger); }
:where(.btn-danger:hover) { background: #d83c3e; }
:where(.input), :where(.select), :where(.textarea), :where(.search-input) { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--color-text); padding: 9px 10px; outline: none; }
:where(.input:focus), :where(.select:focus), :where(.textarea:focus), :where(.search-input:focus) { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(88, 101, 242, .18); }
:where(.table), :where(.dashboard-table) { width: 100%; border-collapse: collapse; }
:where(.table th), :where(.table td), :where(.dashboard-table th), :where(.dashboard-table td) { padding: 12px; border-bottom: 1px solid rgba(181, 186, 193, .12); text-align: left; }
:where(.tabs) { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.tab-item) { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--soft-card-bg); color: var(--color-text); padding: 8px 12px; font-weight: 850; }
:where(.tab-item:hover), :where(.tab-active) { border-color: rgba(88, 101, 242, .56); background: var(--info-bg); color: var(--color-text); }
:where(.status-badge) { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 850; }
:where(.sidebar-section) { display: grid; gap: 2px; }
:where(.sidebar-item) { display: block; min-width: 0; border-radius: var(--radius-sm); padding: 10px 12px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
:where(.sidebar-item:hover), :where(.sidebar-item.active) { background: var(--color-surface-hover); color: var(--color-text); }

/* Theme-aware finishing pass. Keep page styles expressive while routing colors through shared tokens. */
:root[data-theme="light"] .brand,
:root[data-theme="light"] .server-menu,
:root[data-theme="light"] .server-menu summary,
:root[data-theme="light"] .server-menu-list,
:root[data-theme="light"] .server-menu-item,
:root[data-theme="light"] .server-empty-state,
:root[data-theme="light"] .sidebar-account-user,
:root[data-theme="light"] .home-stat-card,
:root[data-theme="light"] .home-hero-card,
:root[data-theme="light"] .home-account-card,
:root[data-theme="light"] .home-quick-panel,
:root[data-theme="light"] .home-section-card,
:root[data-theme="light"] .home-announcement-card,
:root[data-theme="light"] .home-feature-card,
:root[data-theme="light"] .home-record-card,
:root[data-theme="light"] .card,
:root[data-theme="light"] .settings-card,
:root[data-theme="light"] .collapsible-card,
:root[data-theme="light"] .command-item,
:root[data-theme="light"] .announcement-result-group,
:root[data-theme="light"] .server-console-hero,
:root[data-theme="light"] .server-console-summary-card,
:root[data-theme="light"] .server-console-section,
:root[data-theme="light"] .server-console-settings .settings-card,
:root[data-theme="light"] .setting-control-row,
:root[data-theme="light"] .command-console-summary,
:root[data-theme="light"] .server-console-section .command-section,
:root[data-theme="light"] .server-advanced-settings,
:root[data-theme="light"] .system-hero,
:root[data-theme="light"] .system-summary-card,
:root[data-theme="light"] .system-maintenance-card,
:root[data-theme="light"] .system-setting-row,
:root[data-theme="light"] .presence-preview,
:root[data-theme="light"] .maintenance-card,
:root[data-theme="light"] .announcement-card,
:root[data-theme="light"] .announcement-compose-card,
:root[data-theme="light"] .announcement-list-panel,
:root[data-theme="light"] .announcement-empty-state,
:root[data-theme="light"] .document-hero,
:root[data-theme="light"] .document-content-card,
:root[data-theme="light"] .document-toc-card,
:root[data-theme="light"] .document-footer-card,
:root[data-theme="light"] .document-empty,
:root[data-theme="light"] .rank-hero,
:root[data-theme="light"] .rank-summary-card,
:root[data-theme="light"] .rank-podium-card,
:root[data-theme="light"] .rank-self-card,
:root[data-theme="light"] .rank-table-wrap,
:root[data-theme="light"] .rank-empty-state,
:root[data-theme="light"] .patch-hero,
:root[data-theme="light"] .patch-feature-card,
:root[data-theme="light"] .patch-feature-changes,
:root[data-theme="light"] .patch-filter-card,
:root[data-theme="light"] .patch-list-card,
:root[data-theme="light"] .patch-entry,
:root[data-theme="light"] .patch-entry.release-card,
:root[data-theme="light"] .patch-empty-state,
:root[data-theme="light"] .support-method-card,
:root[data-theme="light"] .support-check-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 101, 242, .055), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 247, 253, .96));
  border-color: var(--color-border);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .home-stat-card.latency,
:root[data-theme="light"] .rank-summary-card.level {
  background:
    radial-gradient(circle at 96% 0%, rgba(240, 178, 50, .14), transparent 36%),
    linear-gradient(135deg, #fffdf7, #f6f7ff);
}
:root[data-theme="light"] .home-stat-card.servers,
:root[data-theme="light"] .rank-summary-card.xp {
  background:
    radial-gradient(circle at 96% 0%, rgba(35, 165, 90, .12), transparent 36%),
    linear-gradient(135deg, #f7fffb, #f6f7ff);
}
:root[data-theme="light"] .rank-podium-card.rank-1 {
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 178, 50, .20), transparent 36%),
    radial-gradient(circle at 80% 22%, rgba(88, 101, 242, .16), transparent 34%),
    linear-gradient(145deg, #fff8e7, #f7f7ff);
  box-shadow: 0 24px 58px rgba(127, 91, 18, .16), 0 0 34px rgba(240, 178, 50, .14);
}
:root[data-theme="light"] .rank-podium-card.rank-2 {
  background:
    radial-gradient(circle at 50% 0%, rgba(148, 163, 184, .16), transparent 36%),
    linear-gradient(145deg, #ffffff, #f4f6fb);
}
:root[data-theme="light"] .rank-podium-card.rank-3 {
  background:
    radial-gradient(circle at 50% 0%, rgba(202, 128, 75, .16), transparent 36%),
    linear-gradient(145deg, #fff9f5, #f7f7ff);
}
:root[data-theme="light"] .rank-table tr.rank-row-1,
:root[data-theme="light"] .rank-table tr.rank-row-2,
:root[data-theme="light"] .rank-table tr.rank-row-3 {
  background: rgba(88, 101, 242, .06);
}
:root[data-theme="light"] .rank-podium-name,
:root[data-theme="light"] .rank-self-card strong,
:root[data-theme="light"] .rank-summary-card strong,
:root[data-theme="light"] .rank-section-heading span,
:root[data-theme="light"] .rank-board-header h3,
:root[data-theme="light"] .home-stat-card strong,
:root[data-theme="light"] .home-announcement-card strong,
:root[data-theme="light"] .home-account-card h2,
:root[data-theme="light"] .home-account-rows strong,
:root[data-theme="light"] .home-section-header h2,
:root[data-theme="light"] .home-record-card strong,
:root[data-theme="light"] .server-console-summary-card strong,
:root[data-theme="light"] .setting-control-row strong,
:root[data-theme="light"] .command-console-summary strong,
:root[data-theme="light"] .system-summary-card strong,
:root[data-theme="light"] .system-setting-row strong,
:root[data-theme="light"] .presence-preview strong,
:root[data-theme="light"] .patch-feature-body h3,
:root[data-theme="light"] .patch-feature-changes strong,
:root[data-theme="light"] .patch-entry.release-card h3,
:root[data-theme="light"] .announcement-card h4,
:root[data-theme="light"] .home-hero-card h2,
:root[data-theme="light"] .home-feature-card strong,
:root[data-theme="light"] .document-hero h2,
:root[data-theme="light"] .system-hero h2,
:root[data-theme="light"] .patch-hero h2 {
  color: var(--color-text);
}
:root[data-theme="light"] .rank-hero-description,
:root[data-theme="light"] .rank-hero-updated,
:root[data-theme="light"] .home-stat-label,
:root[data-theme="light"] .home-hero-card p,
:root[data-theme="light"] .home-announcement-card p,
:root[data-theme="light"] .home-announcement-date,
:root[data-theme="light"] .home-account-rows span,
:root[data-theme="light"] .home-feature-card p,
:root[data-theme="light"] .home-record-card p,
:root[data-theme="light"] .document-hero p,
:root[data-theme="light"] .system-hero p,
:root[data-theme="light"] .system-summary-card p,
:root[data-theme="light"] .system-summary-card em,
:root[data-theme="light"] .system-setting-row p,
:root[data-theme="light"] .presence-preview p,
:root[data-theme="light"] .patch-hero p,
:root[data-theme="light"] .patch-feature-body p,
:root[data-theme="light"] .patch-feature-body small,
:root[data-theme="light"] .server-console-hero p {
  color: var(--color-muted);
}
:root[data-theme="light"] .rank-podium-stats span,
:root[data-theme="light"] .rank-refresh-button,
:root[data-theme="light"] .document-cta-button,
:root[data-theme="light"] .patch-page-count,
:root[data-theme="light"] .support-disabled,
:root[data-theme="light"] .home-quick-links a,
:root[data-theme="light"] .home-quick-link,
:root[data-theme="light"] .server-console-section .command-section,
:root[data-theme="light"] .server-advanced-settings,
:root[data-theme="light"] .patch-edit-form,
:root[data-theme="light"] .document-callout,
:root[data-theme="light"] .document-code,
:root[data-theme="light"] .document-body pre {
  background: var(--color-surface-soft);
  color: var(--color-text);
  border-color: var(--color-border);
}
:root[data-theme="light"] .server-menu summary:hover,
:root[data-theme="light"] .server-menu[open] summary,
:root[data-theme="light"] .server-menu-item:hover,
:root[data-theme="light"] .server-menu-item.active,
:root[data-theme="light"] .custom-select-option:hover,
:root[data-theme="light"] .custom-select-option.active {
  background: var(--color-surface-hover);
  color: var(--color-text);
}
:root[data-theme="light"] .command-names code,
:root[data-theme="light"] .command-badge.general,
:root[data-theme="light"] .home-announcement-kicker,
:root[data-theme="light"] .home-announcement-meta span,
:root[data-theme="light"] .home-eyebrow,
:root[data-theme="light"] .home-role-badge,
:root[data-theme="light"] .server-console-kicker,
:root[data-theme="light"] .system-kicker,
:root[data-theme="light"] .document-kicker,
:root[data-theme="light"] .patch-kicker,
:root[data-theme="light"] .patch-version,
:root[data-theme="light"] .patch-type-badge.improvement {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}
:root[data-theme="light"] .rank-tools input[type="search"],
:root[data-theme="light"] .patch-search-field input,
:root[data-theme="light"] select,
:root[data-theme="light"] input[type="number"],
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="search"],
:root[data-theme="light"] input:not([type]),
:root[data-theme="light"] textarea {
  background: var(--input-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}
:root[data-theme="light"] .rank-tools input[type="search"]::placeholder,
:root[data-theme="light"] .patch-search-field input::placeholder,
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: rgba(76, 90, 112, .58);
}
:root[data-theme="light"] .home-status-badge.on,
:root[data-theme="light"] .console-status-badge.is-on,
:root[data-theme="light"] .pill.on,
:root[data-theme="light"] .toast-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
:root[data-theme="light"] .home-status-badge.off,
:root[data-theme="light"] .console-status-badge.is-off,
:root[data-theme="light"] .pill.off,
:root[data-theme="light"] .toast-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
:root[data-theme="light"] .console-status-badge.is-on,
:root[data-theme="light"] .pill.on,
:root[data-theme="light"] .toast-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
:root[data-theme="light"] .console-status-badge.is-off,
:root[data-theme="light"] .pill.off,
:root[data-theme="light"] .toast-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
:root[data-theme="light"] .console-status-badge.needs-save,
:root[data-theme="light"] .toast-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}
:root[data-theme="light"] .brand-status {
  color: var(--success-text);
}
:root[data-theme="light"] .brand-invite,
:root[data-theme="light"] .login-help span,
:root[data-theme="light"] .patch-time,
:root[data-theme="light"] .server-console-section .command-section-title {
  color: var(--info-text);
}
:root[data-theme="light"] .home-hero-card::before,
:root[data-theme="light"] .document-hero::before,
:root[data-theme="light"] .server-console-hero::before,
:root[data-theme="light"] .system-hero::before,
:root[data-theme="light"] .patch-feature-card::before {
  opacity: .18;
}
:root[data-theme="light"] .home-stat-icon,
:root[data-theme="light"] .home-card-icon,
:root[data-theme="light"] .home-feature-icon,
:root[data-theme="light"] .server-console-summary-icon,
:root[data-theme="light"] .server-console-section-header > span,
:root[data-theme="light"] .system-summary-icon,
:root[data-theme="light"] .document-hero-icon,
:root[data-theme="light"] .support-method-icon {
  background: rgba(88, 101, 242, .10);
  border: 1px solid rgba(88, 101, 242, .12);
  color: var(--info-text);
}
:root[data-theme="light"] .command-badge.admin {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}
:root[data-theme="light"] .patch-type-badge.fix {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
:root[data-theme="light"] .patch-feature-changes ul,
:root[data-theme="light"] .patch-body ul,
:root[data-theme="light"] .support-check-card ul {
  color: var(--color-muted);
}
:root[data-theme="light"] .patch-pagination .disabled {
  background: var(--color-surface-soft);
  color: var(--color-muted-2);
}
:root[data-theme="light"] .unsaved-bar {
  background: var(--panel-bg);
  border-color: var(--color-border);
}
:root[data-theme="light"] .unsaved-reset {
  color: var(--info-text);
}
:root[data-theme="light"] .sidebar-backdrop {
  background: rgba(15, 23, 42, .34);
}
:root[data-theme="light"] .toggle-switch {
  background: #d3d8e5;
}
:root[data-theme="light"] .toggle input:checked + .toggle-switch {
  background: var(--color-primary);
}
:root[data-theme="light"] .document-body h3,
:root[data-theme="light"] .document-body strong,
:root[data-theme="light"] .document-toc-card strong,
:root[data-theme="light"] .document-callout strong,
:root[data-theme="light"] .document-footer-card strong,
:root[data-theme="light"] .support-check-card strong,
:root[data-theme="light"] .patch-body h3,
:root[data-theme="light"] .patch-summary strong,
:root[data-theme="light"] .announcement-list-heading h3,
:root[data-theme="light"] .announcement-empty-state strong {
  color: var(--color-text);
}
:root[data-theme="light"] .document-body,
:root[data-theme="light"] .document-body p,
:root[data-theme="light"] .document-body li,
:root[data-theme="light"] .document-footer-card p,
:root[data-theme="light"] .support-check-card li,
:root[data-theme="light"] .patch-body ul,
:root[data-theme="light"] .patch-summary,
:root[data-theme="light"] .announcement-list-heading p,
:root[data-theme="light"] .announcement-empty-state p {
  color: var(--color-muted);
}
:root[data-theme="light"] .document-updated,
:root[data-theme="light"] .server-console-meta span,
:root[data-theme="light"] .system-hero-meta span,
:root[data-theme="light"] .patch-hero-meta span,
:root[data-theme="light"] .announcement-card-meta span,
:root[data-theme="light"] .home-announcement-meta span,
:root[data-theme="light"] .document-footer-card .badge {
  background: rgba(100, 116, 139, .14);
  border-color: rgba(100, 116, 139, .20);
  color: #475569;
}
:root[data-theme="light"] .document-kicker,
:root[data-theme="light"] .system-kicker,
:root[data-theme="light"] .server-console-kicker,
:root[data-theme="light"] .patch-kicker,
:root[data-theme="light"] .rank-hero-kicker {
  background: rgba(88, 101, 242, .10);
  border-color: rgba(88, 101, 242, .20);
  color: var(--info-text);
}
:root[data-theme="light"] .collapsible-card summary:hover {
  background: rgba(88, 101, 242, .055);
}
:root[data-theme="light"] .collapsible-state {
  color: var(--info-text);
}
:root[data-theme="light"] .rank-summary-icon,
:root[data-theme="light"] .rank-podium-crown {
  background: rgba(88, 101, 242, .08);
  color: var(--info-text);
}
:root[data-theme="light"] .rank-podium-empty {
  color: var(--color-muted);
}
:root[data-theme="light"] .rank-podium-card.empty .rank-podium-top,
:root[data-theme="light"] .rank-podium-card.empty p {
  color: var(--color-muted-2);
}
:root[data-theme="light"] .rank-podium-card.empty .rank-podium-crown {
  opacity: .72;
}
:root[data-theme="light"] .rank-table-wrap,
:root[data-theme="light"] .rank-table tbody tr {
  background: var(--panel-bg);
}
:root[data-theme="light"] .rank-table th {
  background: rgba(88, 101, 242, .045);
  color: var(--color-muted);
}
:root[data-theme="light"] .rank-table td {
  color: var(--color-text);
}
:root[data-theme="light"] .rank-table td strong {
  color: var(--color-text);
}
:root[data-theme="light"] .rank-table td span {
  color: var(--color-muted);
}
:root[data-theme="light"] .rank-self-label {
  color: var(--info-text);
}
:root[data-theme="light"] .rank-self-card.empty,
:root[data-theme="light"] .document-callout,
:root[data-theme="light"] .presence-preview,
:root[data-theme="light"] .system-setting-row,
:root[data-theme="light"] .patch-feature-changes,
:root[data-theme="light"] .document-footer-card {
  background: rgba(255, 255, 255, .72);
  border-color: var(--color-border);
}
:root[data-theme="light"] .system-hero-badge.is-normal,
:root[data-theme="light"] .announcement-status-badge.published {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
:root[data-theme="light"] .system-hero-badge.is-maintenance,
:root[data-theme="light"] .announcement-status-badge.private {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}
:root[data-theme="light"] .home-record-card em {
  color: var(--info-text);
}
:root[data-theme="light"] .danger-button,
:root[data-theme="light"] .patch-delete-form .danger-button {
  background: var(--color-danger);
  color: #fff;
}
:root[data-theme="light"] .danger-button:hover,
:root[data-theme="light"] .patch-delete-form .danger-button:hover {
  background: #b4232a;
}
:root[data-theme="light"] button:not(.custom-select-button):not(.nav-drag-handle):not(.sidebar-toggle),
:root[data-theme="light"] .patch-new-button,
:root[data-theme="light"] .patch-edit-button,
:root[data-theme="light"] .document-cta-button,
:root[data-theme="light"] .storage-notice-accept {
  background: linear-gradient(135deg, #5865f2, #6d5dfc);
  border: 1px solid rgba(88, 101, 242, .18);
  color: #fff;
  box-shadow: 0 12px 28px rgba(88, 101, 242, .18);
}
:root[data-theme="light"] button:not(.custom-select-button):not(.nav-drag-handle):not(.sidebar-toggle):hover,
:root[data-theme="light"] .patch-new-button:hover,
:root[data-theme="light"] .patch-edit-button:hover,
:root[data-theme="light"] .document-cta-button:hover,
:root[data-theme="light"] .storage-notice-accept:hover {
  background: linear-gradient(135deg, #4752c4, #5f55e8);
  color: #fff;
}
:root[data-theme="light"] .ghost-button,
:root[data-theme="light"] .storage-notice-link,
:root[data-theme="light"] .rank-refresh-button,
:root[data-theme="light"] .support-disabled {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}
:root[data-theme="light"] .ghost-button:hover,
:root[data-theme="light"] .storage-notice-link:hover,
:root[data-theme="light"] .rank-refresh-button:hover {
  background: rgba(88, 101, 242, .10);
  border-color: rgba(88, 101, 242, .24);
  color: var(--info-text);
}
:root[data-theme="light"] .danger-button,
:root[data-theme="light"] .patch-delete-form .danger-button {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(220, 38, 38, .22);
  color: #fff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, .14);
}
:root[data-theme="light"] .danger-button:hover,
:root[data-theme="light"] .patch-delete-form .danger-button:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
}
:root[data-theme="light"] .server-advanced-settings > summary,
:root[data-theme="light"] .server-advanced-settings .collapsible-card summary,
:root[data-theme="light"] .server-advanced-settings .collapsible-title {
  color: var(--color-text);
}
:root[data-theme="light"] .server-advanced-settings > summary::after,
:root[data-theme="light"] .server-advanced-settings .collapsible-state {
  color: var(--info-text);
}
:root[data-theme="light"] .server-advanced-settings[open] > summary {
  border-color: var(--color-border);
}
:root[data-theme="light"] .server-advanced-settings .collapsible-card {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(33, 45, 69, .14);
  box-shadow: none;
}
:root[data-theme="light"] .server-advanced-settings .collapsible-card summary:hover {
  background: rgba(88, 101, 242, .055);
}
:root[data-theme="light"] .patch-latest-badge,
:root[data-theme="light"] .patch-list-heading > span,
:root[data-theme="light"] .announcement-list-heading > span,
:root[data-theme="light"] .patch-type-badge {
  background: rgba(88, 101, 242, .10);
  border: 1px solid rgba(88, 101, 242, .20);
  color: var(--info-text);
}
:root[data-theme="light"] .patch-type-badge.feature {
  background: rgba(88, 101, 242, .11);
  border-color: rgba(88, 101, 242, .24);
  color: var(--info-text);
}
:root[data-theme="light"] .patch-type-badge.improvement {
  background: rgba(124, 92, 255, .11);
  border-color: rgba(124, 92, 255, .24);
  color: #4f46b8;
}
:root[data-theme="light"] .patch-type-badge.fix {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
:root[data-theme="light"] .patch-filter-form .field > span,
:root[data-theme="light"] .patch-list-heading p,
:root[data-theme="light"] .patch-card-meta,
:root[data-theme="light"] .patch-author {
  color: var(--color-muted);
}
:root[data-theme="light"] .patch-timeline.release-timeline::before {
  background: linear-gradient(180deg, rgba(88, 101, 242, .56), rgba(88, 101, 242, .10));
}
:root[data-theme="light"] .patch-node {
  border-color: #eef2f8;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, .12), 0 12px 24px rgba(88, 101, 242, .20);
}

@media (max-width: 640px) {
  .storage-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: auto;
    padding: 12px;
  }
  .storage-notice-actions {
    justify-content: stretch;
  }
  .storage-notice-link,
  .storage-notice-accept {
    flex: 1 1 auto;
  }
}
