:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #151515; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; min-height: 48px; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #235eaa; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.65rem; letter-spacing: -.04em; }
h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.hint { font-size: .78rem; line-height: 1.5; color: #666; }
.eyebrow { font-size: .62rem; font-weight: 700; letter-spacing: .13em; color: #666; }
.workspace { max-width: 600px; margin: auto; padding: 24px 24px 110px; }
.topline { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 28px; border-bottom: 1px solid #ddd; }
.entrance { font-size: 1.15rem; font-weight: 700; margin-top: 9px; }
.text-button { border: 0; background: none; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; font-size: .8rem; }
.text-button:disabled { color: #777; }
.apartment-section { margin: 28px -24px 30px; text-align: center; }
.apartment-wheel { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; gap: 10px; padding: 16px max(24px, calc(50% - 48px)); }
.apartment-wheel button { flex: 0 0 96px; scroll-snap-align: center; border: 1px solid #e1e1e1; border-radius: 12px; background: white; font-size: 1.5rem; font-weight: 700; height: 76px; }
.apartment-wheel button[aria-pressed="true"] { background: #151515; border-color: #151515; color: white; }
.apartment-wheel button:disabled { opacity: .65; }
.wheel-hint { font-size: .7rem; margin-top: 8px; }
.ledger-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.balance { margin: 16px 0 4px; font-size: 1rem; font-weight: 700; }
.notice { font-size: .85rem; line-height: 1.5; margin: 12px 0; overflow-wrap: anywhere; }
.notice:empty, .hint:empty { display: none; }
.error { color: #a72323; }
.success { color: #19713f; }
.table-heading { display: flex; justify-content: space-between; font-size: .65rem; letter-spacing: .08em; color: #666; padding: 22px 0 12px; border-bottom: 2px solid #151515; }
.months { list-style: none; margin: 0; padding: 0; }
.month-row { border-bottom: 1px solid #e4e4e4; }
.month-button { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; align-items: center; width: 100%; min-height: 70px; text-align: left; background: none; border: 0; padding: 12px 4px; }
.month-button .month-label { font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.month-button .month-value { text-align: right; font-size: 1.1rem; }
.month-button .status { display: block; font-size: .65rem; line-height: 1.4; margin-top: 4px; }
.month-button[aria-expanded="true"] { background: #f3f4f5; }
.month-button.green { color: #19713f; }
.month-button.red { color: #ae2626; }
.month-button.black { color: #151515; }
.editor { padding: 22px 0; }
.editor label, .login-page label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
input { border: 1.5px solid #999; border-radius: 8px; background: white; color: #151515; width: 100%; min-height: 56px; padding: 12px 14px; font-size: 1.3rem; }
.editor .hint { margin-top: 8px; }
#preview { font-size: .85rem; line-height: 1.5; margin-top: 18px; }
#preview ul { list-style: none; padding: 0; }
#preview li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eee; padding: 7px 0; }
#preview p { margin: 10px 0; }
.save-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - 48px), 552px); padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ddd; z-index: 2; }
.primary { width: 100%; background: #151515; color: white; border: 0; border-radius: 8px; padding: 18px 16px; font-size: .85rem; font-weight: 700; letter-spacing: .07em; }
.primary:disabled { background: #ddd; color: #777; }
.secondary { width: 100%; background: white; border: 1px solid #777; border-radius: 8px; margin: 20px 0; padding: 14px; }
#advance-info { margin-top: 18px; }
.login-page { max-width: 430px; margin: 10vh auto; padding: 24px; }
.login-page h1 { margin: 22px 0 16px; font-size: 2rem; }
.intro { line-height: 1.5; font-size: .9rem; margin-bottom: 34px; }
.login-page input { margin-bottom: 22px; }
.login-page .hint { margin: -14px 0 28px; }
@media (max-width: 360px) { .workspace { padding-left: 16px; padding-right: 16px; } .apartment-section { margin-left: -16px; margin-right: -16px; } h1 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
