:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#253443;background:#f5f6f8;font-size:15px;--ink:#152d43;--blue:#245d91;--line:#dfe5eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px;padding:9px 14px;color:var(--ink)}button:hover{background:#eef4fa}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.danger{color:#ab3a39}input,select,textarea{padding:10px;border:1px solid #cbd5df;border-radius:7px;background:white;min-width:0;max-width:100%;color:#26394b}textarea{width:100%;min-height:110px;line-height:1.6}input[type=checkbox]{width:17px;height:17px;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.5px}h2{font-size:20px}h3{font-size:16px}p{line-height:1.7}.muted,small{color:#738292}.eyebrow{font-size:12px;letter-spacing:2px;color:#57718b;margin-bottom:12px}.brand{font-size:22px;font-weight:650;letter-spacing:3px}.brand span{display:inline-grid;place-items:center;width:35px;height:35px;background:#d8e6f0;color:#285071;border-radius:10px;margin-right:10px;letter-spacing:0}.login{max-width:440px;margin:9vh auto;padding:35px}.login form{display:grid;gap:19px;background:white;border:1px solid var(--line);padding:27px;border-radius:15px;margin-top:36px}.login label{display:grid;gap:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--ink);color:#dae5ed;padding:29px 19px;display:flex;flex-direction:column;gap:28px}.sidebar .brand{padding:0 10px}.sidebar select{width:100%;background:#24425d;color:white;border-color:#456078}.sidebar nav{display:grid;gap:9px}.sidebar nav button{text-align:left;background:transparent;color:#b9cbd9;border:0;padding:13px 16px}.sidebar nav button.active{background:#294a66;color:white}.sidebar footer{margin-top:auto;font-size:13px;line-height:1.8;color:#b2c6d7}.sidebar footer button{margin-top:15px;background:#25435c;border-color:#4c6375;color:white;width:100%}main{margin-left:230px;max-width:1550px;padding:45px 50px}.topline,.row,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}.topline{margin-bottom:30px}.pill{display:inline-block;padding:5px 10px;font-size:12px;background:#e5eee8;color:#41664f;border-radius:20px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:25px;margin:20px 0}.hero{background:linear-gradient(125deg,#e5edf4,#f4f7fa);border-color:#d2dfeb;padding:35px}.hero h2{font-size:27px;line-height:1.5;max-width:650px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.stat strong{display:block;font-size:32px;font-weight:600;margin:12px 0}.toolbar{flex-wrap:wrap;margin:18px 0}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th{text-align:left;background:#f5f7fa;color:#687b8c;font-weight:500}td,th{padding:15px 17px;border-bottom:1px solid #edf0f4}td button{padding:0;border:0;color:#245d91;background:none;text-align:left;max-width:350px;white-space:normal}tbody tr:hover{background:#f7fafc}.empty{padding:45px;text-align:center;color:#6e7e8c}.fields{display:grid;gap:19px}.fields label{display:grid;gap:8px;font-size:13px;color:#687b8c}.fields label input,.fields label textarea{color:#253443}.fields .value{font-size:15px;color:#253443;white-space:pre-wrap;overflow-wrap:anywhere}.fields .inline{display:flex;gap:14px;align-items:center}.field-checks{display:grid;grid-template-columns:minmax(100px,1fr) 70px 70px;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f4}.field-checks label{display:flex;gap:8px;align-items:center}.rules{border:1px solid var(--line);padding:18px;border-radius:10px;margin:15px 0}.rules .row{justify-content:flex-start;flex-wrap:wrap}.people{display:grid;gap:12px}.person{border-bottom:1px solid var(--line);padding:16px 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.person .identity{margin-right:auto}.person .identity small{display:block;margin-top:7px}.tokens{overflow-wrap:anywhere}.error{background:#fcecea;color:#963c35;border:1px solid #efc9c4;padding:15px;border-radius:9px}.hint{font-size:13px;line-height:1.7;color:#748392}#notice{position:fixed;bottom:24px;right:24px;max-width:500px;background:#1f405b;color:white;border-radius:10px;padding:14px 20px;box-shadow:0 4px 20px #0002;display:none;z-index:30}dialog{border:1px solid #d4dfe8;border-radius:14px;width:min(680px,92vw);max-height:88vh;padding:30px;box-shadow:0 20px 80px #1234}dialog::backdrop{background:#17304966}dialog header{display:flex;justify-content:space-between;align-items:start;margin-bottom:25px}dialog .toolbar{justify-content:flex-end;margin-top:25px}.loading{padding:60px}.audit{font-size:13px;max-height:220px;overflow:auto}.audit div{padding:9px;border-bottom:1px solid #edf0f4}a{color:#245d91}.tabs{display:flex;gap:10px;flex-wrap:wrap}.tabs .active{background:#e7eff6;color:#245d91;border-color:#b8cfe1}@media(max-width:800px){.sidebar{position:relative;width:100%;padding:18px;gap:16px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap;padding:10px}.sidebar footer{display:flex;justify-content:space-between;align-items:center}.sidebar footer button{width:auto;margin:0}.sidebar select{max-width:330px}.sidebar .brand{font-size:19px}main{margin:0;padding:26px 19px}.topline{align-items:start}h1{font-size:25px}.hero{padding:24px}.hero h2{font-size:23px}.card{padding:19px}.person{align-items:start}.person select{max-width:130px}.field-checks{grid-template-columns:minmax(90px,1fr) 55px 55px}.grid{grid-template-columns:1fr}#notice{left:15px;right:15px;bottom:15px}}
/* Keep record names readable while the narrow-screen table scrolls locally. */
table td:first-child{min-width:180px}table td:first-child button{min-width:150px;line-height:1.6}
