:root{color-scheme:light dark;--bg: #0f1115;--panel: #181b22;--border: #2a2e37;--text: #e8e9ec;--muted: #9aa1ac;--accent: #6d8dfa;--accent-solid: #3f5be0;--accent-solid-hover: #3450c9;--danger: #c0392b;--focus-ring: #6d8dfa}@media (prefers-color-scheme: light){:root{--bg: #f4f5f7;--panel: #ffffff;--border: #dde1e7;--text: #14161a;--muted: #5b6270;--accent: #3559d6;--accent-solid: #3559d6;--accent-solid-hover: #2a47b0;--danger: #a33;--focus-ring: #3559d6}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}a,button,input[type=checkbox],.card[role=button]{cursor:pointer}:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*{transition:none!important}}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-box{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:2rem;width:320px;text-align:center}.login-box h1{margin-top:0;font-size:1.4rem}input,button{font:inherit}input[type=text],input[type=password],textarea,select{width:100%;padding:.5rem .7rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);margin-bottom:.6rem;transition:border-color .15s ease-out}input[type=text]:hover,input[type=password]:hover,textarea:hover,select:hover{border-color:var(--accent)}.field-label{display:block;color:var(--muted);font-size:.78rem;margin-bottom:.25rem}button{padding:.5rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--accent-solid);color:#fff;transition:background-color .15s ease-out,opacity .15s ease-out}button:hover:not(:disabled){background:var(--accent-solid-hover)}button:disabled{opacity:.55;cursor:not-allowed}button.secondary{background:transparent;color:var(--text)}button.secondary:hover:not(:disabled){background:var(--panel)}.app-shell{display:flex;min-height:100vh}nav.sidebar{width:180px;border-right:1px solid var(--border);padding:1rem;display:flex;flex-direction:column;gap:.4rem}nav.sidebar h2{font-size:1.1rem;margin:0 0 1rem}nav.sidebar button{background:transparent;color:var(--text);border:none;text-align:left;padding:.5rem .6rem;border-radius:6px;transition:background-color .15s ease-out}nav.sidebar button:hover:not(.active){background:var(--border)}nav.sidebar button.active{background:var(--panel);font-weight:600}main.content{flex:1;padding:1.5rem 2rem;max-width:1100px}.tiles{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.tile{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1rem 1.4rem;min-width:120px}.tile .n{font-size:1.8rem;font-weight:700}.tile .label{color:var(--muted);font-size:.85rem}.card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1rem;margin-bottom:.8rem}.card .meta{color:var(--muted);font-size:.8rem;margin-bottom:.3rem}.card .body{white-space:pre-wrap;word-break:break-word;font-size:.9rem}.card[role=button]{transition:border-color .15s ease-out}.card[role=button]:hover{border-color:var(--accent)}.todo-row{display:flex;align-items:center;gap:.6rem;padding:.4rem 0;border-bottom:1px solid var(--border)}.todo-row .title{flex:1}.todo-row .client{color:var(--muted);font-size:.8rem}.todo-row input[type=checkbox]{width:18px;height:18px}.search-box{display:flex;gap:.6rem;margin-bottom:1rem}.search-box input{margin-bottom:0}.search-box button{white-space:nowrap}.graph-container{background:var(--panel);border:1px solid var(--border);border-radius:10px;height:420px;margin-bottom:1.5rem;overflow:hidden}.error-banner{background:var(--danger);color:#fff;padding:.5rem .8rem;border-radius:8px;margin-bottom:1rem}.graph-legend{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin:0 0 .6rem;font-size:.8rem;color:var(--muted)}.graph-legend .swatch{display:inline-flex;align-items:center;gap:.35rem}.graph-legend .dot{width:10px;height:10px;border-radius:50%;border:1px solid rgba(0,0,0,.25);flex-shrink:0}.muted{color:var(--muted)}
