/* WartungsPilot: Layout und Komponenten. Aufbau und Maße folgen LagerPilot (app.css 5.1). */
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{font:400 15px/1.45 var(--font);background:var(--bg);color:var(--fg);-webkit-font-smoothing:antialiased;min-height:100dvh}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
button:disabled{cursor:default;opacity:.55}
a{color:inherit}
h1{font:700 30px/1.15 var(--font-display);letter-spacing:-.025em}
h2{font:600 13px var(--font);color:var(--muted)}
h3{font:600 17px var(--font-display);letter-spacing:-.01em}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.muted{color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none}
noscript{display:block;padding:24px;text-align:center}

/* ---------- Schaltflächen und Eingaben ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);font-size:15px;font-weight:600;text-decoration:none;color:var(--fg);transition:transform .15s var(--ease),background .2s,opacity .2s}
.button:hover:not(:disabled){background:var(--surface-3)}
.button:active:not(:disabled){transform:scale(.98)}
.button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.button.primary:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}
.button.ghost{background:transparent;border-color:transparent}
.button.ghost:hover:not(:disabled){background:var(--accent-soft)}
.button.danger{background:var(--crit-soft);border-color:transparent;color:var(--crit)}
.button.small{min-height:36px;padding:0 13px;font-size:14px;border-radius:10px}
.full{width:100%}
.text-button{color:var(--fg);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--brand-ink) 55%,transparent);text-underline-offset:3px;text-decoration-thickness:1.5px;min-height:40px;padding:0 4px;font-weight:600}
.icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);flex:none}
.icon-button:hover{background:var(--surface-3)}
label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;margin-bottom:16px}
label small{font-weight:400;color:var(--muted)}
input,textarea,select,.field{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--fg);font:inherit;font-size:16px;font-weight:400}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:focus,textarea:focus,select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:38px}
input[type=file]{padding:9px 10px;font-size:14px}
.check-label{flex-direction:row;align-items:center;gap:12px;font-weight:500}
.check-label input{width:20px;min-height:20px;height:20px;padding:0;accent-color:var(--accent)}
.code-input{font:600 24px var(--font-mono);letter-spacing:.3em;text-align:center}
.form-error{font-size:14px;color:var(--crit);min-height:1px;margin-bottom:12px}
.form-error:empty{margin:0}
.notice{display:flex;gap:10px;background:var(--surface-2);border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;margin-bottom:16px}
.notice.warn{background:var(--warn-soft);color:var(--warn)}.notice.crit{background:var(--crit-soft);color:var(--crit)}.notice.ok{background:var(--ok-soft);color:var(--ok)}
.notice .icon{margin-top:1px}

/* ---------- Status ---------- */
.pill{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.pill .icon{width:13px;height:13px;stroke-width:2.2}
.pill.ok{background:var(--ok-soft);color:var(--ok)}.pill.warn{background:var(--warn-soft);color:var(--warn)}.pill.crit{background:var(--crit-soft);color:var(--crit)}.pill.plain{background:var(--surface-3);color:var(--muted)}
.seg{display:inline-flex;padding:3px;border-radius:11px;background:var(--surface-3)}
.seg button{min-height:34px;padding:0 14px;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.tabs{display:flex;gap:4px;padding:4px;border-radius:13px;background:var(--surface-3);overflow:auto;margin-bottom:20px;width:fit-content;max-width:100%;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{min-height:36px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* ---------- Start und Anmeldung ---------- */
.boot{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted)}
.logo-pair{display:block;flex:none;line-height:0}.logo{display:block;width:100%;height:auto}.logo-dark{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .logo-light{display:none}:root:not([data-theme="light"]) .logo-dark{display:block}}
:root[data-theme="dark"] .logo-light{display:none}:root[data-theme="dark"] .logo-dark{display:block}
.boot-logo{width:180px}.login-logo{width:150px}.side-logo{width:132px}.footer-logo{width:74px;margin:0 auto 6px;opacity:.8}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(900px 600px at 15% 10%,var(--backdrop-b),transparent 60%),radial-gradient(800px 700px at 90% 90%,var(--backdrop-a),transparent 60%),var(--bg)}
.login-card{width:100%;max-width:420px;border-radius:26px;padding:30px 28px 22px}
.login-brand{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.app-name{font-weight:700;font-size:16px;letter-spacing:-.02em}.app-name small{display:block;font-size:11.5px;font-weight:500;color:var(--muted);letter-spacing:0}
.login-card h1{font-size:26px;margin-bottom:6px}
.login-card .lead{color:var(--muted);margin-bottom:22px}
.login-security{display:flex;align-items:center;gap:8px;justify-content:center;color:var(--muted);font-size:13px;margin-top:20px}
.login-foot{text-align:center;color:var(--faint);margin-top:8px}
.qr{display:block;width:196px;height:196px;margin:0 auto 14px;border-radius:14px;background:#fff;padding:8px}
.secret{display:block;font:600 14px var(--font-mono);letter-spacing:.08em;text-align:center;word-break:break-all;background:var(--surface-2);border-radius:10px;padding:10px;margin-bottom:16px;user-select:all}
.codes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px;padding:0;list-style:none}
.codes li{font:600 15px var(--font-mono);text-align:center;background:var(--surface-2);border-radius:10px;padding:9px 6px;user-select:all}
.steps{display:grid;gap:8px;margin:0 0 16px;padding-left:20px;color:var(--muted);font-size:14px}

/* ---------- Rahmen ---------- */
.application{min-height:100dvh}
.sidebar{display:none}
.workspace{min-width:0;display:flex;flex-direction:column;min-height:100dvh}
.topbar-wrap{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 84%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.topbar{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px}
.searchpill{flex:1;max-width:520px;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:16px;text-align:left}
.searchpill kbd,.kbd{margin-left:auto;font:500 12px var(--font);color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:1px 7px}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.connection{display:none;align-items:center;gap:7px;font-size:13px;color:var(--muted)}
.connection::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ok)}
.connection.stale{color:var(--warn)}.connection.stale::before{background:var(--warn)}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:var(--on-brand);font-size:13px;font-weight:700;flex:none}
main{width:100%;max-width:1180px;margin:0 auto;padding:6px 16px 40px;flex:1}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:8px 2px 20px}
.page-heading p{margin-top:6px;color:var(--muted);font-size:16px;max-width:70ch}
.heading-actions{display:flex;gap:10px;flex-wrap:wrap}
.app-footer{text-align:center;padding:10px 16px calc(104px + env(safe-area-inset-bottom));color:var(--muted);font-size:12px;line-height:1.7}
.mobile-nav{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:30;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:8px;border-radius:24px}
.mobile-nav button{display:grid;justify-items:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);padding:4px}
.mobile-nav button.active{color:var(--fg)}

/* ---------- Karten, Listen, Tabellen ---------- */
.grid{display:grid;grid-template-columns:1fr;gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;min-width:0;margin-bottom:20px}
.grid .card{margin-bottom:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.note{font-size:13px;color:var(--muted);line-height:1.5}
.card .note{margin-top:10px}.card-foot .note{margin:0}
.rows{display:grid}
.row{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:14px;min-width:0}
.row:first-child{border-top:0}
.row .grow{flex:1;min-width:0}.row .grow b{display:block;font-weight:600;overflow-wrap:anywhere}.row .grow small{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.scroll-x{overflow-x:auto;margin:0 -20px;padding:0 20px}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:600px}
th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:0 10px 10px 0;white-space:nowrap}
td{padding:10px 10px 10px 0;border-top:1px solid var(--line);vertical-align:middle}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
td.act,th.act{text-align:right;padding-right:0;white-space:nowrap}
.empty{text-align:center;color:var(--muted);padding:34px 12px}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:4px 16px}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:13px;color:var(--muted)}
.log{font:13px/1.5 var(--font-mono);background:var(--surface-2);border-radius:12px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;margin-top:10px}
.progress{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden;margin:12px 0}
.progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .2s}
.roadmap{display:grid;gap:0;counter-reset:m}
.roadmap .row b{font-weight:600}

/* ---------- Anlagen und Import ---------- */
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.toolbar .tabs{margin-bottom:0}
.toolbar input[type=search]{flex:1;min-width:200px;max-width:360px;background:var(--surface)}
table.clickable tbody tr{cursor:pointer}
table.clickable tbody tr:hover td{background:var(--surface-2)}
.qs{white-space:nowrap}
.q{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:4px;border-radius:50%;font-size:12px;font-weight:700;color:var(--faint);border:1.5px solid var(--line-strong)}
.q.done{background:var(--ok);border-color:var(--ok);color:var(--surface)}
.pre{white-space:pre-wrap}
.crit-text{color:var(--crit)}
.warn-text{color:var(--warn)}
.toolbar select{width:auto;min-width:200px;background-color:var(--surface)}
.counts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:4px 0 16px}
.counts div{display:grid;gap:6px;justify-items:start;background:var(--glass-strong);border:1px solid var(--glass-line);border-radius:14px;padding:12px}
.counts b{font:700 24px var(--font-display);font-variant-numeric:tabular-nums}
.import-head{margin-top:24px}
#import-result table{min-width:520px}
@media (min-width:761px){.drawer.wide{width:760px}}

.addr{color:var(--muted);font-size:13px}
button.q{cursor:pointer;background:none;padding:0}
button.q:hover{border-color:var(--accent)}
.qs.big .q{width:44px;height:44px;font-size:16px;margin-right:8px}
.block{padding:4px 0 22px;margin-bottom:18px;border-bottom:1px solid var(--glass-line)}
.block:last-child{border-bottom:0;margin-bottom:0}
.block h3{display:flex;align-items:center;gap:10px;margin-bottom:12px}
h2.sub{margin:22px 0 12px}
#geo-results,#place-results{margin:12px 0}
textarea{min-height:64px;resize:vertical;line-height:1.4}
fieldset{border:1px solid var(--line);margin:0 0 16px;padding:14px 14px 4px;border-radius:14px}
legend{font-size:14px;font-weight:600;padding:0 6px}
.field.short{width:92px;text-align:right}
td .field{min-height:36px;padding:6px 10px;font-size:14px}
.digit{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:30px;padding:0 10px;border-radius:8px;background:var(--surface-3);font-weight:700}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.lead{margin:-4px 2px 16px;max-width:75ch}
.notice .text-button{min-height:0;padding:0;margin-left:6px;color:inherit}

/* ---------- Störungen ---------- */
.prio{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}
.prio .icon{width:13px;height:13px;stroke-width:2.2}
.prio.p1{background:var(--p1-soft);color:var(--p1)}.prio.p2{background:var(--p2-soft);color:var(--p2)}.prio.p3{background:var(--p3-soft);color:var(--p3)}.prio.p4{background:var(--p4-soft);color:var(--p4)}
.prio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}
.prio-tile{border-radius:14px;padding:12px 14px;display:grid;gap:2px}
.prio-tile b{font:700 26px var(--font-display);font-variant-numeric:tabular-nums}
.prio-tile small{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prio-tile.p1{background:var(--p1-soft);color:var(--p1)}.prio-tile.p2{background:var(--p2-soft);color:var(--p2)}.prio-tile.p3{background:var(--p3-soft);color:var(--p3)}.prio-tile.p4{background:var(--p4-soft);color:var(--p4)}
@media (min-width:761px){.prio-grid{grid-template-columns:repeat(4,1fr)}}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-bottom:14px}
.photos a{display:block;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--surface-3)}
.photos img{width:100%;height:100%;object-fit:cover;display:block}
.history{margin-top:10px}
table.narrow{min-width:420px;max-width:640px}
#urgency-form .card{margin-bottom:16px}
.dialog-actions select{width:auto;min-height:36px;padding:4px 34px 4px 12px;font-size:14px}
.check-label.inline{margin:0;font-size:14px;white-space:nowrap}

/* ---------- Tourenplanung ---------- */
main.wide{max-width:none}
.weeknav{display:flex;align-items:center;gap:8px;font-size:14px}
.weeknav .icon-button:first-child .icon{transform:scaleX(-1)}
.tourlayout{display:grid;gap:16px;grid-template-columns:1fr}
.tourside{display:grid;gap:16px;align-content:start;min-width:0}
.tourlayout .card{margin:0}
.tourmap{padding:0;overflow:hidden;min-height:420px}
#tourmap{height:100%;min-height:420px}
.tourpool .stops{max-height:340px;overflow:auto}
@media (min-width:1100px){
  .tourlayout{grid-template-columns:minmax(360px,440px) minmax(0,1fr);align-items:start}
  .tourmap{position:sticky;top:76px;height:calc(100dvh - 150px);min-height:480px}
}
.tourblock{border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:10px;transition:border-color .15s,background .15s}
.tourblock.over,.tourpool.over{border-color:var(--accent);background:var(--surface-2)}
.tourblock.busy{background:var(--surface-2)}
.tourblock header{display:flex;align-items:center;gap:10px}
.tourblock header .grow{flex:1;min-width:0}.tourblock header b{display:block;font-size:14.5px}.tourblock header small{color:var(--muted);font-size:12.5px}
.swatch{width:8px;height:30px;border-radius:4px;flex:none;background:var(--faint)}
.load{width:54px;height:6px;border-radius:99px;background:var(--surface-3);overflow:hidden;flex:none}
.load i{display:block;height:100%;border-radius:99px;background:var(--accent)}.load i.over{background:var(--crit)}
.tourwarn{display:flex;align-items:center;gap:6px;color:var(--crit);font-size:12.5px;margin:8px 2px 0}
.tourwarn .icon{width:14px;height:14px}
.tourblock .stops{margin-top:8px}
.drophint{font-size:13px;color:var(--faint);text-align:center;padding:10px;border:1px dashed var(--line-strong);border-radius:10px}
.stop{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;font-size:13.5px;border:1px solid transparent;min-width:0}
.stop[draggable="true"]{cursor:grab}
.stop:hover,.stop.hot{background:var(--surface-2);border-color:var(--line)}
.stop.dragging{opacity:.4}
.stop .n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:var(--surface);font-size:11.5px;font-weight:700;flex:none;background:var(--faint)}
.stop .grow{flex:1;min-width:0}.stop b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stop small{color:var(--muted);font-size:12px;display:block;overflow-wrap:anywhere}
.stop time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.stop .x{width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--faint);flex:none}.stop .x:hover{background:var(--surface-3);color:var(--crit)}
.stop .x .icon{width:14px;height:14px}
.stop.noaddr{opacity:.7}
.tourblock footer{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.tourblock footer select{flex:1;min-width:110px;min-height:34px;padding:4px 30px 4px 10px;font-size:13px}
.option{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;margin-top:8px;background:var(--glass-strong);border:1px solid var(--glass-line);font-size:13.5px;width:100%;text-align:left}
.option:hover{border-color:var(--line-strong)}.option .grow{flex:1}.option b{display:block}.option small{color:var(--muted)}
.option .delta{text-align:right;font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--muted);white-space:nowrap}
.karte{position:relative;overflow:hidden;background:var(--surface-3);touch-action:none;cursor:grab;user-select:none;width:100%;height:100%;min-height:inherit}
.karte.dragging{cursor:grabbing}
.karte-tiles,.karte-svg{position:absolute;inset:0;width:100%;height:100%}
.karte-tiles img{position:absolute;left:0;top:0;width:256px;height:256px;pointer-events:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .karte-tiles{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9)}}
:root[data-theme="dark"] .karte-tiles{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9)}
.karte-route{fill:none;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.karte-marker{cursor:pointer}
.karte-marker circle{stroke:var(--surface);stroke-width:2.5}
.karte-marker.open circle{fill:var(--surface);stroke-width:3.5}
.karte-marker text{font:700 12px var(--font);fill:var(--surface);text-anchor:middle;pointer-events:none}
.karte-marker.depot rect{fill:var(--fg);stroke:var(--surface);stroke-width:2}
.karte-marker.hot circle{stroke:var(--fg);stroke-width:4}
.karte-zoom{position:absolute;right:12px;top:12px;display:grid;border-radius:12px;overflow:hidden;background:var(--glass-strong);border:1px solid var(--glass-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.karte-zoom button{width:36px;height:36px;font-size:20px;font-weight:600}.karte-zoom button:hover{background:var(--surface-3)}
.karte-credit{position:absolute;right:8px;bottom:6px;font-size:11px;color:var(--muted);background:var(--glass-strong);border-radius:6px;padding:1px 6px}

/* ---------- Übersicht ---------- */
button.card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s}
button.card.click:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.hero{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.bigring{width:132px;height:132px;flex:none}
.bigring circle{fill:none;stroke-width:11;stroke-linecap:round}
.bigring .track{stroke:var(--surface-3)}.bigring .planned{stroke:var(--line-strong)}.bigring .done{stroke:var(--ok)}
.bigring text{font:700 28px var(--font-display);fill:var(--fg);text-anchor:middle}.bigring .cap{font:500 11px var(--font);fill:var(--muted)}
.legend{display:grid;gap:9px;flex:1;min-width:220px}.legend div{display:flex;align-items:center;gap:9px;font-size:14px}.legend b{margin-left:auto;font-variant-numeric:tabular-nums}
.dot{width:9px;height:9px;border-radius:50%;flex:none}
.dot.done{background:var(--ok)}.dot.planned{background:var(--line-strong)}.dot.open{background:var(--surface-3);border:1px solid var(--line-strong)}.dot.crit{background:var(--crit)}
.bars{display:grid;gap:14px}.bar-row{display:grid;gap:6px;font-size:14px}.bar-row span{display:flex;justify-content:space-between}
.bar{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden;display:flex}.bar i{display:block;height:100%}.bar .done{background:var(--ok)}.bar .planned{background:var(--line-strong)}
.card-head.second{margin-top:22px}
.notice.flat{margin:0}
fieldset.plain{border:0;padding:0;margin:0;min-width:0}
a.button{text-decoration:none}

/* ---------- Dialoge ---------- */
dialog{border:0;padding:0;color:var(--fg);max-width:calc(100vw - 24px)}
dialog::backdrop{background:rgba(8,10,14,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:480px;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:24px 0 0 24px;overflow:auto;overscroll-behavior:contain}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 10px;position:sticky;top:0;z-index:2;background:var(--glass-strong);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.confirm-dialog .dialog-head{position:static;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.dialog-head h2{font:700 20px var(--font-display);color:var(--fg);letter-spacing:-.02em}
.dialog-body{padding:14px 22px 26px}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}
.confirm-dialog{margin:auto;width:440px;border-radius:22px}
.confirm-dialog p{color:var(--muted);line-height:1.5;margin-bottom:16px}
.search-dialog{margin:12vh auto auto;width:600px;border-radius:20px;overflow:hidden}
.search-dialog input{border:0;border-radius:0;background:transparent;min-height:58px;font-size:18px;padding:0 20px;border-bottom:1px solid var(--glass-line)}
.search-dialog input:focus{box-shadow:none}
.search-results{max-height:50vh;overflow:auto;padding:8px}
.search-results button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 12px;border-radius:12px;text-align:left;font-size:15px}
.search-results button small{margin-left:auto;color:var(--muted);font-size:12.5px}
.search-results button.sel,.search-results button:hover{background:var(--glass-strong)}
.toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;width:max-content;max-width:calc(100vw - 32px);text-align:center}
.toast.error{color:var(--crit)}

@media (max-width:760px){
  .drawer{inset:auto 0 0 0;width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 28px - env(safe-area-inset-top));border-radius:26px 26px 0 0}
  .searchpill span,.searchpill kbd{display:none}.searchpill{flex:0 0 44px;padding:0;justify-content:center}
}
@media (min-width:761px){
  .grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}
  .c4{grid-column:span 4}.c5{grid-column:span 5}.c6{grid-column:span 6}.c7{grid-column:span 7}.c8{grid-column:span 8}.c12{grid-column:span 12}
  .connection{display:flex}
}
@media (min-width:1024px){
  .application{display:grid;grid-template-columns:248px minmax(0,1fr)}
  .sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;padding:22px 12px 16px;background:var(--surface-2);border-right:1px solid var(--line);z-index:25}
  .mobile-nav{display:none}
  .brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:2px 10px 22px;text-decoration:none}
  .side-nav{display:flex;flex-direction:column;gap:2px;overflow:auto}
  .nav{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 12px;border-radius:10px;font-size:15px;font-weight:500;color:var(--muted);text-align:left;transition:background .15s,color .15s}
  .nav:hover:not(:disabled){background:var(--surface-3);color:var(--fg)}
  .nav.active{background:var(--surface);color:var(--fg);box-shadow:inset 3px 0 0 var(--brand),0 1px 2px rgba(0,0,0,.1)}
  .nav-count{margin-left:auto;font-size:11px;font-weight:600;color:var(--faint)}
  .nav-label{font-size:12px;font-weight:600;color:var(--muted);padding:18px 12px 6px}
  .sidebar-bottom{margin-top:auto;display:grid;gap:4px;padding:12px 6px 0;border-top:1px solid var(--line)}
  .who{display:flex;align-items:center;gap:10px;padding:8px 6px;font-size:14px;font-weight:600}
  .who small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
  .logout{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 8px;color:var(--muted);font-size:14.5px;border-radius:10px;width:100%}
  .logout:hover{background:var(--surface-3)}
  .version{font-size:12px;color:var(--faint);padding:2px 8px}
  .topbar{padding:14px 32px 10px}
  main{padding:6px 32px 40px}
  .app-footer{padding-bottom:24px}
  .toast{bottom:28px}
}
@media (prefers-reduced-motion:no-preference){
  main>*{animation:rise .35s var(--ease) both}
  dialog[open]{animation:pop .25s var(--ease)}
  .drawer[open]{animation:slide .32s var(--ease)}
  @keyframes rise{from{opacity:0;transform:translateY(6px)}}
  @keyframes pop{from{opacity:0;transform:scale(.97)}}
  @keyframes slide{from{transform:translateX(40px);opacity:0}}
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference){.drawer[open]{animation:sheet .32s var(--ease)}@keyframes sheet{from{transform:translateY(40px);opacity:0}}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar-wrap,.mobile-nav,.app-footer,.toast{display:none!important}body{background:#fff}}
