:root{--text:#2C362F;--muted:#5F6B63;--line:#ECE5DB;--leaf:#23824F;--brown:#6B4E36}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Lexend',system-ui,sans-serif;color:var(--text);background:#F7F4EF;font-size:14px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid #F2B544;outline-offset:2px}
.hdr{display:flex;align-items:center;gap:16px;padding:12px 24px;height:64px}
.brand{display:flex;align-items:center;gap:10px}.brand img{width:38px;height:38px}.brand span{font-size:20px;color:var(--brown)}.brand b{font-weight:600}
.sp{flex:1}.lnk{color:var(--leaf)}.lnk:hover{text-decoration:underline}.who{color:var(--muted)}
.wrap{max-width:1100px;margin:0 auto;padding:8px 24px 24px;display:grid;gap:18px}
.plan{background:#FFF8E8;border:1px solid #F2B544;border-radius:16px;padding:16px 20px;display:flex;gap:14px;align-items:center}
.plan b{font-weight:600;color:#6A4E10}.plan p{color:#6A5A3A}
.box{background:#fff;border-radius:16px;padding:20px 22px;border:1px solid #EFE8DD}
.box-h{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
h2{font-size:18px;font-weight:500}h3{font-size:14px;font-weight:500;margin:18px 0 8px}
.sub,.muted{color:var(--muted)}
.go{border:0;border-radius:99px;background:var(--leaf);color:#fff;padding:9px 18px;font-weight:500;cursor:pointer}.go:hover{background:#1C6E42}
.ob{border:1px solid #D8CDBE;background:#fff;border-radius:99px;padding:6px 12px;cursor:pointer;font-size:13px}.ob:hover{background:#F7F2EA}
.tblw{overflow-x:auto}
table{width:100%;border-collapse:collapse}th{text-align:left;font-weight:500;color:var(--muted);font-size:12px;padding:8px 10px;border-bottom:1px solid var(--line)}
td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
td small{display:block;color:var(--muted);font-size:12px}
.pill{display:inline-block;border-radius:99px;padding:2px 10px;font-size:12px;background:#EEF1EC}
.pill.f{background:#FFF6E0;color:#6A4E10;border:1px solid #F2B544}.pill.a{background:#E8F6EE;color:#1C6E42}
.pill.s{background:#FBE9E4;color:#A43A22}.pill.p{background:#F4EEE4;color:#6B4E36}
.stats{display:flex;gap:14px;flex-wrap:wrap}.stat{background:#FAF7F2;border-radius:12px;padding:12px 16px;min-width:150px}.stat b{display:block;font-size:22px;font-weight:500}
.log{list-style:none;max-height:320px;overflow:auto}.log li{padding:7px 0;border-bottom:1px solid var(--line);display:flex;gap:12px}.log time{color:var(--muted);min-width:150px}
footer{text-align:center;color:var(--muted);font-size:12px;padding:10px 0 24px}
dialog{border:0;border-radius:24px;padding:24px;width:min(480px,calc(100vw - 32px));box-shadow:0 10px 40px rgba(40,25,10,.3);color:var(--text)}
dialog::backdrop{background:rgba(40,30,20,.35)}dialog h2{margin-bottom:10px}
#dlgB{line-height:1.55}#dlgB label{display:block;margin-top:10px;font-size:13px;color:var(--muted)}
#dlgB input,#dlgB select{display:block;width:100%;margin-top:4px;border:1px solid #E2D9CC;border-radius:10px;padding:9px 10px;font-size:14px}
.dom{display:flex}.dom input{border-radius:10px 0 0 10px!important}.dom span{display:flex;align-items:center;margin-top:4px;padding:0 10px;border:1px solid #E2D9CC;border-left:0;border-radius:0 10px 10px 0;background:#FAF7F2;color:var(--muted)}
.linkbox{display:flex;gap:6px;margin-top:10px}.linkbox input{font-size:12px!important}
.dlg-f{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.toast{position:fixed;left:24px;bottom:24px;background:#2C2620;color:#fff;padding:12px 18px;border-radius:10px;opacity:0;transition:.2s;pointer-events:none}.toast.show{opacity:1}
@media(max-width:700px){.hdr{padding:10px 14px}.wrap{padding:6px 12px 20px}.who{display:none}th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6){display:none}}
