@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter-400.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter-600.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url(fonts/inter-700.woff2) format("woff2")}
@font-face{font-family:Bodoni;font-weight:600;font-display:swap;src:url(fonts/bodoni-600.woff2) format("woff2")}
:root{--ink:#111;--muted:#5C5B57;--bg:#F4F3F0;--line:#E3E1DC;--card:#fff;--soft:#EFEDE8;--ok:#1B7A44;--okbg:#E5F2EA;--warn:#9A4708;--warnbg:#FBEFE4;--bad:#B42318;--badbg:#FBE9E7}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
.app{max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
.top{position:sticky;top:0;z-index:5;background:var(--ink);color:#fff;height:58px;display:flex;align-items:center;gap:6px;padding:0 10px 0 14px}
.top h1{font-size:17px;font-weight:600;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo{font-family:Bodoni,Georgia,serif;font-weight:600;font-size:26px;letter-spacing:-.02em;width:42px}
.iconbtn{background:none;border:0;color:inherit;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;cursor:pointer;text-decoration:none}
.avatar{width:34px;height:34px;border-radius:50%;background:#2A2A2A;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;border:0;cursor:pointer}
main{flex:1;padding:16px 16px 110px;display:flex;flex-direction:column;gap:14px}
.nav{position:fixed;bottom:0;left:0;right:0;z-index:6;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.nav div{max-width:560px;margin:0 auto;display:flex;height:66px}
.nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:9px;font-size:11px;font-weight:500;color:#6B6A66;text-decoration:none}
.nav a.on{color:var(--ink);font-weight:700}
.nav a.plus span{width:46px;height:46px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:-20px;border:4px solid #fff}
.nav a.plus{color:var(--ink);font-weight:600;padding-top:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.card.dark{background:var(--ink);color:#fff;border-color:var(--ink)}
.card.dark .sub{color:#C9C7C2}
.card.focus{border-color:var(--ink)}
.lab{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.card.dark .lab{color:#C9C7C2}
.hello h2{margin:0;font-size:23px}
.sub{font-size:13px;color:var(--muted)}
.row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.row>div:first-child{min-width:0}
.row .v{font-weight:600;white-space:nowrap;text-align:right}
.row.big .v,.row.big>div:first-child{font-weight:700;font-size:16px}
.hr{height:1px;background:var(--line);margin:2px 0}
.ok{color:var(--ok)}.warn{color:var(--warn)}.bad{color:var(--bad)}.mut{color:var(--muted)}
.num{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.kpi b{font-size:21px;letter-spacing:-.01em}
.kpi span{font-size:12.5px;color:var(--muted)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:12px;font-size:15px;font-weight:600;padding:0 16px;border:1px solid var(--ink);background:var(--ink);color:#fff;cursor:pointer;text-decoration:none;text-align:center}
.btn.sec{background:#fff;color:var(--ink)}
.btn.danger{background:#fff;color:var(--bad);border-color:var(--bad)}
.btn.big{min-height:56px;font-size:16px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.link{background:none;border:0;padding:8px 0;font-weight:600;text-decoration:underline;cursor:pointer;align-self:flex-start;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:14px;font-weight:500;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;min-height:42px;cursor:pointer}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.badge{display:inline-block;font-size:11.5px;font-weight:600;border-radius:999px;padding:3px 9px;background:var(--soft);color:var(--muted)}
.badge.warn{background:var(--warnbg);color:var(--warn)}.badge.bad{background:var(--badbg);color:var(--bad)}.badge.ok{background:var(--okbg);color:var(--ok)}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
input.i,select.i,textarea.i{font-size:16px;font-weight:500;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;width:100%}
input.i:focus,select.i:focus,textarea.i:focus{outline:2px solid var(--ink);outline-offset:0;border-color:var(--ink)}
input.i.money{font-size:20px;font-weight:700}
.opt{font-weight:400}
.svc{display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:15px;font-weight:600;cursor:pointer;width:100%;text-align:left;gap:10px}
.svc.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.list{display:flex;flex-direction:column}
.item{display:flex;align-items:center;gap:12px;padding:10px 0;min-height:52px;border-bottom:1px solid var(--line);text-decoration:none;background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left;cursor:pointer}
.item:last-child{border-bottom:0}
.item .t{flex:1;min-width:0}
.item .t b{display:block;font-size:15px;font-weight:600}
.item .t span{display:block;font-size:12.5px;color:var(--muted)}
.ico{width:40px;height:40px;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:none}
.foot{position:fixed;bottom:0;left:0;right:0;z-index:7;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
.foot div.in{max-width:528px;margin:0 auto;display:flex;align-items:center;gap:12px}
.foot .tot{flex:1}.foot .tot b{display:block;font-size:24px}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:18px;font-weight:700;cursor:pointer}
.qty b{min-width:34px;text-align:center}
.bar{display:flex;align-items:center;gap:10px;font-size:13px}
.bar .n{width:110px;font-weight:600;flex:none}
.bar .track{flex:1;height:20px;background:#F1EFEB;border-radius:6px;overflow:hidden}
.bar .fill{height:100%;background:#BDBAB3;border-radius:6px}
.bar .fill.hi{background:var(--ink)}
.bar .val{width:70px;text-align:right;font-weight:600;flex:none}
.empty{text-align:center;color:var(--muted);padding:18px 8px;font-size:14px}
.note{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:flex-start}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-weight:600;z-index:50;max-width:90vw;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.toast.err{background:var(--bad)}
.err{background:var(--badbg);color:var(--bad);border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600}
.login{background:var(--ink);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:28px 20px 20px;gap:18px;max-width:560px;margin:0 auto}
.login .brand{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;gap:6px;min-height:220px}
.login .mt{font-family:Bodoni,Georgia,serif;font-size:86px;font-weight:600;line-height:1;letter-spacing:-.04em;display:flex;align-items:center;gap:8px}
.login .s1{font-size:12px;letter-spacing:.34em;margin-top:10px}.login .s2{font-size:16px;letter-spacing:.26em;font-weight:700}
.login .box{background:#fff;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px}
.who{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:10px 14px;min-height:58px;background:#fff;cursor:pointer;width:100%;text-align:left}
.who .av{width:40px;height:40px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.who.owner .av{background:var(--ink);color:#fff}
.who.sup{border-style:dashed}
.pin{display:flex;gap:12px;justify-content:center;margin:6px 0}
.pin i{width:16px;height:16px;border-radius:50%;border:2px solid var(--ink)}
.pin i.f{background:var(--ink)}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.keys button{height:58px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:22px;font-weight:600;cursor:pointer}
.login .foot2{display:flex;justify-content:space-between;color:#BDBBB6;font-size:12px}
.seg{display:flex;background:var(--soft);border-radius:12px;padding:4px;gap:4px;overflow-x:auto}
.seg button{flex:1;border:0;background:none;padding:10px 8px;border-radius:9px;font-weight:600;font-size:14px;white-space:nowrap;cursor:pointer;min-height:42px}
.seg button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.switch{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.switch input{appearance:none;width:50px;height:30px;border-radius:999px;background:#CFCCC6;position:relative;flex:none;cursor:pointer;margin:0}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s}
.switch input:checked{background:var(--ink)}.switch input:checked::after{left:23px}
.switch b{display:block;font-size:15px}.switch span{display:block;font-size:12.5px;color:var(--muted);font-weight:400}
.dd{border:1px solid var(--line);border-radius:10px;background:#fff;max-height:240px;overflow:auto}
.dd button{display:block;width:100%;text-align:left;padding:12px;border:0;border-bottom:1px solid var(--line);background:#fff;cursor:pointer}
.dd button:last-child{border-bottom:0}
.calc{background:var(--soft);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.skel{height:80px;border-radius:14px;background:linear-gradient(90deg,#ebe9e4,#f4f3f0,#ebe9e4);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}.switch input::after{transition:none}}
:focus-visible{outline:2px solid #3B82F6;outline-offset:2px}
.firma{text-align:center;font-size:12px;color:var(--muted)}.firma a{font-weight:600;text-decoration:none}
