:root{color-scheme:light;--page:#f3f6ef;--paper:#fff;--ink:#22311e;--muted:#6b7a61;--line:#dfe8d5;--green:#416b26;--lime:#c8e498;--pale:#eef5e2;--error:#a23542;--error-bg:#fff4f3;--warning:#805d22;--warning-bg:#fcf5e3;--shadow:0 8px 28px #2d4c1806;font-family:'PingFang SC','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font-size:14px;line-height:1.6;min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #82a54e;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline-width:2px;outline-offset:1px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:38px;line-height:1.35;letter-spacing:-.05em}h2{font-size:20px;line-height:1.5;letter-spacing:-.03em}h3{font-size:15px}p{line-height:1.8}strong{font-weight:650}small,.small{font-size:12px}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted);margin-top:9px;line-height:1.8}.visually-hidden,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:15px;background:#fff;padding:12px 20px;z-index:99;border-radius:10px}.page-wrap{max-width:1180px;margin:auto;padding:28px 30px 0;min-width:0}.site-header{min-height:76px;background:#fbfdf8;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px max(30px,calc((100vw - 1120px)/2));position:sticky;top:0;z-index:20}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);flex:none}.brand-mark{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#3f6b1f,#9acd50);color:#fff;font-size:23px;font-weight:700}.brand>span:last-child{display:flex;flex-direction:column}.brand strong{font-size:21px;line-height:1.3;letter-spacing:-.04em}.brand small{font-size:10px;color:var(--muted)}.site-header nav{display:flex;align-items:center;gap:20px;font-size:12px}.site-header nav>a{text-decoration:none}.language-button{border:1px solid var(--line);border-radius:25px;background:#eef4e5;color:var(--green);padding:7px 12px;min-height:35px;font-size:11px;font-weight:650}.account-hero{position:relative;overflow:hidden;isolation:isolate;background:#203d28;border:1px solid #36543a;border-radius:28px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:275px;box-shadow:0 10px 30px #1833220a;margin-bottom:25px}.account-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(118deg,transparent 0 52%,#3b5734 52% 59%,#769154 59% 66%,#c0d39a 66% 73%,#f0f1df 73% 80%,#fff 80%)}.account-hero:after{content:'';position:absolute;inset:1px;border-radius:26px;border:1px solid #ffffff1c;pointer-events:none}.hero-copy{padding:32px 32px 33px 36px;color:#f6faed;z-index:1}.hero-eyebrow{display:inline-block;font-size:11px;letter-spacing:.04em;color:#e3edcd;padding:4px 10px;background:#dbedbb12;border:1px solid #dfebcf30;border-radius:20px}.hero-copy h1{margin:16px 0 12px;font-weight:620}.hero-copy>p{color:#deead4;max-width:37em;font-size:13px;line-height:1.9}.hero-local-note{display:block;color:#c4d6b5;font-size:11px;margin-top:18px}.account-hero>img{width:100%;height:263px;object-fit:contain;padding:10px 25px 0 0;pointer-events:none}.account-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:19px;align-items:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:25px;min-width:0;margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:17px}.eyebrow{display:block;color:#7d9366;font-size:10px;letter-spacing:.12em;line-height:1.5;margin-bottom:6px}.badge{font-size:10px;line-height:1.6;border-radius:20px;padding:5px 10px;color:var(--muted);background:#f0f4e9;flex-shrink:0}.badge.pale{background:#edf6dc;color:#62813e}.section-intro{font-size:12px;color:var(--muted);margin-top:-5px;margin-bottom:21px}.primary-button,.secondary-button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;min-height:44px;padding:10px 20px;font-size:12px;font-weight:650;text-decoration:none;line-height:1.6;white-space:normal;text-align:center}.primary-button{background:linear-gradient(100deg,#3f6b1f,#84b044);color:#fff;box-shadow:0 4px 12px #3f6b1f0b}.secondary-button{background:#edf3e4;color:#48692e;border-color:#e3ebd8}.text-button{font-size:12px;line-height:1.7;color:var(--green);background:none;border:0;padding:7px 2px;text-decoration:none;cursor:pointer}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.input-action{display:flex;align-items:stretch;gap:9px;margin-top:8px}.input-action>input{flex:1;min-width:0}.input-action>button{flex-shrink:0;padding-inline:17px}label,legend{font-size:12px;font-weight:550;color:#536549}input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{max-width:100%;min-width:0;background:#f8faf4;color:var(--ink);border:1px solid #dce6d2;border-radius:12px;padding:10px 12px;min-height:43px}input::placeholder{color:#87967a}input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--error)!important;background:#fff8f5!important}input[type=checkbox],input[type=radio]{accent-color:#648d39;width:18px;height:18px;flex:none;margin:2px 0}.identity{display:flex;align-items:center;gap:12px;margin:23px 0}.identity-avatar{width:39px;height:39px;display:grid;place-items:center;background:#edf6dc;border-radius:50%;color:#648a34}.identity>div{min-width:0}.identity strong{display:block;font-size:14px;overflow-wrap:anywhere}.auth-card>#auth-config-note{font-size:12px;line-height:1.8;margin-bottom:19px}.identity .small{display:block}.field-error{font-size:12px;line-height:1.8;color:var(--error);background:var(--error-bg);border:1px solid #efd8d4;border-radius:12px;padding:11px 13px;margin-top:15px;overflow-wrap:anywhere}.sync-status{font-size:13px;color:#60764a;margin:5px 0 16px;min-height:23px}.sync-dot{width:9px;height:9px;border-radius:50%;background:#bac6ae;margin-top:12px}.sync-dot.connected{background:#8fb854;box-shadow:0 0 0 5px #eff5e5}.sync-dot.problem{background:#ca9a54;box-shadow:0 0 0 5px #fbf2df}.sync-meta{margin:0 0 16px}.sync-meta>div{display:flex;gap:15px;justify-content:space-between;align-items:baseline;border-top:1px solid #edf1e7;padding:9px 0;font-size:11px}.sync-meta dt{color:var(--muted)}.sync-meta dd{margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.notice{padding:18px 22px;border:1px solid #e8d4a8;border-radius:18px;background:var(--warning-bg);color:var(--warning);margin-bottom:20px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.notice.error{background:var(--error-bg);color:var(--error);border-color:#efd8d4}.notice h2{font-size:18px;margin-bottom:7px}.notice.warning{padding:13px 16px;margin-top:16px}.notice.warning ul{margin:0;padding-left:19px}.conflict-panel{background:#f9f4e7;display:flex;flex-direction:column;gap:16px}.conflict-panel p{color:#7d7358}.conflict-panel .eyebrow{color:#927d4c}.page-message{padding:12px 17px;background:#e9f2dc;border:1px solid #d4e4bc;color:#456b2b;border-radius:13px;font-size:12px;line-height:1.8;margin-bottom:20px}.drop-zone{background:#f7faf1;border:1.5px dashed #b8cda1;border-radius:20px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:27px 20px;gap:9px;transition:background .15s,border .15s}.drop-zone.dragover{background:#eaf4d8;border-color:#638b38}.drop-zone:has(input:focus-visible){outline:3px solid #82a54e;outline-offset:3px}.upload-mark{width:41px;height:41px;border-radius:14px;display:grid;place-items:center;font-size:27px;color:#7c9c52;background:#e9f1dd;margin-bottom:4px}.drop-zone>strong{font-size:15px;font-weight:580}.drop-zone>.muted{font-size:11px}.file-label{padding:7px 18px;min-height:35px;cursor:pointer;margin-top:4px}.drop-zone .hint{margin:4px 0 0;font-size:11px}.file-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 3px;border-bottom:1px solid #edf1e7}.file-summary>div{display:flex;align-items:center;gap:12px;min-width:0}.file-summary>div>div{min-width:0}.file-summary strong{font-size:13px;display:block;overflow-wrap:anywhere}.file-summary .small{display:block;font-size:11px}.file-symbol{width:35px;height:35px;border-radius:12px;background:#edf3e3;display:grid;place-items:center;font-size:25px;color:#6d8a4d}.method-fieldset{border:0;margin:22px 0 16px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.method-fieldset>legend{margin-bottom:11px}.method-option{display:flex;gap:10px;padding:16px;background:#fafcf6;border:1px solid #e1e9d8;border-radius:15px;align-items:flex-start;cursor:pointer;min-width:0}.method-option:has(input:checked){border-color:#a4c378;background:#f1f7e6}.method-option:has(input:disabled){opacity:.65}.method-option strong{font-size:12px;display:block}.method-option small{font-size:11px;color:var(--muted);display:block;margin-top:4px;line-height:1.8;font-weight:400}.ai-consent{background:#f6f8f0;border:1px solid #e3e9d8;border-radius:14px;padding:15px;margin:15px 0}.ai-consent>label{display:flex;gap:10px;align-items:flex-start;line-height:1.9;font-size:12px;font-weight:400}.ai-consent>.hint{margin-left:28px}.import-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px}.import-actions>.text-button{margin-left:auto}.draft-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.currency-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px;margin:15px 0 22px}.currency-card{padding:16px 18px;border-radius:17px;background:#f3f7eb;border:1px solid #e1eace}.currency-card h3{font-size:12px;color:#69834b;margin-bottom:12px;display:flex;justify-content:space-between;gap:8px}.currency-card h3>span{font-size:10px;font-weight:400}.currency-card dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.currency-card dl>div{display:flex;flex-direction:column;gap:3px}.currency-card dt{font-size:10px;color:#78876a}.currency-card dd{font-size:15px;font-weight:580;margin:0;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.table-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid #e2e9d8;border-radius:17px}.preview-table{width:100%;min-width:1440px;border-collapse:collapse;font-size:12px;table-layout:fixed}.preview-table th{font-size:10px;color:#7b8c69;background:#f4f8ec;font-weight:500;text-align:left;padding:11px 9px;white-space:nowrap}.preview-table th:first-child{width:56px}.preview-table th:nth-child(2){width:137px}.preview-table th:nth-child(3){width:180px}.preview-table th:nth-child(4){width:113px}.preview-table th:nth-child(5){width:84px}.preview-table th:nth-child(6){width:130px}.preview-table th:nth-child(7),.preview-table th:nth-child(8){width:120px}.preview-table th:nth-child(9){width:180px}.preview-table th:last-child{width:190px}.preview-table td{border-top:1px solid #eaf0e2;padding:11px 8px;vertical-align:top;background:#fff}.preview-table tr.duplicate td{background:#fffcf4}.preview-table tr.invalid td{background:#fffaf7}.preview-table td input:not([type=checkbox]),.preview-table td select{width:100%;font-size:11px;padding:7px 8px;min-height:37px;border-radius:9px;background:#fafcf7}.preview-table td:first-child{text-align:center}.row-check{display:flex;flex-direction:column;align-items:center;gap:4px}.row-number{font-size:10px;color:#92a180}.row-feedback{font-size:10px;line-height:1.7;color:#7d895f}.row-feedback.invalid{color:var(--error)}.row-feedback.duplicate{color:#94713c}.row-feedback small{font-size:10px;display:block;margin-top:4px;color:#8c937b}.save-bar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:23px;padding-top:17px;border-top:1px solid var(--line)}.save-bar>p{font-size:12px;color:var(--muted)}.save-bar>button{flex-shrink:0}.success-panel{display:flex;gap:16px;align-items:center;background:#edf6df;color:#456c2a;border-color:#d7e8bf}.success-panel>div{flex:1;min-width:0}.success-panel p{font-size:12px}.success-mark{width:41px;height:41px;flex:none;border-radius:50%;display:grid;place-items:center;background:#e0eec9;font-size:23px}.history-list{list-style:none;padding:0;margin:0}.history-list>li{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:16px 0;border-top:1px solid #edf1e6}.history-list>li:first-child{border-top:0;padding-top:2px}.history-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.history-list small{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:4px}.history-count{flex-shrink:0;color:#658345;font-size:12px}.empty-state{text-align:center;padding:27px 20px;color:var(--muted);font-size:12px;background:#f8faf4;border-radius:16px}.empty-state>strong{font-size:15px;display:block;color:#647850;margin-bottom:8px}.page-footer{text-align:center;border-top:1px solid var(--line);padding:24px 10px 35px;color:#8b987e;margin-top:10px}.page-footer>strong{font-size:14px;letter-spacing:-.03em;color:#69844b}.page-footer p{max-width:650px;margin:7px auto 0;font-size:10px}.spinning:after{content:'';width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:spin .7s linear infinite}.primary-button[aria-busy=true]{gap:10px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.page-wrap{padding:21px 21px 0}.site-header{padding-inline:21px}.account-grid{grid-template-columns:1fr 1fr;gap:15px}.card{padding:21px}.hero-copy{padding:29px}.hero-copy h1{font-size:32px}.account-hero>img{height:250px;padding-right:12px}.input-action{flex-direction:column}.input-action>button{align-self:flex-start}.section-heading h2{font-size:18px}.section-heading .badge{font-size:9px}.import-actions>.text-button{margin-left:0}}
@media(max-width:640px){body{font-size:13px}.page-wrap{padding:16px 15px 0}.site-header{padding:12px 16px;min-height:67px;gap:12px}.site-header nav{gap:11px;font-size:10px}.brand-mark{width:34px;height:34px;font-size:21px}.brand strong{font-size:18px}.brand small{font-size:8px}.language-button{font-size:10px;min-height:31px;padding:5px 9px}.account-hero{grid-template-columns:1fr;border-radius:23px;gap:0}.account-hero:before{background:linear-gradient(174deg,#fff 0 171px,#f0f1df 171px 185px,#c0d39a 185px 201px,#769154 201px 215px,#3b5734 215px 228px,transparent 228px)}.account-hero>img{order:-1;height:190px;padding:11px 30px 0}.hero-copy{padding:20px 24px 25px}.hero-copy h1{font-size:29px;margin:13px 0 12px}.hero-eyebrow{background:#203d28;color:#e6efcf;font-size:10px}.hero-copy>p{font-size:12px;line-height:1.9}.hero-local-note{font-size:10px}.account-grid{grid-template-columns:1fr;gap:0}.card{padding:20px 18px;border-radius:21px}.input-action{flex-direction:row}.input-action>button{align-self:stretch;padding-inline:13px;font-size:11px;max-width:120px}.method-fieldset{grid-template-columns:1fr}.method-option{padding:13px}.import-actions{gap:9px}.import-actions>.primary-button,.import-actions>.secondary-button{flex:1}.import-actions>.text-button{width:100%;text-align:center}.drop-zone{padding:24px 12px}.drop-zone>strong{font-size:13px}.drop-zone>.muted{font-size:10px}.section-heading{gap:8px}.section-heading h2{font-size:18px}.section-heading .badge{font-size:9px;padding:4px 7px}.save-bar{flex-direction:column;align-items:stretch;gap:12px}.save-bar>button{width:100%}.notice{padding:17px}.conflict-panel .button-row>.primary-button,.conflict-panel .button-row>.secondary-button{width:100%}.success-panel{flex-wrap:wrap}.success-panel>.primary-button{width:100%}.history-list>li{gap:12px}.history-count{font-size:10px}.preview-table,.preview-table tbody{display:block;min-width:0;width:100%}.preview-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.preview-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:10px;border-top:1px solid #e1e9d6}.preview-table tr:first-child{border-top:0}.preview-table td{display:block;border:0;padding:0!important;min-width:0;background:none!important}.preview-table td:before{content:attr(data-label);display:block;font-size:10px;color:#829270;margin-bottom:5px}.preview-table td:first-child{grid-column:1/-1;text-align:left}.preview-table td:first-child:before{display:none}.row-check{flex-direction:row;gap:9px}.preview-table td:nth-child(3),.preview-table td:nth-child(9),.preview-table td:last-child{grid-column:1/-1}.preview-table td:last-child{padding-top:3px!important}.preview-table td input:not([type=checkbox]),.preview-table td select{font-size:12px;min-height:40px}.preview-table tr.duplicate{background:#fffcf4}.preview-table tr.invalid{background:#fffaf7}.row-feedback{font-size:11px}.draft-tools{align-items:flex-start}.draft-tools>.text-button{font-size:11px}.draft-tools .button-row{gap:15px}.draft-tools .button-row>.text-button{font-size:11px}.table-scroll{overflow:hidden}.page-footer p{font-size:10px}.notice h2{font-size:17px}}
@media(max-width:365px){.site-header nav{gap:8px}.site-header nav>a{max-width:67px;text-align:center;font-size:9px}.input-action{flex-direction:column}.input-action>button{max-width:none;align-self:stretch}.account-hero h1{font-size:26px}.card{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.site-header nav,.account-hero,.import-card,.draft-tools,.save-bar,.button-row,.page-footer{display:none!important}.page-wrap{padding:0}.card{break-inside:avoid;box-shadow:none}.table-scroll{overflow:visible}.preview-table{min-width:0;font-size:9px}.preview-table input,.preview-table select{border:0!important;background:none!important;padding:0!important}.page-wrap{max-width:none}}

/* Keep small review copy and primary actions readable across both languages. */
.primary-button{background:linear-gradient(100deg,#3f6b1f,#567b2d)}
.eyebrow{color:#61784c}.row-feedback{color:#61714f}.row-feedback small{color:#667352}.row-feedback.review{color:#805d22}.row-number{color:#65794f}.preview-table th{color:#5f754b}.currency-card dt{color:#61714f}.page-footer{color:#6b7a61}
.preview-table tr.review td{background:#fffcf4}.preview-table tr.invalid td{background:#fffaf7}
@media(max-width:640px){input:not([type=checkbox]):not([type=radio]):not([type=file]),select,.preview-table td input:not([type=checkbox]),.preview-table td select{font-size:16px}.preview-table tr.review{background:#fffcf4}.preview-table tr.invalid{background:#fffaf7}.site-header nav>a{min-height:35px;display:flex;align-items:center}.row-feedback small{font-size:11px}.page-footer p{font-size:11px}}

/* Authentication is the only entry surface until a real session is verified. */
.auth-locked [data-auth-only]{display:none!important}.private-nav{display:flex;gap:20px;align-items:center}.private-nav a{text-decoration:none;min-height:35px;display:flex;align-items:center}.auth-locked .page-wrap{max-width:1040px}.auth-locked .account-grid{display:block;max-width:540px;margin:0 auto}.auth-locked .auth-card{padding:28px 30px;margin-bottom:35px}.auth-locked .account-hero{min-height:240px}.auth-locked .account-hero>img{height:235px}.auth-locked #auth-title{font-size:23px}.auth-locked #retained-draft-note{padding:12px;background:#f9f4e7;border-radius:12px;color:#805d22}
@media(max-width:640px){.private-nav{gap:11px}.private-nav a{font-size:10px}.auth-locked .page-wrap{padding-top:14px}.auth-locked .account-hero{grid-template-columns:minmax(0,1fr) 100px;min-height:150px;margin-bottom:17px;border-radius:22px}.auth-locked .account-hero:before{background:linear-gradient(118deg,transparent 0 65%,#3b5734 65% 71%,#769154 71% 77%,#c0d39a 77% 83%,#f0f1df 83% 89%,#fff 89%)}.auth-locked .account-hero>img{order:0;height:138px;padding:4px 9px 0 0}.auth-locked .hero-copy{padding:18px 8px 18px 20px}.auth-locked .hero-copy h1{font-size:22px;margin:10px 0 8px;line-height:1.4}.auth-locked .hero-copy>p{font-size:11px;line-height:1.7}.auth-locked .hero-local-note{display:none}.auth-locked .hero-eyebrow{font-size:9px;padding:3px 8px}.auth-locked .auth-card{padding:22px 21px}.auth-locked #auth-title{font-size:21px}.auth-locked .auth-card>#auth-config-note{margin-bottom:17px}.auth-locked .input-action{flex-direction:column}.auth-locked .input-action>button{max-width:none;align-self:stretch;min-height:44px}.auth-locked .input-action>input{min-height:44px}.auth-locked #login-form .hint{font-size:11px}}
@media(max-width:365px){.private-nav{gap:8px}.private-nav a{max-width:67px;text-align:center;font-size:9px}.auth-locked .account-hero{grid-template-columns:minmax(0,1fr) 80px}.auth-locked .hero-copy h1{font-size:20px}.auth-locked .account-hero>img{height:125px}.auth-locked .auth-card{padding-inline:18px}}

/* Existing-account password sign-in stays compact on phones. */
.login-form{display:grid;gap:17px}.login-field{display:grid;gap:7px}.login-field>input{width:100%}.login-field>.hint{margin-top:0}.login-form>.primary-button{width:100%;min-height:44px;margin-top:3px}
@media(max-width:640px){.login-form{gap:15px}.login-field{gap:6px}.login-form>.primary-button{min-height:46px}}
