:root { color:#262626; background:#f6f6f6; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Microsoft Yahei",sans-serif; font-size:15px; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem max(1rem,4vw); background:white; border-bottom:1px solid #e4e4e4; }
h1 { font-size:1.33rem; margin:0; }
h1 span { font-size:.9rem; font-weight:500; color:#5e5e5e; margin-left:.45rem; }
h2 { margin:0 0 1rem; font-size:1.25rem; }
main { padding:1.5rem max(1rem,4vw); }
button,input,select,textarea { font:inherit; }
button { background:white; padding:.45rem .75rem; color:#252525; border:1px solid #d9d9d9; border-radius:5px; cursor:pointer; }
button:hover { background:#fff2f4; }
button:disabled { opacity:.5; cursor:wait; }
.primary { background:#cf1836; color:#fff; border-color:#cf1836; }
.primary:hover { background:#ad102b; }
input,textarea,select { padding:.55rem .6rem; border:1px solid #c7c7c7; background:white; border-radius:5px; min-width:0; }
label { display:flex; flex-direction:column; gap:.35rem; font-weight:550; }
textarea { width:100%; min-height:7rem; }
.login { display:grid; gap:1rem; background:white; width:min(100%,380px); margin:8vh auto 1rem; padding:1.6rem; border:1px solid #e2e2e2; border-radius:8px; }
#console { display:grid; grid-template-columns:155px minmax(0,1fr); gap:1.25rem; }
nav, #workspace { border:1px solid #e4e4e4; background:white; border-radius:7px; padding:1rem; min-width:0; }
nav { align-self:start; display:grid; gap:.4rem; }
nav button { text-align:left; border-color:transparent; }
nav button[aria-current="page"] { color:#b31531; background:#fff0f3; font-weight:650; }
#filters, #actions, .buttons { display:flex; gap:.55rem; align-items:end; flex-wrap:wrap; margin-bottom:1rem; }
#filters:empty, #actions:empty { display:none; }
#message,#dialog-error { background:#fff1f3; border:1px solid #f8c6ce; color:#8e1830; padding:.65rem .8rem; border-radius:5px; }
.table-scroll { overflow:auto; margin-bottom:1rem; }
table { border-collapse:collapse; width:100%; text-align:left; }
th,td { padding:.7rem .6rem; border-bottom:1px solid #ececec; min-width:90px; max-width:290px; overflow-wrap:anywhere; vertical-align:top; }
th { color:#595959; font-weight:650; background:#fafafa; }
td button { display:inline-block; margin:.14rem; }
pre { background:#fafafa; border:1px solid #eee; padding:.75rem; white-space:pre-wrap; overflow-wrap:anywhere; }
dialog { width:min(590px,calc(100vw - 2rem)); max-height:85vh; padding:1.35rem; border:1px solid #ddd; border-radius:8px; }
dialog::backdrop { background:#0005; }
#fields { display:grid; gap:.8rem; margin-bottom:1rem; }
@media(max-width:760px) { #console { grid-template-columns:1fr; } nav { display:flex; flex-wrap:wrap; } }

