/* Westside '95 staff panel — the panel's ONE stylesheet (v2, 2026-11-08).
   Matches westside95.net v2: dusk ink, sunset gradients, glossy glass panels and pills, Anton + Inter.
   Loaded on every panel page (sign-in pages too); the panel no longer loads the website's style.css.
   No inline styles anywhere: the panel's CSP forbids them. Icons are line icons used as CSS masks (source: icons-v2.js in the rig). */

/* =====================================================================================================================
   tokens
   ===================================================================================================================== */
:root {
  color-scheme: dark;
  --ink: #0c0610; --ink-2: #150a18; --ink-3: #1f0f22;
  --solid: #160b19; --solid-2: #1d0f21; --solid-3: #26142a;
  --maroon: #880015; --red: #c2182b; --red-hi: #ff3b4e;
  --text: #f6eef2; --muted: #c4b2bd; --dim: #8f7c89;
  --link: #ffb3c0;
  --line: rgba(255, 255, 255, 0.10); --line-2: rgba(255, 255, 255, 0.17);
  --surface: rgba(255, 255, 255, 0.04); --surface-2: rgba(255, 255, 255, 0.07); --surface-3: rgba(255, 255, 255, 0.11);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --wine: linear-gradient(180deg, #b0182c 0%, #880015 55%, #5e000e 100%);
  --sunset: linear-gradient(100deg, #ff9a3d 0%, #ff4d6d 45%, #c13ad6 75%, #7b3fe4 100%);
  --shadow-lg: 0 24px 60px -26px rgba(0, 0, 0, 0.8);
  --good: #5ee08a; --warn: #ffc15e; --bad: #ff6170; --info: #8fb4ff;
  --good-bg: rgba(94, 224, 138, 0.12); --warn-bg: rgba(255, 193, 94, 0.12); --bad-bg: rgba(255, 97, 112, 0.13); --info-bg: rgba(143, 180, 255, 0.12);
  --radius: 18px; --radius-sm: 12px; --radius-xs: 8px;
  --display: "Anton", "Bahnschrift", "Impact", "Arial Narrow", sans-serif;
  --ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Lucida Console", monospace;
  --side-w: 248px;
  --pos-owner: #c2182b; --pos-community: #7c3aed; --pos-senior_staff: #2f5bd3; --pos-server_staff: #0e8f91; --pos-senior_mod: #2e8b45; --pos-server_mod: #66707e; --pos-none: #66707e;
  /* the old Win95 names, kept so any rule that still uses them looks right in the dark theme */
  --face: var(--surface-2); --light: var(--surface-3); --white: var(--line); --shadow: var(--line); --black: var(--text);
  --navy: var(--link); --crimson: var(--red-hi); --note: var(--surface);
  --sunken: inset 0 0 0 1px var(--line); --raised: inset 0 0 0 1px var(--line); --button: inset 0 0 0 1px var(--line-2); --pressed: inset 0 0 0 1px var(--line-2);
  --ui-font: var(--ui);
  --ico-overview: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
  --ico-claude: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 4.6 4.6 1.9-4.6 1.9L12 16l-1.9-4.6-4.6-1.9 4.6-1.9z'/%3E%3Cpath d='M19 15l.8 2.2 2.2.8-2.2.8L19 21l-.8-2.2-2.2-.8 2.2-.8z'/%3E%3Cpath d='M5 3v4M3 5h4'/%3E%3C/svg%3E");
  --ico-notes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
  --ico-giveaways: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
  --ico-roles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
  --ico-audit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M12 11h4M12 16h4M8 11h.01M8 16h.01'/%3E%3C/svg%3E");
  --ico-tickets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 0 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 0 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3Cpath d='M13 5v2M13 11v2M13 17v2'/%3E%3C/svg%3E");
  --ico-moderation: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ico-serverlogs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='18' rx='2'/%3E%3Cpath d='m6 9 3 3-3 3M12 15h5'/%3E%3C/svg%3E");
  --ico-characters: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='8' cy='11' r='2.5'/%3E%3Cpath d='M4.5 16.5c.8-1.5 2-2.2 3.5-2.2s2.7.7 3.5 2.2'/%3E%3Cpath d='M14 10h5M14 14h4'/%3E%3C/svg%3E");
  --ico-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E");
  --ico-staff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
  --ico-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v10'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.8 0'/%3E%3C/svg%3E");
  --ico-panelrestart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.4L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E");
  --ico-library: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  --ico-txadmin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Cpath d='m7 8 2.5 2.5L7 13M12 13h5'/%3E%3C/svg%3E");
  --ico-account: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M7 20.7V20a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v.7'/%3E%3C/svg%3E");
  --ico-game: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='8' rx='2'/%3E%3Crect x='3' y='13' width='18' height='8' rx='2'/%3E%3Cpath d='M7 7h.01M7 17h.01M11 7h6M11 17h6'/%3E%3C/svg%3E");
  --ico-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='3'/%3E%3Cpath d='M12 8V4M9 4h6'/%3E%3Cpath d='M8.5 13.5v1M15.5 13.5v1'/%3E%3Cpath d='M1 13v2M23 13v2'/%3E%3C/svg%3E");
  --ico-health: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
  --ico-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.5 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  --ico-members: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
  --ico-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E");
  --ico-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
  --ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* =====================================================================================================================
   base
   ===================================================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: radial-gradient(1100px 620px at 88% -12%, rgba(193, 58, 214, 0.16), transparent 62%), radial-gradient(900px 560px at -8% 20%, rgba(136, 0, 21, 0.26), transparent 62%), var(--ink) fixed; }
body { margin: 0; min-height: 100vh; background: transparent; color: var(--text); font: 400 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
body::before { /* a faint Los Santos sunset behind the top of every page */
  content: ""; position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: url("/_panel/assets/backgrounds/los-santos-sunset-1920.jpg") center 42% / cover no-repeat; opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; }
code, kbd, samp, pre { font-family: var(--mono); }
.panel-doc code { overflow-wrap: anywhere; } /* long file paths must not widen the page on a phone */
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
::selection { background: rgba(255, 77, 109, 0.4); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-doc [hidden], [hidden] { display: none !important; }
* { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; scrollbar-width: thin; }

/* =====================================================================================================================
   buttons
   ===================================================================================================================== */
.button, .al-btn, .tb-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); box-shadow: var(--glass-hi), 0 8px 20px -14px rgba(0, 0, 0, 0.9);
  color: var(--text); font: 600 14px/1.1 var(--ui); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.button::before, .al-btn::before, .tb-btn::before { /* gloss on the top half */
  content: ""; position: absolute; inset: 1px 1px 52% 1px; z-index: -1; border-radius: 999px 999px 40% 40% / 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.01)); pointer-events: none;
}
.button:visited, .al-btn:visited, .tb-btn:visited { color: var(--text); }
.button:hover, .al-btn:hover, .tb-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
.button:active, .al-btn:active, .tb-btn:active { transform: translateY(1px); }
.button[disabled], .al-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.button img { width: 16px; height: 16px; }
.button.default, .al-btn.al-enter, .al-btn.al-open-btn { background: var(--wine); border-color: rgba(255, 120, 135, 0.45); box-shadow: var(--glass-hi), 0 12px 26px -14px rgba(194, 24, 43, 0.85); color: #fff; }
.button.default:visited { color: #fff; }
.button.large { min-height: 44px; padding: 0 22px; font-size: 15px; }
.button.small { min-height: 30px; min-width: 0; padding: 0 12px; font-size: 13px; }
.button.danger { color: #ff9aa4; border-color: rgba(255, 97, 112, 0.45); }
.button.danger:hover { background: rgba(255, 97, 112, 0.16); color: #fff; }
button.button { font-family: var(--ui); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:hover { color: #fff; }

/* =====================================================================================================================
   form fields (everywhere in the panel)
   ===================================================================================================================== */
.panel-doc input[type=text], .panel-doc input[type=password], .panel-doc input[type=number], .panel-doc input[type=search], .panel-doc input[type=date],
.panel-doc input[type=email], .panel-doc input[type=url], .panel-doc input:not([type]), .panel-doc select, .panel-doc textarea {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35); color: var(--text); font: 500 14px/1.3 var(--ui);
}
.panel-doc textarea { line-height: 1.5; }
.panel-doc select { padding-right: 32px; appearance: none; -webkit-appearance: none; background: rgba(0, 0, 0, 0.32) no-repeat right 11px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b2bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.panel-doc select[multiple] { padding-right: 12px; background-image: none; }
.panel-doc select option { background: var(--solid-2); color: var(--text); }
.panel-doc input::placeholder, .panel-doc textarea::placeholder { color: var(--dim); }
.panel-doc input:focus, .panel-doc select:focus, .panel-doc textarea:focus { outline: none; border-color: #ff8fa0; box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25); }
.panel-doc input[type=checkbox], .panel-doc input[type=radio] { width: 17px; height: 17px; accent-color: #ff4d6d; }
.panel-doc input[readonly] { color: var(--muted); }

/* =====================================================================================================================
   sign-in pages: one glass dialog with the wordmark (layout() without nav)
   ===================================================================================================================== */
.page { width: 100%; margin: 0 auto; padding: 0 16px; }
.page.narrow { max-width: 640px; padding-top: max(28px, 8vh); padding-bottom: 40px; }
.page.narrow::before { /* the full sunset behind the dialog */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 6, 16, 0.55), rgba(12, 6, 16, 0.92) 75%), url("/_panel/assets/backgrounds/los-santos-sunset-1920.jpg") 62% 45% / cover no-repeat;
}
.page.narrow .window { border: 1px solid var(--line-2); border-radius: 24px; background: linear-gradient(180deg, rgba(40, 18, 40, 0.86), rgba(18, 8, 20, 0.92)); box-shadow: var(--glass-hi), var(--shadow-lg); overflow: hidden; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.page.narrow .banner { display: flex; justify-content: center; padding: 26px 24px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(420px 140px at 50% 0%, rgba(255, 77, 109, 0.22), transparent 70%); }
.page.narrow .banner a { display: block; width: min(100%, 320px); }
.page.narrow .banner img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)); }
.page.narrow .document { padding: 24px 28px 28px; }
.page.narrow .panel-doc .group { margin-top: 18px; }
.page.narrow .panel-doc h1 { font-size: 30px; }

/* =====================================================================================================================
   page text (.panel-doc is the page body on every panel page)
   ===================================================================================================================== */
.panel-doc { font-size: 15px; }
.panel-doc { min-width: 0; }
.panel-doc h1 { margin: 0 0 6px; font: 400 clamp(30px, 3.2vw, 40px)/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.panel-doc h2 { font-size: 18px; }
.panel-doc .sub { margin: 0 0 18px; color: var(--muted); }
.panel-doc p { margin: 0 0 12px; }
.panel-doc label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.panel-doc .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.panel-doc .small, .small { font-size: 13px; }
.panel-doc .small { color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.panel-doc .gap, .stack-gap { height: 18px; }
.panel-doc ul.plain { margin: 6px 0 12px 22px; padding: 0; }
.panel-doc ul.plain li::marker { color: var(--red-hi); }
.panel-doc form.inline, form.inline { display: inline; margin: 0; }
.panel-doc label.check { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 18px 0 4px; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.panel-doc label.check input { flex: none; margin-top: 2px; }
.panel-doc input[type=text]:not(.narrow), .panel-doc input[type=password] { width: 100%; max-width: 420px; }
.panel-doc .err, .panel-doc .ok { margin: 0 0 16px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 14px; }
.panel-doc .err { border-color: rgba(255, 97, 112, 0.45); background: var(--bad-bg); color: #ffd0d5; }
.panel-doc .ok { border-color: rgba(94, 224, 138, 0.4); background: var(--good-bg); color: #d3f7de; }
.panel-doc .secret { display: block; margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.35); font: 700 17px/1.4 var(--mono); letter-spacing: 0.08em; word-break: break-all; }
.panel-doc .codes { margin: 8px 0 16px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.35); columns: 2; font: 15px/1.9 var(--mono); list-style: none; }
.panel-doc .stat, .claude-act .stat { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.panel-doc .card, .claude-act .card { flex: 1 1 200px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); box-shadow: var(--glass-hi); }
.panel-doc .card b, .claude-act .card b { display: block; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.panel-doc .card span, .claude-act .card span { display: block; margin-top: 4px; font: 400 26px/1.1 var(--display); letter-spacing: 0.02em; }
.claude-act .card small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.panel-doc .devtable { width: 100%; margin: 8px 0 16px; border-collapse: collapse; }
.panel-doc .devtable th, .panel-doc .devtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; vertical-align: middle; }
.panel-doc .devtable th { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.panel-doc .tag { display: inline-block; padding: 2px 9px; border: 1px solid rgba(94, 224, 138, 0.45); border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 700; }

/* a boxed section: .group > h2 + .group-body */
.group { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass), rgba(21, 10, 24, 0.55); box-shadow: var(--glass-hi), 0 18px 40px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.group > h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font: 400 19px/1.1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.group-body { padding: 18px 20px 20px; }
.group-body > :first-child { margin-top: 0; }
.group-body > :last-child { margin-bottom: 0; }

/* return buttons: "Back to <list>" above the heading and the same row (plus Back to Overview and Back to top) under every page */
.panel-doc .page-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 22px; padding: 0; border: 0; }
.panel-doc .page-nav-end { margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.panel-doc .page-nav .button { min-height: 34px; padding: 0 14px; color: var(--muted); font-size: 13px; }
.panel-doc .page-nav .button:hover { color: #fff; }
@media (max-width: 560px) { .panel-doc .page-nav .button { flex: 1 1 100%; } }

/* =====================================================================================================================
   staff login box (sign-in pages; same markup as the website's box)
   ===================================================================================================================== */
.admin-login { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--glass), rgba(21, 10, 24, 0.6); box-shadow: var(--glass-hi); overflow: hidden; }
.admin-login .al-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(176, 24, 44, 0.42), rgba(94, 0, 14, 0.3)); font: 400 20px/1.1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.admin-login .al-sep { color: rgba(255, 255, 255, 0.35); }
.admin-login .al-status { color: #ffd2a1; font: 600 14px/1.2 var(--ui); letter-spacing: 0; text-transform: none; }
.admin-login .al-body { padding: 20px 22px 22px; }
.admin-login p { margin: 0 0 12px; }
.admin-login .al-discord { color: var(--muted); }
.admin-login .al-error, .admin-login .al-notice { margin: 0 0 14px; padding: 11px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 14px; }
.admin-login .al-error { border-color: rgba(255, 97, 112, 0.45); background: var(--bad-bg); color: #ffd0d5; }
.admin-login .al-notice { border-color: rgba(143, 180, 255, 0.4); background: var(--info-bg); color: #dde7ff; }
.al-field { display: grid; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.al-field > span { display: block; }
.panel-doc .admin-login .al-field input, .panel-doc .admin-login .al-field select { width: 100%; max-width: none; min-height: 46px; font-size: 16px; }
.al-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.al-btn { min-height: 44px; padding: 0 18px; }
.al-btn.al-enter { margin-left: auto; min-width: 120px; }
.al-btn.al-discord-btn { background: linear-gradient(180deg, #6f7bff, #4752c4); border-color: rgba(170, 180, 255, 0.5); color: #fff; }
.al-btn.al-cfx .al-mark { width: 20px; height: 20px; filter: invert(1); }
.admin-login .al-checks { margin: 0 0 16px; padding: 0; list-style: none; }
.admin-login .al-checks li { position: relative; margin: 0 0 6px; padding-left: 28px; color: var(--muted); }
.admin-login .al-checks li::before { content: ""; position: absolute; left: 1px; top: 3px; width: 17px; height: 17px; background: var(--good); -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; }
.al-btn.al-open-btn { width: 100%; min-height: 66px; justify-content: flex-start; padding: 0 22px 0 10px; font-size: 16px; }
.al-open-btn .al-badge { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
.al-open-btn .al-arrow { margin-left: auto; font-size: 20px; }
.admin-login .al-small, .admin-login .al-until { margin: 10px 0 0; color: var(--dim); font-size: 13px; font-variant-numeric: lining-nums; }
.al-tick { width: 17px; height: 17px; accent-color: #ff4d6d; }
.al-more { margin: 10px 0 0; }
@media (max-width: 560px) { .page.narrow { padding-top: 16px; } .page.narrow .document { padding: 20px 16px 22px; } .al-btn.al-enter { margin-left: 0; } .admin-login .al-body { padding: 18px 16px; } }

/* =====================================================================================================================
   the signed-in app: top bar, sidebar, page, footer (layout() with nav)
   ===================================================================================================================== */
.page:has(> .appwin) { max-width: 1440px; padding: 18px 20px 28px; }
.page.wide:has(> .appwin) { max-width: 1680px; }
.appwin { display: flex; flex-direction: column; gap: 14px; }

/* top bar */
.titlebar {
  position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 10px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(22, 10, 25, 0.78); box-shadow: var(--glass-hi), 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); color: var(--text); font-size: 14px;
}
.titlebar .tb-app { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.titlebar .tb-app:visited { color: var(--text); }
.titlebar .tb-app img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.6); }
.titlebar .tb-app span { font: 400 21px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.titlebar .tb-title { min-width: 0; overflow: hidden; color: var(--muted); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.titlebar .tb-title::before { content: ""; display: inline-block; width: 1px; height: 22px; margin: 0 14px 0 0; background: var(--line-2); vertical-align: middle; }
.titlebar .tb-user { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 0 4px; white-space: nowrap; }
.titlebar .tb-name { font-weight: 700; }
.tb-btn { min-height: 40px; padding: 0 16px 0 14px; font-size: 13px; }
.tb-btn::after { content: ""; order: -1; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ico-logout) center / contain no-repeat; mask: var(--ico-logout) center / contain no-repeat; }

/* position labels: one colour each */
.pos { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%), var(--pos-c, var(--pos-none)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; letter-spacing: 0.02em; white-space: nowrap; vertical-align: 1px; }
.pos-owner { --pos-c: var(--pos-owner); } .pos-community { --pos-c: var(--pos-community); } .pos-senior_staff { --pos-c: var(--pos-senior_staff); }
.pos-server_staff { --pos-c: var(--pos-server_staff); } .pos-senior_mod { --pos-c: var(--pos-senior_mod); } .pos-server_mod { --pos-c: var(--pos-server_mod); }

/* the body: sidebar + page */
.panel-doc.has-nav { display: flex; align-items: flex-start; gap: 18px; min-height: 600px; padding: 0; background: none; }
.panel-doc.has-nav > .pnav {
  position: sticky; top: 88px; display: flex; flex: 0 0 var(--side-w); flex-direction: column; gap: 2px; max-height: calc(100vh - 104px); margin: 0; padding: 12px 10px 16px;
  overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass), rgba(21, 10, 24, 0.6); box-shadow: var(--glass-hi);
}
.panel-doc.has-nav > .pnav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease;
}
.panel-doc.has-nav > .pnav a::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--ico, var(--ico-chevron)) center / contain no-repeat; mask: var(--ico, var(--ico-chevron)) center / contain no-repeat; opacity: 0.85; }
.panel-doc.has-nav > .pnav a:visited { color: var(--muted); }
.panel-doc.has-nav > .pnav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.panel-doc.has-nav > .pnav a:focus-visible { outline: 2px solid #ffd27a; outline-offset: -2px; }
.panel-doc.has-nav > .pnav a[aria-current="page"] { background: var(--wine); box-shadow: var(--glass-hi), 0 8px 18px -10px rgba(194, 24, 43, 0.9); color: #fff; }
.panel-doc.has-nav > .pnav a[aria-current="page"]::before { opacity: 1; }
.panel-doc.has-nav > .pnav .nav-group { margin: 16px 12px 6px; color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.panel-doc.has-nav > .pnav .count { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--red-hi); color: #fff; font-size: 11px; line-height: 18px; }
.panel-doc.has-nav > .pmain {
  flex: 1 1 auto; min-width: 0; padding: 26px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), rgba(16, 7, 19, 0.55); box-shadow: var(--glass-hi);
}
.panel-doc.has-nav > .pmain > :first-child { margin-top: 0; }
.panel-doc.has-nav > .pmain > .group { margin-top: 24px; }

/* sidebar + card icons (the sidebar links stay plain <a href> — the tests read them — so their icon comes from the address) */
[data-ico="overview"] { --ico: var(--ico-overview); } [data-ico="audit"] { --ico: var(--ico-audit); } [data-ico="tickets"] { --ico: var(--ico-tickets); }
[data-ico="moderation"] { --ico: var(--ico-moderation); } [data-ico="roles"] { --ico: var(--ico-roles); } [data-ico="giveaways"] { --ico: var(--ico-giveaways); }
[data-ico="settings"] { --ico: var(--ico-settings); } [data-ico="staff"] { --ico: var(--ico-staff); } [data-ico="claude"] { --ico: var(--ico-claude); }
[data-ico="server"] { --ico: var(--ico-server); } [data-ico="txadmin"] { --ico: var(--ico-txadmin); } [data-ico="account"] { --ico: var(--ico-account); } [data-ico="bot"] { --ico: var(--ico-bot); }
[data-ico="game"] { --ico: var(--ico-game); } [data-ico="health"] { --ico: var(--ico-health); } [data-ico="alert"] { --ico: var(--ico-alert); } [data-ico="members"] { --ico: var(--ico-members); } [data-ico="key"] { --ico: var(--ico-key); }
.has-nav > .pnav a[href$="/_panel/"], .has-nav > .pnav a[href$="/dashboard/"] { --ico: var(--ico-overview); }
.has-nav > .pnav a[href$="/audit"] { --ico: var(--ico-audit); } .has-nav > .pnav a[href$="/tickets"] { --ico: var(--ico-tickets); } .has-nav > .pnav a[href$="/moderation"] { --ico: var(--ico-moderation); }
.has-nav > .pnav a[href$="/roles"] { --ico: var(--ico-roles); } .has-nav > .pnav a[href$="/giveaways"] { --ico: var(--ico-giveaways); } .has-nav > .pnav a[href$="/settings"] { --ico: var(--ico-settings); }
.has-nav > .pnav a[href$="/staff"] { --ico: var(--ico-staff); }
.has-nav > .pnav a[href$="/server"] { --ico: var(--ico-server); }
.has-nav > .pnav a[href$="/logs"] { --ico: var(--ico-claude); } .has-nav > .pnav a[href$="/txadmin"] { --ico: var(--ico-txadmin); } .has-nav > .pnav a[href$="/account"] { --ico: var(--ico-account); }
.has-nav > .pnav a[href$="/restart-panel"] { --ico: var(--ico-panelrestart); } .has-nav > .pnav a[href$="/library"] { --ico: var(--ico-library); }
.has-nav > .pnav a[href$="/serverlogs"] { --ico: var(--ico-serverlogs); } .has-nav > .pnav a[href$="/characters"] { --ico: var(--ico-characters); } .has-nav > .pnav a[href$="/notes"] { --ico: var(--ico-notes); }

/* footer (was the status bar) */
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 4px 18px; color: var(--dim); font-size: 12.5px; }
.statusbar .sb-cell { white-space: nowrap; }
.statusbar .sb-cell b { color: var(--muted); }
.statusbar .sb-grow { flex: 1; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; }
.statusbar a { color: var(--muted); font-weight: 600; text-decoration: none; }
.statusbar a:hover { color: #fff; }

/* =====================================================================================================================
   overview
   ===================================================================================================================== */
.ov-hello {
  position: relative; margin: 0 0 8px; padding: 26px 28px 24px; border: 1px solid rgba(255, 140, 120, 0.22); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, rgba(12, 6, 16, 0.92) 0%, rgba(12, 6, 16, 0.6) 55%, rgba(12, 6, 16, 0.25) 100%), url("/_panel/assets/backgrounds/los-santos-sunset-1920.jpg") 60% 48% / cover no-repeat;
  box-shadow: var(--glass-hi), var(--shadow-lg);
}
.ov-hello h1 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 52px); background: linear-gradient(180deg, #fff6e8 0%, #ffd2a1 35%, #ff7a59 65%, #ff3d7f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ov-hello .sub { margin: 0; color: #eadde4; }
.ov-hello .ov-job { max-width: 820px; margin: 10px 0 0; color: #e3d4dc; }
.panel-doc h2.sec { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; color: var(--dim); font: 800 11.5px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; }
.panel-doc h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0 0 8px; }
.pcard {
  position: relative; display: block; min-height: 118px; padding: 18px 18px 30px 74px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass), rgba(21, 10, 24, 0.5); box-shadow: var(--glass-hi); color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.pcard::before { /* the icon in a glossy tile */
  content: ""; position: absolute; top: 18px; left: 18px; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), var(--tile, linear-gradient(160deg, #3a2240, #24132a)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.pcard > b::before { /* the icon itself, painted on the tile */
  content: ""; position: absolute; top: 29px; left: 29px; width: 20px; height: 20px; background: #fff;
  -webkit-mask: var(--ico, var(--ico-overview)) center / contain no-repeat; mask: var(--ico, var(--ico-overview)) center / contain no-repeat;
}
.pcard b { display: block; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pcard .big { display: block; margin-top: 4px; font: 400 28px/1.1 var(--display); letter-spacing: 0.02em; color: #fff; }
.pcard .sub2 { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
a.pcard, a.pcard:visited { color: var(--text); }
a.pcard:hover { border-color: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
a.pcard::after { content: "Open \2192"; position: absolute; right: 16px; bottom: 10px; color: var(--link); font-size: 12px; font-weight: 700; }
a.pcard:hover::after { color: #fff; }
.pcard.is-good { --tile: linear-gradient(160deg, #1f7a45, #0f4a2a); } .pcard.is-good .big { color: var(--good); }
.pcard.is-warn { --tile: linear-gradient(160deg, #b9741a, #6e430b); } .pcard.is-warn .big { color: var(--warn); }
.pcard.is-bad { --tile: linear-gradient(160deg, #c2182b, #6b0a16); border-color: rgba(255, 97, 112, 0.3); } .pcard.is-bad .big { color: var(--bad); }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.checklist .dot.ok { background: #1f7a45; } .checklist .dot.warn { background: #b9741a; } .checklist .dot.info { background: #2f5bd3; }
ul.access { margin: 8px 0 12px; padding: 0; columns: 2 300px; column-gap: 32px; list-style: none; }
ul.access li { position: relative; margin: 0 0 8px; padding-left: 28px; break-inside: avoid; }
ul.access li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; background: var(--good); -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; }

/* =====================================================================================================================
   notices, badges
   ===================================================================================================================== */
.notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid rgba(94, 224, 138, 0.4); border-radius: var(--radius-sm); background: var(--good-bg); color: #d3f7de; }
.notice.warn { border-color: rgba(255, 193, 94, 0.45); background: var(--warn-bg); color: #ffe7c0; }
.notice.bad { border-color: rgba(255, 97, 112, 0.45); background: var(--bad-bg); color: #ffd0d5; }
.notice ul { margin: 6px 0 0 18px; padding: 0; }
.notice a { color: #fff; }
.badge, .panel-doc .badge { display: inline-block; margin: 0; padding: 1px 9px; border: 0; border-radius: 999px; background: #5b4f60; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; letter-spacing: 0.02em; white-space: nowrap; }
.badge.ok { background: #1f7a45; } .badge.warn { background: #a8650f; } .badge.bad { background: #b0142a; } .badge.quiet { background: #5b4f60; } .badge.info { background: #2f5bd3; }
.badge[class*="cat-"] { background: var(--c, #5b4f60); }

/* =====================================================================================================================
   tables, tabs
   ===================================================================================================================== */
.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { position: sticky; top: 0; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--solid-2); color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ptable td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tr:hover td { background: rgba(255, 255, 255, 0.03); }
.ptable td.clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptable .empty { padding: 30px 12px; color: var(--dim); text-align: center; }
.ptable input.narrow { width: 70px; }
.ptable input[type=text] { width: 100%; max-width: none; }
/* the table of what each position can do: ticks, and the first column stays in view while the table scrolls sideways on a phone */
.ptable.matrix .yes { color: var(--good); font-weight: bold; }
.ptable.matrix td:first-child, .ptable.matrix th:first-child { position: sticky; left: 0; background: var(--solid); z-index: 1; }
.ptable.matrix th:first-child { background: var(--solid-2); }
.ptable.matrix td:not(:first-child), .ptable.matrix th:not(:first-child) { text-align: center; }

.tabs, .lib-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.035); box-shadow: var(--glass-hi); }
.tabs a, .lib-tabs a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.tabs a:visited, .lib-tabs a:visited { color: var(--muted); }
.tabs a:hover, .lib-tabs a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.tabs a[aria-current="true"], .lib-tabs a.on { background: var(--wine); box-shadow: var(--glass-hi); color: #fff; }
.tabs a .soon { margin-left: 6px; color: var(--dim); font-size: 12px; font-weight: 500; }
.tabs a[aria-current="true"] .soon { color: rgba(255, 255, 255, 0.75); }
.fold summary { margin: 0 0 12px; color: var(--text); font-weight: 700; cursor: pointer; }

/* =====================================================================================================================
   forms (.pform), filters
   ===================================================================================================================== */
.pform { margin: 0; }
.pform label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pform label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 6px 16px 6px 0; color: var(--text); font-weight: 500; }
.pform .hint { margin: 4px 0 0; color: var(--dim); font-size: 13px; }
.pform input[type=text], .pform input[type=number], .pform input[type=search], .pform select, .pform textarea { width: 100%; max-width: 580px; }
.pform input[type=number] { max-width: 150px; }
.pform textarea { min-height: 100px; resize: vertical; }
.pform select[multiple] { min-height: 160px; }
.pform .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pform .pick { max-width: 580px; max-height: 240px; overflow: auto; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.28); }
.pform .pick label { display: flex; align-items: center; gap: 9px; margin: 4px 0; color: var(--text); font-weight: 500; }
.pform .pick label input { flex: none; }
.pform .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.stack > * + * { margin-top: 20px; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 6px; }
.pad { padding: 16px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.filters input[type=search], .filters input[type=text] { min-width: 240px; }

/* =====================================================================================================================
   ticket transcript
   ===================================================================================================================== */
.transcript { max-height: 640px; overflow: auto; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.22); }
.tmsg { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 7px 16px; }
.tmsg:hover { background: rgba(255, 255, 255, 0.03); }
.tmsg time { padding-top: 2px; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.tmsg .who { font-weight: 700; color: #fff; }
.tmsg .bot-tag { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.tmsg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsg .att { display: block; font-size: 13px; }
.tmsg .emb { margin: 4px 0; padding: 4px 12px; border-left: 3px solid var(--line-2); color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.tmsg .edited { color: var(--dim); font-size: 11px; }

/* =====================================================================================================================
   log viewer (Audit Logs, markup from ui/logs.js)
   ===================================================================================================================== */
.logs-app { display: block; }
.logbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.logbar input[type=search] { flex: 1 1 280px; min-width: 200px; font-size: 15px; }
.logbar .live { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); box-shadow: var(--glass-hi); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.logbar .live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.logbar .live.on .pulse { background: var(--good); box-shadow: 0 0 0 0 rgba(94, 224, 138, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(94, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 138, 0); } }
.logbar .live input { position: absolute; opacity: 0; pointer-events: none; }
.logbar .live:focus-within { outline: 2px solid #ffd27a; outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: 600 13px var(--ui); cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, 0.09); }
.chip .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #8f7c89); box-shadow: 0 0 8px var(--c, transparent); }
.chip .n { color: var(--dim); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { border-color: var(--c, #fff); background: var(--c, #5b4f60); color: #fff; }
.chip[aria-pressed="true"] .sw { background: #fff; }
.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.85); }
.chip.all[aria-pressed="true"] { --c: #5b4f60; }

.logstatus { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0 0 8px; color: var(--dim); font-size: 13px; }
.newbar { display: block; width: 100%; margin: 0 0 10px; padding: 10px; border: 0; border-radius: var(--radius-sm); background: var(--sunset); color: #1a0710; font: 700 14px var(--ui); cursor: pointer; }
.loglist { min-height: 140px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); }
.logday { position: sticky; top: 0; z-index: 2; padding: 7px 16px; border-bottom: 1px solid var(--line); background: var(--solid-2); color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
details.log { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
details.log.sev1 { border-left-color: #6aa6ff; }
details.log.sev2 { border-left-color: var(--warn); background: rgba(255, 193, 94, 0.05); }
details.log.sev3 { border-left-color: var(--bad); background: rgba(255, 97, 112, 0.06); }
details.log.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: rgba(255, 210, 122, 0.22); } }
details.log > summary { display: grid; grid-template-columns: 74px 118px 1fr 18px; align-items: baseline; gap: 10px; padding: 9px 14px 9px 12px; list-style: none; cursor: pointer; }
details.log > summary::-webkit-details-marker { display: none; }
details.log > summary:hover { background: rgba(255, 255, 255, 0.035); }
details.log > summary:focus-visible { outline: 2px solid #ffd27a; outline-offset: -2px; }
details.log .t { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
details.log .cat { justify-self: start; padding: 0 9px; border-radius: 999px; background: var(--c, #5b4f60); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 19px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
details.log .sum { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
details.log .sum .typ { margin-right: 8px; color: var(--dim); font-size: 12px; }
details.log .chev { color: var(--dim); font-size: 12px; text-align: center; transition: transform 0.12s; }
details.log[open] .chev { transform: rotate(90deg); }
details.log[open] > summary { background: rgba(255, 255, 255, 0.04); }
.cat-mod { --c: #d0243c; } .cat-audit { --c: #3b6ee8; } .cat-message { --c: #6b7280; } .cat-member { --c: #0f9488; }
.cat-voice { --c: #8b5cf6; } .cat-automod { --c: #e0581c; } .cat-ticket { --c: #1f9d4c; } .cat-giveaway { --c: #c08a0c; }
.cat-roles { --c: #db2777; } .cat-game { --c: #2e8b45; } .cat-panel { --c: #4b5563; } .cat-system { --c: #64748b; }
.logdetail { display: grid; gap: 12px; padding: 6px 18px 18px 100px; }
.logdetail .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; }
.logdetail .kv b, .logdetail .ba > div > b { display: block; color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.logdetail .kv span, .logdetail .kv code { overflow-wrap: anywhere; }
.logdetail .kv .idrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.logdetail code { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.logdetail pre { max-height: 260px; margin: 0; padding: 10px 12px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-xs); background: rgba(0, 0, 0, 0.35); font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.logdetail .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logdetail .ba .before pre { border-color: rgba(255, 97, 112, 0.35); background: rgba(255, 97, 112, 0.08); }
.logdetail .ba .after pre { border-color: rgba(94, 224, 138, 0.35); background: rgba(94, 224, 138, 0.07); }
.logdetail table { border-collapse: collapse; font-size: 13px; }
.logdetail td, .logdetail th { padding: 3px 12px 3px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.logdetail .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.moreRow { display: flex; justify-content: center; padding: 16px; }
.logempty { padding: 46px 16px; color: var(--dim); text-align: center; }
.logempty b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }

/* =====================================================================================================================
   "Claude activity" (markup from logs-view.js)
   ===================================================================================================================== */
.claude-act .good, .claude-act .st.good { color: var(--good); } .claude-act .bad, .claude-act .st.bad { color: var(--bad); } .claude-act .warn { color: var(--warn); }
.claude-act .err { margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(255, 97, 112, 0.45); border-radius: var(--radius-sm); background: var(--bad-bg); color: #ffd0d5; }
.claude-act .gap { height: 18px; }
.claude-act .dim { color: var(--dim); }
.claude-act .filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.claude-act .filters label { display: flex; flex-direction: column; gap: 5px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.claude-act .filters label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.claude-act .filters .row { display: flex; gap: 8px; margin: 0; }
.claude-act .pager { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.claude-act table.log { width: 100%; overflow: hidden; border-collapse: collapse; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.claude-act table.log th { padding: 10px 12px; border-bottom: 1px solid var(--line-2); background: var(--solid-2); color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.claude-act table.log td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.claude-act table.log tr.failed td { background: rgba(255, 97, 112, 0.07); }
.claude-act td.t { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.claude-act td.s { max-width: 190px; font-size: 13px; overflow-wrap: anywhere; }
.claude-act td.w { overflow-wrap: anywhere; } .claude-act td.w small { display: block; color: var(--dim); font-size: 12px; }
.claude-act td.r { white-space: nowrap; }
.claude-act .pill { display: inline-block; padding: 0 9px; border-radius: 999px; background: #5b4f60; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; white-space: nowrap; }
.claude-act .pill.k-prompt { background: #2f5bd3; } .claude-act .pill.k-reply { background: #1f9d4c; } .claude-act .pill.k-tool { background: #5b4f60; } .claude-act .pill.k-note { background: #a8650f; }
.claude-act .st { font-size: 12px; font-weight: 800; } .claude-act .st.dim { color: var(--dim); font-weight: 500; }

/* =====================================================================================================================
   shared bits for the library, server logs and characters pages
   ===================================================================================================================== */
.lib-filter, .sl-form, .ch-form, .lib-jumps, .cl-pick { border-radius: var(--radius-sm); }
.lib-copy, .sl-copy, .ch-copy { min-height: 24px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text); font: 600 11px var(--ui); cursor: pointer; }
.lib-copy:hover, .sl-copy:hover, .ch-copy:hover { background: rgba(255, 255, 255, 0.14); }
.lib-table, .sl-table, .ch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lib-table th, .lib-table td, .sl-table th, .sl-table td, .ch-table th, .ch-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lib-table thead th, .sl-table thead th, .ch-table thead th { position: sticky; top: 0; z-index: 1; background: var(--solid-2); color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lib-table tr:hover td, .sl-table tr:hover td, .ch-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.lib-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.lib code, .sl code, .ch code { font-family: var(--mono); }

/* ws95-library:start (Server library page, panel-library.js) */
.lib-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.lib-filter input[type=text] { flex: 1 1 220px; max-width: 380px; }
.lib-sr { position: absolute; left: -9999px; }
.lib-table tr[hidden] { display: none; }
.lib-name b { display: block; word-break: break-all; color: #fff; }
.lib-sub { display: block; color: var(--dim); font-size: 11px; }
.lib-ver { color: var(--muted); font-size: 12px; }
.lib-note { margin-top: 4px; color: var(--warn); font-size: 12px; }
.lib-st { display: inline-block; padding: 1px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lib-st.on { border-color: rgba(94, 224, 138, 0.45); background: var(--good-bg); color: var(--good); }
.lib-st.off { background: rgba(255, 255, 255, 0.05); color: var(--dim); }
.lib-code { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lib-code code, .lib-args, .lib-about-b code { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, 0.35); color: #ffd2a1; font: 600 13px var(--mono); }
.lib-cmds td:first-child { white-space: nowrap; }
.lib-args { display: inline-block; white-space: pre-wrap; word-break: break-word; }
.lib-arghelp { margin: 6px 0 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.lib-arghelp li { margin: 2px 0; }
.lib-arghelp b { font-family: var(--mono); color: var(--text); }
.lib-opt { display: inline-block; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--dim); font-size: 10px; text-transform: uppercase; }
.lib-key { display: block; margin-top: 4px; color: var(--info); font-size: 11px; font-weight: 700; }
.lib-legend { margin: 6px 0; border-collapse: collapse; font-size: 13px; }
.lib-legend td { padding: 4px 10px 4px 0; vertical-align: top; }
.lib-legend td:first-child { white-space: nowrap; }
.lib-legend .lib-key { display: inline; margin: 0; }
@media (max-width: 700px) { .lib-cmds td:first-child { white-space: normal; } }
.lib-about { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); }
.lib-about > summary { padding: 11px 16px; color: #fff; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, 0.03); }
.lib-about-b { padding: 6px 16px 12px; font-size: 14px; line-height: 1.55; }
.lib-about-b p { margin: 8px 0; }
.lib-about-b ul { margin: 6px 0; padding: 0; list-style: none; }
.lib-about-b li { margin: 5px 0; }
.lib-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 16px; }
.lib-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); box-shadow: var(--glass-hi); }
.lib-stat b { display: block; font: 400 28px/1.1 var(--display); letter-spacing: 0.02em; }
.lib-stat span { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lib-stat.good b { color: var(--good); } .lib-stat.warn b { color: var(--warn); }
.lib-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.lib-jumps > span { margin-right: 4px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lib-jump { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 13px; text-decoration: none; }
.lib-jump:visited { color: var(--text); }
.lib-jump i { margin-left: 4px; color: var(--dim); font-size: 11px; font-style: normal; }
.lib-jump:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lib-jump[hidden] { display: none; }
.lib-jump.on { border-color: rgba(255, 120, 135, 0.45); background: var(--wine); color: #fff; font-weight: 700; }
.lib-jump.on i { color: rgba(255, 255, 255, 0.75); }
.lib-cat { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(21, 10, 24, 0.45); }
.lib-cat[hidden], .res[hidden] { display: none; }
.lib-cat > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(176, 24, 44, 0.32), rgba(94, 0, 14, 0.2)); color: #fff; list-style: none; cursor: pointer; }
.lib-cat > summary::-webkit-details-marker { display: none; }
.lib-cat > summary::before { content: "\25B8"; margin-right: 6px; font-size: 12px; }
.lib-cat[open] > summary::before { content: "\25BE"; }
.lib-cat-t { flex: 1 1 auto; font: 400 18px/1.1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.lib-cat-n { color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.lib-parked > summary { background: rgba(255, 255, 255, 0.05); }
.lib-cat-d { margin: 0; padding: 12px 16px 4px; color: var(--muted); font-size: 14px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; padding: 12px; }
.res { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--dim); border-radius: var(--radius-xs); background: rgba(255, 255, 255, 0.03); }
.res.is-on { border-left-color: var(--good); }
.res.is-parked { border-left-color: #5b4f60; background: rgba(255, 255, 255, 0.015); }
.res.flash { outline: 2px solid var(--warn); }
.res-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res-name { color: #fff; font-size: 14px; word-break: break-all; }
.res-what { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.res-note { margin: 0; padding: 7px 10px; border: 1px solid rgba(255, 193, 94, 0.4); border-radius: var(--radius-xs); background: var(--warn-bg); color: #ffe7c0; font-size: 13px; line-height: 1.45; }
.res-note b { margin-right: 4px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.res-meta { display: grid; gap: 6px; margin: 0; }
.res-meta > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: baseline; gap: 6px; }
.res-meta dt { margin: 0; color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.res-meta dd { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; font-size: 13px; }
.res-chip { display: inline-block; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 12px; line-height: 20px; text-decoration: none; word-break: break-word; }
a.res-chip:visited { color: var(--text); }
a.res-chip.on { border-color: rgba(94, 224, 138, 0.45); background: var(--good-bg); color: var(--good); }
a.res-chip.off { color: var(--dim); }
a.res-chip:hover { text-decoration: underline; }
.res-chip.req { border-style: dashed; background: transparent; color: var(--muted); }
.res-foot { margin: auto 0 0; padding-top: 6px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
@media (max-width: 600px) { .res-grid { grid-template-columns: 1fr; } .res-meta > div { grid-template-columns: 1fr; } }
/* clothing tab: the keep sheet (panel-clothing.js, ui/clothing.js) */
.cl-pick { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.cl-gender, .cl-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-h2sub { font: 500 13px var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cl-bulk { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cl-table td { vertical-align: middle; }
.cl-id code { font-size: 18px; color: #ffd2a1; }
.cl-id .lib-copy { width: auto; min-width: 0; }
.cl-pic img { display: block; width: 190px; max-width: 44vw; height: auto; border-radius: var(--radius-xs); background: #3a3440; }
.cl-info b { display: block; color: #fff; }
.cl-choice { white-space: nowrap; }
.cl-opt { display: block; margin: 3px 0; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; color: var(--text); cursor: pointer; }
.cl-opt input { margin: 0 6px 0 0; vertical-align: middle; }
.cl-is-keep .cl-choice .cl-keep { border-color: rgba(94, 224, 138, 0.5); background: var(--good-bg); font-weight: 700; }
.cl-is-remove .cl-choice .cl-remove { border-color: rgba(255, 97, 112, 0.5); background: var(--bad-bg); font-weight: 700; }
.cl-clear { color: var(--dim); font-size: 12px; }
.cl-is-keep td:first-child { border-left: 4px solid var(--good); }
.cl-is-remove td:first-child { border-left: 4px solid var(--bad); }
.cl-is-open td:first-child { border-left: 4px solid var(--line-2); }
.cl-is-remove .cl-pic img { opacity: 0.5; }
.cl-saved { display: block; min-height: 15px; color: var(--good); font-size: 11px; }
.cl-saved.bad { color: var(--bad); font-weight: 700; white-space: normal; }
.cl-note input { width: 100%; min-width: 140px; }
.cl-list { width: 100%; font: 13px var(--mono); }
@media (max-width: 700px) { .cl-table th:nth-child(5), .cl-table td:nth-child(5) { min-width: 120px; } .cl-id code { font-size: 15px; } }
/* ws95-library:end */

/* ws95-serverlogs:start (Server logs page, panel-serverlogs.js) */
.sl-form, .ch-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; gap: 10px 14px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.sl-form .sl-f1, .ch-form .ch-f1 { grid-column: 1 / -1; }
.sl-form input[type=text], .sl-form input[type=date], .sl-form select, .ch-form input[type=text], .ch-form select { width: 100%; max-width: none; }
.sl-lbl, .ch-lbl { display: block; margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sl-fb, .ch-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; grid-column: 1 / -1; }
.sl-sum { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.sl-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; gap: 16px; }
.sl-cats { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 3px; }
.sl-cat { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 13px; text-decoration: none; }
.sl-cat:visited { color: var(--muted); }
.sl-cat:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sl-cat.on { border-color: rgba(255, 120, 135, 0.4); background: var(--wine); color: #fff; }
.sl-cat.zero { color: var(--dim); }
.sl-cat.on.zero { color: rgba(255, 255, 255, 0.75); }
.sl-cat b { font-weight: 700; }
.sl-soon { margin-left: 4px; padding: 0 5px; border: 1px solid rgba(255, 193, 94, 0.5); border-radius: 4px; color: var(--warn); font-size: 10px; font-style: normal; }
.sl-cat.on .sl-soon { border-color: rgba(255, 233, 168, 0.7); color: #ffe9a8; }
.sl-main { min-width: 0; }
.sl-grp h2 .sl-n, .ch-n { float: right; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text); font: 600 12px/20px var(--ui); letter-spacing: 0; }
.sl-h0 { border-left: 4px solid #3b6ee8; } .sl-h1 { border-left: 4px solid #0f9488; } .sl-h2 { border-left: 4px solid #d0243c; } .sl-h3 { border-left: 4px solid #c08a0c; }
.sl-h4 { border-left: 4px solid #8b5cf6; } .sl-h5 { border-left: 4px solid #2e8b45; } .sl-h6 { border-left: 4px solid #e0581c; } .sl-h7 { border-left: 4px solid #64748b; }
.sl-t { color: var(--dim); font-size: 12px; white-space: nowrap; }
.sl-e { min-width: 110px; }
.sl-m { min-width: 200px; word-break: break-word; }
.sl-name { color: #fff; font-weight: 700; }
.sl-cid { font-family: var(--mono); }
.sl-m details { margin-top: 4px; }
.sl-m summary { color: var(--link); font-size: 12px; cursor: pointer; }
.sl-det { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: rgba(0, 0, 0, 0.3); font-size: 12px; }
.sl-dg { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin-bottom: 8px; }
.sl-dg span:nth-child(odd) { color: var(--dim); }
.sl-dw { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 6px; }
.sl-idw, .ch-idw { display: inline-flex; align-items: center; gap: 4px; margin: 2px 6px 2px 0; padding: 2px 4px 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
.sl-id { color: var(--text); font-family: var(--mono); font-size: 12px; text-decoration: none; }
.sl-kv, .ch-kv { margin: 4px 0 8px; border-collapse: collapse; font-size: 12.5px; }
.sl-kv th, .sl-kv td, .ch-kv th, .ch-kv td { padding: 3px 16px 3px 0; border: 0; text-align: left; vertical-align: top; }
.sl-kv th, .ch-kv th { color: var(--dim); font-weight: 500; white-space: nowrap; }
.sl-card .sl-ids { margin: 6px 0; }
.sl-chars ul { margin: 4px 0 8px 18px; padding: 0; }
.sl-pick { margin: 6px 0 0 18px; padding: 0; }
.sl-pager, .ch-pager { margin: 12px 0; }
.sl-empty, .ch-empty { padding: 12px 0; color: var(--muted); }
@media (max-width: 860px) { .sl-layout { grid-template-columns: minmax(0, 1fr); } .sl-cats { position: static; flex-direction: row; flex-wrap: wrap; } .sl-cat { flex: 0 1 auto; } }
/* ws95-serverlogs:end */

/* ws95-characters:start (Characters page, panel-characters.js) */
.ch-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; grid-column: 1 / -1; font-size: 13px; }
.ch-sum, .ch-found { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.ch-c1 { min-width: 170px; }
.ch-name, .ch-dc { color: #fff; font-weight: 700; }
.ch-id, .ch code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.ch-idt { color: var(--dim); font-size: 12px; }
.ch-copy { margin-left: 4px; }
.ch-money { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.ch-money span b { font-variant-numeric: tabular-nums; color: #fff; }
.ch-st { white-space: nowrap; }
.ch-badge { display: inline-block; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 11px; font-weight: 700; vertical-align: middle; }
.ch-badge.on { border-color: rgba(94, 224, 138, 0.45); background: var(--good-bg); color: var(--good); }
.ch-badge.warn { border-color: rgba(255, 193, 94, 0.45); background: var(--warn-bg); color: var(--warn); }
.ch-badge.bad { border-color: rgba(255, 97, 112, 0.5); background: var(--bad-bg); color: var(--bad); }
.ch-head { margin: 0 0 8px; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ch-back { margin: 0 0 12px; }
@media (max-width: 860px) { .ch-table thead th { position: static; } }
/* ws95-characters:end */

/* Claude / Management Notes */
.note .sub { margin: 0 0 8px; }
.note p { margin: 0 0 6px; }
.note-claude > h2 { background: linear-gradient(180deg, rgba(124, 58, 237, 0.42), rgba(76, 29, 149, 0.3)); color: #fff; }
.note-done { opacity: 0.6; }

/* =====================================================================================================================
   phones and narrow windows: the menu becomes a scrolling strip under the top bar
   ===================================================================================================================== */
@media (max-width: 1100px) {
  .titlebar .tb-title { display: none; }
}
@media (max-width: 860px) {
  .page:has(> .appwin) { padding: 10px 10px 22px; }
  .titlebar { top: 6px; border-radius: 20px; }
  .panel-doc.has-nav { display: block; min-height: 0; }
  .panel-doc.has-nav > .pnav { position: static; flex-direction: row; gap: 4px; max-height: none; margin: 0 0 12px; padding: 6px; overflow-x: auto; border-radius: 16px; white-space: nowrap; }
  .panel-doc.has-nav > .pnav .nav-group { display: none; }
  .panel-doc.has-nav > .pnav a { flex: none; min-height: 40px; }
  .panel-doc.has-nav > .pmain { padding: 18px 16px 22px; }
  .pcards { grid-template-columns: 1fr; }
  details.log > summary { grid-template-columns: 62px 1fr 14px; }
  details.log .cat { grid-column: 2; grid-row: 1; }
  details.log .sum { grid-column: 1 / -1; grid-row: 2; }
  details.log .chev { grid-column: 3; grid-row: 1; }
  .logdetail { padding: 4px 12px 14px; }
  .logdetail .ba { grid-template-columns: 1fr; }
  .tmsg { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .titlebar .tb-app span, .titlebar .tb-name { display: none; }
  .tb-btn { padding: 0 12px; }
  .statusbar .sb-grow { display: none; }
  .ov-hello { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .logbar .live.on .pulse, details.log.fresh { animation: none; } .button, .al-btn, .tb-btn, .pcard { transition: none; } }

/* ---------- Smooth feel (2026-11-09) ---------- */
/* Changing page: the top bar and the menu stay still, the active menu pill glides, only the page itself fades up. Browsers without this just change page. */
@view-transition { navigation: auto; }
.titlebar { view-transition-name: pb-bar; }
.panel-doc.has-nav > .pnav { view-transition-name: pb-side; }
@media (min-width: 1101px) { .panel-doc.has-nav > .pnav a[aria-current="page"] { view-transition-name: pb-active; } }
::view-transition-old(root) { animation: 140ms cubic-bezier(0.4, 0, 0.2, 1) both vt-out; }
::view-transition-new(root) { animation: 300ms cubic-bezier(0.22, 1, 0.36, 1) both vt-in; }
::view-transition-group(pb-active) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes vt-fade { from { opacity: 0; } }
/* anything without its own transition eases instead of snapping */
a, button, input, select, textarea { transition: color 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1), border-color 160ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation-name: vt-fade; } ::view-transition-group(pb-active) { animation-duration: 0ms; } }
