:root{--ink:#1b2430;--muted:#4b5563;--line:#e2e5e0;--bg:#f5f6f4;--accent:#0f5c6e;--accent-soft:#e3eef1;--warn:#92400e;--err:#b42318;--ok:#1f7a4d}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--ink);-webkit-text-size-adjust:100%;margin:0;font-family:Inter,system-ui,sans-serif}h1{margin:4px 0 12px;font-size:20px}button,input,select{font:inherit}.shell{background:var(--bg);flex-direction:column;max-width:640px;height:100%;margin:0 auto;display:flex}.topbar{border-bottom:1px solid var(--line);padding:10px 16px;padding-top:max(10px, env(safe-area-inset-top));background:#fff;align-items:center;gap:10px;display:flex}.topbar-text{flex:1;min-width:0}.content{flex:1;overflow-y:auto}.page{flex-direction:column;gap:12px;padding:16px;display:flex}.tabbar{border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#fff;display:flex}.tabbar a{min-height:56px;color:var(--muted);border-top:3px solid #0000;flex:1;justify-content:center;align-items:center;font-size:12px;font-weight:600;text-decoration:none;display:flex}.tabbar a.active{color:var(--accent);border-top-color:var(--accent)}.center{text-align:center;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:100%;padding:32px;display:flex}.login .form{text-align:left;width:100%;max-width:360px}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--err);margin:0}.card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:14px}.card.link{color:inherit;flex-direction:column;gap:6px;text-decoration:none;display:flex}.stack{flex-direction:column;gap:10px;display:flex}.row{align-items:center;gap:8px;display:flex}.row input{flex:1;min-width:0}.grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.stat .num{font-size:30px;font-weight:700;line-height:1.1}.stat .num.warn{color:var(--warn)}.list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.pill{background:var(--accent-soft);color:#0b4a59;border-radius:999px;align-self:flex-start;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.bar{background:var(--line);border-radius:4px;height:8px}.bar>div{background:var(--accent);border-radius:4px;height:8px}.form{flex-direction:column;gap:12px;display:flex}label{flex-direction:column;gap:4px;font-size:14px;font-weight:500;display:flex}input,select{min-height:44px;color:var(--ink);background:#fff;border:1px solid #c9cec6;border-radius:10px;padding:8px 12px}.btn{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;justify-content:center;align-items:center;min-height:48px;padding:0 18px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.6}.btn-ghost{min-height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0 12px;font-weight:600}.btn-dashed{min-height:48px;color:var(--muted);cursor:pointer;background:0 0;border:1px dashed #9aa3af;border-radius:12px;font-weight:600}.back{color:var(--accent);align-items:center;min-height:44px;font-weight:600;text-decoration:none;display:inline-flex}.segmented{background:#e8ebe6;border-radius:12px;gap:6px;padding:4px;display:flex}.segmented button{min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;font-size:13px;font-weight:600}.segmented button.on{color:var(--accent);background:#fff;box-shadow:0 1px 2px #0000001f}.check-row{align-items:center;gap:4px;display:flex}.check{text-align:left;border:1px solid var(--line);min-height:56px;color:var(--ink);cursor:pointer;background:#fff;border-radius:12px;flex:1;align-items:center;gap:12px;padding:12px;display:flex}.box{color:#fff;background:#fff;border:2px solid #9aa3af;border-radius:8px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex}.box.done{background:var(--ok);border-color:var(--ok)}.chips{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.chip{min-height:40px;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #c9cec6;border-radius:999px;padding:0 12px;font-size:13px;font-weight:600}.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.pill.alt{color:var(--ink);background:#eceee9;font-weight:500}.branch-picker{flex-direction:column;gap:8px;display:flex}.branch-picker .row input{flex:1}.field{flex-direction:column;gap:6px;font-size:14px;font-weight:500;display:flex}.between{justify-content:space-between;align-items:center;gap:8px;display:flex}.kv{justify-content:space-between;gap:12px;font-size:14px;display:flex}.kv span{color:var(--muted)}.copy-row{border-top:1px solid var(--line);word-break:break-word;justify-content:space-between;align-items:center;gap:8px;padding-top:8px;display:flex}.accounting-box{border:2px solid var(--accent)}.kv b.warn{color:var(--warn)}.attachments{border-top:1px solid var(--line);padding-top:10px}.btn-ghost.file{text-align:left;word-break:break-all;padding:0}.btn-dashed:disabled{opacity:.6}.segmented{overflow-x:auto}.segmented button{white-space:nowrap;padding:0 10px}.file-box{align-items:flex-start;gap:4px}.check-inline{flex-direction:row;align-items:center;gap:10px}.check-inline input{width:20px;height:20px;min-height:0}.import-row{border-top:1px solid var(--line);word-break:break-word;flex-direction:column;gap:2px;padding-top:8px;display:flex}.ok{color:var(--ok);font-weight:600}.small.warn,.warn{color:var(--warn)}
