:root{--primary: #ef6060;--primary-strong: #c53f49;--on-primary: #fff;--primary-soft: #fff0f0;--primary-outline: #ffd0d0;--danger: #b63b32;--danger-strong: #932d27;font-family:Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#222;background:#f6f7f5;font-synthesis:none;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}.appShell{width:100%;max-width:1180px;margin:0 auto;padding:0 16px 112px}.appHeader{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:68px;border-bottom:1px solid #dde1dc;background:#f6f7f5}.brand{font-size:1.2rem;font-weight:800;letter-spacing:-.02em;text-decoration:none}nav{display:flex;gap:4px}nav{flex-shrink:0}nav a{min-height:44px;padding:11px 12px;border-radius:8px;color:#666;font-size:.9rem;font-weight:650;text-decoration:none}nav a.active{color:var(--primary-strong);background:var(--primary-soft)}.page{padding-top:28px}.pageIntro h2{margin:0 0 6px;font-size:clamp(1.5rem,5vw,2rem);letter-spacing:-.035em}.pageIntro p{max-width:620px;margin:0;color:#68706d;line-height:1.6}.sectionLabel{margin:0 0 3px;color:#6c7471;font-size:.8rem;font-weight:650}.monthSummary,.exportSummary,.mealForm,.expenseTableSection{border:1px solid #dfe3df;border-radius:14px;background:#fff}.monthSummary{display:grid;gap:24px;margin-top:24px;padding:20px}.monthSummary h3,.summaryMonth h3{margin:0;font-size:1.2rem}.monthSummary dl,.exportSummary dl{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:0}.monthSummary dl div+div{border-left:1px solid #e4e7e4;padding-left:16px}dt{color:#707774;font-size:.8rem}dd{margin:4px 0 0;font-size:1.12rem;font-weight:750;letter-spacing:-.02em}.mealSection{margin-top:30px}.sectionHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.sectionHeading h3{margin:0;font-size:1rem}.sectionHeading span{color:#858b89;font-size:.72rem}.emptyState{padding:32px 20px;border:1px solid #dfe3df;border-radius:12px;color:#68706d;background:#fff;text-align:center}.emptyState strong{display:block;color:#303633;font-size:.94rem}.emptyState p{margin:6px 0 0;font-size:.82rem}.mealList{margin:0;padding:0;border-top:1px solid #dfe3df;list-style:none}.mealList li{display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 10px;min-height:82px;padding:8px 0;border-bottom:1px solid #e4e7e4}.mealList time{color:#5d6663;font-size:.86rem;font-weight:650}.mealInfo,.mealAmount{display:flex;min-width:0;flex-direction:column}.mealList time,.mealInfo{grid-row:1 / 3}.mealInfo strong{overflow:hidden;font-size:.94rem;text-overflow:ellipsis;white-space:nowrap}.mealInfo span,.mealAmount span{margin-top:3px;color:#808784;font-size:.72rem}.mealAmount{align-items:end;text-align:right}.mealAmount{grid-column:3;grid-row:1}.mealAmount strong{font-size:.92rem}.deleteExpenseButton{grid-column:3;grid-row:2;justify-self:end;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:8px;color:var(--danger);background:transparent;font-size:.78rem;font-weight:700;cursor:pointer}.deleteExpenseButton:hover{background:#fff0ef}.receiptStatus{color:#8a5a37!important;white-space:nowrap}.receiptStatus.isComplete{color:var(--primary-strong)!important}.primaryButton,.secondaryButton{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 20px;border-radius:10px;font-weight:750;text-decoration:none;cursor:pointer}.primaryButton{border:1px solid var(--primary);color:var(--on-primary);background:var(--primary)}.primaryButton:hover:not(:disabled){border-color:var(--primary-strong);color:var(--on-primary);background:var(--primary-strong)}.primaryButton:active:not(:disabled){color:var(--on-primary);filter:brightness(.94)}.primaryButton:disabled{border-color:#aeb8b4;color:#eef1ef;background:#aeb8b4;cursor:not-allowed}.secondaryButton{border:1px solid #cfd5d1;color:#3c4441;background:#fff}.captureButton{position:fixed;right:16px;bottom:max(18px,env(safe-area-inset-bottom));left:16px;z-index:10}.registerPage{width:min(100%,760px);margin:0 auto}.mealForm{margin-top:24px;padding:18px}.contentField{margin-bottom:18px}.noteField{margin-top:18px}.recentContents{margin-top:10px}.recentContents>span{display:block;margin-bottom:7px;color:#68706d;font-size:.76rem;font-weight:650}.contentChips{display:flex;flex-wrap:wrap;gap:8px}.contentChips button{min-height:42px;padding:8px 12px;border:1px solid var(--primary-outline);border-radius:999px;color:var(--primary-strong);background:var(--primary-soft);font-size:.82rem;cursor:pointer}.contentChips button:focus-visible{outline:3px solid var(--primary-outline);outline-offset:2px}.receiptCapture{min-width:0;padding:16px;border:1px dashed #bfc7c2;border-radius:10px;background:#fafbfa}.receiptCapture.hasPreview{border-style:solid}.receiptCaptureHeading{display:flex;align-items:start;justify-content:space-between;gap:12px}.receiptCaptureHeading h3{margin:0 0 4px;font-size:.96rem}.receiptCaptureHeading p{margin:0;color:#747c79;font-size:.82rem}.textButton{min-height:44px;padding:8px;border:0;color:#8a4338;background:transparent;font-size:.8rem;font-weight:700;cursor:pointer}.receiptEmptyState{display:grid;min-height:150px;margin-top:14px;padding:20px;place-items:center;align-content:center;gap:10px;border-radius:8px;color:#6e7773;background:#f0f3f1;text-align:center}.receiptEmptyState span{display:grid;width:46px;height:46px;place-items:center;border-radius:50%;color:var(--primary-strong);background:var(--primary-soft);font-size:1.35rem}.receiptEmptyState p{max-width:280px;margin:0;font-size:.78rem}.receiptPreview{display:flex;max-height:620px;margin-top:14px;overflow:auto;border-radius:8px;background:#edf0ee}.receiptPreview img{display:block;width:auto;max-width:100%;height:auto;max-height:620px;margin:auto;object-fit:contain}.receiptCaptureButton{width:100%;margin-top:14px}.visuallyHidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.visuallyHidden:focus+.receiptCaptureButton{outline:3px solid var(--primary-outline);outline-offset:3px}.validationMessage{margin:10px 0 0;color:#a13f32;font-size:.8rem}.ocrFeedback{margin:14px 0 0;padding:12px;border-radius:8px;color:#604d26;background:#f7f1df;font-size:.82rem}.formGrid{display:grid;gap:18px;margin-top:24px}.field{min-width:0}.field label{display:block;margin-bottom:7px;font-size:.85rem;font-weight:700}.field input{width:100%;min-height:48px;padding:10px 12px;border:1px solid #cbd2cd;border-radius:8px;color:#222;background:#fff}.field input:focus,.monthSelect:focus{border-color:var(--primary);outline:3px solid var(--primary-outline)}.field input:read-only{color:#4f5754;background:#f1f3f2}.amountInput{position:relative}.amountInput input{padding-right:38px}.amountInput span{position:absolute;top:50%;right:13px;color:#69716e;transform:translateY(-50%)}.fieldHint{margin:6px 0 0;color:#68706d;font-size:.76rem}.formActions{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-top:28px}.formNotice,.printNotice{margin:12px 0 0;color:#747c79;font-size:.78rem;text-align:center}.formMessage{text-align:center}.successFeedback{margin:0 0 12px;padding:12px;border-radius:8px;color:var(--primary-strong);background:var(--primary-soft);font-size:.84rem}.exportIntro{display:flex;flex-direction:column;gap:18px}.printButton{width:100%}.exportSummary{margin-top:24px;padding:20px}.exportSummary dl{margin:20px 0 0}.exportSummary dl div:last-child{grid-column:1 / -1;padding-top:16px;border-top:1px solid #e4e7e4}.monthSelect{width:100%;min-height:48px;margin-top:6px;padding:10px 40px 10px 12px;appearance:none;border:1px solid #cbd2cd;border-radius:8px;color:#222;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2368716e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;font:inherit;font-weight:650}.expenseTableSection{margin-top:24px;padding:18px}.tableScroller{overflow-x:auto}table{width:100%;min-width:660px;border-collapse:collapse;font-size:.88rem}th,td{padding:13px 12px;border-bottom:1px solid #e3e6e3;text-align:left;white-space:nowrap}th{color:#68706d;background:#f7f8f7;font-size:.76rem}td:nth-child(3),td:nth-child(4),th:nth-child(3),th:nth-child(4){text-align:right}.excelNotice{margin:18px 0 0;color:#747c79;font-size:.78rem}.dialogBackdrop{position:fixed;inset:0;z-index:50;display:grid;padding:20px;place-items:center;background:#1418166b}.simpleDialog{width:min(100%,360px);padding:22px;border-radius:14px;background:#fff;box-shadow:0 18px 50px #0000002e}.simpleDialog h3{margin:0;font-size:1.05rem}.simpleDialog p{margin:10px 0 22px;color:#68706d}.simpleDialog .primaryButton{width:100%}.dialogActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialogActions .secondaryButton,.dialogActions .destructiveButton{width:100%}.destructiveButton{display:inline-flex;min-height:50px;padding:12px 20px;align-items:center;justify-content:center;border:1px solid var(--danger);border-radius:10px;color:#fff;background:var(--danger);font:inherit;font-weight:750;cursor:pointer}.destructiveButton:hover:not(:disabled){border-color:var(--danger-strong);background:var(--danger-strong)}.destructiveButton:disabled{opacity:.58;cursor:not-allowed}.dialogMessage{margin:-10px 0 16px!important}.desktopOnly{display:none}.appFooter{margin-top:20px;color:#222;font-size:12px;font-weight:300;text-align:center}@media(min-width:768px){.appShell{padding:0 28px 72px}.appHeader{min-height:76px}nav a{padding-right:18px;padding-left:18px}.page{padding-top:40px}.monthSummary{grid-template-columns:1fr 1fr;align-items:end;padding:26px}.formGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.fieldWide{grid-column:1 / -1}.mobileOnly{display:none}.desktopOnly{display:inline}.captureButton{position:static;width:fit-content;min-width:190px;margin:28px 0 0 auto}.mealIntro{display:flex;align-items:end;justify-content:space-between;gap:24px}.mealIntro .captureButton{flex:0 0 auto;margin:0}.exportIntro{flex-direction:row;align-items:end;justify-content:space-between}.printButton{width:auto;min-width:150px}.appFooter{margin-top:30px;font-size:14px}.exportSummary{display:grid;grid-template-columns:.8fr 2fr;align-items:end;gap:32px;padding:26px}.exportSummary dl{grid-template-columns:repeat(3,1fr);margin:0}.exportSummary dl div:last-child{grid-column:auto;padding-top:0;border-top:0}}@media(min-width:1024px){.appShell{padding-right:36px;padding-left:36px}.mealListPage .mealSection{margin-top:36px}.expenseTableSection{padding:22px 24px}}
