:root {
  color-scheme: light;
  --bg: #f5efe5;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-border: rgba(73, 52, 35, 0.12);
  --text: #000000;
  --muted: #000000;
  --accent: #000000;
  --shadow: 0 28px 80px rgba(70, 44, 25, 0.12);
  --line: rgba(85, 64, 45, 0.12);
  --positive: #000000;
  --negative: #000000;
  --neutral: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(190, 146, 87, 0.18), transparent 28%),
    linear-gradient(160deg, #fbf7f2 0%, #efe3d2 100%);
  color: var(--text);
  font-family: Cambria, Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.shell-month {
  padding-bottom: 3rem;
}

.hero {
  padding: 2rem 0 2.5rem;
}

.hero-compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.month-board,
.summary-card,
.budget-card,
.month-nav {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.month-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.sidebar-layout.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar-layout.is-collapsed .month-nav {
  position: static;
}

.sidebar-layout.is-collapsed .month-nav__content {
  display: none;
}

.sidebar-layout__content {
  min-width: 0;
}

.year-switcher,
.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.year-switcher__current,
.year-switcher__link,
.income-card {
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.year-switcher__current {
  padding: 0.85rem 1.2rem;
  display: grid;
  justify-items: center;
}

.year-switcher__current strong {
  font-size: 1.6rem;
}

.year-switcher__link,
.inline-link {
  text-decoration: none;
}

.year-switcher__link {
  min-width: 92px;
  padding: 1rem 1.15rem;
  text-align: center;
  font-weight: 700;
}

.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.month-nav {
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.month-nav__header {
  padding: 0.25rem 0.2rem 0.85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.month-nav__header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.month-nav nav {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.sidebar-toggle {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.month-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.month-nav__link span {
  font-weight: 700;
}

.month-nav__link small {
  color: var(--muted);
  font-size: 0.85rem;
}

.month-nav__link:hover {
  transform: translateY(-1px);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.45);
}

.month-nav__link.is-active {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.06);
}

.month-board {
  padding: 1.25rem;
}

.setup-notice,
.entry-form {
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.setup-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.setup-notice h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.setup-notice p {
  margin: 0;
}

.setup-notice__code {
  display: block;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.entry-form-grid,
.entry-form-stack {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.entry-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-form-grid--compact {
  grid-template-columns: minmax(0, 25rem);
}

.entry-form-grid--allocated-funds {
  grid-template-columns: 1fr;
}

.entry-form-grid--allocated-funds .entry-form-stack {
  grid-template-columns: repeat(2, minmax(0, 25rem));
}

.modal-launcher {
  min-width: 0;
}

.modal-trigger,
.entry-form button,
.modal-close {
  font: inherit;
}

.modal-trigger,
.modal-close {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-trigger {
  width: 100%;
}

.modal-trigger--compact {
  width: auto;
  min-width: 2.5rem;
  padding: 0.45rem 0.8rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(33, 25, 17, 0.4);
  backdrop-filter: blur(10px);
}

.modal-panel {
  width: min(100%, 34rem);
  max-height: min(90vh, 60rem);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: var(--shadow);
  overflow: auto;
}

.modal-panel--wide {
  width: min(100%, 52rem);
}

.modal-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.modal-panel__title {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  padding: 0.6rem 0.9rem;
}

.modal-panel .entry-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.entry-form {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.entry-form__heading h3 {
  margin: 0;
  font-size: 1rem;
}

.entry-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.entry-form input,
.entry-form select,
.entry-form textarea,
.entry-form button {
  font: inherit;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.entry-form input[type="checkbox"] {
  width: auto;
  padding: 0;
}

.entry-form button {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.entry-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.entry-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.entry-form__actions > * {
  flex: 1;
}

.entry-form__danger {
  color: #8c1d18;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.split-entry-section {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.split-entry-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.split-entry-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.split-entry-row__checkbox {
  align-self: center;
}

.split-entry-row__remove {
  padding-inline: 0.8rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68) !important;
}

.form-error {
  margin: 0;
  color: #8c1d18;
  font-size: 0.9rem;
}

.month-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.month-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.month-label {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.month-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.month-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.page-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.budget-card {
  overflow: hidden;
}

.budget-card--full-height {
  grid-row: span 2;
}

.budget-card__header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.budget-card__actions {
  display: flex;
  justify-content: flex-end;
}

.budget-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.budget-card__header h3 {
  margin: 0;
  font-size: 1rem;
}

.budget-table {
  padding: 0.75rem 1rem 0;
}

.budget-table__head,
.budget-table__row {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.8fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
}

.budget-table__head {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.budget-table__body {
  display: grid;
}

.budget-table__row {
  min-height: 2.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.table-empty-state {
  padding: 0.9rem 0;
  color: var(--muted);
}

.allocated-rows .allocated-row--body {
  grid-template-columns: none;
  justify-self: normal;
  padding: 0.7rem 1rem;
}

.budget-table__row.has-notes,
.budget-table__head.has-notes {
  grid-template-columns: 0.65fr 1.1fr 0.75fr 0.95fr 0.8fr;
}

.budget-table__head.has-income-review,
.budget-table__row.has-income-review {
  grid-template-columns: 0.9fr 0.8fr 1.35fr 0.85fr 0.8fr;
}

.budget-table__row.is-needs-review,
.allocated-row.is-needs-review {
  background: rgba(255, 218, 121);
}

.budget-table__head > :last-child,
.budget-table__row > :last-child,
.allocated-row > :last-child {
  justify-self: end;
}

.totals {
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.totals div,
.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.totals dt,
.summary-card dt {
  font-weight: 700;
}

.totals dd,
.summary-card dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.is-positive dd,
.tone-positive {
  color: var(--positive);
}

.tone-negative {
  color: var(--negative);
}

.tone-neutral {
  color: var(--neutral);
}

.summary-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.summary-card {
  padding: 1rem 1.1rem;
}

.summary-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.summary-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.summary-card h3 {
  margin: 0;
  font-size: 1rem;
}

.summary-card dl {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.tone-sand {
  background: rgba(232, 212, 187, 0.82);
}

.tone-rose {
  background: rgba(228, 194, 194, 0.82);
}

.tone-butter {
  background: rgba(235, 225, 184, 0.82);
}

.tone-lavender {
  background: rgba(213, 205, 232, 0.82);
}

.tone-sky {
  background: rgba(201, 221, 236, 0.82);
}

.tone-sage {
  background: rgba(209, 225, 200, 0.82);
}

.allocated-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.allocated-grid::-webkit-scrollbar {
  height: 0.7rem;
}

.allocated-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(140, 90, 43, 0.28);
}

.allocated-summary-modal {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.allocated-month-totals {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
}

.allocated-month-totals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.allocated-month-totals--modal {
  margin-top: 0;
}

.allocated-month-total {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-height: 5.25rem;
}

.allocated-month-total span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.allocated-month-total strong {
  font-size: 1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.allocated-card,
.allocated-total-card {
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
}

.allocated-card {
  flex: 0 0 min(24rem, calc(100vw - 5rem));
  min-width: min(24rem, calc(100vw - 5rem));
  overflow: hidden;
  scroll-snap-align: start;
}

.allocated-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(140, 90, 43, 0.08);
}

.allocated-card__actions {
  display: flex;
  justify-content: flex-end;
}

.allocated-card__header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.allocated-stats {
  margin: 0;
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.allocated-stats div,
.allocated-total-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.allocated-stats dt {
  font-weight: 700;
}

.allocated-stats dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.allocated-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.allocated-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr) minmax(max-content, 0.9fr) auto;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  align-items: center;
}

.allocated-row--head {
  color: var(--text);
  background: rgba(140, 90, 43, 0.06);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.allocated-total-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.allocated-total-card--modal {
  margin-top: 0;
}

.allocated-total-card--modal div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
}

.allocated-total-card strong {
  font-size: 1.2rem;
}

.expense-averages {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
}

.expense-averages__table {
  width: 100%;
  min-width: 1650px;
  border-collapse: collapse;
  table-layout: fixed;
}

.expense-averages__table th,
.expense-averages__table td {
  padding: 0.9rem 0.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.expense-averages__table thead th {
  background: rgba(255, 255, 255, 0.38);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.expense-averages__table thead th:first-child {
  width: 175px;
  background: rgba(255, 255, 255, 0.32);
}

.expense-averages__table tbody th {
  background: rgba(255, 255, 255, 0.32);
  font-weight: 700;
  text-align: left;
}

.expense-averages__table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.expense-averages__summary-row th,
.expense-averages__summary-row td {
  font-weight: 700;
}

.expense-summary {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
}

.expense-summary__grid {
  display: grid;
  gap: 0.75rem;
}

.expense-summary__labels,
.expense-summary__row {
  display: grid;
  grid-template-columns: 160px repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.expense-summary__labels {
  font-size: 0.85rem;
  color: var(--muted);
}

.expense-summary__row {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.expense-summary__row strong,
.expense-summary__row span {
  font-variant-numeric: tabular-nums;
}

.income-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.income-card {
  padding: 1.15rem;
}

.income-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.income-card__header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.income-table {
  padding: 0;
}

.overview-section + .overview-section {
  margin-top: 1rem;
}

.overview-section__header {
  margin-bottom: 0.85rem;
}

.overview-section__header--actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.overview-section__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.overview-scroll {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
}

.overview-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.overview-table th,
.overview-table td {
  padding: 0.8rem 0.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.overview-table thead th {
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  text-align: center;
}

.overview-table thead th:first-child,
.overview-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
}

.overview-table thead th:first-child {
  z-index: 2;
  width: 170px;
}

.overview-table tbody th {
  text-align: left;
  font-size: 0.88rem;
}

.overview-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.overview-table__column-head {
  display: grid;
  gap: 0.6rem;
}

.overview-table__column-head strong {
  line-height: 1.35;
}

.overview-table__settings-row th,
.overview-table__settings-row td {
  background: rgba(140, 90, 43, 0.06);
}

.overview-settings-button {
  width: auto;
  justify-self: center;
}

.overview-cell-button {
  width: 100%;
  min-width: 0;
  padding: 0.3rem 0.45rem;
  border-radius: 12px;
  border: 1px dashed transparent;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  text-align: right;
}

.overview-cell-button:hover {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.45);
}

.overview-settings-page {
  display: grid;
  gap: 1rem;
}

.overview-settings-page__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.overview-settings-page__toolbar h3 {
  margin: 0;
  font-size: 1.2rem;
}

.overview-settings-page__toolbar p:last-child {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.overview-settings-section + .overview-settings-section {
  margin-top: 0.25rem;
}

.overview-settings-table tbody td,
.overview-settings-table thead th {
  text-align: left;
}

.overview-settings-table thead th:last-child,
.overview-settings-table tbody td:last-child {
  min-width: 140px;
}

.overview-settings-table td {
  white-space: normal;
}

.overview-settings-table__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.overview-settings-table__actions .modal-launcher {
  display: contents;
}

.entry-form__hint {
  margin: 0;
  color: rgba(33, 34, 30, 0.72);
  font-size: 0.92rem;
}

.import-summary-card {
  margin-top: 1rem;
}

.import-summary-card__meta {
  margin: 0;
  color: rgba(33, 34, 30, 0.76);
}

.import-summary-card__section + .import-summary-card__section {
  margin-top: 1rem;
}

.import-summary-card__list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.import-summary-card__list li + li {
  margin-top: 0.45rem;
}

@media (max-width: 1100px) {
  .month-layout,
  .sidebar-layout,
  .entry-form-grid,
  .budget-grid,
  .summary-grid,
  .allocated-month-totals__grid,
  .allocated-grid,
  .expense-summary__labels,
  .expense-summary__row,
  .income-detail-grid {
    grid-template-columns: 1fr;
  }

  .month-nav {
    position: static;
  }

  .hero-compact,
  .month-header,
  .month-nav__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-entry-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .shell {
    padding-top: 3rem;
  }

  .year-switcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-card__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-settings-page__toolbar,
  .overview-section__header--actions,
  .month-header__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .income-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .budget-card__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-table thead th:first-child,
  .overview-table tbody th {
    position: static;
  }

  .modal-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .budget-table__head,
  .budget-table__row,
  .budget-table__row.has-notes,
  .budget-table__head.has-notes,
  .budget-table__head.has-income-review,
  .budget-table__row.has-income-review,
  .allocated-row {
    grid-template-columns: 1fr;
    padding: 0.5rem 0;
  }

  .allocated-card {
    flex-basis: min(20rem, calc(100vw - 4.5rem));
    min-width: min(20rem, calc(100vw - 4.5rem));
  }

  .split-entry-row {
    grid-template-columns: 1fr;
  }
}
