*{box-sizing:border-box;margin:0;padding:0}
body{font:15px/1.55 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f3f5f9;color:#111827}
a{color:#c81e28}
.side{position:fixed;inset:0 auto 0 0;width:240px;background:#0a0f1c;color:#cdd5e1;display:flex;flex-direction:column;z-index:20}
.logo{display:flex;align-items:center;gap:10px;padding:18px;color:#fff;font-weight:800;text-decoration:none;border-bottom:1px solid #1b2438}
.logo img{height:38px;background:#fff;border-radius:6px;padding:2px}
.side nav{flex:1;overflow:auto;padding:10px}
.side nav a{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:8px;color:#cdd5e1;text-decoration:none;font-weight:500;margin-bottom:2px}
.side nav a:hover{background:#141d31;color:#fff}.side nav a.on{background:#e3262f;color:#fff}
.side nav i{font-style:normal;background:#ffc21a;color:#111;border-radius:99px;font-size:12px;font-weight:700;padding:1px 8px}
.side-foot{padding:14px;border-top:1px solid #1b2438;display:flex;justify-content:space-between}.side-foot a{color:#9fabbe;text-decoration:none;font-size:14px}
.main{margin-left:240px;padding:34px clamp(16px,4vw,48px);max-width:1200px}
h1{font-size:28px;margin-bottom:8px}h2{font-size:18px;margin:26px 0 14px}.card h2{margin-top:0}
.hint{color:#5b6475;margin-bottom:18px}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.b{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:9px;border:1px solid #d6dbe4;background:#fff;color:#111;font:600 14px inherit;font-family:inherit;cursor:pointer;text-decoration:none}
.b:hover{border-color:#111}.b-red{background:#e3262f;border-color:#e3262f;color:#fff}.b-red:hover{background:#c81e28;border-color:#c81e28}
.msg{padding:12px 16px;border-radius:10px;margin-bottom:18px;font-weight:600}.msg.ok{background:#e6f7ee;color:#0e6b3a;border:1px solid #b6e6cb}.msg.err{background:#fdecec;color:#a11;border:1px solid #f5c2c2}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:20px}
.tile{background:#fff;border-radius:14px;padding:22px;text-decoration:none;color:#111;border:1px solid #e5e8ef;transition:.2s}.tile:hover{border-color:#e3262f;transform:translateY(-2px)}
.tile b{font-size:34px;display:block;color:#e3262f}.tile span{color:#5b6475;font-weight:600}
.qa{display:flex;gap:10px;flex-wrap:wrap}
.card{background:#fff;border:1px solid #e5e8ef;border-radius:14px;padding:24px;margin-bottom:18px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fld{display:grid;gap:6px}.fld.wide{grid-column:1/-1}
.fld>label{font-weight:600;font-size:13.5px;color:#374151}
input[type=text],input[type=date],input[type=password],input:not([type]),textarea,input[type=file]{width:100%;padding:11px 12px;border:1px solid #d6dbe4;border-radius:9px;font:inherit;background:#fff}
input:focus,textarea:focus{outline:0;border-color:#e3262f;box-shadow:0 0 0 3px rgba(227,38,47,.15)}
input[type=file]{padding:8px;background:#fafbfc}
.imgf{display:grid;grid-template-columns:140px 1fr;gap:14px;align-items:start}
.imgf img,.noimg{width:140px;height:96px;object-fit:cover;border-radius:9px;background:#eef0f4;display:grid;place-items:center;color:#8a93a3;font-size:13px}
.imgf>div{display:grid;gap:8px}.or{font-size:12.5px;color:#6b7280}
.icons{display:flex;gap:8px;flex-wrap:wrap}.icons input{display:none}
.icons span{display:grid;place-items:center;width:46px;height:46px;border:2px solid #e5e8ef;border-radius:10px;cursor:pointer;color:#374151}
.icons input:checked+span{border-color:#e3262f;color:#e3262f;background:#fdecec}
.ic{width:22px;height:22px}
.sw{display:flex;gap:8px;align-items:center;font-weight:500}
.actions{display:flex;gap:10px;margin-top:20px}.actions.sticky{position:sticky;bottom:0;background:#f3f5f9;padding:14px 0}
.narrow{max-width:460px}.narrow .fld{margin-bottom:12px}
.list{display:grid;gap:8px}
.row{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e5e8ef;border-radius:12px;padding:10px 12px}
.th{width:84px;height:56px;border-radius:8px;overflow:hidden;background:#eef0f4;flex:none;display:grid;place-items:center}.th img{width:100%;height:100%;object-fit:cover}
.th.ic{width:46px;height:46px;color:#e3262f;background:#fdecec}
.txt{flex:1;min-width:0}.txt b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.txt small{color:#6b7280}
.btns{display:flex;gap:6px;align-items:center}.btns form{display:flex;gap:6px}
.ib{width:36px;height:36px;border-radius:8px;border:1px solid #d6dbe4;background:#fff;cursor:pointer;display:grid;place-items:center;text-decoration:none;color:#111;font-size:15px}
.ib:hover{border-color:#111}.ib.del:hover{border-color:#e3262f;background:#fdecec}
.list-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.list-grid .row{flex-direction:column;align-items:stretch}.list-grid .th{width:100%;height:150px}
.tbl-wrap{overflow:auto;background:#fff;border-radius:12px;border:1px solid #e5e8ef}
.tbl{width:100%;border-collapse:collapse;font-size:14px}.tbl th,.tbl td{padding:12px;border-bottom:1px solid #eef0f4;text-align:left;vertical-align:top}
.tbl th{background:#fafbfc;font-size:12.5px;text-transform:uppercase;color:#6b7280}.tbl tr.done td{opacity:.5}.tbl .wa{color:#128c4a;font-weight:600;font-size:13px}
.mtoggle{display:none}
body.login{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#0a0f1c,#1d2740)}
.login-box{background:#fff;border-radius:18px;padding:34px;width:min(400px,92vw);display:grid;gap:14px;text-align:center}
.login-box img{margin:0 auto;border-radius:8px}.login-box label{display:grid;gap:6px;text-align:left;font-weight:600;font-size:13.5px}
.login-box .b{justify-content:center;padding:13px}.back{font-size:14px;color:#6b7280}
@media (max-width:860px){
  .side{transform:translateX(-100%);transition:.3s}.mopen .side{transform:none}
  .mtoggle{display:block;position:fixed;top:12px;right:12px;z-index:30;background:#0a0f1c;color:#fff;border:0;border-radius:8px;padding:9px 14px;font-weight:600}
  .main{margin-left:0;padding-top:60px}.grid{grid-template-columns:1fr}.imgf{grid-template-columns:1fr}
}
