:root{--bg:#efeee9;--surface:#fff;--surface-2:#f6f5f1;--text:#16181c;--muted:#474c55;--border:#8d9099;--line:#a9a69a;--gold:#f2c230;--gold-strong:#7a5c00;--gold-soft:#fbf1c9;--on-gold:#16181c;--graphite:#16181c;--on-graphite:#fff;--step-n-active:#f2c230;--bar:#16181c;--on-bar:#fff;--focus:#16181c;--shadow:0 1px 2px #16181c1f;--tap:56px;--radius:14px;--gap:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#0e1013;--surface:#1b1e23;--surface-2:#24282f;--text:#f5f3ea;--muted:#c3c6cc;--border:#6d727c;--line:#565c68;--gold:#f2c230;--gold-strong:#f2c230;--gold-soft:#3a3214;--on-gold:#16181c;--graphite:#f5f3ea;--on-graphite:#16181c;--step-n-active:#7a5c00;--bar:#08090b;--on-bar:#fff;--focus:#f2c230;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e1013;--surface:#1b1e23;--surface-2:#24282f;--text:#f5f3ea;--muted:#c3c6cc;--border:#6d727c;--line:#565c68;--gold:#f2c230;--gold-strong:#f2c230;--gold-soft:#3a3214;--on-gold:#16181c;--graphite:#f5f3ea;--on-graphite:#16181c;--step-n-active:#7a5c00;--bar:#08090b;--on-bar:#fff;--focus:#f2c230;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:17px;line-height:1.45}h1,h2,h3,p{margin:0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}img{max-width:100%;display:block}a{color:inherit}:focus{outline:none}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}[hidden]{display:none!important}.sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app{background:var(--bg);flex-direction:column;max-width:720px;min-height:100dvh;margin:0 auto;display:flex}.top{z-index:20;min-height:56px;padding:4px 8px;padding-top:calc(4px + env(safe-area-inset-top));background:var(--bar);color:var(--on-bar);grid-template-columns:56px 1fr 56px;align-items:center;gap:4px;display:grid;position:sticky;top:0}.top h1{text-align:center;letter-spacing:.01em;white-space:nowrap;text-overflow:ellipsis;font-size:18px;font-weight:700;overflow:hidden}.top .brand{color:var(--gold)}.top-btn{width:48px;height:48px;color:var(--on-bar);background:0 0;border:0;border-radius:12px;place-items:center;display:grid}.top-btn:active{background:#ffffff29}.top-note{text-align:right;color:var(--gold);white-space:nowrap;justify-self:end;padding-right:2px;font-size:13px;font-weight:700;line-height:1.1}.main{padding:var(--gap);gap:var(--gap);flex-direction:column;flex:1;min-width:0;padding-bottom:24px;display:flex}.main>*{min-width:0}.tabs{z-index:20;background:var(--bar);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(4,1fr);display:grid;position:sticky;bottom:0}.tab{color:#d7d9dd;background:0 0;border:0;border-top:4px solid #0000;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:60px;padding:6px 2px;font-size:13px;font-weight:600;display:flex}.tab[aria-current=page]{color:var(--gold);border-top-color:var(--gold)}.tab span{white-space:nowrap}.actionbar{z-index:20;gap:var(--gap);padding:10px var(--gap);padding-bottom:calc(10px + env(safe-area-inset-bottom));background:var(--bg);border-top:2px solid var(--line);grid-template-columns:1fr 1fr;display:grid;position:sticky;bottom:0}.btn{min-height:var(--tap);border-radius:var(--radius);border:2px solid var(--graphite);background:var(--surface);width:100%;color:var(--text);text-align:center;overflow-wrap:break-word;justify-content:center;align-items:center;gap:10px;min-width:0;padding:6px 14px;font-size:17px;font-weight:700;line-height:1.15;text-decoration:none;display:inline-flex}.btn>span{min-width:0}.btn svg{flex:none}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--gold);border-color:var(--gold);color:var(--on-gold)}:root:not([data-theme=dark]) .btn.primary{border-color:var(--graphite)}.btn.dark{background:var(--graphite);border-color:var(--graphite);color:var(--on-graphite)}.btn.big{min-height:76px;font-size:21px}.btn.small{width:auto;min-height:48px;padding:6px 12px;font-size:15px}.btn:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}.btn:disabled:active{transform:none}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .btn.primary{border-color:var(--gold)}}.row2{gap:var(--gap);grid-template-columns:1fr 1fr;display:grid}.row2>.btn,.actionbar>.btn{gap:8px;padding-left:8px;padding-right:8px}@media (max-width:419px){.row2>.btn svg,.actionbar>.btn svg{display:none}}.row3{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stack{gap:var(--gap);flex-direction:column;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:10px;min-width:0;padding:14px;display:flex}.card h2{font-size:18px;font-weight:700}.card h3{font-size:16px;font-weight:700}.muted{color:var(--muted)}.small{font-size:14.5px}.center{text-align:center}.strong{font-weight:700}.notice{border-left:6px solid var(--gold);background:var(--gold-soft);color:var(--text);border-radius:8px;padding:10px 12px;font-size:15.5px}.notice.plain{background:var(--surface-2);border-left-color:var(--border)}.notice strong{font-weight:700}.prose{flex-direction:column;gap:10px;display:flex}.prose ul{flex-direction:column;gap:6px;margin:0;padding-left:20px;display:flex}.prose a{text-underline-offset:3px;font-weight:600;text-decoration:underline}.links{flex-direction:column;display:flex}.links a{border-top:1px solid var(--line);align-items:center;min-height:48px;padding:4px 0;display:flex}.libs{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.prose ul.libs{padding-left:0}.libs li{overflow-wrap:break-word;flex-direction:column;font-size:15.5px;display:flex}.nowrap{white-space:nowrap}.kv{grid-template-columns:auto 1fr;gap:4px 12px;font-size:15.5px;display:grid}.kv dt{color:var(--muted)}.kv dd{text-align:right;margin:0;font-weight:600}.day-head{justify-content:space-between;align-items:center;gap:8px;margin-top:4px;display:flex}.day-head h2{min-width:0;font-size:17px;font-weight:700}.day-head .count{color:var(--muted);font-size:14.5px;font-weight:600}.item{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);width:100%;min-height:92px;box-shadow:var(--shadow);color:var(--text);grid-template-columns:76px 1fr;align-items:center;gap:12px;padding:8px;display:grid}.item:active{background:var(--surface-2)}.thumb{background:var(--surface-2);border:1px solid var(--line);object-fit:cover;width:76px;height:76px;color:var(--muted);border-radius:10px;place-items:center;display:grid}.item-body{flex-direction:column;gap:4px;min-width:0;display:flex}.item-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.item-time{font-size:18px;font-weight:700}.item-note{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;display:-webkit-box;overflow:hidden}.chip{border:2px solid var(--graphite);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:3px 10px;font-size:13px;font-weight:700;display:inline-flex}.chip.zadano{background:var(--gold);color:var(--on-gold);border-color:var(--gold)}.chip.hotovo{background:var(--graphite);color:var(--on-graphite)}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:8px;padding:28px 12px;display:flex}.steps{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.step{border:2px solid var(--border);background:var(--surface);min-height:52px;color:var(--text);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:0;min-width:0;padding:4px 2px;font-size:14.5px;font-weight:700;line-height:1.15;display:flex}.step .n{color:var(--muted);font-size:13px;font-weight:600}.step[aria-current=step]{background:var(--graphite);border-color:var(--graphite);color:var(--on-graphite)}.step[aria-current=step] .n{color:var(--step-n-active)}.step.has{border-bottom:5px solid var(--gold)}.canvas-wrap{width:min(100%, calc(var(--maxh,56vh) * var(--ar,1.333)));aspect-ratio:var(--ar,1.333);background:#2a2d33;border-radius:10px;margin:0 auto;position:relative;overflow:hidden}.canvas-wrap canvas{touch-action:none;cursor:crosshair;width:100%;height:100%;display:block;position:absolute;inset:0}.tools{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.tool{border:2px solid var(--border);background:var(--surface);min-height:60px;color:var(--text);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;padding:4px 0;font-size:13px;font-weight:700;display:flex}.tool[aria-pressed=true]{background:var(--gold);border-color:var(--graphite);color:var(--on-gold)}.tool:disabled{opacity:.55;cursor:not-allowed}.annot{container-type:inline-size}@container (width<=353px){.tools{grid-template-columns:repeat(6,1fr)}.tool{grid-column:span 2}.tool:nth-child(n+4){grid-column:span 3}}.field{flex-direction:column;gap:6px;display:flex}.field label,.label{font-size:16px;font-weight:700}.input,textarea.input{width:100%;min-height:var(--tap);border:2px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;padding:12px;font-size:17px}textarea.input{resize:vertical;min-height:150px;line-height:1.4}.input:focus-visible{outline:3px solid var(--focus);outline-offset:0;border-color:var(--graphite)}.field-foot{color:var(--muted);justify-content:space-between;gap:12px;font-size:14px;display:flex}.field-foot>:last-child{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;font-weight:700}.chips{grid-template-columns:1.45fr 1fr 1fr;gap:6px;display:grid}.chip-btn{border:2px solid var(--graphite);background:var(--surface);min-height:48px;color:var(--text);border-radius:999px;min-width:0;padding:4px 6px;font-size:14px;font-weight:700;line-height:1.1}.chip-btn:active{background:var(--gold);color:var(--on-gold)}.switch{text-align:left;width:100%;min-height:52px;color:var(--text);background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:4px 0;font-weight:600;display:flex}.switch .track{border:2px solid var(--border);background:var(--surface-2);border-radius:999px;flex:none;width:58px;height:34px;position:relative}.switch .track:after{content:"";background:var(--border);border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px}.switch[aria-checked=true] .track{background:var(--gold);border-color:var(--graphite)}.switch[aria-checked=true] .track:after{background:#16181c;transform:translate(24px)}.switch:disabled{opacity:.55}.seg{border:2px solid var(--graphite);border-radius:12px;grid-auto-columns:1fr;grid-auto-flow:column;gap:0;display:grid;overflow:hidden}.seg button{background:var(--surface);min-height:50px;color:var(--text);border:0;border-left:2px solid var(--graphite);min-width:0;padding:4px;font-size:14.5px;font-weight:700;line-height:1.15}.seg button:first-child{border-left:0}.seg button[aria-pressed=true]{background:var(--graphite);color:var(--on-graphite)}.pos-main{font-variant-numeric:tabular-nums;font-size:19px;font-weight:700}.acc{align-items:center;gap:6px;font-weight:700;display:inline-flex}.acc .dot{border:2px solid var(--graphite);background:var(--surface);border-radius:50%;width:14px;height:14px}.acc.dobra .dot{background:var(--gold)}.acc.stredni .dot{background:linear-gradient(90deg, var(--gold) 50%, var(--surface) 50%)}.map-box{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;width:100%;height:min(42vh,360px);min-height:230px;position:relative;overflow:hidden}.map-box .map-el{position:absolute;inset:0}.map-attr{color:var(--muted);text-align:right;margin-top:-6px;font-size:13px;line-height:1.3}.map-attr a{text-underline-offset:2px}.map-wait{text-align:center;color:var(--muted);place-items:center;padding:16px;font-weight:600;display:grid;position:absolute;inset:0}.link-row{flex-direction:column;gap:6px;display:flex}.link-row .name{font-weight:700}.link-row .btn.small{width:100%}.preview{object-fit:contain;background:#2a2d33;border-radius:10px;width:100%;max-height:40vh}.files{color:var(--muted);flex-direction:column;gap:2px;margin:0;padding:0;font-size:14.5px;list-style:none;display:flex}.overlay{z-index:50;padding:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom));background:#08090bb8;place-items:end center;display:grid;position:fixed;inset:0}@media (min-width:600px){.overlay{place-items:center}}.dialog{background:var(--surface);width:100%;max-width:460px;max-height:calc(100dvh - 24px);color:var(--text);border:2px solid var(--graphite);border-radius:18px;flex-direction:column;gap:14px;padding:18px;display:flex;overflow:auto}.dialog h2{font-size:20px;font-weight:700}.toast{left:50%;bottom:calc(84px + env(safe-area-inset-bottom));z-index:60;background:var(--graphite);color:var(--on-graphite);text-align:center;border:2px solid var(--gold);border-radius:12px;max-width:min(92vw,480px);padding:12px 18px;font-weight:700;position:fixed;transform:translate(-50%)}.lock{background:var(--bar);place-items:center;min-height:100dvh;padding:20px;display:grid}.lock .dialog{border-color:var(--gold)}.pin{letter-spacing:.4em;text-align:center;font-size:26px;font-weight:700}.spinner{border:3px solid var(--border);border-top-color:var(--gold-strong);border-radius:50%;flex:none;width:22px;height:22px;animation:.9s linear infinite spin}.busy{color:var(--muted);justify-content:center;align-items:center;gap:10px;min-height:48px;font-weight:600;display:flex}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}.switch .track:after{transition:none}}.map-box .maplibregl-ctrl.maplibregl-ctrl-group button{width:48px;height:48px}@media (max-width:359px){.top h1{font-size:17px}.step{font-size:13px}.btn.big{font-size:19px}.chip-btn{font-size:13px}}.step span,.tool span{white-space:nowrap}@media (min-width:600px){.main{padding:20px}.actionbar{padding-left:20px;padding-right:20px}}
