:root { color-scheme: dark; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #e6eaf7; background: #0b1020; --muted: #9ba7c2; --line: #29324c; --accent: #a99bff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 26px; letter-spacing: -.5px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
button, input, select { font: inherit; }
button { padding: 10px 15px; border: 1px solid #384360; background: #202940; color: #edf0fc; border-radius: 8px; cursor: pointer; }
button:hover { background: #303b58; } button:disabled { cursor: wait; opacity: .55; }
button.primary { background: #6554cf; border-color: #8270ee; } button.primary:hover { background: #7664dd; }
button.danger { color: #ffb4c1; border-color: #714156; }
button:focus-visible, input:focus-visible, select:focus-visible, .table-scroll:focus-visible { outline: 2px solid #b2a4ff; outline-offset: 3px; }
input, select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #384360; border-radius: 8px; background: #11192b; color: #edf0fc; }
input:disabled { opacity: .7; }
label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 600; }
small, .muted, .footnote { color: var(--muted); line-height: 1.65; } small { display: block; margin-top: 6px; font-size: 12px; }
.muted { font-size: 13px; } .eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: radial-gradient(ellipse at 50% 0%, #27204d 0, #10172a 42%, #0b1020 78%); }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid #363459; border-radius: 18px; background: #151d30; box-shadow: 0 20px 80px #0005; }
.brand-icon { margin-bottom: 22px; } .login-card h1 { margin-bottom: 12px; } .login-card button { width: 100%; } .footnote { font-size: 12px; margin: 22px 0 0; }
.workspace { display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #12192b; border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; gap: 35px; }
.brand { display: flex; align-items: center; gap: 10px; } .brand strong { font-size: 18px; } .brand strong span { color: var(--accent); } .brand small { margin-top: 2px; }
nav { display: grid; gap: 8px; } nav button { text-align: left; border-color: transparent; background: transparent; }
nav button[aria-current="page"] { background: #2c254e; border-color: #4f417a; color: #d3caff; }
.admin-profile { margin-top: auto; display: grid; gap: 10px; word-break: break-word; }
main { padding: 32px; min-width: 0; max-width: 1740px; width: 100%; margin: 0 auto; }
.page-header, .section-heading, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; } .page-header h1 { margin-bottom: 0; }
.badge { font-size: 12px; color: #c0b5fa; border: 1px solid #4c4271; border-radius: 20px; padding: 7px 12px; white-space: nowrap; }
.section-heading { margin: 22px 0 18px; } .section-heading h2 { margin-bottom: 6px; } .section-heading p { margin-bottom: 0; }
.accounts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 12px; background: #151d30; padding: 20px; min-width: 0; }
.search-field { flex: 1; max-width: 340px; } .search-field label { margin-top: 0; } .toolbar { align-items: end; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; } #userTable { min-width: 650px; } #auditTable { min-width: 750px; }
th { color: var(--muted); font-size: 12px; text-align: left; white-space: nowrap; font-weight: 500; } th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
td { max-width: 250px; overflow-wrap: anywhere; line-height: 1.5; } td button { padding: 6px 11px; white-space: nowrap; }
.status-active { color: #8ee1b7; } .status-disabled { color: #ffb4c1; }
.editor h2 { margin-bottom: 4px; } .editor label:first-child { margin-top: 18px; } .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reset-panel { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 22px; } .reset-panel h3 { margin-bottom: 8px; }
.message { color: #c3b5ff; font-size: 13px; line-height: 1.6; min-height: 20px; margin: 14px 0; overflow-wrap: anywhere; } .message.error { color: #ffb4c1; }
#accountConfirmation { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 24px; border: 1px solid #4c4271; border-radius: 12px; background: #151d30; color: #e6eaf7; }
#accountConfirmation::backdrop { background: #050810bb; }
#confirmationMessage { line-height: 1.7; overflow-wrap: anywhere; }
#accountConfirmation .form-actions { justify-content: flex-end; margin-top: 24px; }
@media (max-width: 1200px) { .accounts-layout { grid-template-columns: minmax(0, 1fr); } .editor { max-width: 650px; } }
@media (max-width: 760px) { .workspace { grid-template-columns: minmax(0, 1fr); } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); gap: 18px; padding: 18px; } nav { grid-template-columns: 1fr 1fr; } .admin-profile { display: flex; align-items: center; flex-wrap: wrap; } .admin-profile small { margin: 0; } .admin-profile button { margin-left: auto; } main { padding: 20px 14px; } .page-header { align-items: start; } .page-header h1 { font-size: 22px; } .badge { display: none; } .card { padding: 15px; } .login-card { padding: 26px; } .toolbar, .section-heading { flex-wrap: wrap; } }
