*{box-sizing:border-box}
html,body{margin:0;background:#E3E8E6}
body{font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:#15211D;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:default}
a{color:#0E6B5A}
:focus-visible{outline:3px solid #0E6B5A;outline-offset:2px}
.app{max-width:480px;margin:0 auto;min-height:100vh;background:#F3F5F4;padding-bottom:48px}
.app.wide{max-width:960px}
.top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid #E4E9E7;padding-top:env(safe-area-inset-top)}
.top-row{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 8px;gap:12px}
.h1{font-size:22px;font-weight:800;letter-spacing:-.02em}
.muted{color:#5B6B66}
.sm{font-size:12px;font-weight:600}
.row{display:flex;align-items:center}
.gap8{gap:8px}
.between{justify-content:space-between}
.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 8px}
.tabs a{height:46px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#5B6B66;text-decoration:none}
.tabs a.on{color:#0E6B5A;font-weight:800;box-shadow:inset 0 -3px 0 #0E6B5A}
.icon-btn{width:44px;height:44px;flex:none;border-radius:14px;border:1px solid #DDE3E1;background:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.wrap{padding:16px;display:flex;flex-direction:column;gap:14px}
.card{background:#fff;border:1px solid #E4E9E7;border-radius:18px;padding:14px 16px}
.card h2{font-size:15px;font-weight:700;margin:0 0 10px}
.list{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:#F3F5F4;width:100%;border:none;text-align:left;color:#15211D}
.bar{width:8px;align-self:stretch;flex:none;border-radius:6px;min-height:36px}
.grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.t-sm{font-size:12px;font-weight:600;color:#5B6B66}
.t-md{font-size:14px;font-weight:700}
.st-in{font-size:12px;font-weight:700;color:#0E6B5A}
.st-out{font-size:12px;font-weight:700;color:#9A3412}
.st-stay{font-size:12px;font-weight:700;color:#3F4E49}
.empty-note{font-size:13px;color:#5B6B66;padding:6px 2px;margin:0}
.pend-card{background:#FFF7E8;border:1.5px solid #F2B544}
.pend-card .item{background:#fff}
.btn{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid #DDE3E1;background:#fff;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#15211D}
.btn-sm{min-height:40px;padding:0 12px;font-size:13px;border-radius:10px}
.btn-primary{background:#0E6B5A;border-color:#0E6B5A;color:#fff}
.btn-dark{background:#15211D;border-color:#15211D;color:#fff}
.btn-danger{color:#B42318;border-color:#E3B7AE}
.btn-block{width:100%;min-height:50px}
.sec-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 0;gap:10px}
.sec-head .t{font-size:17px;font-weight:800}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;font-weight:600;color:#3F4E49;padding:0 4px}
.legend span{display:flex;align-items:center;gap:6px}
.sw{width:12px;height:12px;border-radius:4px;display:inline-block;flex:none}
.grid-scroll{overflow-x:auto;padding:0 12px 8px;-webkit-overflow-scrolling:touch}
.g{display:flex;flex-direction:column;gap:4px;width:max-content;min-width:100%}
.g-row{display:grid;gap:4px}
.g-corner{font-size:10px;font-weight:700;color:#5B6B66;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;position:sticky;left:0;background:#F3F5F4;z-index:2}
.g-head{min-height:52px;border:none;border-radius:10px;padding:6px 6px 6px 8px;display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;font-weight:800;text-align:left;line-height:1.25;color:#15211D}
.g-date{min-height:44px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:15px;position:sticky;left:0;z-index:1;background:#F3F5F4}
.g-date small{font-size:10px;font-weight:600}
.g-date.wk{background:#E2E8E5}
.g-date.today{background:#0E6B5A;color:#fff}
.cell{min-height:44px;border-radius:10px;border:1px solid #E9EDEB;background:#fff;padding:6px 8px;font-size:12px;font-weight:700;text-align:left;line-height:1.2;width:100%;color:#15211D;display:block}
.cell.empty{color:#AAB5B1;font-size:16px;font-weight:600;text-align:center}
.cell.past{background:#FAFBFB}
.cell.ok{border:none}
.cell.pend{background:#FFF7E8;border:2px dashed #B7791F}
.pend-box{min-height:44px;border-radius:10px;background:#FFF7E8;border:2px dashed #B7791F;padding:4px;display:flex;flex-direction:column;gap:4px}
.pend-name{border:none;background:transparent;text-align:left;padding:2px 4px;font-size:12px;font-weight:700;line-height:1.2;color:#15211D}
.pend-name small{display:block;font-size:10px;color:#7A4B00;font-weight:700;margin-top:2px}
.pend-act{display:flex;gap:4px}
.pend-act button{flex:1;height:40px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0}
.b-rej{border:1px solid #E3B7AE;background:#fff}
.b-acc{border:none;background:#0E6B5A}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stat{background:#fff;border:1px solid #E4E9E7;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px}
.stat .v{font-size:22px;font-weight:800}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.chip{height:36px;padding:0 14px;border-radius:999px;border:1px solid #DDE3E1;background:#fff;font-size:12px;font-weight:600;white-space:nowrap;color:#15211D}
.chip.on{background:#15211D;border-color:#15211D;color:#fff;font-weight:700}
.tbl-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,.8fr) minmax(0,1.3fr) minmax(0,.9fr);gap:6px;padding:10px 0;font-size:13px;border-top:1px solid #EEF1F0;align-items:center}
.tbl-row.h{font-size:11px;font-weight:700;color:#5B6B66;border-top:none;padding-top:0}
.tbl-row .r{text-align:right}
.name-cell{display:flex;align-items:center;gap:8px;font-weight:600;min-width:0}
.name-cell span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.line{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #EEF1F0;width:100%;background:none;border-left:none;border-right:none;border-bottom:none;text-align:left;color:#15211D}
.line:first-child{border-top:none}
.tag{padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.tag.link{background:#DCEEE9;color:#0A4F43}
.tag.manual{background:#E9ECEB;color:#3F4E49}
.amt{font-size:13px;font-weight:700;min-width:64px;text-align:right;white-space:nowrap}
.neg{color:#9A3412}
.hero{background:#0E6B5A;color:#fff;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:12px}
.hero .big{font-size:34px;font-weight:800;letter-spacing:-.02em}
.hero .kv{display:flex;justify-content:space-between;font-size:13px}
.hero .kv span:first-child{color:#D4EBE4}
.bars{display:flex;align-items:flex-end;gap:10px;height:84px}
.bars div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:600;color:#D4EBE4}
.bars i{display:block;width:100%;border-radius:6px 6px 3px 3px;background:rgba(255,255,255,.35)}
.bars div.cur i{background:#fff}
.mini3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-size:12px;margin-top:8px}
.mini3 div{padding:8px;border-radius:10px;background:#F3F5F4;display:flex;flex-direction:column;gap:2px}
.mini3 span{color:#5B6B66;font-weight:600}
.pill{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.pill.ok{background:#DCEEE9;color:#0A4F43}
.pill.warn{background:#FFF1D6;color:#7A4B00}
.pill.bad{background:#FBE3DF;color:#8A1F11}
.pill.grey{background:#E9ECEB;color:#3F4E49}
.kvbox{border-radius:12px;background:#F3F5F4;display:flex;flex-direction:column}
.kvbox>div{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;font-size:13px;border-top:1px solid #E4E9E7}
.kvbox>div:first-child{border-top:none}
.kvbox span:first-child{color:#5B6B66}
.kvbox b{font-weight:700;text-align:right;word-break:break-word}
.tl{display:flex;flex-direction:column}
.tl-step{display:flex;gap:12px}
.tl-dot{display:flex;flex-direction:column;align-items:center;width:14px}
.tl-dot i{width:14px;height:14px;border-radius:999px;flex:none}
.tl-dot u{width:2px;flex:1;min-height:14px;background:#E4E9E7;text-decoration:none}
.tl-txt{flex:1;display:flex;justify-content:space-between;gap:8px;padding-bottom:14px;font-size:13px;font-weight:600}
.tl-txt span:last-child{color:#5B6B66;white-space:nowrap}
.tl-step.done .tl-txt span:first-child{text-decoration:line-through;color:#5B6B66}
.hint{font-size:12px;line-height:1.5;color:#5B6B66;margin:0}
.center{text-align:center}
.banner{border-radius:16px;padding:12px 14px;font-size:13px;line-height:1.5;font-weight:600}
.banner.warn{background:#FFF1D6;color:#5A3800;border:1px solid #F2B544}
.banner.bad{background:#FBE3DF;color:#6B1509;border:1px solid #E3B7AE}
.overlay{position:fixed;inset:0;background:rgba(21,33,29,.5);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.overlay[hidden]{display:none}
.sheet{background:#fff;width:100%;max-width:480px;max-height:92vh;overflow:auto;border-radius:24px 24px 0 0;padding:10px 20px calc(28px + env(safe-area-inset-bottom))}
.grab{width:40px;height:4px;border-radius:4px;background:#DDE3E1;margin:0 auto 6px}
.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sheet h3{font-size:19px;font-weight:800;margin:0}
.f{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#3F4E49;margin-bottom:12px}
.f input,.f select,.f textarea{min-height:46px;padding:0 12px;border-radius:12px;border:1px solid #DDE3E1;font-size:16px;background:#fff;color:#15211D;width:100%}
.f textarea{padding:10px 12px;min-height:80px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.err{color:#B42318;font-size:13px;font-weight:600;margin:0 0 10px}
.err:empty{display:none}
.total{display:flex;justify-content:space-between;align-items:center;margin:4px 0 14px}
.total b{font-size:20px;font-weight:800}
.stepper{display:flex;align-items:center;gap:14px}
.stepper button{width:44px;height:44px;border-radius:12px;border:1px solid #DDE3E1;background:#fff;font-size:20px;font-weight:700}
.stepper b{font-size:18px;min-width:20px;text-align:center}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#15211D;color:#fff;padding:12px 16px;border-radius:14px;font-size:14px;font-weight:600;z-index:30;max-width:calc(100% - 32px);box-shadow:0 6px 20px rgba(0,0,0,.2)}
.toast.bad{background:#8A1F11}
.toast[hidden]{display:none}
.loading{display:flex;align-items:center;justify-content:center;min-height:60vh;color:#5B6B66;font-weight:600;font-size:14px}
.auth{max-width:420px;margin:0 auto;min-height:100vh;padding:48px 24px;display:flex;flex-direction:column;justify-content:center;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;letter-spacing:-.02em}
.brand img{width:40px;height:40px;border-radius:12px}
.ok-box{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:10px 0}
.ok-ic{width:64px;height:64px;border-radius:22px;background:#DCEEE9;display:flex;align-items:center;justify-content:center}
.photos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:0;background:#C9DED8}
.photos img,.photos .ph{flex:none;width:100%;height:260px;object-fit:cover;scroll-snap-align:start}
.photos .ph{display:flex;align-items:center;justify-content:center;color:#2C4A42;font-weight:600;font-size:13px}
.fac{display:flex;flex-wrap:wrap;gap:6px}
.fac span{padding:6px 10px;border-radius:999px;background:#F3F5F4;font-size:12px;font-weight:600}
.d-row{display:flex;align-items:center;gap:12px;min-height:58px;border-bottom:1px solid #EEF1F0}
.d-date{width:52px;display:flex;flex-direction:column;align-items:center}
.d-date small{font-size:11px;font-weight:600;color:#5B6B66}
.d-date b{font-size:13px;white-space:nowrap}
.full{min-height:40px;min-width:84px;padding:0 12px;border-radius:12px;background:#F3F5F4;color:#5B6B66;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.thumbs-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.thumbs-edit div{position:relative;height:92px;border-radius:12px;overflow:hidden;background:#E9ECEB}
.thumbs-edit img{width:100%;height:100%;object-fit:cover}
.thumbs-edit button{position:absolute;top:4px;right:4px;width:32px;height:32px;border-radius:999px;border:none;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;padding:0}
.thumbs-edit .first{position:absolute;left:4px;bottom:4px;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;background:#fff}
.switch{width:52px;height:30px;flex:none;border-radius:999px;border:none;padding:3px;display:flex;background:#C7CFCC}
.switch i{width:24px;height:24px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.switch[aria-pressed="true"]{background:#0E6B5A;justify-content:flex-end}
@media (min-width:720px){.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
