:root { color-scheme: light; --bg:#f2f2f7; --surface:#fff; --ink:#1c1c1e; --muted:#8e8e93; --line:#e5e5ea; --red:#ff3b30; --blue:#007aff; --green:#34c759; --orange:#ff9500; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans SC",sans-serif; }
button, input, select { font: inherit; }
button { border:0; border-radius:12px; padding:11px 16px; background:var(--ink); color:white; cursor:pointer; }
button:hover { opacity:.88; }
button.ghost { background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.hidden { display:none !important; }
.shell { min-height:100vh; padding:28px; }
.login-card { width:min(420px,100%); margin:12vh auto; background:var(--surface); border-radius:28px; padding:34px; box-shadow:0 22px 70px rgba(0,0,0,.08); }
.brand-mark { width:56px; height:56px; display:grid; place-items:center; border-radius:18px; background:var(--red); color:#fff; font-weight:800; font-size:20px; }
.eyebrow { margin:18px 0 6px; font-size:11px; letter-spacing:.16em; color:var(--muted); font-weight:700; }
h1,h2,p { margin-top:0; }
h1 { font-size:32px; letter-spacing:-.04em; }
h2 { font-size:20px; }
.muted, label, th { color:var(--muted); }
form { display:grid; gap:14px; margin-top:26px; }
label { display:grid; gap:7px; font-size:13px; font-weight:600; }
input, select { width:100%; border:1px solid var(--line); background:#fafafa; border-radius:13px; padding:12px 14px; color:var(--ink); outline:none; }
input:focus, select:focus { border-color:var(--red); }
.error { color:var(--red); min-height:18px; font-size:13px; margin:0; }
.dashboard { max-width:1180px; margin:0 auto; }
.topbar,.panel-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:28px 0; }
.stats article { background:var(--surface); border-radius:22px; padding:22px; }
.stats span { display:block; color:var(--muted); font-size:13px; }
.stats strong { display:block; margin-top:10px; font-size:34px; letter-spacing:-.04em; }
.tabs { display:flex; gap:8px; margin-bottom:16px; }
.tab { background:var(--surface); color:var(--muted); }
.tab.active { background:var(--ink); color:#fff; }
.panel { background:var(--surface); border-radius:24px; padding:22px; margin-bottom:24px; }
.model-form { grid-template-columns:repeat(3,1fr); align-items:center; margin-bottom:24px; }
.check { display:flex; align-items:center; gap:8px; }
.check input { width:auto; }
.table-wrap { overflow:auto; margin-top:18px; }
table { width:100%; border-collapse:collapse; min-width:700px; }
th,td { text-align:left; font-size:13px; padding:13px 10px; border-bottom:1px solid var(--line); }
td { color:var(--ink); }
.status { display:inline-flex; padding:4px 9px; border-radius:99px; background:#eef8f0; color:var(--green); font-size:12px; }
.status.off { background:#f4f4f5; color:var(--muted); }
.actions { display:flex; gap:6px; }
.actions button { padding:7px 10px; font-size:12px; }
@media (max-width:760px) { .shell{padding:16px} .stats{grid-template-columns:1fr} .model-form{grid-template-columns:1fr} .topbar{align-items:flex-start} }
