:root{--bg:#f6f7f9;--surface:#ffffff;--surface-2:#f0f2f5;--border:#e2e5ea;--text:#15191f;--muted:#5d6673;--accent:#e2384d;--accent-ink:#ffffff;--accent-soft:#fde8eb;--good:#1f8a4c;--good-soft:#e3f4ea;--progress:#2457c5;--progress-soft:#e6edfb;--danger:#b42318;--danger-soft:#fdecea;--info-soft:#eef2f7;--series-1:#2457c5;--series-2:#e2384d;--series-3:#1f8a4c;--series-4:#b7791f;--radius:14px;--shadow:0 1px 2px rgba(16,24,40,0.05),0 1px 3px rgba(16,24,40,0.06);color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0f1216;--surface:#171b21;--surface-2:#1e232b;--border:#2a313b;--text:#eef1f5;--muted:#9aa4b2;--accent:#ff5b6e;--accent-ink:#1a0b0e;--accent-soft:#3a1a20;--good:#4cc483;--good-soft:#15301f;--progress:#7ea4ff;--progress-soft:#1a2640;--danger:#ff7b6e;--danger-soft:#3a1915;--info-soft:#1d232c;--series-1:#7ea4ff;--series-2:#ff5b6e;--series-3:#4cc483;--series-4:#e0a84a;--shadow:none;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}a{color:var(--progress)}h1,h2{line-height:1.25;margin:0}h1{font-size:1.6rem;letter-spacing:-.01em}h2{font-size:1.05rem}p{margin:0}code{font:.9em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2);padding:.1em .35em;border-radius:4px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}.small{font-size:.875rem}.strong{font-weight:600}.stack{gap:14px}.stack,.stack-sm{display:flex;flex-direction:column}.stack-sm{gap:10px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.logo{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:1.1rem}.logo-mark{fill:var(--accent)}.logo-line{color:var(--accent-ink)}.logo-jtp{color:var(--accent)}.shell{min-height:100vh;display:flex;flex-direction:column}.topbar{background:var(--surface);border-bottom:1px solid var(--border);position:-webkit-sticky;position:sticky;top:0;z-index:10}.topbar-inner{max-width:1040px;margin:0 auto;padding:14px 16px 8px;justify-content:space-between}.topbar-account,.topbar-inner{display:flex;align-items:center;gap:12px}.topbar-account{min-width:0}.topbar-client{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-email{font-size:.85rem}.nav{max-width:1040px;margin:0 auto;padding:0 8px;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}.nav-link{padding:10px 12px;color:var(--muted);text-decoration:none;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap}.nav-link-active,.nav-link:hover{color:var(--text)}.nav-link-active{border-bottom-color:var(--accent)}.content{flex:1 1;padding:24px 16px 40px;display:flex;flex-direction:column;gap:18px}.content,.footer{width:100%;max-width:1040px;margin:0 auto}.footer{padding:16px;font-size:.85rem;border-top:1px solid var(--border)}.footer a{color:inherit}@media (max-width:640px){.topbar-email{display:none}h1{font-size:1.35rem}}.page-header{gap:6px}.card,.page-header{display:flex;flex-direction:column}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);gap:16px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:18px;gap:18px}.quiet-link{font-size:.9rem;font-weight:500;text-decoration:none}.quiet-link:hover{text-decoration:underline}.empty{padding:12px 0;display:flex;flex-direction:column;gap:4px}.empty-title{font-weight:600}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:12px;gap:12px}.stat{background:var(--surface-2);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:2px}.stat-label{font-size:.85rem;color:var(--muted)}.stat-value{font-size:1.6rem;font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.stat-hint{font-size:.8rem}.stat-change{font-size:.85rem;font-weight:600}.stat-change-up{color:var(--good)}.stat-change-down{color:var(--danger)}.stat-change-flat{color:var(--muted)}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.badge-neutral{background:var(--surface-2);color:var(--text)}.badge-progress{background:var(--progress-soft);color:var(--progress)}.badge-good{background:var(--good-soft);color:var(--good)}.badge-muted{background:var(--surface-2);color:var(--muted)}.notice{padding:12px 14px;border-radius:10px;font-size:.925rem}.notice ul{margin:6px 0 0;padding-left:18px}.notice-error{background:var(--danger-soft);color:var(--danger)}.notice-info{background:var(--info-soft)}.notice-success{background:var(--good-soft);color:var(--good)}.error-text{color:var(--danger);font-size:.9rem}.stages{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);grid-gap:6px;gap:6px}.stage{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;position:relative;font-size:.8rem;color:var(--muted)}.stage:before{content:"";position:absolute;top:14px;left:-50%;right:50%;height:2px;background:var(--border);z-index:0}.stage:first-child:before{display:none}.stage-current:before,.stage-done:before{background:var(--accent)}.stage-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:.8rem;background:var(--surface-2);border:2px solid var(--border);position:relative;z-index:1}.stage-done .stage-dot{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.stage-current .stage-dot{border-color:var(--accent);color:var(--accent);background:var(--surface)}.stage-current{color:var(--text);font-weight:600}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border)}.list-item:first-child{border-top:0;padding-top:0}.list-item-block{flex-direction:column;align-items:stretch;gap:6px}.facts{display:flex;flex-wrap:wrap;gap:24px;margin:0}.facts dt{font-size:.85rem;color:var(--muted)}.facts dd{margin:0;font-weight:600}.allowance{display:flex;flex-direction:column;gap:6px}.meter{display:block;height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}.meter>span{display:block;height:100%;background:var(--accent);border-radius:inherit;transition:width .2s}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);background:var(--surface);padding:32px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.dropzone-active{border-color:var(--accent);background:var(--accent-soft)}.dropzone-title{font-weight:600;font-size:1.05rem}.file-row{flex-wrap:wrap}.file-main{display:flex;flex-direction:column;min-width:0;flex:1 1 240px}.file-name{font-weight:500;overflow-wrap:anywhere}.chart,.file-actions{display:flex;gap:8px}.chart{margin:0;flex-direction:column}.chart-svg{width:100%;height:auto}.chart-grid{stroke:var(--border);stroke-width:1}.chart-axis{fill:var(--muted);font-size:11px}.chart-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:.85rem}.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-swatch{width:10px;height:10px;border-radius:3px;display:inline-block}.series-1{fill:var(--series-1);background:var(--series-1)}.series-2{fill:var(--series-2);background:var(--series-2)}.series-3{fill:var(--series-3);background:var(--series-3)}.series-4{fill:var(--series-4);background:var(--series-4)}.chart figcaption{font-size:.8rem}.details summary{cursor:pointer;font-weight:500;color:var(--progress)}.details[open] summary{margin-bottom:12px}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:.9rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.table td,.table th{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.table thead th{color:var(--muted);font-weight:500}.table .num{text-align:right}.field{display:flex;flex-direction:column;gap:6px;font-weight:500}.field input{font:inherit;padding:11px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.field input:focus{outline:2px solid var(--progress);outline-offset:1px;border-color:transparent}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-weight:600;padding:10px 16px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);text-decoration:none;cursor:pointer}.button:hover{background:var(--surface-2)}.button:disabled{opacity:.6;cursor:default}.button:focus-visible{outline:2px solid var(--progress);outline-offset:2px}.button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.button-primary:hover{background:var(--accent);filter:brightness(.95)}.button-small{padding:6px 12px;font-size:.875rem}.button-danger{color:var(--danger)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px 16px}.auth-card{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:28px 24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px}.auth-card .button-primary{width:100%}.prose{max-width:720px;display:flex;flex-direction:column;gap:12px}.prose h2{margin-top:12px}.prose ul{margin:0;padding-left:20px}