:root{--g:#8cc63f;--gd:#4d7c1a;--b:#1a3d8f;--bg:#f6f8f3}
*{box-sizing:border-box}body{margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:#222}
.top{display:flex;gap:10px;align-items:center;background:#fff;border-bottom:4px solid var(--g);padding:8px 14px;position:sticky;top:0;z-index:5}.logo{height:40px}
.top small{color:#666}.wrap{max-width:620px;margin:auto;padding:14px}
h1{font-size:1.4rem;margin:.4em 0}.muted{color:#666}label{display:block;margin:10px 0;font-weight:600}
input,select,textarea{width:100%;padding:11px;border:1px solid #ccc;border-radius:10px;font:inherit;background:#fff;margin-top:4px}
input[type=checkbox],input[type=radio]{width:auto;margin-right:8px}
fieldset{border:1px solid #dfe8d3;border-radius:12px;padding:10px 12px;margin:12px 0;background:#fff}legend{font-weight:700;color:var(--gd)}
.opt{font-weight:400;display:flex;align-items:center;gap:6px}.opt input[type=date]{width:auto}
button{font:inherit;cursor:pointer}.big{display:block;width:100%;background:var(--g);color:#fff;border:0;border-radius:12px;padding:15px;font-size:1.1rem;font-weight:700;text-align:center;text-decoration:none}
.ghost{background:#fff;border:1px solid var(--g);color:var(--gd);border-radius:10px;padding:8px 12px;margin:4px 0}
.row{display:flex;gap:10px;align-items:center}canvas#sig{width:100%;height:150px;border:1px dashed #999;border-radius:10px;background:#fff;touch-action:none}
.thumbs{display:flex;flex-wrap:wrap;gap:6px}.thumbs span{position:relative}.thumbs img{width:72px;height:72px;object-fit:cover;border-radius:8px}.thumbs button{position:absolute;top:-6px;right:-6px;border:0;background:#c00;color:#fff;border-radius:50%;width:22px;height:22px;font-size:12px}
.notice{background:#fff8e1;border-left:4px solid #f0b400;padding:8px 10px;border-radius:6px}.foot{font-size:.8rem;color:#666}
.err{color:#c00;font-weight:600}.card{background:#fff;border-radius:12px;padding:14px;margin:10px 0;border:1px solid #dfe8d3}.bignum{font-size:1.6rem;letter-spacing:1px}
.chip{display:inline-flex;font-weight:400;border:1px solid #ccc;border-radius:20px;padding:4px 10px;margin:3px;background:#fafafa}.chip input{margin:0 6px 0 0}
.terms{font-size:.85rem;max-height:300px;overflow:auto;background:#fafafa;padding:8px;border-radius:8px}
.stages{list-style:none;padding:0}.stages li{padding:8px 10px;border-left:4px solid #ddd;margin:4px 0;background:#fff}.stages li.done{border-color:var(--g)}.stages li.now{border-color:var(--b);font-weight:700;background:#eef3ff}
/* staff */
.bar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:#aaa;margin-right:6px}.dot.ok{background:#2ecc40}.dot.bad{background:#e33}.dot.warn{background:#f0a500}
.counters{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.counters div{background:#fff;border:1px solid #dfe8d3;border-radius:10px;padding:8px 12px;flex:1;min-width:120px}.counters b{display:block;font-size:1.4rem}
.job{background:#fff;border:1px solid #dfe8d3;border-radius:12px;padding:12px;margin:8px 0}.job.alert{border-color:#f0a500;background:#fffaf0}.job h3{margin:0 0 4px}.tag{font-size:.75rem;background:#eef3ff;color:var(--b);border-radius:10px;padding:2px 8px}
.btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.btns button{flex:1;min-width:130px;padding:12px;border-radius:10px;border:1px solid var(--g);background:#fff;font-weight:600}.btns button.pri{background:var(--g);color:#fff}
.tech .job h3{font-size:1.3rem}.tech .btns button{font-size:1.1rem;padding:16px}details.fold{margin-top:14px;border-top:1px dashed #ccc;padding-top:8px}
table.log{width:100%;border-collapse:collapse;font-size:.8rem}table.log td{border-bottom:1px solid #eee;padding:4px}
