:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;color:#183344;background:#edf2f5;--ink:#12384b;--green:#007e70;--line:#d9e3e9}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,input,select{min-height:48px}button{border:1px solid var(--line);background:white;border-radius:9px;padding:.75rem 1rem;color:var(--ink);font-weight:650;cursor:pointer}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--green);border-color:var(--green);color:white}button.danger{color:#b32232}button,input,select,textarea,a,summary{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #31a7f1;outline-offset:3px}input,select,textarea{width:100%;min-width:0;border:1px solid #b8cad5;border-radius:8px;background:white;padding:.75rem;color:var(--ink);font-size:1rem}textarea{min-height:140px;resize:vertical}label{display:grid;gap:.5rem;font-weight:600;font-size:1rem}h1,h2,p{overflow-wrap:anywhere}h1{font-size:1.35rem;letter-spacing:-.035em;margin:0}h2{font-size:1.15rem;margin:0 0 .75rem}p{line-height:1.55;margin:.75rem 0}a{color:var(--green)}.app-shell{max-width:1200px;margin:auto;min-height:100dvh;padding-bottom:calc(88px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:.75rem;background:var(--ink);color:white;padding:calc(1rem + env(safe-area-inset-top)) 1.25rem 1rem}.topbar .back{background:#255365;border-color:#3d6374;color:white}.status{font-size:.8rem;color:#bed9e2;margin:.2rem 0 0}main{padding:1.25rem;min-width:0}.toolbar{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin-bottom:1.25rem}.toolbar label{flex:1;min-width:160px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem;margin-bottom:1.25rem}.metric{container-type:inline-size;background:white;border:1px solid var(--line);padding:1.25rem;border-radius:12px;min-width:0}.metric:first-child{background:var(--ink);color:white}.metric span{font-size:.9rem;opacity:.85}.metric strong{display:block;white-space:nowrap;font-size:clamp(1.125rem,8cqi,2rem);margin:.5rem 0;font-variant-numeric:tabular-nums}.metric small{font-size:.875rem;opacity:.8}.entry-list,.project-list{display:grid;gap:1rem}.entry-card,.project-card,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:1.25rem;min-width:0}.entry-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.entry-heading h2{margin:.35rem 0}.entry-heading>strong{white-space:nowrap;color:var(--green);font-size:1.15rem}.entry-heading small{font-size:.875rem;color:#607888}.entry-card button,.project-card button{width:100%;margin-top:.5rem}.comment{white-space:pre-wrap;overflow-wrap:anywhere}.note{font-size:.875rem;color:#607888;line-height:1.55}.panel{margin-bottom:1.25rem}.empty{text-align:center;padding:2rem 1rem;line-height:1.6}.empty button{margin:.4rem}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:1200px;width:100%;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;background:var(--ink);padding:.65rem .75rem calc(.65rem + env(safe-area-inset-bottom));border-top:1px solid #315669}.bottom-nav button{background:transparent;color:#d0e2e9;border:0;padding:.75rem .4rem;min-width:0;font-size:.9rem}.bottom-nav button[aria-current]{background:#255365;color:white}.form-view{max-width:720px;padding-bottom:0}.edit-form,#exportform,#settingsform{display:grid;gap:1.25rem}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-actions{position:sticky;bottom:0;z-index:2;display:flex;gap:.6rem;flex-wrap:wrap;background:#edf2f5;padding:1rem 0 max(1rem,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.form-actions .primary{flex:1}.edit-form input,.edit-form textarea,.edit-form select{scroll-margin:6rem 0 8rem}.error{color:#b32232;font-size:.95rem;white-space:pre-wrap}.error:empty{display:none}.file-label{display:grid;padding:1rem;background:#f0f7f8;border-radius:9px}.file-label input{background:white;max-width:100%;margin-top:.5rem}.text-button{display:inline-flex;align-items:center;min-height:48px;padding:.75rem 0}.preview-list{padding-left:1.25rem;line-height:1.7;overflow-wrap:anywhere}#toast{position:fixed;bottom:calc(100px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 2rem);width:max-content;z-index:5;background:var(--ink);color:white;padding:1rem 1.25rem;border-radius:9px;display:none}#toast.visible{display:block}.loading{padding:3rem}@media(min-width:760px){.entry-list,.project-list{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding-left:2rem;padding-right:2rem}main{padding:2rem}}@media(max-width:360px){main{padding:1rem}.topbar{padding-left:1rem;padding-right:1rem}.form-actions button{padding:.75rem}.entry-heading{gap:.5rem}.grid2{gap:.75rem}}
.transfer-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1.25rem}.import-warning{padding:1.25rem;border:2px solid #bc6d1d;background:#fff4e4;border-radius:10px;margin-top:1.25rem}.import-summary{margin:1.5rem 0}.import-options{border:1px solid var(--line);border-radius:10px;padding:1rem;margin-bottom:1.25rem;min-width:0}.import-options legend{font-weight:650;padding:0 .4rem}.radio-option{display:grid;grid-template-columns:28px minmax(0,1fr);gap:.75rem;align-items:center;font-weight:500;min-height:64px;margin-bottom:.5rem}.radio-option input{width:24px;height:24px;min-height:24px;accent-color:var(--green)}.conflict-card{padding:1rem;border:1px solid var(--line);border-radius:10px;margin:1rem 0}.conflict-card h3{margin:0 0 1rem}.conflict-card summary,.report-conflict summary{min-height:48px;padding:.75rem 0;cursor:pointer;line-height:1.5}.conflict-card small,.report-conflict small{display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:#607888}.conflict-card li,.report-conflict li{margin:.75rem 0;line-height:1.5;overflow-wrap:anywhere}.conflict-card ul,.report-conflict ul{padding-left:1.25rem}.import-pagination{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.report-totals{display:grid;gap:.75rem}.report-totals>div{display:flex;justify-content:space-between;gap:1rem}.report-totals dd{margin:0;font-weight:700}.report-conflict{border-top:1px solid var(--line);padding:.5rem 0}.conflict-card select{font-size:.95rem}
.month-control{display:grid;gap:.5rem;flex:1;min-width:180px}.month-control>span{font-weight:600}.month-control button{text-align:left}.year-navigation{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.year-navigation h2{margin:0;font-size:1.5rem}.month-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.month-tile{display:grid;gap:.5rem;min-height:84px;text-align:left;padding:1rem;min-width:0}.month-tile small{font-size:.875rem;font-weight:400;color:#607888}.month-tile.has-entries{background:#e6f6f1;border-color:#3f9d89}.month-tile.has-entries small{color:#00675b;font-weight:650}.month-tile[aria-current]{outline:3px solid var(--green);outline-offset:0}.month-tile:disabled{cursor:default;opacity:.4}.all-months{width:100%;margin-top:1.25rem}.onboarding .transfer-actions{margin-bottom:0}@media(min-width:600px){.month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.update-notice{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#e2f5ed;border-bottom:1px solid #80bba7;padding:1rem 1.25rem}.update-notice strong{display:block}.update-notice p{margin:.35rem 0 0;font-size:.875rem}.update-notice button{flex-shrink:0}@media(max-width:560px){.update-notice{align-items:stretch;flex-direction:column;gap:.75rem}.update-notice button{width:100%}}
.confirm-popup{border:0;border-radius:14px;padding:1.5rem;width:calc(100% - 2rem);max-width:440px;color:var(--ink);box-shadow:0 16px 80px #102f4350}.confirm-popup::backdrop{background:#102f4370}.confirm-popup h2{font-size:1.3rem}.confirm-actions{display:flex;gap:.75rem;justify-content:flex-end;flex-wrap:wrap;margin-top:1.5rem}.confirm-actions button{min-height:48px}.confirm-popup p{line-height:1.6}
