.card{border:1px solid var(--border);background:#fff;border-radius:20px;padding:24px}.auth-content{max-width:560px;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))}.auth-form,.auth-card{gap:20px;min-width:0;display:grid}.auth-email{overflow-wrap:anywhere}.auth-card .button,.auth-form .button{width:100%}.section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.badge{color:#20553f;background:#e8f3ed;border-radius:999px;align-items:center;padding:4px 12px;font-size:.89rem;font-weight:700;display:inline-flex}.receipt-reading .button{overflow-wrap:anywhere;width:100%;margin-top:16px}.receipt-reading p{overflow-wrap:anywhere}.badge-neutral{color:#52635b;white-space:nowrap;background:#edf0ed}.add-receipt{background:var(--green);color:#fff;border-radius:20px;align-items:center;gap:18px;min-height:112px;padding:26px 24px;display:flex;box-shadow:0 6px 16px #17695616}.add-receipt:hover{background:var(--green-dark)}.add-receipt>span:nth-child(2){flex:1;min-width:0}.add-receipt strong{font-size:1.4rem;display:block}.add-icon{background:#ffffff1c;border-radius:18px;flex:none;place-items:center;width:62px;height:62px;display:grid}.add-icon .icon{width:32px;height:32px}.add-subtitle{margin-top:4px;font-size:.89rem;display:block}.total-label{color:var(--muted)}.total-placeholder{margin:2px 0 10px;font-size:2.8rem;font-weight:700;line-height:1.4}.text-link{align-items:center;gap:4px;min-height:44px;font-size:.94rem;font-weight:700;display:inline-flex}.monthly-card>.text-link{margin-top:16px}.data-state{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:10px 0;display:flex}.state-icon{color:#55735e;background:#edf4ee;border-radius:50%;place-items:center;width:54px;height:54px;margin-bottom:6px;display:grid}.state-title{font-weight:700}.data-state-error .state-icon{color:#a5302a;background:#fcf0ee}.button{text-align:center;border:1px solid #0000;border-radius:14px;justify-content:center;align-items:center;gap:12px;min-height:56px;padding:12px 20px;font-weight:700;line-height:1.7;display:inline-flex}.button-primary{color:#fff;background:var(--green)}.button-primary:hover{background:var(--green-dark)}.button-secondary{border-color:var(--green);color:var(--green);background:#fff}.button:disabled{color:#52635b;border-color:var(--border);background:#edf0ed}.data-state .button{margin-top:12px}.field{flex-direction:column;gap:8px;display:flex}.field label{font-weight:700}.field-hint{color:var(--muted);font-size:.89rem}.field input{color:#23362e;background:#fff;border:1px solid #9caea2;border-radius:12px;width:100%;min-height:56px;padding:12px 16px}.field input:disabled{background:#eef2ee}.field input[aria-invalid=true]{border:2px solid #a5302a}.field-error{color:#a5302a;font-weight:700}.reading-candidate .field{flex-direction:row;align-items:center;min-height:48px}.reading-candidate .field input[type=checkbox]{flex:0 0 24px;width:24px;height:24px;min-height:24px;margin:0 8px 0 0}.month-switcher{grid-template-columns:minmax(44px,1fr) minmax(0,2fr) minmax(44px,1fr);align-items:center;gap:8px;display:grid}.month-button{border:1px solid var(--border);color:var(--green);background:#fff;border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;min-height:56px;padding:8px;font-size:.89rem;font-weight:700;display:flex}.month-label{text-align:center;overflow-wrap:anywhere;font-size:1.12rem;font-weight:700}.settings-list{padding:0 24px}.setting-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:22px 0;display:flex}.setting-row+.setting-row{border-top:1px solid var(--border)}.setting-row>span:first-child{min-width:0}.setting-row strong,.setting-row .muted{display:block}.setting-row .muted{margin-top:4px;font-size:.89rem}.note{color:#335344;background:#eaf2ec;border-radius:14px;gap:12px;padding:18px;font-size:.94rem;display:flex}.note .icon{margin-top:4px}.capture-choices{grid-template-columns:1fr 1fr;gap:20px;display:grid}.capture-choice{border:2px solid var(--border);color:#365548;background:#fff;border-radius:20px;flex-direction:column;align-items:center;gap:10px;min-height:176px;padding:28px 18px;display:flex}.capture-choice strong{font-size:1.25rem}.capture-choice>span:last-child{font-size:.94rem}.capture-icon{background:#edf4ee;border-radius:16px;padding:16px}.capture-icon .icon{width:32px;height:32px;display:block}.bottom-nav{border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0px);z-index:10;background:#fffffffa;position:fixed;bottom:0;left:0;right:0}.receipt-editor{min-width:0;padding-bottom:calc(var(--save-height,110px) + var(--nav-height,0px) + 24px);gap:20px;display:grid}.receipt-editor form,.editor-fields{grid-template-columns:minmax(0,1fr);gap:20px;min-width:0;display:grid}.reading-recovery{overflow-wrap:anywhere}.reading-recovery ul{margin:0;padding-inline-start:1.3rem}.reading-recovery .button{overflow-wrap:anywhere;width:100%;min-width:0}.receipt-editor .field{overflow-wrap:anywhere;min-width:0}.receipt-editor input,.receipt-editor select,.receipt-editor textarea{min-width:0;max-width:100%}fieldset.editor-fields{border:0;margin:0;padding:0}.editor-fields .section-heading{margin:0}.editor-details{min-width:0}.editor-details summary{min-height:56px;color:var(--green);cursor:pointer;overflow-wrap:anywhere;padding:12px 0;font-weight:700}.editor-details>.editor-fields{padding-top:12px}.field select,.field textarea{color:#23362e;background:#fff;border:1px solid #9caea2;border-radius:12px;width:100%;min-height:56px;padding:12px}.editor-fields:disabled summary{color:var(--muted)}.editor-message:empty{display:none}.editor-message{overflow-wrap:anywhere;font-weight:700}.editor-save-bar{bottom:var(--nav-height,0px);z-index:20;border-top:1px solid var(--border);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;position:fixed;left:0;right:0}.editor-save-bar>div{max-width:720px;margin:auto}.editor-save-bar .button{width:100%}.saved-message{text-align:center;color:var(--green);font-weight:700}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.bottom-nav-inner{grid-template-columns:repeat(4,minmax(0,1fr));max-width:760px;margin:auto;display:grid}.nav-link{color:#52635b;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:84px;padding:12px 4px 14px;font-size:.89rem;display:flex}.nav-link[aria-current=page]{color:var(--green);box-shadow:inset 0 3px var(--green);background:#eef6f0;font-weight:700}.nav-link .icon{width:26px;height:26px}@media (width<=540px){.capture-choices{grid-template-columns:1fr;gap:16px}.capture-choice{min-height:164px}}@media (width<=400px){.card{padding:20px}.settings-list{padding:0 20px}.add-receipt{flex-wrap:wrap;gap:12px;padding:24px 16px}.add-receipt strong{font-size:1.2rem}.add-receipt>.icon{display:none}.add-icon{border-radius:14px;width:48px;height:48px}.add-subtitle{font-size:.89rem}.month-switcher{grid-template-columns:1fr 1fr}.month-label{grid-area:1/1/auto/-1}.month-button:first-child{grid-column:1}.month-button:last-child{grid-column:2}}.receipt-list{margin:1rem 0;padding:0;list-style:none}.receipt-row{color:inherit;overflow-wrap:anywhere;flex-direction:column;gap:.35rem;min-width:0;text-decoration:none;display:flex}.receipt-row:hover{border-color:var(--green)}.receipt-row-date,.receipt-status{color:var(--muted)}.receipt-row-amount{font-size:1.3rem}.receipt-summary,.receipt-items .card{overflow-wrap:anywhere;min-width:0}.receipt-total{flex-direction:column;gap:.3rem;display:flex}.receipt-total strong{font-size:1.8rem}.receipt-memo{white-space:pre-wrap}.saved-actions{gap:12px;display:grid}.saved-actions .button{overflow-wrap:anywhere;min-width:0}.saved-actions .saved-message{margin:0}:root{color:#23362e;font-synthesis:none;-webkit-text-size-adjust:100%;--green:#176956;--green-dark:#104c3f;--muted:#52635b;--border:#d9e3dc;background:#f6f8f6;font-family:-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;font-size:18px;line-height:1.7}*{box-sizing:border-box}body{min-width:280px;margin:0}a{color:var(--green);text-decoration:none}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed}button:disabled{opacity:1}input:disabled{color:#52635b;-webkit-text-fill-color:#52635b;opacity:1}:focus-visible{outline-offset:4px;outline:3px solid #145fc4}main:focus:not(:focus-visible){outline:none}h1,h2,p{margin:0}h1{letter-spacing:.02em;font-size:1.65rem;line-height:1.5}h2{font-size:1.12rem;line-height:1.5}strong{font-weight:700}.muted{color:var(--muted);font-size:.94rem}.icon{flex:none;width:1.35rem;height:1.35rem}.app-shell{min-height:100dvh}.app-header{padding:calc(18px + env(safe-area-inset-top,0px)) 24px 18px;border-bottom:1px solid var(--border);background:#fff}.brand{color:#23362e;align-items:center;gap:12px;max-width:720px;min-height:44px;margin:auto;font-size:1.1rem;font-weight:700;display:flex}.brand-icon{background:var(--green);color:#fff;border-radius:12px;place-items:center;width:40px;height:40px;display:grid}.development-notice{color:#624c20;background:#fff8e9;border:1px solid #e8d4a4;border-radius:12px;align-items:flex-start;gap:12px;max-width:720px;margin:18px auto 0;padding:12px 16px;font-size:.89rem;display:flex}.development-label{white-space:nowrap;font-weight:700}.main-content{max-width:720px;padding:30px 0 calc(var(--nav-height,85px) + 48px);flex-direction:column;gap:24px;margin:0 auto;display:flex}.home-intro{padding:2px 2px 0}.home-intro h1{margin:4px 0 8px}.eyebrow{color:var(--green);font-size:.94rem;font-weight:700}.phone-break{display:none}.page-intro h1{margin-bottom:8px}.help-note{color:var(--muted);font-size:.94rem;line-height:1.8}.category-manager,.category-form{overflow-wrap:anywhere;gap:16px;min-width:0;display:grid}.category-form input{border:1px solid var(--border);border-radius:8px;width:100%;min-width:0;min-height:52px;padding:10px}.category-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.category-row{justify-content:space-between;align-items:center;gap:16px;min-width:0;display:flex}.category-row>div{overflow-wrap:anywhere;min-width:0}.category-row button{flex-shrink:0}.category-actions{gap:8px;display:grid}.search-form{gap:16px;min-width:0;display:grid}.report-purpose{grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;display:grid}.report-purpose [aria-pressed=true]{border:3px solid #176f5e;font-weight:700}.report-total{overflow-wrap:anywhere;font-size:2rem;font-weight:700}.report-breakdown ul{gap:16px;margin:0;padding:0;list-style:none;display:grid}.report-category{justify-content:space-between;gap:12px;display:flex}.report-category>*{overflow-wrap:anywhere;min-width:0}.search-label{overflow-wrap:anywhere;font-weight:700}.duplicate-notice{gap:16px;min-width:0;display:grid}.duplicate-notice h2,.duplicate-candidate{overflow-wrap:anywhere}.duplicate-actions{gap:12px;display:grid}.duplicate-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.duplicate-candidate{color:inherit;gap:8px;min-width:0;text-decoration:none;display:grid}@media (width<=520px){.category-row{flex-direction:column;align-items:stretch}}.lifecycle-actions{overflow-wrap:anywhere;gap:16px;display:grid}.button-danger{color:#8c2929;background:#fff;border:2px solid #8c2929}.delete-dialog{color:inherit;border:2px solid var(--border);border-radius:18px;width:min(560px,100% - 32px);max-height:90dvh;padding:24px;overflow-y:auto}.delete-dialog::backdrop{background:#14261e8c}.photo-preview{overflow-wrap:anywhere;gap:16px;min-width:0;display:grid}.photo-preview img{image-orientation:from-image;border-radius:8px;width:100%;height:auto;display:block}.back-link{align-self:flex-start;align-items:center;gap:4px;min-height:44px;font-weight:700;display:inline-flex}.fatal-error{gap:24px;max-width:600px;margin:auto;padding:48px 24px;display:grid}.skip-link{z-index:100;border:2px solid var(--green);background:#fff;padding:12px 20px;position:fixed;top:-200px;left:16px}.skip-link:focus{top:16px}@media (width<=780px){.development-notice{margin-left:20px;margin-right:20px}.main-content{margin:0 20px;padding-top:26px}}@media (width<=400px){.main-content{margin-left:16px;margin-right:16px}.development-notice{flex-direction:column;gap:2px;margin-left:16px;margin-right:16px}.app-header{padding-left:16px;padding-right:16px}.phone-break{display:initial}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.home-breakdown{gap:12px;padding:0;list-style:none;display:grid}.report-results{gap:16px;padding:0;list-style:none;display:grid}.report-results .card{overflow-wrap:anywhere;min-width:0}.report-period{gap:16px;display:grid}.report-period label{gap:8px;min-width:0;display:grid}.report-store-button{text-align:left;overflow-wrap:anywhere;white-space:normal;gap:8px;width:100%;display:grid}.report-views{grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr));gap:8px;margin-bottom:24px;display:grid}.report-views .button{overflow-wrap:anywhere;min-width:0;padding:12px 6px}.item-buffer-previous{overflow-wrap:anywhere;min-width:0}.report-period input{box-sizing:border-box;width:100%;min-width:0;min-height:56px;font:inherit;border:1px solid var(--border);border-radius:8px;padding:10px}.confirmation-actions{overflow-wrap:anywhere;gap:1rem;display:grid}.confirmation-warning{background:#fff8e6;border:2px solid #9c6500;border-radius:12px;padding:1rem}.confirmation-ack{cursor:pointer;align-items:center;gap:.75rem;min-height:56px;display:flex}.confirmation-ack input{flex:0 0 44px;width:44px;height:44px}.confirmation-save{bottom:calc(5rem + env(safe-area-inset-bottom));z-index:5;background:#fff;padding:.5rem 0;position:sticky}.connectivity-notice{color:#513900;overflow-wrap:anywhere;background:#fff4d1;border:2px solid #866400;border-radius:.75rem;width:min(100% - 2rem,46rem);margin:1rem auto;padding:1rem}.connectivity-notice p{margin:.5rem 0 0}.correction-row h2,.correction-row p{overflow-wrap:anywhere}.correction-row .button{width:100%}.correction-manager>.button{margin-block:.5rem}
