.page { max-width: 640px; margin: 0 auto; padding: 24px 20px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.masthead, .brand, .tabs, .section-heading, .input-shell, .result-heading, .plan-heading { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.brand { gap: 10px; font-weight: 600; }
.brand-mark { background: #244E3E; color: #FFFDF6; width: 36px; height: 36px; text-align: center; line-height: 36px; border-radius: 10px 10px 10px 2px; }
.local-tag { color: #546653; font-size: 20px; }
.tabs { background: #E9EDE3; border: 1px solid #DAE1D2; padding: 5px; border-radius: 14px; gap: 4px; }
.tab { flex: 1; background: transparent; color: #51634F; font-size: 20px; padding: 12px 4px; border-radius: 10px; }
.tab.active { background: #FFF; color: #214D3C; box-shadow: 0 2px 6px #233C3010; }
.intro { padding: 32px 0 24px; }
.eyebrow { color: #5D6B55; font-size: 20px; }
.title { font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.4; margin: 6px 0 10px; }
.title-dot { color: #A47732; }
.intro-text, .hint { color: #61685B; font-size: 20px; }
.panel { background: #FFF; border: 1px solid #DFE4DA; border-radius: 18px; padding: 24px 20px; }
.section-heading { font-size: 23px; font-weight: 600; gap: 10px; flex-wrap: wrap; line-height: 1.5; }
.step { display: inline-block; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; text-align: center; background: #EAF0E4; color: #36553C; font-size: 20px; flex-shrink: 0; }
.hint { display: block; margin-top: 8px; }
.input-shell { background: #FAFBF7; border: 2px solid #B4C1AA; border-radius: 12px; margin-top: 16px; padding: 12px; gap: 8px; }
.number-input { flex: 1; width: 0; min-width: 0; font-size: 30px; font-weight: 600; height: 48px; line-height: 48px; }
.input-unit { flex-shrink: 0; font-size: 20px; color: #54614F; }
.divider { height: 1px; background: #E5E8E0; margin: 28px 0; }
.reading { display: flex; flex-direction: column; color: #355B3E; background: #F0F4E9; padding: 12px 14px; margin-top: 14px; border-radius: 10px; overflow-wrap: anywhere; }
.reading-label { display: block; font-size: 20px; font-weight: 400; opacity: 0.85; }
.input-note { color: #61685B; margin-top: 14px; }
.invalid { border-color: #AE3C2D; }
.error { display: block; color: #9B3024; font-size: 20px; margin-top: 8px; }
.result-panel { margin-top: 24px; border-radius: 18px; background: #244E3E; color: #FFFDF5; padding: 24px 20px; }
.result-heading { gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.result-tag { color: #DEEDD1; border: 1px solid #67836B; padding: 2px 8px; border-radius: 6px; font-size: 20px; }
.amount-readable { display: block; color: #F2EDBD; font-size: 38px; font-weight: 700; line-height: 1.35; margin-top: 22px; overflow-wrap: anywhere; }
.amount-exact { display: block; font-size: 22px; margin-top: 12px; word-break: break-all; font-variant-numeric: tabular-nums; }
.result-reading { margin-top: 20px; padding: 16px; background: #345D4C; border-radius: 10px; font-size: 23px; overflow-wrap: anywhere; }
.result-divider { height: 1px; background: #668170; margin: 24px 0 18px; }
.formula-title { font-weight: 600; }
.formula { margin-top: 8px; overflow-wrap: anywhere; }
.formula-note { color: #DBE8D7; display: block; margin-top: 4px; }
.result-empty { padding: 24px 0 8px; color: #DFEAD9; }
.empty-amount { display: block; font-size: 32px; font-weight: 600; color: #F2EDBD; margin-bottom: 12px; }
.scope-note { display: flex; align-items: flex-start; gap: 10px; color: #61685B; margin: 18px 2px 26px; font-size: 20px; }
.note-icon { border: 1px solid #7D8674; line-height: 22px; min-width: 22px; text-align: center; border-radius: 50%; margin-top: 5px; font-family: Georgia, serif; }
.optional { font-size: 20px; font-weight: 400; color: #61685B; }
.name-input { background: #FAFBF7; border: 1px solid #B4C1AA; border-radius: 10px; height: 60px; font-size: 22px; padding: 12px; margin: 16px 0 20px; width: 100%; }
.primary { color: #FFF; background: #244E3E; width: 100%; }
.secondary { color: #244E3E; background: #FFF; border: 1px solid #8CA086; width: 100%; margin-top: 12px; }
.save-hint { display: block; margin-top: 16px; text-align: center; color: #61685B; font-size: 20px; }
.text-button { color: #53634F; background: transparent; margin-top: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; }
.footer { text-align: center; font-size: 20px; color: #65705B; margin-top: 28px; }
.saved-empty { text-align: center; }
.saved-empty .section-heading { justify-content: center; }
.saved-empty .primary { margin-top: 24px; }
.empty-symbol { font-size: 32px; background: #EDF2E7; width: 68px; height: 68px; border-radius: 18px; line-height: 68px; margin: 8px auto 20px; }
.saved-card { margin-bottom: 20px; }
.plan-heading { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan-name { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.plan-date { color: #61685B; font-size: 20px; }
.saved-amount { display: block; font-size: 32px; color: #244E3E; font-weight: 700; margin-top: 16px; overflow-wrap: anywhere; }
.saved-exact, .saved-chinese { display: block; color: #54614F; margin-top: 6px; overflow-wrap: anywhere; }
.saved-details { display: flex; flex-direction: column; border-top: 1px solid #DFE4DA; padding-top: 16px; margin: 20px 0; color: #54614F; }
.delete-button { color: #963A2C; background: transparent; font-weight: 400; margin-top: 10px; }
.storage-error { margin-bottom: 20px; }
@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .panel, .result-panel { padding: 20px 16px; }
  .number-input { font-size: 26px; }
  .amount-readable { font-size: 34px; }
}

.area-type-label { margin-top: 20px; font-size: 20px; font-weight: 600; }
.area-type-options { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.area-choice { width: 100%; background: #FAFBF7; color: #36553C; border: 2px solid #B4C1AA; text-align: left; }
.area-choice.selected { background: #244E3E; color: #FFFDF6; border-color: #244E3E; }

.disclaimer { margin-top: 12px; text-align: center; color: #61685B; font-size: 16px; line-height: 1.6; }

.detail-amount { margin-top: 8px; font-size: 26px; font-weight: 600; color: #F2EDBD; overflow-wrap: anywhere; }
