:root { --panel:#fff; --panel-strong:#fff; --line:#e4e8ef; --text:#1d2939; --muted:#667085; --brand:#3064f5; --brand-2:#344054; --danger:#c93645; --ok:#008969; --shadow:0 1px 3px #18223005; }
* { box-sizing:border-box; }
body { margin:0; color:var(--text); background:#f6f8fb; font:13px/1.55 "Segoe UI","Microsoft YaHei",sans-serif; }
button,input,select,textarea { font:inherit; }
button { border:1px solid transparent; border-radius:6px; padding:7px 12px; background:var(--brand); color:white; cursor:pointer; transition:background .15s; }
button:hover { filter:brightness(.96); }
button.secondary,button.ghost { background:#fff; color:var(--brand-2); border-color:#d9dfe8; }
button.warn { color:var(--danger); background:#fff2f3; border-color:#f4ccd1; }
button.small { padding:5px 9px; font-size:12px; }
button:disabled { opacity:.5; cursor:not-allowed; }
input,select,textarea { width:100%; min-width:0; padding:7px 10px; border:1px solid #d6dde7; border-radius:6px; color:var(--text); background:white; }
input[type=checkbox] { width:15px; height:15px; accent-color:var(--brand); }
input[type=file] { padding:6px; }
input[readonly] { background:#f8fafc; color:var(--muted); }
textarea { min-height:100px; resize:vertical; }
:focus-visible { outline:3px solid #b5caff; outline-offset:2px; }
.local-website-link { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding:6px 12px; border:1px solid #cbd8fa; border-radius:6px; color:var(--brand); background:#fff; text-decoration:none; font-weight:600; }.local-website-link:hover { background:#edf3ff; }
@media(max-width:760px) { .identity-bar { flex-wrap:wrap; padding-block:12px; }.identity-bar .right { margin-left:auto; }.identity-bar .right button { white-space:nowrap; } }
.hidden,[hidden] { display:none !important; }
.shell { margin-left:208px; padding:0 26px 32px; max-width:1800px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:208px; padding:24px 14px 16px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:22px; }
.workspace-brand { display:flex; gap:10px; align-items:center; padding:0 8px; }
.brand-mark,.avatar { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border-radius:8px; color:#fff; background:var(--brand); font-weight:700; }
.workspace-brand strong { display:block; font-size:16px; }.workspace-brand small { color:var(--muted); font-size:11px; }
.nav-group { display:grid; gap:4px; }.nav-label { color:#7b8595; font-size:11px; padding:0 12px 7px; }
.nav-button { display:flex; align-items:center; gap:10px; width:100%; background:transparent; color:#475467; text-align:left; padding:10px 12px; border-radius:6px; }
.nav-button svg { width:17px; height:17px; flex-shrink:0; }
.nav-button[aria-current=page] { color:var(--brand); background:#edf3ff; font-weight:600; }
.sidebar-footer { margin-top:auto; border-top:1px solid var(--line); padding:16px 8px 0; color:var(--muted); font-size:11px; }
.identity-bar { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); margin-bottom:24px; }
.identity-bar .left,.identity-bar .right { display:flex; align-items:center; gap:10px; }.identity-bar .name { font-weight:600; }.identity-bar .sub { color:var(--muted); font-size:11px; }
.workspace-heading { margin-bottom:18px; }.workspace-heading h1 { font-size:23px; font-weight:650; margin:0 0 4px; }.workspace-heading p { margin:0; color:var(--muted); }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.stat { padding:14px 18px; background:white; border:1px solid var(--line); border-radius:8px; }.stat-label { color:var(--muted); font-size:12px; }.stat-value { margin-top:4px; font-size:25px; font-weight:650; font-variant-numeric:tabular-nums; }
.panel,.table-card { border:1px solid var(--line); border-radius:8px; background:white; box-shadow:var(--shadow); padding:18px; min-width:0; }
h2 { margin:0; font-size:15px; font-weight:650; } p { color:var(--muted); }
.section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:14px; }.meta { color:var(--muted); font-size:12px; margin-top:5px; overflow-wrap:anywhere; }
.toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.toolbar select { width:auto; min-width:180px; }
.field-grid { display:grid; gap:12px; }.field { display:grid; gap:5px; }.field label { font-size:12px; color:#475467; }
.users-layout { display:flex; flex-direction:column; gap:12px; }.users-layout>.table-wrap { width:100%; }.create-account { order:-1; width:100%; border:1px solid var(--line); border-radius:6px; background:#fafbfe; padding:10px 12px; }.create-account summary { cursor:pointer; color:var(--brand); font-weight:600; }.create-account summary span { margin-left:12px; color:var(--muted); font-size:12px; font-weight:400; }.create-account .field-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; }
.status-box { margin:12px 0; padding:9px 12px; border:1px solid #e4eaf3; border-radius:6px; color:#475467; background:#f8fafc; overflow-wrap:anywhere; }
.status-box.error { color:var(--danger); background:#fff2f3; border-color:#f4ccd1; }.status-box.success { color:#08765c; background:#f0faf6; border-color:#d6eee3; }
.table-wrap { overflow:auto; max-height:62vh; border:1px solid var(--line); border-radius:6px; }
table { border-collapse:separate; border-spacing:0; width:100%; min-width:740px; background:#fff; font-size:12px; }
th,td { padding:10px 12px; text-align:left; border-bottom:1px solid #edf0f5; vertical-align:top; }th { position:sticky; top:0; z-index:1; background:#f8fafc; color:#667085; font-weight:500; white-space:nowrap; }
tr:last-child td { border-bottom:0; }tbody tr:hover { background:#fafcff; }td small { display:block; margin-top:3px; color:var(--muted); }td strong { font-weight:600; }
.badge,.pill { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:5px; font-size:11px; background:#f1f4f8; color:#475467; }
.badge { white-space:nowrap; }.badge.ok { color:#08765c; background:#eaf8f1; }.badge.warn { color:var(--danger); background:#fff0f2; }.badge.neutral { color:#475467; background:#f1f4f8; }
.inline-actions { display:flex; flex-wrap:wrap; gap:5px; max-width:285px; }.inline-actions input { width:185px; }.inline-actions button { font-size:11px; padding:5px 8px; }
.empty { text-align:center; padding:28px 12px; color:var(--muted); }.upload-summary { border:1px dashed #b9c9e6; background:#f8faff; border-radius:6px; padding:14px; color:var(--muted); overflow-wrap:anywhere; }
.checkbox-row { display:flex; gap:10px; flex-wrap:wrap; }.checkbox-pill { cursor:pointer; }.table-link { color:var(--brand); overflow-wrap:anywhere; }
.list-filter { display:flex; align-items:center; gap:12px; margin:12px 0; }.list-filter input { max-width:340px; }.list-filter span { color:var(--muted); font-size:12px; }
#version-form { grid-template-columns:1fr 1fr; margin-bottom:18px; }#version-form .upload-summary,#version-form .field:has(textarea),#version-form>.toolbar,#version-form>.checkbox-row { grid-column:1/-1; }
body:not(.authenticated) .shell { margin:0 auto; padding:0 20px; max-width:920px; }body:not(.authenticated) .sidebar,body:not(.authenticated) .dashboard,body:not(.authenticated) .workspace-heading { display:none; }
.hero { min-height:100vh; display:grid; grid-template-columns:1fr 370px; gap:46px; align-items:center; }.hero-card h1 { font-size:30px; line-height:1.35; margin:12px 0; letter-spacing:-1px; }.hero-card p { line-height:1.9; }.hero-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }.hero>.panel { padding:28px; }.hero h2 { margin-bottom:20px; }body.authenticated .hero { display:none; }
@media(max-width:1100px) { .create-account .field-grid { grid-template-columns:1fr 1fr; }.shell { padding:0 18px 24px; }.identity-api { display:none; } }
@media(max-width:760px) { .sidebar { position:static; width:100%; padding:12px; gap:14px; border-right:0; border-bottom:1px solid var(--line); }.sidebar nav { display:flex; gap:12px; overflow:auto; }.nav-group { display:flex; }.nav-label,.sidebar-footer { display:none; }.nav-button { white-space:nowrap; padding:8px 10px; }.shell { margin:0; padding:0 12px 24px; }.identity-bar { min-height:60px; margin-bottom:16px; }.identity-bar .right .pill { display:none; }.stats { gap:8px; grid-template-columns:repeat(2,1fr); }.stat { padding:10px 14px; }.panel,.table-card { padding:14px; }.hero { grid-template-columns:1fr; gap:20px; padding:32px 0; min-height:100vh; }.hero-card h1 { font-size:25px; }.hero-pills { margin-top:12px; }#version-form,.create-account .field-grid { grid-template-columns:1fr; }.list-filter { flex-wrap:wrap; }.toolbar select { max-width:100%; } }
@media(prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
@media(max-width:760px) { .sidebar .nav-group { margin-top:0 !important; flex-shrink:0; }.nav-button { flex-shrink:0; }.create-account summary span { display:block; margin:4px 0 0 16px; } }
