:root{--ink:#18211b;--soft:#55615a;--line:#dde3da;--bg:#f4f6f2;--green:#1e6b3c;--dark:#14261b;--red:#8a2a0b;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
[hidden]{display:none!important}
a{color:var(--green)}h1{font-size:26px;line-height:1.2;margin:0}h2{font-size:18px;margin:0}p{margin:0}
.test{background:#fcefd6;color:#5c3703;text-align:center;padding:8px 16px;font-size:13px;font-weight:600}
.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 36px)}
nav{background:var(--dark);padding:16px 12px;display:flex;flex-direction:column;gap:2px}
nav strong{color:#fff;font-size:17px;padding:8px 12px 12px}
nav a,nav button{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:none;color:#fff;font:inherit;text-align:left;text-decoration:none;cursor:pointer}
nav a[aria-current]{background:#2a7446;font-weight:700}
#menu{display:none}
main{padding:24px clamp(16px,2.4vw,32px) 64px;display:flex;flex-direction:column;gap:18px;min-width:0}
.head,.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.head{justify-content:space-between}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;align-items:start}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stats>div,.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}
.stats b{display:block;font-size:26px;line-height:1.25}
.card{display:flex;flex-direction:column;gap:12px}
.soft,small{color:var(--soft);font-size:13px}.warn{background:#fcefd6;color:#5c3703;padding:10px 12px;border-radius:8px}.good{background:#ddefe2;color:#14502b;padding:12px;border-radius:8px}
.owe{color:var(--red);font-weight:600}
.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--soft);font-weight:600}
th,td{padding:9px 8px;border-bottom:1px solid #edf0ea;vertical-align:top}td.n,th.n{text-align:right;white-space:nowrap}.wide{min-width:680px}
.item{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid #edf0ea}.item>div:first-child{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
.tag{display:inline-block;padding:3px 9px;border-radius:99px;background:#edf0ea;color:#2b362f;font-size:13px;font-weight:600;white-space:nowrap}
.tag.new{background:#e3e9f7;color:#1f3f8a}.tag.active,.tag.done,.tag.accepted{background:#ddefe2;color:#14502b}.tag.hold,.tag.sent{background:#fcefd6;color:#5c3703}
button,.btn{min-height:44px;padding:10px 14px;border:1px solid #c3ccc0;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
button.go,.btn.go{background:var(--green);border-color:var(--green);color:#fff}button.bad{color:var(--red);border-color:var(--red)}button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #2f6fd6;outline-offset:2px}
form{display:flex;flex-direction:column;gap:12px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px}
label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--soft);min-width:0}label.check{flex-direction:row;align-items:center;gap:10px;min-height:44px;font-size:15px;color:var(--ink)}label.check input{width:20px;height:20px;min-height:0;flex:none}
input,select,textarea{width:100%;min-height:44px;padding:10px;border:1px solid #9aa79d;border-radius:8px;background:#fff;color:var(--ink);font:16px/1.4 inherit;font-family:inherit}
details>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
details[open]>summary{margin-bottom:8px}
#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);max-width:min(92vw,560px);padding:12px 18px;border-radius:10px;background:var(--dark);color:#fff;font-weight:600;z-index:2000}#toast.bad{background:var(--red)}
#map{height:380px;border-radius:8px;background:#dde8dc}
.phone{max-width:520px;margin:0 auto;padding:16px;display:flex;flex-direction:column;gap:14px}.phone .go{width:100%}
.bar{background:var(--dark);color:#fff;padding:14px 16px}.bar div{max-width:488px;margin:0 auto}.bar b{font-size:18px}
.total{font-size:20px;font-weight:700;border-top:1px solid var(--line);padding-top:10px}.line{display:flex;justify-content:space-between;gap:12px}
@media(max-width:800px){.shell{display:block}nav{padding:8px 12px}nav .links{display:none}nav.open .links{display:grid;grid-template-columns:1fr 1fr;gap:2px}.top{display:flex;justify-content:space-between;align-items:center}nav strong{padding:8px 0}nav #menu{display:inline-flex;width:auto;border:1px solid #5f7a69}main{padding-top:16px}h1{font-size:23px}}
@media print{nav,.test,button,.btn,form,#toast,.noprint{display:none!important}.shell{display:block}body{background:#fff}.card{border:0;padding:0}}
