@font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Hanken Grotesk Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,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) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Hanken Grotesk Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/hanken-grotesk-vietnamese-wght-normal-CHiFlh_0.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Hanken Grotesk Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/hanken-grotesk-latin-ext-wght-normal-Dg-wlmqe.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Hanken Grotesk Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/hanken-grotesk-latin-wght-normal-CaVRRdDk.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{box-sizing:border-box;margin:0;padding:0}:root{color-scheme:light;--bg-color: #f3f0e8;--surface-color: #fbf9f4;--card-color: #efebe1;--border-color: #dcd5c6;--text-color: #1c2128;--text-muted: #5a606b;--accent-color: #1d5560;--accent-color-hover: #143f48;--accent-text: #dfeaea;--danger-color: #b3261e;--danger-text: #f8e4e1;--warning-color: #8f5200;--warning-text: #f6e8cf;--success-color: #2b6a43;--success-text: #e0eee4;--font-display: "Newsreader Variable", Georgia, "Times New Roman", serif;--font-body: "Hanken Grotesk Variable", system-ui, -apple-system, "Segoe UI", sans-serif;--radius: 14px;--radius-sm: 8px;--shadow-sm: 0 1px 2px rgba(40, 32, 12, .06);--shadow-md: 0 10px 28px rgba(40, 32, 12, .14);--touch-target: 44px;--cat-1: #1d5560;--cat-2: #6b7f2a;--cat-3: #7a4a8c;--cat-4: #3f6aa3;--cat-5: #a05a3c;--cat-6: #2f8a7a;--cat-7: #8c6a2e;--cat-8: #a04a72}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--bg-color: #111419;--surface-color: #181c22;--card-color: #1f242c;--border-color: #2f3640;--text-color: #ece8df;--text-muted: #9ca4af;--accent-color: #86bcc7;--accent-color-hover: #a6d0d9;--accent-text: #16323a;--danger-color: #f2918a;--danger-text: #3a1c19;--warning-color: #e8ab47;--warning-text: #3a2a0e;--success-color: #84cb9f;--success-text: #15291d;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);--shadow-md: 0 10px 28px rgba(0, 0, 0, .5);--cat-1: #86bcc7;--cat-2: #aabf6a;--cat-3: #c49ad6;--cat-4: #8fb4e3;--cat-5: #e0967a;--cat-6: #6fcdb9;--cat-7: #d1ae66;--cat-8: #e08fb4}}html,body,#root{height:100%}body{background-color:var(--bg-color);color:var(--text-color);font-family:var(--font-body);font-size:1rem;line-height:1.45;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}::selection{background:color-mix(in srgb,var(--accent-color) 28%,transparent)}input,textarea{caret-color:var(--accent-color)}*{scrollbar-width:thin;scrollbar-color:var(--border-color) transparent}button{font-family:inherit;cursor:pointer}input,select,textarea{font-family:inherit;font-size:.95rem}.app-shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.5rem;background-color:var(--surface-color);border-bottom:1px solid var(--border-color)}.app-brand{display:flex;align-items:center;gap:.5rem;font-family:var(--font-display);font-size:1.35rem;font-weight:600;letter-spacing:0;color:var(--text-color)}.app-brand svg{color:var(--accent-color)}.app-brand img,.auth-brand img{border-radius:6px;display:block}.app-content{flex:1;width:100%;max-width:960px;margin:0 auto;padding:1.5rem 1.5rem 5.5rem;display:flex;flex-direction:column;gap:1.5rem}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:.25rem;background-color:var(--surface-color);border-top:1px solid var(--border-color);padding:.5rem calc(.5rem + env(safe-area-inset-left)) calc(.5rem + env(safe-area-inset-bottom)) calc(.5rem + env(safe-area-inset-right));z-index:10}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;font-size:.72rem;font-weight:600;color:var(--text-muted);text-decoration:none;flex:1;max-width:96px;min-width:0;min-height:var(--touch-target);padding:.4rem .1rem;white-space:nowrap;border-radius:var(--radius-sm);transition:color .15s,background-color .15s,transform .15s}.nav-item svg{transition:transform .15s}.nav-item.active{color:var(--accent-color);background:var(--accent-text)}.nav-item:active{transform:scale(.96)}.auth-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;gap:2rem}.auth-brand{display:flex;align-items:center;gap:.6rem;font-family:var(--font-display);font-size:2.2rem;font-weight:600;color:var(--text-color)}.auth-brand svg{color:var(--accent-color);width:34px;height:34px}.auth-header{display:flex;flex-direction:column;align-items:center;gap:.5rem}.auth-tagline{color:var(--text-muted);font-size:.95rem;text-align:center}.auth-card{width:100%;max-width:380px;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:1.85rem;display:flex;flex-direction:column;gap:1rem}.auth-toggle{display:flex;background:var(--card-color);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:.25rem;gap:.25rem}.auth-toggle button,.auth-toggle a{flex:1;border:none;background:transparent;padding:.5rem;border-radius:calc(var(--radius-sm) - 2px);font-weight:600;font-size:.9rem;color:var(--text-muted);text-decoration:none;text-align:center;transition:background-color .15s,color .15s}.auth-toggle button.active,.auth-toggle a.active{background:var(--surface-color);color:var(--accent-color);box-shadow:var(--shadow-sm)}.segmented-control{display:flex;background:var(--card-color);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:.25rem;gap:.25rem;overflow-x:auto}.segmented-item{flex:1;display:flex;align-items:center;justify-content:center;gap:.35rem;white-space:nowrap;border:none;background:transparent;min-height:40px;padding:.5rem .9rem;border-radius:calc(var(--radius-sm) - 2px);font-weight:600;font-size:.9rem;color:var(--text-muted);transition:background-color .15s,color .15s}.segmented-item.active{background:var(--surface-color);color:var(--accent-color);box-shadow:var(--shadow-sm),inset 0 -2px 0 var(--accent-color)}.field{display:flex;flex-direction:column;gap:.35rem}.field label{font-size:.8rem;font-weight:600;color:var(--text-muted)}.input{width:100%;padding:.65rem .85rem;border-radius:var(--radius-sm);border:1px solid var(--border-color);background-color:var(--card-color);color:var(--text-color);outline:none;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-color) 20%,transparent)}.input-with-icon{position:relative}.input-with-icon .input{padding-right:2.6rem}.input-icon-btn{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-muted);display:flex;padding:.2rem}.password-rules{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem}.password-rules li{list-style:none;display:flex;align-items:center;gap:.4rem;color:var(--text-muted)}.password-rules li.valid{color:var(--success-color)}.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1rem;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:600;font-size:.9rem;transition:background-color .15s,border-color .15s,opacity .15s,transform .1s;white-space:nowrap}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background-color:var(--accent-color);color:var(--surface-color)}.btn-primary:hover:not(:disabled){background-color:var(--accent-color-hover)}.btn-secondary{background-color:var(--card-color);color:var(--text-color);border-color:var(--border-color)}.btn-secondary:hover:not(:disabled){border-color:var(--accent-color);color:var(--accent-color)}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover:not(:disabled){color:var(--text-color)}.btn-danger{background:transparent;color:var(--danger-color)}.btn-danger:hover:not(:disabled){background:var(--danger-text)}.btn-icon{padding:.45rem;border-radius:var(--radius-sm)}.btn-sm{padding:.4rem .7rem;font-size:.82rem}.btn-block{width:100%}.card{background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:1.35rem;transition:box-shadow .2s;min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1.1rem}.card-title{display:flex;align-items:center;gap:.55rem;font-family:var(--font-display);font-size:1.2rem;font-weight:600}.card-title svg{width:19px;height:19px;color:var(--accent-color)}.form-grid{display:grid;gap:.75rem}.form-row{display:flex;gap:.75rem;flex-wrap:wrap}.form-row>*{flex:1;min-width:140px}.form-actions{display:flex;gap:.5rem;margin-top:.25rem}.item-list{display:flex;flex-direction:column;gap:.5rem}.item-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem .9rem;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius-sm);transition:border-color .15s}.item-row:hover{border-color:var(--text-muted)}.data-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:.6rem;padding:.6rem .5rem .6rem .9rem;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius-sm)}.data-row-with-lead{grid-template-columns:auto minmax(0,1fr) auto auto}.data-row-main{display:flex;flex-direction:column;gap:.1rem;min-width:0}.data-row-title{font-weight:600;line-height:1.25;overflow-wrap:break-word}.data-row-meta{font-size:.85rem;line-height:1.3;color:var(--text-muted)}.data-row-amount{font-family:var(--font-display);font-size:1.1rem;font-weight:600;white-space:nowrap;text-align:right}.data-row-amount small{font-family:var(--font-body);font-size:.8rem;font-weight:400;color:var(--text-muted)}.billing-dot{display:block;width:12px;height:12px;border-radius:50%;border:2px solid var(--accent-color);background:transparent}.billing-dot-done{background:var(--accent-color)}.row-date{flex:0 0 4.5rem;font-family:var(--font-display);font-size:1.1rem;font-weight:600;line-height:1.15}.row-amount{font-family:var(--font-display);font-size:1.15rem;font-weight:600;white-space:nowrap}.row-amount small{font-family:var(--font-body);font-size:.8rem;font-weight:400;color:var(--text-muted)}.item-row-main{display:flex;flex-direction:column;gap:.15rem;min-width:0}.item-row-title{font-weight:600;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-row-meta{font-size:.8rem;color:var(--text-muted)}.item-row-actions{display:flex;gap:.35rem;flex-shrink:0}.empty-state{color:var(--text-muted);font-size:.9rem;padding:.75rem 0}.skeleton{background:linear-gradient(90deg,var(--card-color) 25%,var(--border-color) 50%,var(--card-color) 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite;border-radius:var(--radius-sm)}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.badge{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.badge-success{background:var(--success-text);color:var(--success-color)}.badge-muted{background:var(--card-color);color:var(--text-muted);border:1px solid var(--border-color)}.badge-info{background:transparent;color:var(--accent-color);border:1px solid var(--accent-color)}.badge-warning{background:var(--warning-text);color:var(--warning-color);border:1px solid var(--warning-color)}.badge-danger{background:var(--danger-color);color:var(--surface-color)}.toast{position:fixed;bottom:calc(1.25rem + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);background:var(--text-color);color:var(--bg-color);padding:.65rem 1.1rem;border-radius:var(--radius-sm);box-shadow:var(--shadow-md);font-size:.88rem;z-index:50;max-width:calc(100% - 2rem);text-align:center}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.stat-tile{background:var(--card-color);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:1rem 1.1rem}.stat-tile-label{font-size:.85rem;color:var(--text-muted);font-weight:600}.stat-tile-value{font-family:var(--font-display);font-size:2rem;font-weight:500;line-height:1.15;margin-top:.2rem;color:var(--text-color)}.text-h1{font-family:var(--font-display);font-size:clamp(1.7rem,1.4rem + 1.2vw,2.25rem);font-weight:600;line-height:1.15;text-wrap:balance}.text-h2{font-family:var(--font-display);font-size:1.2rem;font-weight:600}.text-body{font-size:1rem}.text-caption{font-size:.85rem;font-weight:600;color:var(--text-muted)}.section-title{display:flex;align-items:baseline;gap:.5rem;font-family:var(--font-display);font-size:1.25rem;font-weight:600;margin-bottom:.6rem}.section-count{font-family:var(--font-body);font-size:.85rem;font-weight:600;color:var(--text-muted)}.page-head{display:flex;flex-direction:column;gap:.25rem}.page-lede{color:var(--text-muted);font-size:1rem}.notice{display:flex;align-items:flex-start;gap:.5rem;padding:.7rem .9rem;border-radius:var(--radius-sm);font-size:.9rem}.notice svg{flex-shrink:0;margin-top:.15rem}.notice-warning{background:var(--warning-text);color:var(--warning-color)}.notice-danger{background:var(--danger-text);color:var(--danger-color)}.upcoming-list{display:flex;flex-direction:column;list-style:none;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--surface-color);overflow:hidden}.upcoming-list>li+li,.upcoming-list>.upcoming-row+.upcoming-row{border-top:1px solid var(--border-color)}.upcoming-row{display:grid;grid-template-columns:5.25rem minmax(0,1fr) auto;align-items:center;gap:.9rem;min-height:3.75rem;padding:.7rem 1rem;color:inherit;text-decoration:none;transition:background-color .15s}a.upcoming-row:hover{background:var(--card-color)}.upcoming-row-overdue .upcoming-date-main{color:var(--danger-color)}.upcoming-date{display:flex;flex-direction:column;line-height:1.15}.upcoming-date-main{font-family:var(--font-display);font-size:1.25rem;font-weight:600}.upcoming-date-delay{font-size:.8rem;color:var(--text-muted)}.upcoming-main{display:flex;flex-direction:column;min-width:0}.upcoming-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-meta{display:flex;align-items:center;gap:.35rem;font-size:.85rem;color:var(--text-muted)}.all-clear{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:1.5rem;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--surface-color);color:var(--text-muted)}.all-clear svg{color:var(--success-color)}.all-clear-title{font-family:var(--font-display);font-size:1.5rem;font-weight:600;color:var(--text-color)}.all-clear-inline{color:var(--text-muted);font-size:.95rem;padding:.25rem 0}.overview-upcoming{margin-bottom:1.5rem}.overview-upcoming-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap}@media (max-width: 480px){.upcoming-row{grid-template-columns:4.25rem minmax(0,1fr)}.upcoming-row .badge{grid-column:2;justify-self:start}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#141008b3;isolation:isolate;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal-panel{background:var(--surface-color);border-radius:var(--radius);box-shadow:var(--shadow-md);width:100%;max-width:520px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.25rem;border-bottom:1px solid var(--border-color);flex-shrink:0}.modal-body{padding:1.25rem;overflow-y:auto}@media (max-width: 640px){.modal-overlay{align-items:flex-end;padding:0}.modal-panel{max-width:100%;max-height:92vh;border-radius:var(--radius) var(--radius) 0 0}}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;text-align:center;padding:1.25rem 1rem;border:1.5px dashed var(--border-color);border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;transition:border-color .15s,background-color .15s}.dropzone:hover,.dropzone-active{border-color:var(--accent-color);background:var(--accent-text)}.dropzone span{font-size:.85rem}.dropzone-hint{font-size:.75rem!important;color:var(--text-muted)}.dropzone-preview{display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--card-color);font-size:.85rem;max-width:100%;overflow:hidden}.dropzone-preview-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropzone-preview-size{color:var(--text-muted);font-size:.78rem;flex-shrink:0}.form-section{display:flex;flex-direction:column;gap:.6rem;padding-top:.9rem;border-top:1px solid var(--border-color)}.form-section:first-child{padding-top:0;border-top:none}.form-section-title{margin:0}.dropdown-menu{position:absolute;top:calc(100% + .4rem);min-width:180px;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:.35rem;z-index:30;display:flex;flex-direction:column;gap:.15rem}.dropdown-menu-item{display:flex;align-items:center;gap:.5rem;min-height:40px;padding:.55rem .65rem;border:none;background:transparent;border-radius:calc(var(--radius-sm) - 2px);font-size:.9rem;font-weight:600;color:var(--text-color);text-align:left;width:100%}.dropdown-menu-item:hover{background:var(--card-color)}.dropdown-menu-item-danger{color:var(--danger-color)}.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.entity-bar{display:flex;align-items:flex-start;gap:.5rem;flex-wrap:wrap}.entity-chips{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;flex:1;min-width:0}.entity-chip{display:inline-flex;align-items:center;gap:.6rem;min-height:var(--touch-target);max-width:100%;padding:.35rem .9rem .35rem .4rem;background:var(--surface-color);border:1px solid var(--border-color);border-radius:999px;color:var(--text-color);text-align:left;transition:border-color .15s,background-color .15s}.entity-chip:hover{border-color:var(--accent-color)}.entity-chip-active{background:var(--accent-text);border-color:var(--accent-color)}.entity-chip-archived{opacity:.65}.entity-chip-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--card-color);color:var(--accent-color);font-family:var(--font-display);font-weight:600}.entity-chip-avatar img{width:100%;height:100%;object-fit:cover}.entity-chip-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}.entity-chip-name-row{display:flex;align-items:baseline;gap:.4rem;min-width:0}.entity-chip-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-chip-age{flex-shrink:0;font-size:.8rem;font-weight:500;color:var(--text-muted);white-space:nowrap}.entity-chip-subtitle{font-size:.8rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.segmented-scroll{position:relative;margin-bottom:1.25rem}.segmented-scroll:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1.75rem;border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:linear-gradient(to right,transparent,var(--bg-color));pointer-events:none}.segmented-control{scrollbar-width:none}.segmented-control::-webkit-scrollbar{display:none}.tab-panel:focus-visible{outline-offset:4px}.maint-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1rem;flex-wrap:wrap;margin-bottom:.75rem}.maint-help{flex:1;min-width:220px;color:var(--text-muted);font-size:.9rem}.status-legend{margin-bottom:.9rem;font-size:.9rem;color:var(--text-muted)}.status-legend summary{cursor:pointer;display:inline-flex;align-items:center;min-height:32px;font-weight:600}.status-legend ul{list-style:none;display:grid;gap:.4rem;margin-top:.5rem}.status-legend li{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.maint-sort{display:flex;align-items:center;gap:.4rem;margin-bottom:.75rem;font-size:.9rem;color:var(--text-muted)}.maint-sort .input{width:auto;padding:.35rem .6rem}.maint-list{list-style:none;display:flex;flex-direction:column;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--surface-color);overflow:hidden}.maint-item{padding:1rem 1.1rem}.maint-item+.maint-item{border-top:1px solid var(--border-color)}.maint-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.maint-title{font-family:var(--font-display);font-size:1.25rem;font-weight:600}.maint-head-menu{margin-left:auto}.maint-facts{display:flex;flex-wrap:wrap;gap:.5rem 2rem;margin:.6rem 0 .9rem}.maint-facts dt{font-size:.85rem;color:var(--text-muted)}.maint-facts dd{font-weight:600}.maint-muted{font-weight:400;color:var(--text-muted)}.maint-km{display:block;margin-top:.15rem}.maint-actions{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}.link-button{display:inline-flex;align-items:center;gap:.3rem;min-height:36px;padding:0;border:none;background:none;color:var(--accent-color);font-size:.9rem;font-weight:600}.link-button:hover{text-decoration:underline}.maint-history{margin-top:.75rem;padding-top:.5rem;border-top:1px dashed var(--border-color)}.history-list{list-style:none;display:flex;flex-direction:column}.history-row{display:flex;align-items:center;gap:.75rem;padding:.5rem 0}.history-row+.history-row{border-top:1px solid var(--border-color)}.history-row .item-row-main{flex:1}.history-amount{font-weight:600;white-space:nowrap}.history-actions{display:flex;gap:.75rem;flex-shrink:0}.desktop-sidebar{display:none}.responsive-grid{display:grid;gap:1.5rem}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.entity-card:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent-color);outline-offset:2px}@media (max-width: 640px){.app-header{padding:.75rem 1rem}.app-content{padding:1rem 1rem 6rem}}@media (min-width: 1024px){.app-shell{flex-direction:row}.app-header,.bottom-nav{display:none}.desktop-sidebar{display:flex;flex-direction:column;width:240px;flex-shrink:0;height:100vh;position:sticky;top:0;background:var(--surface-color);border-right:1px solid var(--border-color);padding:1.25rem 1rem;gap:1.5rem}.app-content{max-width:1100px;padding:2rem 2.5rem 3rem}.responsive-grid{grid-template-columns:repeat(2,1fr);align-items:start}.responsive-grid>.responsive-grid-full{grid-column:1 / -1}}@media (max-width: 640px),(pointer: coarse){.btn,.input,.segmented-item,.dropdown-menu-item,.link-button{min-height:var(--touch-target)}.btn-icon{min-width:var(--touch-target)}.toast{bottom:calc(5.25rem + env(safe-area-inset-bottom))}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.cal-day{aspect-ratio:1;min-height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--text-color);font-size:.9rem}.cal-day-today{border-color:var(--accent-color)}.cal-day-events{background:var(--card-color);cursor:pointer}.cal-day-events:hover{border-color:var(--text-muted)}.cal-day-selected{background:var(--accent-color);color:var(--surface-color)}.cal-marks{display:flex;gap:4px;align-items:center}.cal-mark{display:inline-block;flex-shrink:0;width:8px;height:8px;background:var(--mark-color)}.cal-mark-overdue{transform:rotate(45deg) scale(.85)}.cal-mark-soon{clip-path:polygon(50% 0,100% 100%,0 100%)}.cal-mark-planned{border:2px solid var(--mark-color);background:transparent;border-radius:50%}.cal-mark-estimated{border-radius:50%;width:6px;height:6px}.cal-mark-expense{width:7px;height:7px}.chart-wrap{width:100%}.chart-wrap svg:focus-visible{outline:2px solid var(--accent-color);outline-offset:2px}.chart-readout{margin-top:.4rem;font-size:.9rem;color:var(--text-muted)}.chart-readout strong{color:var(--text-color)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.row-toggle{display:flex;align-items:center;gap:.5rem;width:100%;min-height:44px;padding:0;border:none;background:none;color:inherit;font:inherit;text-align:left}.home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.home-date{font-family:var(--font-display);font-style:italic;font-size:1.05rem;color:var(--text-muted)}.home-lede{font-family:var(--font-display);font-size:clamp(1.25rem,1.05rem + .8vw,1.6rem);line-height:1.25;margin-top:-.75rem}.timeline-group{--rail-bg: var(--bg-color)}.timeline-group-overdue{--rail-bg: var(--danger-text)}.timeline-group-overdue .timeline{background:var(--danger-text);border-radius:var(--radius);padding:.25rem .75rem}.timeline{list-style:none}.timeline-row{display:flex;align-items:center;flex-wrap:wrap;column-gap:.75rem}.timeline-main{flex:1;min-width:0;display:grid;grid-template-columns:5rem 1.5rem minmax(0,1fr) auto;align-items:center;column-gap:.6rem;padding:.9rem .25rem;color:inherit;text-decoration:none}.timeline-main:hover .timeline-title{text-decoration:underline}.timeline-date{display:flex;flex-direction:column;line-height:1.15;text-align:right}.timeline-day{font-family:var(--font-display);font-size:1.35rem;font-weight:600}.timeline-row-overdue .timeline-day{color:var(--danger-color)}.timeline-delay{font-size:.8rem;color:var(--text-muted)}.timeline-node{position:relative;align-self:stretch;display:flex;align-items:center;justify-content:center}.timeline-node:before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 1px);width:2px;background:var(--border-color)}.timeline-row:first-child .timeline-node:before{top:50%}.timeline-row:last-child .timeline-node:before{bottom:50%}.timeline-row:only-child .timeline-node:before{display:none}.timeline-node:after{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:var(--rail-bg)}.timeline-node .cal-mark{position:relative;z-index:1;width:12px;height:12px}.timeline-content{display:flex;flex-direction:column;min-width:0}.timeline-title{font-weight:600;font-size:1.05rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-meta{display:flex;align-items:center;gap:.35rem;font-size:.85rem;color:var(--text-muted)}.timeline-action{flex-shrink:0}@media (max-width: 520px){.timeline-main{flex:1 1 100%;grid-template-columns:4.4rem 1.25rem minmax(0,1fr)}.timeline-day{font-size:1.15rem;white-space:nowrap}.timeline-main .badge{grid-column:3;justify-self:start;margin-top:.3rem}.timeline-action{margin:-.25rem 0 .7rem calc(4.4rem + 1.25rem + 1.2rem)}}.all-clear-seal{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--success-text);color:var(--success-color)}.all-clear-next{color:var(--text-color)}.home-prefs{list-style:none;display:flex;flex-direction:column}.home-pref{display:flex;align-items:center;gap:.75rem;min-height:var(--touch-target);cursor:pointer;border-bottom:1px solid var(--border-color)}.home-pref input{width:1.1rem;height:1.1rem;accent-color:var(--accent-color)}a{color:var(--accent-color)}.card>.item-list{border:none;border-radius:0;background:none}.modal-discard{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.75rem 1.25rem;background:var(--warning-text);color:var(--text-color);border-bottom:1px solid var(--border-color);flex-shrink:0}.modal-discard p{flex:1;min-width:200px;font-size:.9rem}.modal-discard-actions{display:flex;gap:.5rem}.all-clear-seal-warning{background:var(--warning-text);color:var(--warning-color)}.all-clear-unsure svg{color:var(--warning-color)}.home-hidden-note{font-size:.9rem;color:var(--text-muted)}@media (max-width: 520px){.timeline-row{--tl-date: 4.4rem;--tl-node: 1.25rem;--tl-gap: .6rem}.timeline-main{grid-template-columns:var(--tl-date) var(--tl-node) minmax(0,1fr);column-gap:var(--tl-gap)}.timeline-action{margin:-.25rem 0 .7rem calc(var(--tl-date) + var(--tl-node) + 2 * var(--tl-gap))}}.toast-region{display:contents}.notice .link-button{margin-left:.5rem}.settings-page{display:flex;flex-direction:column;gap:1rem;max-width:720px;width:100%}.settings-section{display:flex;flex-direction:column;gap:.75rem;padding-top:1.5rem;border-top:1px solid var(--border-color)}.settings-section .section-title{margin-bottom:0}.settings-description{color:var(--text-muted);font-size:.95rem;max-width:60ch}.settings-subtitle{font-family:var(--font-display);font-size:1.05rem;font-weight:600;margin-bottom:.25rem}.settings-subform{margin-top:.75rem;padding-top:1rem;border-top:1px dashed var(--border-color);align-items:flex-end}.settings-inline{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.field-hint{font-size:.85rem;color:var(--text-muted)}.form-row>.form-submit{flex:0 0 auto;min-width:0}.accent-picker{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.accent-swatch{width:var(--touch-target);height:var(--touch-target);border-radius:50%;border:3px solid transparent;background:var(--swatch);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1px var(--border-color)}.accent-swatch-active{border-color:var(--surface-color);box-shadow:0 0 0 2px var(--text-color)}.accent-name{font-weight:600;margin-left:.25rem}.check{display:inline-flex;align-items:center;gap:.5rem;min-height:32px;font-size:.9rem;cursor:pointer}.check input{width:1.1rem;height:1.1rem;accent-color:var(--accent-color)}.module-row{align-items:center;flex-wrap:wrap}.module-toggles{display:flex;gap:.25rem 1.25rem;flex-wrap:wrap}.notif,.notif-bell{position:relative}.notif-count{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--accent-color);color:var(--surface-color);font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center}.notif-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90}.notif-panel{position:absolute;right:0;z-index:91;width:340px;max-width:85vw;max-height:440px;overflow-y:auto;padding:.75rem;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius);box-shadow:var(--shadow-md)}.notif-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.25rem}.notif-head-actions{display:flex;gap:.25rem}.notif-list{list-style:none}.notif-item+.notif-item{border-top:1px solid var(--border-color)}.notif-item-read{opacity:.65}.notif-link{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;min-height:var(--touch-target);padding:.6rem .25rem;border:none;background:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer}.notif-link:hover .notif-title{text-decoration:underline}.notif-text{display:flex;flex-direction:column;min-width:0}.notif-title{font-weight:600}.notif-meta{font-size:.85rem;color:var(--text-muted)}.settings-section>.btn{align-self:flex-start}@media (max-width: 640px){.notif-panel{position:fixed;left:1rem;right:1rem;top:3.75rem!important;bottom:auto!important;width:auto;max-width:none}}@media (max-width: 520px){.module-toggles{flex-basis:100%;padding-left:2rem}}@media (max-width: 480px){.data-row-with-lead{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead main menu" "lead amount menu";row-gap:.15rem}.data-row-with-lead>.data-row-lead{grid-area:lead}.data-row-with-lead>.data-row-main{grid-area:main}.data-row-with-lead>.data-row-amount{grid-area:amount;text-align:left}.data-row-with-lead>:last-child{grid-area:menu}.card{padding:1rem}}.update-banner{position:fixed;left:1rem;right:1rem;bottom:calc(5.25rem + env(safe-area-inset-bottom));z-index:300;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem .9rem;background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius);box-shadow:var(--shadow-md);font-size:.9rem}@media (min-width: 1024px){.update-banner{left:auto;right:1.5rem;bottom:1.5rem;max-width:420px}}
