:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233047;background:#f6f8fb}*{box-sizing:border-box}body{margin:0}header{background:#fff;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4e8ef}h1{margin:0;font-size:28px;color:#30425e}header p{margin:5px 0 0;color:#7a8799}.status{padding:8px 13px;border-radius:18px;background:#eef2f7}.status.ok{background:#e8f7ee;color:#187744}.tabs{display:flex;gap:8px;padding:12px 24px;background:#fff;position:sticky;top:0;z-index:30;border-bottom:1px solid #e7eaf0}.tabs button{border:1px solid #d7dce5;background:#fff;padding:9px 18px;border-radius:8px;font-weight:700}.tabs button.active{background:#425c82;color:#fff}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px 24px}.toolbar button,.actions button{border:0;border-radius:7px;padding:10px 14px;background:#536b8d;color:#fff;cursor:pointer}.toolbar .sync{background:#168a58}.toolbar label{margin-left:auto}.notice{margin:0 24px 10px;min-height:20px;color:#b33}.table-wrap{margin:0 24px 30px;overflow:auto;max-height:72vh;background:#fff;border:1px solid #dfe3ea;border-radius:10px}table{border-collapse:separate;border-spacing:0;min-width:max-content;font-size:13px}th,td{border-right:1px solid #d9dde5;border-bottom:1px solid #d9dde5;text-align:center;height:38px;padding:3px 5px;white-space:nowrap}thead th{position:sticky;top:0;z-index:12;background:#f0f3f8}.issue{position:sticky;left:0;z-index:10;background:#fff;min-width:78px;font-weight:700}.ops{position:sticky;left:78px;z-index:10;background:#fff;min-width:66px}.group-head{min-width:136px;background:#edf0f5!important}.pillar{min-width:34px}.pill{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800}.A{background:#e84d4d}.B{background:#3986dd}.C{background:#34a65d}.D{background:#ee922e}.plain{color:#8a94a4}.edit,.delete{border:0;background:none;cursor:pointer;font-size:16px}dialog{border:0;border-radius:12px;width:min(680px,92vw);padding:22px;box-shadow:0 20px 60px #0004}dialog::backdrop{background:#0007}.x{position:absolute;right:12px;top:8px;border:0;background:none;font-size:28px}dialog label{display:block;margin:12px 0}input,textarea,select{width:100%;padding:10px;border:1px solid #ccd2dc;border-radius:6px}textarea{font-family:monospace}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.danger{background:#c64545!important}@media(max-width:700px){header{padding:14px}h1{font-size:22px}.toolbar,.tabs{padding-left:12px;padding-right:12px}.table-wrap{margin-left:8px;margin-right:8px}.toolbar label{margin-left:0}}


/* Current configuration cards */
.config-section{padding:18px 20px 4px;background:#f7f9fc;border-top:1px solid #dfe5ee}
.config-section h2{margin:0 0 14px;font-size:22px;color:#23344f}
.config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin-bottom:16px}
.config-card{background:#fff;border:1px solid #dce2ea;border-radius:8px;padding:14px 16px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.config-card h3{margin:0 0 10px;font-size:18px;color:#263650}
.config-row{display:flex;gap:6px;line-height:1.75;font-size:14px;word-break:break-word}
.config-row strong{min-width:26px}
.label-A{color:#d2472f}.label-B{color:#2f80ed}.label-C{color:#169c52}.label-D{color:#ff6200}
.empty-config{padding:18px;background:#fff;border:1px dashed #cbd3df;border-radius:8px;color:#718096}
@media(max-width:700px){.config-grid{grid-template-columns:1fr}.config-section{padding:14px 10px 2px}}
