:root {
  --ink: #17130f;
  --night: #151520;
  --paper: #f7f2e8;
  --white: #fffefa;
  --yellow: #ffdc58;
  --mint: #65d9ae;
  --pink: #ff75ae;
  --blue: #77a7ff;
  --orange: #ffad63;
  --muted: #6d675f;
  --line: 3px solid var(--ink);
  --radius: 20px;
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 19, 15, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  border: var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}
.skip-link:focus { left: 8px; top: 8px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--ink);
  background: rgba(21, 21, 32, .97);
  color: var(--paper);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--paper);
  color: var(--ink);
  font-family: 'Black Han Sans', sans-serif;
  font-size: 23px;
}
.brand b {
  display: block;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.brand small { display: block; margin-top: 3px; font-size: 9px; font-weight: 900; opacity: .55; }
.account-actions { display: flex; align-items: center; gap: 9px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; opacity: .7; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.save-state.cloud i { background: var(--mint); box-shadow: 0 0 0 3px rgba(101, 217, 174, .2); }
.login-button {
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fee500;
  box-shadow: 3px 3px 0 var(--paper);
  color: #191600;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.avatar-button {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--paper);
  font-weight: 900;
  cursor: pointer;
}

.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 132px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.eyebrow, .page-heading p, .panel-head p, .dialog-head p {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: .55;
}
.intro h1, .page-heading h1 {
  margin: 0;
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.02;
}
.intro h1 span { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }
.intro-copy { margin: 13px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.ledger-switcher { flex: 0 0 250px; }
.ledger-switcher > label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 900; opacity: .6; }
.ledger-control { display: flex; gap: 8px; }
.ledger-control select, .ledger-control button {
  min-height: 48px;
  border: var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}
.ledger-control select { min-width: 0; flex: 1; padding: 0 34px 0 13px; }
.ledger-control button { flex: 0 0 48px; cursor: pointer; background: var(--mint); font-size: 20px; }

.notice { margin: 0 0 18px; padding: 12px 15px; border: var(--line); border-radius: 13px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 900; }
.notice.error { background: #ffb2b2; }
.notice.success { background: var(--mint); }

.view { display: none; }
.view.active { display: block; animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.month-card {
  overflow: hidden;
  border: var(--line);
  border-radius: 26px;
  background: var(--night);
  box-shadow: 8px 8px 0 var(--yellow);
  color: var(--paper);
}
.month-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 25px; }
.month-head p { margin: 0 0 5px; font-size: 12px; font-weight: 900; opacity: .6; }
.month-head h2 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-size: clamp(38px, 8vw, 64px); font-weight: 400; letter-spacing: -1px; }
.month-badge { padding: 5px 10px; border: 2px solid var(--paper); border-radius: 999px; color: var(--yellow); font-size: 10px; font-weight: 900; white-space: nowrap; }
.month-foot { display: flex; gap: 30px; padding: 14px 30px; border-top: 2px dashed rgba(247, 242, 232, .25); font-size: 11px; font-weight: 700; color: rgba(247, 242, 232, .7); }
.month-foot b { margin-left: 4px; color: var(--paper); }

.period-grid, .equivalent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; }
.period-grid article, .equivalent-grid article {
  min-width: 0;
  padding: 17px;
  border: var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.period-grid article:nth-child(2) { background: var(--mint); }
.period-grid article:nth-child(3) { background: var(--blue); }
.period-grid span, .equivalent-grid span { display: block; font-size: 10px; font-weight: 900; opacity: .55; }
.period-grid strong, .equivalent-grid strong { display: block; overflow: hidden; margin-top: 3px; font-size: clamp(18px, 3vw, 25px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.period-grid small { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; opacity: .5; }

.recurring-overview { margin-top: 27px; box-shadow: 6px 6px 0 var(--yellow); }
.flow-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; }
.flow-summary-grid article { min-width: 0; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.flow-summary-grid article.income { background: var(--mint); }
.flow-summary-grid article.expense { background: var(--pink); }
.flow-summary-grid article.net { background: var(--blue); }
.flow-summary-grid span { display: block; font-size: 9px; font-weight: 900; opacity: .6; }
.flow-summary-grid strong { display: block; overflow: hidden; margin-top: 2px; font-size: clamp(16px, 3vw, 23px); text-overflow: ellipsis; white-space: nowrap; }
.flow-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.flow-preview-grid > section { min-width: 0; }
.flow-preview-grid h3 { margin: 0; font-size: 11px; font-weight: 900; }
.flow-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.flow-preview-head button { padding: 2px 7px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font-size: 9px; font-weight: 900; cursor: pointer; }
.flow-preview-head button:hover, .flow-preview-head button:focus-visible { background: var(--yellow); }
.flow-preview-list { border-top: 2px solid var(--ink); }
.flow-preview-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 2px dashed rgba(23, 19, 15, .14); }
.flow-preview-item span, .flow-preview-item strong { min-width: 0; }
.flow-preview-item b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.flow-preview-item small { display: block; margin-top: 1px; font-size: 8px; font-weight: 800; opacity: .5; }
.flow-preview-item strong { flex: 0 0 auto; font-size: 11px; text-align: right; }
.flow-preview-empty { margin: 0; padding: 15px 0; border-top: 2px solid var(--ink); color: var(--muted); font-size: 10px; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 27px; }
.panel { padding: 21px; border: var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.upcoming-panel { box-shadow: 6px 6px 0 var(--pink); }
.category-panel { box-shadow: 6px 6px 0 var(--blue); }
.recent-panel { margin-top: 22px; box-shadow: 6px 6px 0 var(--mint); }
.panel-head, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head h2 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-size: 24px; font-weight: 400; }
.text-button { border: 0; background: transparent; font-size: 11px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.upcoming-list, .record-list, .recurring-list { margin-top: 14px; }
.upcoming-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 2px dashed rgba(23, 19, 15, .15); }
.upcoming-item:first-child { border-top: 0; }
.date-block { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); line-height: 1; }
.date-block.income { background: var(--mint); }
.date-block b { font-size: 17px; }.date-block small { margin-top: 2px; font-size: 8px; font-weight: 900; }
.item-copy { min-width: 0; }.item-copy b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.item-copy small { font-size: 10px; font-weight: 700; opacity: .5; }
.item-amount { font-size: 13px; font-weight: 900; white-space: nowrap; }
.item-amount.income { color: #08724d; }

.category-row { margin-top: 15px; }
.category-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 11px; font-weight: 900; }
.category-track { height: 13px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.category-track i { display: block; height: 100%; background: var(--blue); }
.category-row:nth-child(2n) .category-track i { background: var(--pink); }
.category-row:nth-child(3n) .category-track i { background: var(--yellow); }

.record-item { display: grid; grid-template-columns: 43px 1fr auto auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 2px dashed rgba(23, 19, 15, .14); }
.record-item:first-child { border-top: 0; }
.record-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 2px solid var(--ink); border-radius: 13px; background: var(--yellow); font-size: 18px; }
.record-icon.income { background: var(--mint); }
.record-amount { font-size: 13px; font-weight: 900; white-space: nowrap; }
.record-amount.income { color: #08724d; }
.icon-button { width: 31px; height: 31px; border: 2px solid transparent; border-radius: 8px; background: transparent; font-size: 17px; opacity: .35; cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--ink); opacity: 1; }
.item-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.mini-action-button { min-height: 31px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font-size: 9px; font-weight: 900; cursor: pointer; }
.mini-action-button:hover, .mini-action-button:focus-visible { background: var(--yellow); }
.mini-action-button.danger { color: #8a2446; }

.empty-state { padding: 30px 12px; text-align: center; }
.empty-state .empty-icon { font-size: 30px; }
.empty-state b { display: block; margin-top: 7px; font-size: 14px; }
.empty-state p { max-width: 330px; margin: 5px auto 0; font-size: 11px; font-weight: 700; color: var(--muted); }
.empty-state button { margin-top: 13px; }

.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(38px, 7vw, 62px); }
.primary-button, .secondary-button, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: var(--line);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.primary-button.pink, .submit-button.pink { background: var(--pink); }
.primary-button.kakao { background: #fee500; }
.secondary-button { background: var(--white); }
.secondary-button.full { width: 100%; margin-top: 13px; }
.filter-row { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed rgba(23, 19, 15, .18); }
.filter-row label { flex: 1; font-size: 10px; font-weight: 900; }
.filter-row input, .filter-row select { width: 100%; min-height: 43px; margin-top: 5px; padding: 0 11px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-weight: 800; }
.record-list.roomy .record-item { padding: 15px 0; }

.equivalent-grid { grid-template-columns: repeat(4, 1fr); margin: 0 0 12px; }
.equivalent-grid article:nth-child(1), .equivalent-grid article.income { background: var(--mint); }
.equivalent-grid article:nth-child(2), .equivalent-grid article.expense { background: var(--pink); }
.equivalent-grid article.featured { background: var(--yellow); box-shadow: 4px 4px 0 var(--pink); }
.equivalent-grid article:nth-child(4) { background: var(--mint); }
.calculation-note { margin: 0 0 22px; padding-left: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.recurring-group + .recurring-group { margin-top: 22px; }
.recurring-group-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.recurring-group-title h3 { margin: 0; font-size: 13px; font-weight: 900; }
.recurring-group-title span { padding: 3px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); font-size: 8px; font-weight: 900; }
.recurring-group.income .recurring-group-title span { background: var(--mint); }
.recurring-item { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 2px dashed rgba(23, 19, 15, .14); }
.recurring-group-title + .recurring-item { border-top: 0; }
.recurring-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid var(--ink); border-radius: 13px; background: var(--pink); font-size: 21px; }
.recurring-item:nth-child(2n) .recurring-icon { background: var(--yellow); }
.recurring-icon.income { background: var(--mint)!important; }
.recurring-money { text-align: right; }.recurring-money b { display: block; font-size: 13px; }.recurring-money small { font-size: 9px; font-weight: 800; opacity: .5; }
.recurring-money.income b { color: #08724d; }
.status-pill { display: inline-flex; margin-left: 5px; padding: 1px 6px; border: 1px solid var(--ink); border-radius: 999px; background: var(--mint); font-size: 7px; font-style: normal; vertical-align: 2px; }
.status-pill.ended { background: #d9d4cb; opacity: .7; }
.status-pill.scheduled { background: var(--blue); }

.settings-panel { display: flex; align-items: flex-start; gap: 18px; box-shadow: 6px 6px 0 var(--yellow); }
.settings-icon { display: grid; flex: 0 0 56px; height: 56px; place-items: center; border: var(--line); border-radius: 16px; background: var(--mint); font-size: 25px; }
.settings-panel h2 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-size: 25px; font-weight: 400; }
.settings-panel p, .panel-copy { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.data-panel { margin-top: 20px; }
.ledger-list { margin-top: 10px; }
.ledger-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 2px dashed rgba(23, 19, 15, .14); }
.ledger-item:first-child { border-top: 0; }
.ledger-color { width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow); }
.ledger-item b { flex: 1; font-size: 13px; }.ledger-item small { font-size: 10px; font-weight: 800; opacity: .5; }
.data-panel > .secondary-button:not(.full) { margin-top: 15px; }
.legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 34px; color: var(--muted); font-size: 11px; font-weight: 800; }
.legal-links a { color: inherit; text-underline-offset: 3px; }

.fab {
  position: fixed;
  right: max(18px, calc((100vw - 1080px) / 2));
  bottom: 90px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 9px 18px 9px 11px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.fab span { display: grid; width: 31px; height: 31px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-size: 19px; }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(440px, calc(100% - 28px));
  padding: 6px;
  border: var(--line);
  border-radius: 19px;
  background: var(--night);
  box-shadow: 5px 5px 0 var(--yellow);
  transform: translateX(-50%);
}
.bottom-nav button { min-height: 50px; border: 0; border-radius: 12px; background: transparent; color: rgba(247, 242, 232, .56); font-size: 10px; font-weight: 900; cursor: pointer; }
.bottom-nav button span { display: block; height: 19px; font-size: 17px; line-height: 1; }
.bottom-nav button.active { background: var(--yellow); color: var(--ink); }

.money-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 28px); overflow-y: auto; padding: 0; border: var(--line); border-radius: 23px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.money-dialog::backdrop { background: rgba(21, 21, 32, .72); backdrop-filter: blur(4px); }
.money-dialog form { padding: 23px; }
.compact-dialog { width: min(440px, calc(100% - 24px)); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-size: 28px; font-weight: 400; }
.dialog-head button { width: 37px; height: 37px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.money-dialog label, .money-dialog legend { display: block; font-size: 10px; font-weight: 900; }
.money-dialog input, .money-dialog select { width: 100%; min-height: 46px; margin-top: 6px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 11px; background: var(--white); font-weight: 800; outline: 0; }
.money-dialog input:focus, .money-dialog select:focus { box-shadow: 0 0 0 4px rgba(119, 167, 255, .42); }
.segment-control { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 16px; padding: 5px; border: 2px solid var(--ink); border-radius: 13px; background: var(--white); }
.segment-control.three { grid-template-columns: repeat(3, 1fr); }
.segment-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segment-control span { display: grid; min-height: 39px; place-items: center; border: 2px solid transparent; border-radius: 9px; font-size: 12px; cursor: pointer; }
.segment-control input:checked + span { border-color: var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.money-input-label { margin-top: 15px; }
.money-input-wrap { position: relative; display: block; }
.money-input-wrap input { height: 66px; padding-right: 50px; font-size: 28px; font-weight: 900; text-align: right; }
.money-input-wrap b { position: absolute; right: 14px; top: 50%; margin-top: 3px; transform: translateY(-50%); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 15px; }
.wide-field { grid-column: 1 / -1; }
.period-settings { margin: 17px 0 0; padding: 0; border: 0; }
.period-settings > legend { margin-bottom: 6px; }
.period-control { margin-bottom: 10px; }
.period-fields { display: grid; grid-template-columns: 1fr; }
.period-guide { margin: 8px 2px 0; color: var(--muted); font-size: 9px; font-weight: 700; }
.interval-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 0; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 11px; background: var(--yellow); }
.interval-help b { flex: 0 0 auto; font-size: 11px; }
.interval-help span { font-size: 9px; font-weight: 800; text-align: right; opacity: .65; }
.submit-button { width: 100%; min-height: 52px; margin-top: 20px; font-size: 14px; }
.live-calculation { margin-top: 17px; padding: 13px; border: 2px solid var(--ink); border-radius: 13px; background: var(--mint); }
.live-calculation.income { background: var(--blue); }
.live-calculation p { margin: 0 0 8px; font-size: 9px; font-weight: 900; opacity: .6; }
.live-calculation div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-calculation span { font-size: 9px; font-weight: 900; }.live-calculation b { display: block; margin-top: 2px; font-size: 13px; }
.color-picker { display: flex; gap: 12px; margin: 17px 0 0; padding: 0; border: 0; }
.color-picker legend { width: 100%; margin-bottom: 8px; }
.color-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.color-picker span { display: block; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 11px; cursor: pointer; }
.color-picker input:checked + span { box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.yellow { background: var(--yellow)!important; }.mint { background: var(--mint)!important; }.pink { background: var(--pink)!important; }.blue { background: var(--blue)!important; }

[hidden] { display: none !important; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
button:active, .primary-button:active, .login-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

@media (max-width: 760px) {
  .header-inner, .shell { width: min(100% - 24px, 1080px); }
  .header-inner { min-height: 65px; }
  .save-state { display: none; }
  .shell { padding-top: 32px; }
  .intro { display: block; }
  .intro h1 { font-size: clamp(39px, 13vw, 58px); }
  .ledger-switcher { margin-top: 25px; }
  .month-head { padding: 22px 20px; }
  .month-head h2 { font-size: clamp(36px, 12vw, 52px); }
  .month-foot { flex-direction: column; gap: 5px; padding: 12px 20px; }
  .period-grid { gap: 8px; }
  .period-grid article { padding: 13px 11px; }
  .period-grid strong { font-size: clamp(15px, 5vw, 20px); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .flow-preview-grid { gap: 16px; }
  .equivalent-grid { grid-template-columns: 1fr 1fr; }
  .page-heading { align-items: flex-end; }
  .page-heading h1 { font-size: 41px; }
  .fab { right: 16px; bottom: 91px; }
}

@media (max-width: 480px) {
  .login-button { padding: 7px 9px; font-size: 10px; }
  .brand small { display: none; }
  .month-badge { display: none; }
  .panel { padding: 17px; }
  .record-item { grid-template-columns: 40px 1fr auto; gap: 9px; }
  .record-item .item-actions { grid-column: 2 / -1; justify-self: end; }
  .recurring-item { grid-template-columns: 42px 1fr auto; gap: 9px; }
  .recurring-item .item-actions { grid-column: 2 / -1; justify-self: end; }
  .flow-summary-grid { grid-template-columns: 1fr; }
  .flow-preview-grid { grid-template-columns: 1fr; }
  .interval-help { align-items: flex-start; flex-direction: column; gap: 3px; }
  .interval-help span { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .money-dialog form { padding: 19px; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .fab { width: 54px; padding: 8px; border-radius: 50%; }
  .fab > span { width: 32px; }
  .fab { font-size: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
