:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#25333e;background:#f6f8fa;--blue:#1597d3}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{cursor:pointer}button{border:1px solid #dce4eb;background:white;border-radius:8px;padding:9px 13px;color:inherit}button:hover{border-color:var(--blue)}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.danger{color:#b9384a}button:disabled{opacity:.5;cursor:wait}h1{font-size:24px;margin:0}h2{font-size:20px;margin:0 0 20px}h3{font-size:16px}p{line-height:1.7}.muted,small{color:#778795}header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:white;border-bottom:1px solid #e3e9ef}header b{font-size:22px;letter-spacing:-.8px}header em{font-weight:400;font-size:15px;font-style:normal;color:#81909e;margin-left:10px}.layout{display:grid;grid-template-columns:225px 1fr;min-height:calc(100dvh - 74px)}aside{padding:24px 14px;border-right:1px solid #e3e9ef;background:white}aside button{display:block;text-align:left;width:100%;border:0;margin:3px 0}aside button.active{color:#078fce;background:#eef8fc}main{padding:30px;min-width:0;max-width:1450px;width:100%}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.toolbar input{flex:1;min-width:140px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tile,.card{background:white;border:1px solid #e1e7ed;border-radius:12px;padding:22px}.tile{text-align:left;min-height:138px}.tile strong{font-size:29px;display:block;color:#1597d3;margin-top:18px}.editor-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}.record-list{max-height:75dvh;overflow:auto}.record{width:100%;text-align:left;border:0;border-bottom:1px solid #e8edf1;border-radius:0;padding:15px}.record.active{background:#eef8fc}.record span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}.record small{font-size:11px}.field{display:block;margin:0 0 17px}.field>span{display:block;font-size:13px;font-weight:600;margin-bottom:7px}input,select,textarea{width:100%;border:1px solid #d9e2e9;border-radius:7px;background:white;padding:10px;color:#25333e}textarea{min-height:100px;resize:vertical;line-height:1.7}input[type=checkbox]{width:auto}input[type=file]{padding:8px}label.check{display:flex;gap:8px;align-items:center;margin:14px 0;font-size:13px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row .field{flex:1}.badge{padding:3px 7px;background:#eef2f6;border-radius:5px;font-size:11px;color:#718392}.image-preview{width:100%;height:150px;object-fit:cover;border-radius:9px}.login{max-width:430px;margin:12dvh auto;padding:32px}.login h1{margin:0 0 8px}.login button{width:100%}.login .field{margin-top:20px}#status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#263847;color:white;padding:12px 22px;border-radius:9px;max-width:90vw;z-index:30;display:none}.phone{width:390px;max-width:100%;height:760px;border:1px solid #dbe2e7;border-radius:22px;background:white}.preview-wrap{position:fixed;inset:0;background:#15212a99;z-index:20;display:flex;align-items:center;justify-content:center;padding:15px}.preview-card{background:#f6f8fa;border-radius:18px;padding:16px;max-height:95dvh;overflow:auto}.condition{padding:12px;background:#f7f9fb;margin:10px 0;border-radius:8px}.condition .row>*{flex:1}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gallery button{text-align:left}.gallery img{width:100%;height:110px;object-fit:cover}.error{color:#b9384a}progress{width:100%;margin:12px 0;accent-color:var(--blue)}a{color:#078fce;text-decoration:none}.actions{position:sticky;bottom:0;background:#fff;padding:15px 0;border-top:1px solid #e5ebf0;display:flex;gap:8px;flex-wrap:wrap}details{margin:16px 0}summary{cursor:pointer}.empty{padding:30px;text-align:center;color:#81909e}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:170px 1fr}main{padding:20px}.editor-grid{grid-template-columns:1fr}.record-list{max-height:220px}.gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){header{padding:0 18px;height:65px}header em{display:none}.layout{display:block}aside{display:flex;overflow:auto;padding:10px;border-right:0}aside button{white-space:nowrap;width:auto;font-size:13px}main{padding:18px}.tile{padding:16px;min-height:110px}.grid{gap:10px}.card{padding:16px}.toolbar{gap:6px}.toolbar select{width:auto;max-width:48%}.phone{height:70dvh}}
