:root{font:16px "Segoe UI",sans-serif;color:#142451;background:#ecf2ff;--purple:#6728bf;--blue:#1a52b0;--stroke:#c4d3f3}
*{box-sizing:border-box}
body{margin:0}
body>header{color:#fff;background:linear-gradient(110deg,#361888,#2057bb 80%,#0b789e);padding:16px max(16px,calc((100vw - 1120px)/2));box-shadow:0 2px 0 #7fb8fa}
.brand{display:flex;align-items:center;gap:12px}
.brand>span{color:#ffde74;font-size:1.6rem}
.brand strong{font-size:1.2rem}
.brand small{color:#d6e4ff}
main{width:min(1120px,100% - 32px);margin:24px auto}
h1,h2,p{overflow-wrap:anywhere}
h1{font-size:clamp(1.6rem,5vw,2.3rem);margin:0 0 6px}
h2{margin:0}
.hero{padding:20px;border-radius:16px;color:white;background:linear-gradient(115deg,#17244e,#323da1,#7534c7);border:1px solid #8b84ff;margin-bottom:16px}
.hero p{margin:0;color:#e5e8ff}
.panel,dialog{background:white;border:1px solid var(--stroke);border-radius:15px;padding:16px;box-shadow:0 3px 0 #bccaf0}
.panel{margin:12px 0}
.login{max-width:480px}
.stack{display:grid;gap:12px}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.actions>*{flex:1 1 125px;min-width:0}
button,.button{background:linear-gradient(#7f45cf,#5622ad);color:#fff;border:1px solid #642bb5;border-radius:9px;padding:10px 13px;min-height:42px;font:inherit;font-weight:650;cursor:pointer;text-align:center}
button.secondary,nav button{color:#214682;background:#edf4ff;border-color:#b4c9ee}
button[aria-current=true]{color:white;background:#5a26b1;border-color:#5a26b1}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e59b00;outline-offset:2px}
label{display:grid;gap:5px;font-weight:650}
input,select,textarea{width:100%;min-width:0;font:inherit;color:#172a54;border:1px solid #a9bce3;border-radius:8px;background:#f6f9ff;padding:9px}
input[type=checkbox]{width:20px;height:20px;accent-color:var(--purple)}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left}
th,td{padding:9px;border-bottom:1px solid #e0e7f7;vertical-align:middle}
th{background:#edf2ff;color:#284477}
td:first-child{width:1%;white-space:nowrap}
.badge{display:inline-block;padding:4px 8px;white-space:nowrap;border-radius:15px;background:#eee6ff;color:#55269c;font-size:.85rem;font-weight:700}
.badge.live{background:#d6f6e4;color:#0f654b}
dialog{width:min(650px,100% - 24px);max-height:90dvh;overflow:auto}
dialog::backdrop{background:#111d4eaa}
#notice:empty,.error:empty{display:none}
#notice,.error,.report{padding:10px;border-radius:8px;margin-bottom:12px;background:#e2ecff;color:#183759}
.error,#notice[data-error=true]{background:#ffe6eb;color:#842640}
.report{overflow-wrap:anywhere;max-height:260px;overflow:auto}
.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:space-between}
.toolbar .actions{flex:1 1 380px}
.details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px;margin:0}
.details dt{font-weight:650}
.details dd{margin:0;overflow-wrap:anywhere}
