:root{--blue: #0b5cab;--text: #1a1a1a;--muted: #5c6670;--line: #d9dee3;--bg: #ffffff;--card: #ffffff;--error: #b42318;--amber: #b54708;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}.app{max-width:560px;margin:0 auto}.top-bar{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;background:#fff;border-bottom:1px solid var(--line)}.top-bar .link-button{margin:0}.main-banner{padding:6px 16px;background:#b42318;color:#fff;font-weight:700;text-align:center}.brand{height:56px;width:auto;display:block}.hero-logo{display:block;width:min(320px,80%);height:auto;margin:24px auto 0}main{padding:16px}h1{margin:8px 0 4px;font-size:1.5rem}h2{margin:0 0 8px;font-size:1.2rem}.tagline{margin:0 0 16px;color:var(--muted)}.card{display:flex;flex-direction:column;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px}label{display:flex;flex-direction:column;gap:4px;font-weight:600}label small{font-weight:400;color:var(--muted)}input{font:inherit;font-weight:400;padding:12px;border:1px solid var(--line);border-radius:8px;min-height:48px}.big-button{font:inherit;font-weight:700;min-height:56px;width:100%;border:0;border-radius:12px;background:var(--blue);color:#fff;margin-bottom:16px}.big-button:disabled{opacity:.6}.card .big-button{margin-bottom:0}.password-field{display:flex;gap:8px}.password-field input{flex:1;min-width:0}.show-password{font:inherit;font-weight:600;min-height:48px;min-width:64px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--blue)}.link-button{font:inherit;background:none;border:0;color:var(--blue);text-decoration:underline;padding:8px}.error{color:var(--error);margin:0}.notice{background:#e8f1fb;border-radius:8px;padding:12px;margin:0 0 16px}.customer-list{list-style:none;padding:0;margin:0}textarea{font:inherit;font-weight:400;padding:12px;border:1px solid var(--line);border-radius:8px}.customer-row{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:8px}.address{font-weight:700}.secondary{color:var(--muted)}.badge{align-self:flex-start;font-size:.85rem;color:var(--amber);border:1px solid var(--amber);border-radius:999px;padding:2px 8px;margin-top:4px}.sync-bar{background:#fff4e5;color:var(--amber);border-radius:8px;padding:12px;margin:0 0 16px;font-weight:700}.refused{display:flex;flex-direction:column;gap:8px;border:2px solid var(--error);border-radius:12px;padding:16px;margin-bottom:16px}.refused strong{color:var(--error)}.refused p{margin:0}.refused .big-button{margin-bottom:0}.badge.waiting{color:var(--blue);border-color:var(--blue)}:root{--green: #1e7a34;--done-bg: #e7f6ec;--amber-bg: #fff4e5}main{padding-bottom:96px}.loaded{margin:-8px 0 16px;color:var(--muted);font-size:.9rem}.loaded .link-button{padding:4px}.round-list{list-style:none;padding:0;margin:0}.visit{background:var(--card);border:1px solid var(--line);border-left:6px solid var(--blue);border-radius:12px;padding:12px;margin-bottom:12px}.visit.done{border-left-color:var(--green)}.visit.not-done{border-left-color:var(--amber)}.visit.tappable{cursor:pointer;-webkit-tap-highlight-color:transparent}.visit.tappable:active{background:#f4f8fd}.visit.locked{opacity:.55}.start-day-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:72px;font:inherit;color:inherit;text-align:left;cursor:pointer}.start-day-card:active{background:#f4f8fd}.start-day-card.started{flex-direction:row;align-items:center;min-height:0;cursor:default}.tick:disabled{cursor:not-allowed}.visit-head{display:flex;gap:12px;align-items:flex-start}.position{font-weight:700;color:var(--muted);min-width:1.5em;padding-top:2px}.visit-main{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.visit-address{font-size:1.3rem;font-weight:800;line-height:1.2}.visit-name,.price{color:var(--text)}.visit-notes{margin:8px 0 0;padding:8px;background:#f4f6f8;border-radius:8px;white-space:pre-wrap}.tick{width:48px;height:48px;flex:none;border-radius:50%;border:3px solid var(--muted);background:#fff;cursor:pointer}.tick.open{border-color:var(--blue);background:#e8f1fb}.labels{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.labels:empty{display:none}.label{font-size:.85rem;font-weight:700;border-radius:999px;padding:3px 10px}.label.done{background:var(--done-bg);color:var(--green)}.label.owed,.label.not-done{background:var(--amber-bg);color:var(--amber)}.labels .badge{margin-top:0}.choices,.reason-picker{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.choices-title{margin:0;font-weight:700;color:var(--muted)}.done-by{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice{font:inherit;font-weight:700;min-height:56px;border:0;border-radius:12px;background:#e8f1fb;color:var(--blue);padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}.choice:disabled{background:#f0f2f4;color:#9aa3ab;cursor:not-allowed}.choice small{font-weight:400;font-size:.75rem}.choice.wide{width:100%;margin-top:10px}.not-done-button{font:inherit;font-weight:700;min-height:56px;margin-top:8px;border:0;border-radius:12px;background:#fde7b0;color:#7a3d00;cursor:pointer}.reasons{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.reason{font:inherit;min-height:48px;border:2px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.reason.chosen{border-color:var(--amber);background:var(--amber-bg);font-weight:700}.reason-picker .big-button{margin-bottom:0}.card-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.card-actions .link-button{min-height:44px}.reason-count{color:var(--amber)}.end-of-day{display:flex;flex-direction:column;gap:8px;background:var(--amber-bg);border-radius:12px;padding:12px;margin-bottom:16px;color:var(--amber)}.end-of-day .big-button{margin-bottom:0}.undo-bar{position:fixed;left:50%;transform:translate(-50%);bottom:72px;width:min(528px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1a1a1a;color:#fff;border-radius:12px;padding:8px 8px 8px 16px;z-index:10}.undo-bar button{font:inherit;font-weight:700;min-height:48px;padding:0 16px;border:0;border-radius:8px;background:#fff;color:#1a1a1a;cursor:pointer}.tab-bar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#fff;border-top:1px solid var(--line);z-index:10}.tab-bar button{font:inherit;font-weight:700;min-height:56px;border:0;background:none;color:var(--muted);cursor:pointer}.tab-bar button.active{color:var(--blue);box-shadow:inset 0 -3px 0 var(--blue)}.info-button{width:44px;height:44px;flex:none;border-radius:50%;border:2px solid var(--line);background:#fff;color:var(--muted);font:inherit;font-weight:800;font-style:italic;font-family:Georgia,serif;font-size:1.2rem;cursor:pointer}.info-button.has-info{border-color:var(--blue);color:var(--blue)}.sheet-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:20}.sheet{width:100%;max-width:560px;max-height:85vh;overflow-y:auto;background:#fff;border-radius:16px 16px 0 0;padding:16px 16px 24px;display:flex;flex-direction:column;gap:8px}.sheet h2,.sheet p{margin:0}.sheet .big-button{margin:8px 0 0}.sheet-part{border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:4px}.sheet-part h3,.compare dt{margin:0;font-size:.9rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.gate-code{font-size:2.2rem;font-weight:800;letter-spacing:.08em;line-height:1.1}.sheet-text{white-space:pre-wrap}.old-value{font-size:.9rem;display:block}.sheet-part .label{align-self:flex-start}.sheet-form{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:12px}.sheet-form label{display:flex;flex-direction:column;gap:4px;font-weight:700}.badge-button{font:inherit;font-weight:700;width:100%;min-height:48px;margin:0 0 16px;border:1px solid var(--amber);border-radius:12px;background:var(--amber-bg);color:var(--amber);cursor:pointer}.compare{margin:0;display:flex;flex-direction:column;gap:4px}.compare dd{margin:0 0 8px;display:flex;flex-direction:column}.decide{display:grid;grid-template-columns:1fr 1fr;gap:8px}.decide .big-button,.decide .not-done-button{margin:0}.add-button{font:inherit;font-weight:700;width:100%;min-height:48px;margin:0 0 16px;border:2px dashed var(--blue);border-radius:12px;background:#fff;color:var(--blue);cursor:pointer}.label.new{background:#e8f1fb;color:var(--blue)}.place-picker{display:flex;flex-direction:column;gap:12px}.place-picker select{font:inherit;min-height:48px}.house-list{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:0;max-height:50vh;overflow-y:auto}.house-list legend{font-weight:700;padding:0 4px}.house{flex-direction:row;align-items:center;gap:12px;min-height:44px;font-weight:400;border-bottom:1px solid var(--line)}.house:last-child{border-bottom:0}.house input{width:22px;height:22px;flex:none}.day-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}.day-bar .big-button{margin-bottom:8px}.day-time{font-weight:700;color:var(--green)}.home-button{font:inherit;font-weight:700;width:100%;min-height:56px;margin:16px 0;border:2px solid var(--green);border-radius:12px;background:#fff;color:var(--green);cursor:pointer}.sign-off h2{font-size:1.1rem;margin:16px 0 8px}.sign-off-list{list-style:none;padding:0;margin:0 0 8px}.sign-off-list .visit{display:flex;flex-direction:column;gap:4px}.sign-off-list .not-done-button{align-self:flex-start;padding:0 16px}.sign-off .big-button{margin-top:16px}.pay-screen{display:flex;flex-direction:column;gap:12px;padding-bottom:24px}.pay-screen h1,.pay-screen p{margin:0}.pay-screen .big-button{margin-bottom:0}.big-button.secondary-button{background:#e8f1fb;color:var(--blue)}.pay-business{font-size:1.2rem;font-weight:800;text-align:center}.pay-head{display:flex;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px}.pay-amount{font-size:2rem;font-weight:800}.pay-page .pay-amount{text-align:center}.qr-box{display:flex;justify-content:center;align-items:center;min-height:296px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px}.qr-box img{width:min(280px,100%);height:auto;image-rendering:pixelated}.pay-status{font-weight:700;text-align:center}.pay-status.opened{color:var(--green)}.pay-tick{width:72px;height:72px;border-radius:50%;background:var(--done-bg);color:var(--green);font-size:2.6rem;font-weight:800;display:flex;align-items:center;justify-content:center;align-self:center}.pay-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;margin:0}.pay-facts dt{color:var(--muted)}.pay-facts dd{margin:0;font-weight:700}.pay-later{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.pay-link{display:flex;align-items:center;justify-content:center;text-decoration:none}.pay-page{padding:24px 16px;text-align:center}.pay-page .pay-tick{margin:0 auto}.pay-overlay{position:fixed;inset:0;z-index:30;overflow-y:auto;background:var(--bg);padding:16px max(16px,calc((100% - 528px)/2)) 32px}
