:root{--bg: #0f1419;--surface: #1a2332;--surface2: #243044;--text: #e6edf3;--text-muted: #8b949e;--positive: #3fb950;--negative: #f85149;--accent: #58a6ff;--radius: 10px;--font: "DM Sans", system-ui, sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5}#root{min-height:100vh}.app{max-width:900px;margin:0 auto;padding:1rem 1.5rem 3rem}.pull-to-refresh-indicator{position:sticky;top:0;z-index:10;text-align:center;font-size:.9rem;color:var(--text-muted);background:var(--surface);border-bottom:1px solid var(--surface2);margin:-1rem -1.5rem 1rem;padding:.5rem 1.5rem}.header{margin-bottom:1.5rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.header-title-row{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:.5rem;gap:.75rem}.header-logo{width:40px;height:40px;object-fit:contain;flex-shrink:0}.header-title-row h1{margin:0;font-size:1.75rem;font-weight:700;letter-spacing:-.02em;flex:1;min-width:0}.header-handleiding{font-size:.95rem;color:var(--accent);text-decoration:none}.header-handleiding:hover{text-decoration:underline}.header-user{margin-left:auto}.sign-in-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.sign-in-wrap [data-clerk-component]{margin:0 auto}.sign-in-homepage{max-width:480px;margin:0 auto;text-align:left}.sign-in-homepage .sign-in-logo{display:block;width:64px;height:64px;margin:0 auto 1rem;object-fit:contain}.sign-in-homepage .sign-in-app-name{text-align:center;margin:0 0 .35rem;font-size:1.75rem;font-weight:700;letter-spacing:-.02em}.sign-in-pitch{text-align:center;margin:0 0 1.25rem;padding:1rem 0;border-top:1px solid var(--surface2);border-bottom:1px solid var(--surface2)}.sign-in-pitch-tagline{margin:0 0 .35rem;font-size:1.15rem;font-weight:600;color:var(--text);line-height:1.4}.sign-in-pitch-sub{margin:0 0 .75rem;font-size:.95rem;color:var(--text-muted);line-height:1.4}.sign-in-pitch-list{margin:0;padding:0;list-style:none;font-size:.9rem;color:var(--text-muted);line-height:1.6}.sign-in-pitch-list li:before{content:"✓ ";color:var(--positive);font-weight:600;margin-right:.35rem}.sign-in-branding-note{text-align:center;margin:0 0 1.25rem;font-size:.8rem;color:var(--text-muted);line-height:1.4}.sign-in-section{margin-bottom:1.25rem}.sign-in-homepage>.sign-in-section:first-of-type{margin-top:2rem}.sign-in-section-title{margin:0 0 .35rem;font-size:1rem;font-weight:600;color:var(--text)}.sign-in-text{margin:0;font-size:.9rem;color:var(--text-muted);line-height:1.55}.sign-in-privacy-link{margin:0 0 1.5rem;font-size:.95rem;text-align:center}.sign-in-privacy-link a{color:var(--accent);text-decoration:none}.sign-in-privacy-link a:hover{text-decoration:underline}.sign-in-logo{display:block;width:64px;height:64px;margin:0 auto;object-fit:contain}.home-footer{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--surface2);text-align:center}.home-footer-purpose{margin:0 0 .75rem;font-size:.9rem;color:var(--text-muted);line-height:1.5;max-width:560px;margin-left:auto;margin-right:auto}.home-footer-links{font-size:.9rem}.home-footer-links a{color:var(--accent);text-decoration:none}.home-footer-links a:hover{text-decoration:underline}.home-footer-sep{color:var(--text-muted);margin:0 .25rem}.tabs{display:flex;gap:.25rem}.tabs button{padding:.5rem 1rem;background:var(--surface);border:1px solid var(--surface2);border-radius:var(--radius);color:var(--text-muted);font:inherit;cursor:pointer;transition:background .15s,color .15s}.tabs button:hover{background:var(--surface2);color:var(--text)}.tabs button.active{background:var(--accent);border-color:var(--accent);color:var(--bg)}.main{display:flex;flex-direction:column;gap:1.25rem}.card{background:var(--surface);border:1px solid var(--surface2);border-radius:var(--radius);padding:1.25rem}.card-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.card-header h2{margin:0;font-size:1.1rem;font-weight:600}.card-header .total{font-weight:600;color:var(--text)}.settings-month-start{margin-bottom:1.5rem}.settings-month-start h2{margin:0 0 .5rem;font-size:1.1rem;font-weight:600}.settings-month-start-desc{margin:0 0 1rem;font-size:.9rem;color:var(--text-muted);line-height:1.5}.settings-month-start-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.settings-month-start-row label{font-size:.95rem}.settings-month-start-row input{width:4rem;padding:.4rem .5rem;font:inherit;font-size:1rem;background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius);color:var(--text)}.line-list,.variable-list{list-style:none;margin:0 0 .75rem;padding:0}.line-row,.variable-row{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;border-bottom:1px solid var(--surface2)}.line-row:last-child,.variable-row:last-child{border-bottom:none}.line-row .name,.line-row .amount{background:var(--bg);border:1px solid var(--surface2);border-radius:6px;padding:.4rem .6rem;color:var(--text);font:inherit}.line-row .name{flex:1;min-width:0}.line-row .amount{width:100px;text-align:right}.line-row .amount::-webkit-outer-spin-button,.line-row .amount::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.line-row .amount[type=number]{-moz-appearance:textfield}.btn-remove{width:28px;height:28px;padding:0;background:var(--surface2);border:none;border-radius:6px;color:var(--text-muted);font-size:1.2rem;line-height:1;cursor:pointer;flex-shrink:0;transition:background .15s,color .15s}.btn-remove:hover{background:var(--negative);color:#fff}.btn-edit{padding:.35rem .6rem;background:var(--surface2);border:none;border-radius:6px;color:var(--text-muted);font-size:.85rem;cursor:pointer;transition:background .15s,color .15s}.btn-edit:hover{background:var(--accent);color:var(--bg)}.btn-save{width:32px;height:28px;padding:0;background:var(--positive);border:none;border-radius:6px;color:#fff;font-size:1rem;cursor:pointer;flex-shrink:0}.btn-save:hover{filter:brightness(1.1)}.btn-cancel{padding:.35rem .6rem;background:var(--surface2);border:none;border-radius:6px;color:var(--text-muted);font-size:.85rem;cursor:pointer}.btn-cancel:hover{color:var(--text)}.variable-row .var-edit-date,.variable-row .var-edit-amount,.variable-row .var-edit-desc{background:var(--bg);border:1px solid var(--surface2);border-radius:6px;padding:.35rem .5rem;color:var(--text);font:inherit;font-size:.9rem}.variable-row .var-edit-date{width:110px}.variable-row .var-edit-amount{width:80px;text-align:right}.variable-row .var-edit-desc{flex:1;min-width:0}.btn-add{padding:.5rem .75rem;background:var(--surface2);border:1px dashed var(--text-muted);border-radius:6px;color:var(--text-muted);font:inherit;cursor:pointer;transition:background .15s,color .15s}.btn-add:hover{background:var(--surface2);color:var(--text)}.variable-form{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.variable-form input[type=date],.variable-form input[type=number],.variable-form input[type=text]{background:var(--bg);border:1px solid var(--surface2);border-radius:6px;padding:.5rem .6rem;color:var(--text);font:inherit}.variable-form input[type=number]{width:100px}.variable-form input[type=text]{flex:1;min-width:120px}.variable-form button{padding:.5rem 1rem;background:var(--accent);border:none;border-radius:6px;color:var(--bg);font:inherit;font-weight:500;cursor:pointer}.variable-row .var-date{width:110px;color:var(--text-muted);font-size:.9rem}.variable-row .var-amount{width:90px;font-variant-numeric:tabular-nums}.variable-row .var-amount:first-of-type{color:var(--negative)}.variable-row .var-desc{flex:1;min-width:0;color:var(--text-muted);font-size:.9rem}.variable-row .btn-remove{margin-left:auto}.dagbudget-block{margin-bottom:1.5rem;background:linear-gradient(135deg,var(--surface2) 0%,var(--surface) 100%);border:1px solid var(--accent);padding:1.25rem 1.5rem}.dagbudget-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.dagbudget-title{margin:0;font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}.dagbudget-status{font-size:.9rem;font-weight:500;white-space:nowrap}.dagbudget-block.status-green .dagbudget-status{color:var(--positive)}.dagbudget-block.status-orange .dagbudget-status{color:#d29922}.dagbudget-block.status-red .dagbudget-status{color:var(--negative)}.dagbudget-line{margin:0 0 .25rem;font-size:1.1rem;color:var(--text)}.dagbudget-perday{margin:.75rem 0 0;padding-top:.75rem;border-top:1px solid var(--surface2);font-size:1.35rem;font-weight:700;color:var(--positive);font-variant-numeric:tabular-nums}.dagbudget-block.negative .dagbudget-line,.dagbudget-block.negative .dagbudget-perday{color:var(--negative)}.dashboard h2{margin:0 0 1rem;font-size:1.1rem}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}.dashboard .stat{padding:.75rem;background:var(--bg);border-radius:8px}.dashboard .stat label{display:block;margin-bottom:.35rem;font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.dashboard .stat .value{font-weight:600;font-variant-numeric:tabular-nums}.dashboard .stat .value.positive{color:var(--positive)}.dashboard .stat .value.negative{color:var(--negative)}.dashboard .stat.result .value{font-size:1.15rem}.dashboard .stat input{width:100%;background:var(--surface);border:1px solid var(--surface2);border-radius:6px;padding:.4rem .5rem;color:var(--text);font:inherit;font-variant-numeric:tabular-nums}.overview-chart{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--surface2)}.overview-chart h3{margin:0 0 .75rem;font-size:1rem;font-weight:600;color:var(--text)}.muted{margin:0 0 1rem;color:var(--text-muted);font-size:.9rem}.history .table-wrap{overflow-x:auto;margin-top:.75rem}.history-table{width:100%;border-collapse:collapse;font-size:.85rem}.history-table th,.history-table td{padding:.35rem .5rem;text-align:right;border:1px solid var(--surface2)}.history-table th{background:var(--surface2);font-weight:600;white-space:nowrap}.history-table th:first-child,.history-table td.day-num{text-align:left;position:sticky;left:0;background:var(--surface);font-variant-numeric:tabular-nums}.history-table td.positive{color:var(--positive)}.history-table td.negative{color:var(--negative)}.history-table td.empty{color:var(--text-muted)}@media (max-width: 600px){.app{padding:1rem}.variable-form{flex-direction:column}.variable-form input[type=number]{width:100%}}.legal-page{max-width:720px;margin:0 auto;padding:1.5rem 1.5rem 3rem}.legal-header{margin-bottom:2rem}.legal-back{color:var(--text-muted);text-decoration:none;font-size:.95rem}.legal-back:hover{color:var(--accent)}.legal-main h1{margin:0 0 .5rem;font-size:1.75rem;font-weight:700}.legal-updated{margin:0 0 2rem;color:var(--text-muted);font-size:.9rem}.legal-main section{margin-bottom:1.75rem}.legal-main section h2{margin:0 0 .5rem;font-size:1.1rem;font-weight:600;color:var(--text)}.legal-main section p{margin:0 0 .75rem;color:var(--text)}.legal-main section p:last-child{margin-bottom:0}.legal-main section ul{margin:0 0 .75rem;padding-left:1.25rem}.legal-main section li{margin-bottom:.35rem}.legal-main a{color:var(--accent);text-decoration:none}.legal-main a:hover{text-decoration:underline}
