html,body,#root{min-width:320px;min-height:100%;margin:0}body,#root{min-height:100vh}:root{--bg:#f6f4f0;--surface:#fff;--ink:#1c1b1a;--muted:#8a8682;--line:#e5e1da;--accent:#d9531e;color:var(--ink);background:var(--bg);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);min-height:100%;margin:0}button,select,input{font:inherit}.app{grid-template-rows:auto auto 1fr;min-height:100vh;display:grid}.topbar,.toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:14px 28px;display:flex}.topbar{background:#fff}.brand,.toolbar-left,.topbar-right,.filter-row,.legend,.actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.brand-mark{background:var(--ink);color:#fff;border-radius:10px;place-items:center;width:36px;height:36px;font-weight:900;display:grid;position:relative;overflow:hidden}.brand-mark:after{content:"";background:var(--accent);height:13px;position:absolute;bottom:0;left:0;right:0}.brand-mark span{z-index:1;position:relative}.brand-name,.week-title{font-weight:900}.brand-sub,.week-sub{color:var(--muted);font-size:12px}.chip,.btn,.week-nav button,.seg button{border:1px solid var(--line);color:#4a4745;cursor:pointer;background:#fff;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800}.chip.primary,.btn.primary,.seg .active{background:var(--ink);border-color:var(--ink);color:#fff}.select-chip{appearance:none}.avatar-sm{color:#fff;background:var(--ink);border-radius:50%;place-items:center;width:30px;height:30px;font-size:11px;font-weight:900;display:grid}.week-nav,.seg{gap:6px;display:flex}.seg{border:1px solid var(--line);background:#fff;border-radius:999px;padding:3px}.seg button{color:var(--muted);background:0 0;border:0}.week-title{letter-spacing:-.04em;font-size:22px}.cal-wrap{padding:0 28px 24px;overflow:auto}.cal{border:1px solid var(--line);background:#fff;border-radius:22px;min-width:980px;overflow:hidden;box-shadow:0 1px 2px #0001}.calendar-gap{height:20px}.cal-head,.cal-body,.multi-row{grid-template-columns:repeat(6,1fr);display:grid}.cal-head{border-bottom:1px solid var(--line);height:62px}.h{color:var(--muted);text-transform:uppercase;border-right:1px solid #efece6;padding:12px 14px;font-size:12px;font-weight:900;position:relative}.h:last-child,.day-col:last-child,.multi-cell:last-child{border-right:0}.today{background:#fff8f3}.day-num{color:var(--ink);margin-top:4px;font-size:21px;display:block}.count{background:var(--ink);color:#fff;border-radius:99px;place-items:center;min-width:20px;height:20px;font-size:11px;display:grid;position:absolute;top:10px;right:10px}.cal-body{background:#fbfaf8}.multi-row{border-bottom:1px solid var(--line);grid-column:1/-1;position:relative}.multi-cell,.day-col{border-right:1px solid #efece6}.weekend{background:#f8f4ee}.multi-event{display:flex;position:absolute}.day-col{min-height:470px;padding:10px}.empty-hint{border:1px dashed var(--line);text-align:center;color:#b8b1a8;border-radius:10px;padding:12px;font-size:12px}.event{text-align:left;cursor:pointer;border:1px solid #0001;border-radius:13px;flex-direction:column;gap:6px;width:100%;min-height:132px;margin-bottom:9px;padding:11px;display:flex;position:relative;box-shadow:0 1px 1px #0001}.event:before{content:"";background:currentColor;border-radius:13px 0 0 13px;width:4px;position:absolute;top:0;bottom:0;left:0}.t-inspektion{color:#2f5d3b;background:#e7efe3}.t-reparatur{color:#8a3a15;background:#fde7d8}.t-reifen{color:#234a66;background:#e4ecf2}.t-karosserie{color:#6e2a49;background:#f1e4ec}.t-diagnose{color:#6b5423;background:#efe8d8}.t-huau{color:#463074;background:#e9e2f1}.e-row1,.e-footer{justify-content:space-between;align-items:center;display:flex}.e-id,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.e-id{font-size:11px;font-weight:900}.e-title{color:var(--ink);font-size:13px;font-weight:900;line-height:1.2}.e-cust{color:#4a4745;font-size:12px}.e-badges{flex-wrap:wrap;gap:6px;margin-top:auto;display:flex}.e-avatar{color:#fff;border-radius:50%;place-items:center;width:23px;height:23px;font-size:9px;font-weight:900;display:grid}.type-mini,.mr-span{text-transform:uppercase;letter-spacing:.06em;font-size:10px}.add-btn{width:100%;height:36px;color:var(--muted);background:#fff9;border:1px dashed #d8d2c9;border-radius:11px;font-weight:900}.veh-badge{color:#4a4745;background:#fff9;border:1px solid #0001;border-radius:999px;align-items:center;gap:5px;padding:3px 7px;font-size:10px;display:inline-flex}.v-brand{color:var(--ink);font-weight:900}.v-dot{background:var(--muted);border-radius:50%;width:3px;height:3px}.plate{color:#111;background:#fff;border:1px solid #111;border-radius:3px;height:18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:900;display:inline-flex;overflow:hidden}.plate.lg{height:24px;font-size:13px}.p-eu{color:#fff;background:#039;place-items:center;width:14px;display:grid}.p-country{font-size:6px}.p-stars:before{content:"*";color:#fc0}.p-num{place-items:center;padding:0 6px;display:grid}.legend-row{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:14px;display:flex}.legend{color:#4a4745;font-size:12px}.sw{align-items:center;gap:6px;display:inline-flex}.sw i,.dot{border-radius:50%;width:8px;height:8px;display:inline-block}.sw-inspektion{background:#e7efe3}.sw-reparatur{background:#fde7d8}.sw-reifen{background:#e4ecf2}.sw-karosserie{background:#f1e4ec}.sw-diagnose{background:#efe8d8}.sw-huau{background:#e9e2f1}.dot.open{background:#b8863c}.dot.wip{background:#2a6cb5}.dot.wait{background:#a04e2b}.dot.done{background:#3d7a4a}.modal-backdrop{z-index:30;background:#1c1b1a61;place-items:center;padding:30px;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--line);background:#fbfaf8;border-radius:24px;grid-template-rows:auto 1fr auto;width:min(1060px,96vw);max-height:90vh;display:grid;overflow:hidden;box-shadow:0 20px 80px #0004}.modal-head,.modal-foot{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;gap:16px;padding:20px 26px;display:flex}.modal-foot{border-top:1px solid var(--line);border-bottom:0}.modal-title-area{flex:1}.modal h2{margin:4px 0 10px;font-size:24px;line-height:1.1}.m-id{color:var(--muted);font-size:12px;font-weight:900}.m-tags{flex-wrap:wrap;gap:8px;display:flex}.tag{border-radius:999px;gap:6px;padding:5px 9px;font-size:12px;font-weight:900;display:inline-flex}.tag.neutral,.tag.status{border:1px solid var(--line);color:#4a4745;background:#fff}.modal-close{border:1px solid var(--line);background:#fff;border-radius:50%;width:36px;height:36px}.modal-body{grid-template-columns:minmax(0,1fr) 340px;gap:22px;padding:24px 26px;display:grid;overflow:auto}.field-group{flex-direction:column;gap:16px;display:flex}.field-label{text-transform:uppercase;color:var(--muted);margin-bottom:8px;font-size:11px;font-weight:900}.desc-box,.info-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:14px}.checklist{gap:8px;margin:0;padding:0;list-style:none;display:grid}.checklist li{border:1px solid var(--line);background:#fff;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;display:flex}.checklist .done{color:var(--muted);background:#f5f3ef;text-decoration:line-through}.info-row{border-bottom:1px solid #efece6;justify-content:space-between;gap:10px;padding:8px 0;display:flex}.info-row:last-child{border-bottom:0}.k{color:var(--muted)}.v{text-align:right;font-weight:800}.parts-value{gap:8px;display:flex}.part-status{color:#a04e2b;text-transform:uppercase;font-size:11px}.small{font-size:11px}.card-title,.assignee-name{font-weight:900}.assignee{align-items:center;gap:10px;display:flex}.assignee-avatar{width:32px;height:32px}.btn.danger{color:#8a3a15;background:#fff5ee;border-color:#f0d6c6}@media (width<=900px){.topbar,.toolbar{flex-direction:column;align-items:flex-start;padding-left:14px;padding-right:14px}.cal-wrap{padding:0 14px 18px}.modal-body{grid-template-columns:1fr}.modal-foot{flex-direction:column}}
