:root {
  --ink: #17243b;
  --muted: #6b7688;
  --line: #e5e9ef;
  --surface: #ffffff;
  --background: #f4f6f8;
  --nav: #101827;
  --accent: #2f6fed;
  --accent-soft: #edf3ff;
  --success: #138a62;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 20% 10%, #e7efff, transparent 35%), #f7f8fa; }
.login-card { width: min(430px, 100%); padding: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(21, 34, 57, .09); }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: white; font-weight: 800; letter-spacing: -.04em; margin-bottom: 26px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; margin: 0; font-size: 13px; background: white; color: var(--nav); }
.eyebrow { margin: 0 0 8px; color: #8090a7; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.muted { color: var(--muted); line-height: 1.65; }
.stack { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #dce1e8; border-radius: 10px; color: var(--ink); background: white; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,237,.11); }
textarea { min-height: 96px; resize: vertical; }
button[type="submit"], #save-button, .primary { padding: 12px 18px; border-radius: 10px; background: var(--accent); color: white; font-weight: 750; }
.error { min-height: 18px; margin: 0; color: #bd2c38; font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; color: #c8d1df; background: var(--nav); display: flex; flex-direction: column; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 26px; color: white; font-weight: 760; }
nav { display: grid; gap: 5px; }
.nav-item { padding: 11px 13px; border-radius: 9px; text-align: left; background: transparent; color: #b9c4d5; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.09); }
.sidebar-footer { margin-top: auto; padding: 18px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; font-size: 12px; }
.text-button { padding: 0; color: #9fb0c8; background: none; text-align: left; }
.workspace { min-width: 0; }
.topbar { min-height: 102px; padding: 28px 38px 22px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid #cfe8dc; border-radius: 999px; color: var(--success); font-size: 12px; font-weight: 700; background: #f3fbf7; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #24a979; }
.content { padding: 34px 38px 60px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hero h3 { font-size: 24px; }
.hero p { max-width: 700px; margin: 7px 0 0; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric { padding: 20px; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 8px; font-size: 29px; letter-spacing: -.04em; }
.panel { margin-top: 18px; overflow: hidden; }
.panel-head { min-height: 62px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
th { color: #6b7688; background: #fafbfc; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 750; }
.empty { padding: 52px 24px; text-align: center; color: var(--muted); }
.secondary, .icon-button { background: #eef1f5; color: var(--ink); }
.secondary { padding: 11px 16px; border-radius: 10px; }
.icon-button { width: 34px; height: 34px; border-radius: 9px; font-size: 22px; }
dialog { width: min(580px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 32px 90px rgba(15,25,40,.24); }
dialog::backdrop { background: rgba(10,18,31,.45); backdrop-filter: blur(4px); }
.modal-card { padding: 27px; }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-actions { margin-top: 24px; justify-content: flex-end; }
.json-preview { max-width: 520px; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 960px) { .app-shell { grid-template-columns: 82px 1fr; } .sidebar-brand span:last-child, .nav-item { font-size: 0; } .nav-item::first-letter { font-size: 15px; } .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; height: auto; } nav { grid-template-columns: repeat(3, 1fr); } .nav-item { font-size: 11px; text-align: center; } .sidebar-footer { display: none; } .topbar, .content { padding-left: 20px; padding-right: 20px; } .metrics { grid-template-columns: 1fr 1fr; } .hero { align-items: stretch; flex-direction: column; } }

