:root{color-scheme:dark;--bg: #111318;--bg-card: #1a1d24;--bg-input: #22262e;--bg-hover: #262b35;--border: #2e3340;--text: #e4e6eb;--text-muted: #8b8f9a;--primary: #4db86a;--primary-hover: #3a9c54;--green: #4db86a;--yellow: #eab308;--red: #ef4444;--orange: #f97316;--blue: #3b82f6;--purple: #a855f7;--hub: #4db86a;--radius: 10px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}h1,h2,h3{margin:0;font-weight:650}h1{font-size:1.35rem}h2{font-size:1.1rem}h3{font-size:1rem}.muted{color:var(--text-muted)}.small{font-size:.85rem}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.spacer{flex:1}.stack{display:flex;flex-direction:column;gap:12px}.center-screen{min-height:100vh;display:grid;place-items:center;padding:16px;text-align:center}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--bg-card);border-bottom:3px solid var(--hub)}.topbar .brand{display:flex;align-items:center;gap:8px;font-weight:700;white-space:nowrap}.topbar .brand img{width:28px;height:28px;border-radius:6px;object-fit:cover}.hub-dot{width:10px;height:10px;border-radius:50%;background:var(--hub);display:inline-block}.nav{display:flex;gap:4px;overflow-x:auto;padding:8px 16px;border-bottom:1px solid var(--border);scrollbar-width:none}.nav a{padding:7px 12px;border-radius:8px;color:var(--text-muted);white-space:nowrap;font-weight:550}.nav a.active{background:var(--bg-input);color:var(--text)}main{padding:16px;max-width:1400px;margin:0 auto}.live{font-size:.75rem;display:flex;align-items:center;gap:5px;color:var(--text-muted)}.live:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--red)}.live.on:before{background:var(--green)}button,.btn{font:inherit;border:1px solid var(--border);background:var(--bg-input);color:var(--text);padding:8px 14px;border-radius:8px;cursor:pointer;font-weight:550;min-height:38px}button:hover:not(:disabled){background:var(--bg-hover)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--primary);border-color:var(--primary);color:#0b1a10}button.primary:hover:not(:disabled){background:var(--primary-hover)}button.danger{border-color:var(--red);color:var(--red);background:transparent}button.ghost{background:transparent;border-color:transparent;color:var(--text-muted)}button.big{width:100%;min-height:52px;font-size:1.05rem}input,select,textarea{font:inherit;color:var(--text);background:var(--bg-input);border:1px solid var(--border);border-radius:8px;padding:8px 10px;min-height:38px;width:100%}textarea{min-height:70px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--hub);outline-offset:1px}label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--text-muted)}label.check{flex-direction:row;align-items:center;gap:8px;color:var(--text);font-size:.95rem}label.check input{width:18px;height:18px;min-height:0}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.error{color:var(--red);font-size:.9rem}.ok{color:var(--green);font-size:.9rem}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:650;background:var(--bg-input);color:var(--text-muted);white-space:nowrap}.chip.sold{background:#4db86a2e;color:var(--green)}.chip.fleet{background:#3b82f62e;color:var(--blue)}.chip.parts{background:#eab3082e;color:var(--yellow)}.chip.late{background:#ef444433;color:var(--red)}.chip.stuck{background:#f9731633;color:var(--orange)}.chip.urgent{background:var(--hub);color:#0b1a10}.jobcard.alert{border-left:3px solid var(--red)}.days .bad{color:var(--red);font-weight:700}.chip.done{text-decoration:line-through;opacity:.6}.chip.cancelled{text-decoration:line-through;opacity:.35}.chip.unassigned{color:var(--orange)}.bell{position:relative}.bell>button{position:relative;font-size:1.1rem;padding:6px 8px}.bell .badge{position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--red);color:#fff;font-size:.7rem;font-weight:700;line-height:18px;text-align:center}.bell-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(380px,calc(100vw - 24px));display:flex;flex-direction:column;gap:8px;z-index:30;box-shadow:0 10px 30px #00000080}.bell-list{display:flex;flex-direction:column;gap:4px;max-height:60vh;overflow-y:auto}.bell-item{text-align:left;display:block;width:100%;background:transparent;border-color:transparent;font-weight:400}.bell-item.unread{background:var(--bg-input);border-left:3px solid var(--hub)}.push-box{border-top:1px solid var(--border);padding-top:8px}.push-box button.primary{width:100%}.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(270px,1fr);gap:12px;overflow-x:auto;padding-bottom:8px}.column{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;min-height:200px}.column>header{display:flex;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border);font-weight:650}.column .cards{display:flex;flex-direction:column;gap:8px;padding:8px}.jobcard{display:block;background:var(--bg-input);border:1px solid var(--border);border-radius:8px;padding:10px}.jobcard:hover{border-color:var(--hub)}.title{font-weight:650;display:inline-flex;gap:6px;flex-wrap:wrap;align-items:baseline}.jobcard .desc{color:var(--text-muted);font-size:.85rem;margin:4px 0 6px}.days{font-variant-numeric:tabular-nums;font-size:.8rem;color:var(--text-muted)}.work{display:flex;flex-direction:column;gap:10px;max-width:640px;margin:0 auto}.workitem .what{font-size:1.15rem;font-weight:650;margin:6px 0}.login{max-width:420px;margin:0 auto;padding:32px 16px;display:flex;flex-direction:column;gap:16px}.login .logo{width:72px;height:72px;border-radius:14px;margin:0 auto;display:block}.names{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.names button{min-height:56px}.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pinpad button{min-height:60px;font-size:1.4rem}.pindots{display:flex;justify-content:center;gap:12px;height:20px}.pindots span{width:14px;height:14px;border-radius:50%;border:2px solid var(--text-muted)}.pindots span.full{background:var(--hub);border-color:var(--hub)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:8px;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--text-muted);font-weight:600;font-size:.85rem}.table-wrap{overflow-x:auto}.btn{display:inline-flex;align-items:center}.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}.stock-card{display:grid;grid-template-columns:84px 1fr;gap:10px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:10px}.stock-card:hover{border-color:var(--hub)}.stock-card img,.stock-card .no-photo{width:84px;height:84px;border-radius:8px;object-fit:cover;background:var(--bg-input)}.stock-card .no-photo{display:grid;place-items:center;font-size:.75rem;color:var(--text-muted);text-align:center;padding:4px}.photo-row{display:flex;gap:8px;flex-wrap:wrap}.photo-row figure{margin:0;position:relative}.photo-row img{width:120px;height:120px;object-fit:cover;border-radius:8px;display:block}.photo-row figure button{position:absolute;top:4px;right:4px;min-height:0;padding:2px 7px;background:#0009}.code-box{white-space:pre-wrap;font-family:ui-monospace,Consolas,monospace;font-size:.8rem;background:var(--bg-input);border-radius:8px;padding:10px;max-height:260px;overflow:auto}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.tile{display:flex;flex-direction:column;gap:4px}.tile-value{font-size:1.8rem;font-weight:650;font-variant-numeric:tabular-nums}.tile.bad{border-left:3px solid var(--red)}.tile.warn{border-left:3px solid var(--orange)}.barlist{display:flex;flex-direction:column;gap:6px}.barlist-row{position:relative;display:grid;grid-template-columns:minmax(80px,30%) 1fr;gap:10px;align-items:center;padding:2px 0;border-radius:6px;outline:none}.barlist-row:hover,.barlist-row:focus-visible{background:var(--bg-input)}.barlist-label{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.barlist-track{display:flex;align-items:center;gap:6px;min-width:0}.barlist-bar{height:14px;min-width:4px;background:var(--primary);border-radius:0 4px 4px 0}.barlist-value{font-size:.82rem;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.weekcols{display:grid;grid-template-columns:28px 1fr;gap:6px;height:180px}.weekcols-axis{position:relative;font-size:.72rem;color:var(--text-muted)}.weekcols-axis span{position:absolute;right:0;transform:translateY(50%);line-height:1}.weekcols-plot{position:relative;display:flex;align-items:stretch;gap:2px;padding:16px 0 20px}.weekcols-grid{position:absolute;left:0;right:0;top:16px;bottom:20px;pointer-events:none}.weekcols-grid .gridline{position:absolute;left:0;right:0;height:1px;background:var(--border)}.weekcol{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;outline:none;border-radius:6px}.weekcol:hover,.weekcol:focus-visible{background:#ffffff0a}.weekcol-bar-wrap{position:relative;flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}.weekcol-bar{width:min(24px,70%);background:var(--primary);border-radius:4px 4px 0 0}.weekcol-value{position:absolute;font-size:.75rem;color:var(--text)}.weekcol-label{position:absolute;bottom:-20px;font-size:.68rem;color:var(--text-muted);white-space:nowrap}.tip{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translate(-50%);z-index:5;background:#0b0d11;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:4px 8px;font-size:.78rem;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .1s}.barlist-row:hover .tip,.barlist-row:focus-visible .tip,.weekcol:hover .tip,.weekcol:focus-visible .tip{opacity:1}.timeline{display:flex;flex-direction:column;gap:6px;font-size:.88rem}.timeline .when{color:var(--text-muted);font-variant-numeric:tabular-nums;min-width:120px;display:inline-block}.taskrow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.taskrow:last-child{border-bottom:none}.hub-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}@media (max-width: 640px){.taskrow{grid-template-columns:1fr}main{padding:12px}.wide-only{display:none}.bell-panel{position:fixed;left:12px;right:12px;top:56px;width:auto}.topbar{gap:6px;padding:8px 12px}.topbar button.ghost{padding:6px 8px}}
