:root{--brand:#a45729;--brand-soft:#f5e9df;--ink:#242922;--muted:#687067;--line:#e1e4dc;--surface:#fff;--nav-height:70px}
*{box-sizing:border-box}html{scroll-padding-top:20px;scroll-padding-bottom:170px}body{margin:0;background:#f6f4ef;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%}
[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.btn,input:not([type=checkbox]):not([type=hidden]),select{min-height:46px}button,.btn{touch-action:manipulation}input,select,textarea{font-size:16px!important;max-width:100%;border-radius:12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #267789;outline-offset:3px}button:disabled{opacity:.48;cursor:not-allowed}
.shell{width:100%;max-width:1180px;margin:0 auto;padding:12px 12px calc(var(--nav-height) + env(safe-area-inset-bottom) + 28px);overflow:visible}.auth-shell{min-height:100dvh;display:grid;align-content:center;padding:24px 16px}.top{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:70px!important;padding:10px 0!important;border:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important}.top-brand{padding:0!important;gap:9px!important;min-width:0}.top-logo{width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:12px!important}.top h1{font-size:20px!important;line-height:1.15!important;max-width:none!important;margin:0;letter-spacing:-.6px}.top .user{display:block!important;width:auto!important;flex-shrink:0}.top .user>.pill{display:none}.header-actions{position:static!important;transform:none!important;display:flex!important;flex-direction:row!important;gap:6px!important}.header-actions .logout{width:44px;height:44px;min-width:44px}.refresh-page{display:none!important}.install-app{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;padding:8px 11px!important;font-size:13px!important;box-shadow:none!important;border-radius:12px!important}
.app-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;align-items:stretch;justify-content:center;gap:2px;background:rgba(255,255,255,.98);border-top:1px solid var(--line);padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -5px 22px #25332308}.app-nav>a,.app-nav>button{flex:1;max-width:200px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:58px;padding:4px 2px;border:0;border-radius:12px;background:transparent;color:var(--muted);text-decoration:none;font-size:11px;font-weight:650;line-height:1.3;box-shadow:none}.app-nav .app-nav-icon{font-size:25px;font-weight:500;line-height:1.15;margin-bottom:4px}.app-nav .active{background:var(--brand-soft);color:#87401c}.app-nav a:hover,.app-nav button:hover{background:var(--brand-soft)}
.section{padding:18px 16px;border:1px solid var(--line);border-radius:20px;box-shadow:0 4px 16px #25332304;margin-bottom:16px;background:var(--surface)}.section h2{font-size:23px;letter-spacing:-.6px;line-height:1.2}.section h3{font-size:18px}.section-title{margin-bottom:20px}.dashboard-form{display:flex!important;flex-direction:column;gap:16px}.dashboard-form>.field,.dashboard-form>.submit-field{width:100%;min-width:0}.dashboard-form .address-field{order:0}.dashboard-form .plate-field{order:1}.dashboard-form .submit-field{order:2}.dashboard-form .submit-btn{width:100%;min-height:52px;font-size:17px;border-radius:14px}.dashboard-form #plate-input{height:58px;font-size:21px!important;font-weight:600;letter-spacing:.8px;padding-right:48px}.ocr-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px;margin-top:14px}.ocr-row .btn,.ocr-row button{font-size:13px;padding:10px 8px;text-align:center;display:grid;place-items:center}.ocr-status{grid-column:1/-1;font-size:12px}.overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 20px}.overview .stat{min-height:68px;padding:10px}.stat b{font-size:21px}.stat span{font-size:11px}.back-to-top{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px)!important;right:16px;width:42px;height:42px}.result-grid{gap:12px}.table-wrap{max-width:100%;overflow:auto}p,small,dd{overflow-wrap:anywhere}dialog{max-width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:24px;color:var(--ink)}dialog::backdrop{background:#17251ab3;backdrop-filter:blur(3px)}.install-dialog h2{font-size:24px;line-height:1.2}.install-dialog button{width:100%;margin-top:16px}.connection-state{background:#fff3cd;color:#664d03;padding:12px 16px;border:1px solid #eddaa3;border-radius:12px;margin:8px 0}.login-card{width:100%;max-width:420px;justify-self:center;padding:28px 24px!important;border-radius:24px;border:1px solid var(--line);box-shadow:0 12px 50px #2932270b}.login-card input{width:100%}.login-card h1{font-size:27px;letter-spacing:-.8px}.login-card .sub{margin-bottom:26px}.login-install{max-width:420px;margin:18px auto 0;text-align:center}.login-install button{min-height:44px}
.rounds-heading{align-items:center;margin:8px 0 20px!important;gap:12px}.rounds-heading h2{font-size:27px!important;letter-spacing:-.8px;margin:0 0 4px}.rounds-heading p{font-size:14px;margin:0;color:var(--muted)}.rounds-back{display:none}.rounds-heading .pill{font-size:11px;white-space:nowrap;padding:6px 10px}.rounds-tabs{display:flex;gap:4px;background:#e9ede5;padding:4px;border-radius:14px;margin-bottom:18px;overflow:auto;scrollbar-width:none}.rounds-tabs button{flex:1;min-width:max-content;min-height:43px;font-size:12px;padding:8px 12px;background:transparent;color:var(--muted);border:0;box-shadow:none;border-radius:10px}.rounds-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 5px #25332309}.rounds-capture{padding:16px 12px!important}.rounds-capture>.rounds-row{gap:12px}.rounds-capture>.rounds-row h3{margin:0;font-size:18px}.rounds-floors{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;margin:18px 0 14px}.rounds-floors button{padding:9px 4px;font-size:13px;border-radius:11px;min-width:0;white-space:normal}.rounds-floors .active{background:var(--ink);border-color:var(--ink);color:white}
.rounds-list-picker{margin:14px 0;border:1px solid var(--line);border-radius:14px;background:white}.rounds-list-picker summary{min-height:48px;padding:12px 14px;cursor:pointer;font-weight:650}.rounds-list-picker>div{padding:0 10px 12px}.rounds-zone-list{grid-template-columns:1fr!important;gap:7px!important;max-height:340px;overflow:auto}.rounds-zone{text-align:left;padding:12px!important;border-radius:12px!important;min-height:58px}.rounds-zone.selected{box-shadow:inset 0 0 0 1px var(--brand)}.rounds-zone small{font-size:12px}.rounds-selected{margin:14px 0 10px!important;padding:12px 14px!important;background:var(--brand-soft)!important;border:1px solid #ead3c0!important;border-radius:12px;color:#6d381a;font-size:14px!important;line-height:1.4;font-weight:600}.rounds-photo-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 100px;gap:8px!important}.rounds-photo-actions button{padding:12px 8px;font-size:14px;min-height:52px;border-radius:13px}.rounds-run-actions{margin-top:16px!important;font-size:12px;align-items:center!important}.rounds-run-actions>span{max-width:65%;color:var(--muted)}.rounds-run-actions button{font-size:12px;min-height:44px}.rounds-photos{grid-template-columns:1fr!important;gap:12px}.rounds-photo{border:1px solid var(--line);border-radius:17px;overflow:hidden}.rounds-photo-content{padding:14px!important}.rounds-photo .photo-open{height:210px}.rounds-photo img{object-fit:cover}.rounds-list-row{align-items:flex-start!important;gap:12px;padding:14px 0!important}.rounds-list-row>div{min-width:0}.rounds-list-row>button{flex-shrink:0;padding:8px 12px;font-size:13px}.rounds-form-grid{grid-template-columns:1fr!important}.rounds dl{grid-template-columns:1fr!important}.rounds dd{margin:0 0 10px}.rounds-photo-content button{width:100%}.rounds-empty{font-size:14px;color:var(--muted);padding:20px!important}.rounds-note{font-size:13px}.rounds-admin-link{display:inline-block;padding:12px 16px;color:#87401c;background:var(--brand-soft);border-radius:12px;text-decoration:none;margin:8px 0 14px;font-weight:600}
.rounds-map{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fafbf8}.rounds-map-toolbar{display:flex;align-items:center;gap:6px;padding:8px;background:white;border-bottom:1px solid var(--line)}.rounds-map-toolbar select{flex:1;min-width:0;font-size:13px!important;padding:8px}.rounds-map-toolbar button{flex:0 0 42px;min-height:44px;padding:4px;background:#f3f5ef;color:var(--ink);border:0;border-radius:10px;font-size:20px}.rounds-map-toolbar button[data-map-fit]{font-size:12px;flex-basis:52px}.rounds-map-canvas{position:relative;height:330px;overflow:hidden}.rounds-map svg{display:block;width:100%;height:100%;touch-action:none;background:#f6f8f2;user-select:none}.rounds-map polygon{stroke:#465645;stroke-width:1.5;fill:#c6cfc0;fill-opacity:.25;vector-effect:non-scaling-stroke;cursor:default}.rounds-map polygon.assigned{fill:var(--zone-color,#a45729);fill-opacity:.55;stroke:var(--zone-color,#a45729);cursor:pointer}.rounds-map polygon.selected{stroke:#17251a;stroke-width:3;fill-opacity:.9}.rounds-map polygon:focus{stroke:#111;stroke-width:4;outline:none}.rounds-map-status{position:absolute;left:10px;right:10px;bottom:10px;margin:0;font-size:12px;color:#344431;background:#fffffff2;border:1px solid var(--line);padding:9px 12px;border-radius:10px;pointer-events:none}.rounds-map-note{font-size:11px;color:var(--muted);padding:9px 12px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.rounds-map-note span:first-child{font-weight:600}.rounds-map-note i{display:inline-block;width:9px;height:9px;background:var(--brand);border-radius:2px;margin-right:4px}.rounds-map-error{color:#a13725!important}.rounds-map-refresh{font-size:12px;color:var(--muted);text-align:right;margin:6px 2px}
@media(min-width:600px){.rounds-photos{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rounds-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rounds-zone-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rounds-map-canvas{height:440px}.shell{padding-left:24px;padding-right:24px}.section{padding:24px}.top h1{font-size:25px!important}.rounds-capture{padding:24px!important}}
@media(min-width:960px){.shell{padding-bottom:40px}.app-nav{position:sticky;top:0;bottom:auto;border:1px solid var(--line);border-radius:16px;padding:5px;margin:12px 0 26px;justify-content:flex-start;box-shadow:0 8px 20px #25332306}.app-nav>a,.app-nav>button{flex-direction:row;gap:10px;font-size:14px;max-width:none;min-height:48px}.app-nav .app-nav-icon{margin:0;font-size:24px}.rounds-heading{margin-top:22px!important}.rounds-map-canvas{height:530px}.rounds-photos{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dashboard-form{display:grid!important;grid-template-columns:minmax(160px,.7fr) minmax(300px,1.5fr) 150px!important;align-items:start}.dashboard-form .submit-field{padding-top:27px}.overview{grid-template-columns:repeat(6,minmax(0,1fr))}.rounds-list-picker{max-width:none}.back-to-top{bottom:22px!important}.top .user>.pill{display:inline-block;margin-right:10px}.top .user{display:flex!important;align-items:center}.rounds dl{grid-template-columns:auto 1fr!important}.rounds dd{margin:0}.rounds-photo-actions{grid-template-columns:minmax(0,1fr) 180px}}
.input-with-clear{min-width:0;width:100%}.input-with-clear input{min-width:0!important;width:100%}.ocr-row>*{min-width:0!important;max-width:100%;white-space:normal!important}.top{flex-wrap:nowrap!important;flex-direction:row!important}.top-brand{flex:1}.top h1{overflow-wrap:normal!important;white-space:normal!important;max-width:180px!important}.header-actions .install-app{white-space:nowrap}.rounds-heading{flex-wrap:wrap}.tool-panel{animation:none!important}.rounds .rounds-tabs button.active{background:white;color:var(--ink);border-color:transparent}.rounds .rounds-floors button.active{background:var(--ink);color:white;border-color:var(--ink)}.rounds button.secondary{background:#edf0e9;color:#354331;border-color:#dde3d7}.rounds #rounds-start{background:var(--brand);color:white;border-color:var(--brand)}
@media(max-width:380px){.top h1{font-size:17px!important}.top-logo{width:34px!important;height:34px!important;flex-basis:34px!important}.install-app{font-size:12px!important;padding:8px!important}.header-actions{gap:4px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
