:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-soft: #f8fbfb;
  --text: #172026;
  --muted: #66737c;
  --line: #dfe6ea;
  --line-strong: #cbd6dc;
  --teal: #008b8d;
  --teal-soft: #dff4f1;
  --coral: #ff625f;
  --coral-soft: #ffe8e6;
  --blue: #3177e8;
  --blue-soft: #e8f0ff;
  --green: #74b94c;
  --amber: #f5a524;
  --shadow: 0 18px 45px rgba(25, 43, 53, 0.07);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell,
body.auth-locked .mobile-quick-add-button {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 4px 20px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover {
  background: #edf4f5;
  transform: translateX(2px);
}

.nav-item.active {
  background: #dff1f0;
  color: #006f73;
  font-weight: 680;
}

.nav-item svg {
  width: 25px;
  height: 25px;
}

.sidebar-year-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sidebar-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px 0 14px;
}

.sidebar-overview-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: #00787b;
}

.sidebar-overview-toggle:hover {
  border-color: #83c7c7;
  background: #f5fbfb;
}

.sidebar-overview-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.sidebar-year-nav.collapsed .sidebar-overview-toggle svg {
  transform: rotate(180deg);
}

.sidebar-overview-body {
  display: grid;
  gap: 8px;
}

.sidebar-year-nav.collapsed .sidebar-overview-body {
  display: none;
}

.sidebar-year-tree {
  display: grid;
  gap: 4px;
}

.sidebar-year-group {
  display: grid;
  gap: 3px;
}

.sidebar-year-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
}

.sidebar-year-toggle,
.sidebar-year-delete,
.sidebar-month-link,
.sidebar-add-year {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.sidebar-year-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 720;
}

.sidebar-year-toggle:hover,
.sidebar-month-link:hover,
.sidebar-add-year:hover {
  background: #edf4f5;
}

.sidebar-year-toggle.active {
  color: #006f73;
}

.sidebar-year-delete {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: #7b8790;
}

.sidebar-year-delete:hover {
  background: #fff7f6;
  color: var(--coral);
}

.sidebar-year-delete svg {
  width: 15px;
  height: 15px;
}

.sidebar-chevron {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.sidebar-year-toggle[aria-expanded="true"] .sidebar-chevron {
  transform: rotate(90deg);
}

.sidebar-month-list {
  display: grid;
  gap: 2px;
  padding: 0 0 4px 28px;
}

.sidebar-month-link {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-transform: capitalize;
}

.sidebar-month-link.overview {
  color: var(--text);
  font-weight: 720;
  text-transform: none;
}

.sidebar-month-link.active {
  background: var(--teal-soft);
  color: #006f73;
}

.sidebar-add-year {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #83c7c7;
  border-radius: 7px;
  color: #00787b;
  font-size: 13px;
  font-weight: 730;
}

.sidebar-add-year svg {
  width: 17px;
  height: 17px;
}

.sidebar-user {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sidebar-user[hidden] {
  display: none;
}

.sidebar-user span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.sidebar-user strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
  padding: 14px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.page-copy {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 560;
}

.budget-header {
  align-items: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
}

.back-button svg {
  width: 16px;
  height: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eyeline {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 760;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 760;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-button,
.primary-button,
.danger-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ghost-button.compact-card {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}

.text-button {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.text-button:hover {
  color: var(--teal);
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button svg,
.primary-button svg,
.danger-button svg,
.ghost-button svg,
.outline-button svg {
  width: 18px;
  height: 18px;
}

.primary-button,
.ghost-button,
.outline-button {
  padding: 0 14px;
}

.primary-button {
  border-color: #007a7c;
  background: var(--teal);
  color: #ffffff;
}

.danger-button {
  padding: 0 14px;
  border-color: #ffc7c4;
  background: #fff7f6;
  color: #b8322d;
}

.ghost-button:hover,
.icon-button:hover,
.outline-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.danger-button:hover {
  border-color: var(--coral);
  background: #ffe8e6;
  color: #9d241f;
}

.primary-button:hover {
  background: #007a7c;
  transform: translateY(-1px);
}

.month-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.month-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 184px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
}

.month-picker svg {
  width: 18px;
  height: 18px;
}

.month-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  opacity: 0;
  cursor: pointer;
}

.month-picker span {
  min-width: 118px;
  padding-right: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-transform: capitalize;
}

.year-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
}

.year-picker span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.year-picker input {
  width: 78px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.copy-year-picker select {
  min-width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.status-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.status-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.status-picker select {
  min-width: 142px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.overview-band article {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.overview-band span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overview-band strong {
  display: block;
  color: var(--text);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  font-weight: 800;
}

.month-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.month-card {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.month-card:hover {
  border-color: #9ed0d1;
  transform: translateY(-2px);
}

.month-card.active {
  border-color: var(--teal);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfb 100%);
}

.month-card.empty {
  box-shadow: none;
}

.month-card.status-inactive,
.month-card.status-tom,
.month-card.status-upcoming {
  background: #fbfdfd;
  color: #6d7880;
}

.month-card.status-inactive .month-card-top i {
  background: #edf2f4;
  color: #6d7880;
}

.month-card.status-upcoming .month-card-top i {
  background: #fff4d8;
  color: #9a6900;
}

.month-card-top,
.month-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.month-card-top span {
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
  text-transform: capitalize;
}

.month-card-top i {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.month-card.active .month-card-top i {
  background: var(--teal-soft);
  color: #006f73;
}

.month-card strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 820;
}

.month-card small {
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.month-card-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.month-card-status {
  display: grid;
  gap: 5px;
}

.month-card-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.month-card-status select {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.year-grid {
  display: grid;
  grid-template-columns: minmax(560px, 0.85fr) minmax(680px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.yearly-sheet-panel {
  overflow: hidden;
}

.annual-list {
  display: grid;
  overflow-x: auto;
  padding: 6px 14px 14px;
}

.annual-head,
.annual-row {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) 104px 104px 104px 30px;
  align-items: center;
  gap: 8px;
  min-width: 590px;
}

.annual-head {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.annual-row {
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.annual-row:last-child {
  border-bottom: 0;
}

.empty-annual {
  display: grid;
  gap: 6px;
  min-height: 138px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-annual strong {
  color: var(--text);
  font-size: 16px;
}

.empty-annual span {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.sheet-scroll {
  overflow-x: auto;
  padding: 6px 14px 14px;
}

.year-sheet {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.year-sheet th,
.year-sheet td {
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.year-sheet th:first-child,
.year-sheet td:first-child {
  text-align: left;
}

.year-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.year-sheet tbody th {
  color: var(--text);
  font-weight: 760;
  text-transform: capitalize;
}

.year-sheet tbody td {
  color: #3f4e57;
  font-weight: 640;
}

.year-sheet .muted-row th,
.year-sheet .muted-row td {
  color: #7d8991;
  background: #fbfdfd;
}

.year-sheet tfoot th,
.year-sheet tfoot td {
  height: 42px;
  border-bottom: 0;
  background: #f7fbfb;
  color: var(--text);
  font-weight: 820;
}

.year-sheet .positive {
  color: var(--teal);
}

.year-sheet .negative {
  color: var(--coral);
}

.positive {
  color: var(--teal);
}

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

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f5fbfb;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
}

.metric-expense {
  border-left-color: var(--coral);
}

.metric-saving {
  border-left-color: var(--teal);
}

.metric-left {
  border-left-color: var(--blue);
}

.metric-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.metric-expense .metric-icon {
  background: var(--coral-soft);
  color: #fb453f;
}

.metric-saving .metric-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.metric-left .metric-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon svg {
  width: 29px;
  height: 29px;
}

.metric p {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 660;
}

.metric strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  font-weight: 790;
}

.metric span:not(.metric-icon) {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.55fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.dashboard-month-panel,
.dashboard-side-panel {
  min-height: 430px;
}

.dashboard-month-grid {
  display: grid;
  gap: 8px;
  padding: 8px 16px 16px;
}

.dashboard-month-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(150px, 1fr) minmax(170px, 0.8fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.dashboard-month-row:hover,
.dashboard-month-row.active {
  border-color: #99cbcc;
  background: #f5fbfb;
}

.dashboard-month-row.muted {
  background: #fbfdfd;
  color: #6d7880;
}

.dashboard-month-name,
.dashboard-month-values {
  display: grid;
  gap: 3px;
}

.dashboard-month-name strong,
.dashboard-month-values strong {
  font-size: 14px;
  font-weight: 780;
}

.dashboard-month-name small,
.dashboard-month-values small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.dashboard-bars {
  display: grid;
  gap: 6px;
}

.dashboard-bars i {
  display: block;
  height: 7px;
  min-width: 10px;
  border-radius: 999px;
}

.dashboard-bars .bar-income {
  background: var(--teal);
}

.dashboard-bars .bar-cost {
  background: var(--coral);
}

.dashboard-category-list {
  display: grid;
  padding: 6px 16px 14px;
}

.dashboard-personal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 14px;
}

.dashboard-category-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.dashboard-category-row:last-child {
  border-bottom: 0;
}

.dashboard-category-row strong {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-personal-row {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfd;
  color: var(--text);
  text-align: left;
}

.dashboard-personal-row:hover {
  border-color: #99cbcc;
  background: #f5fbfb;
}

.dashboard-personal-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.dashboard-personal-row strong {
  font-size: 18px;
  line-height: 1.1;
}

.dashboard-personal-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-action-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.dashboard-action {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfd;
  color: var(--text);
  text-align: left;
}

.dashboard-action:not(.done):hover {
  border-color: #99cbcc;
  background: #f5fbfb;
}

.dashboard-action strong {
  font-size: 13px;
  font-weight: 800;
}

.dashboard-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 620;
}

.data-actions {
  padding-top: 0;
  border-top: 1px solid var(--line);
}

.import-button {
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-empty {
  display: grid;
  gap: 7px;
  min-height: 170px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.dashboard-empty strong {
  color: var(--text);
  font-size: 16px;
}

.dashboard-empty span {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.dashboard-actions {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.dashboard-actions .outline-button {
  width: 100%;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.55fr) minmax(740px, 1.35fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.left-stack,
.right-stack {
  display: grid;
  gap: 16px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 16px 16px 8px;
}

.panel-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
}

.budget-heading {
  align-items: center;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editable-list {
  display: grid;
  padding: 6px 16px 12px;
}

.pool-summary {
  display: grid;
  gap: 0;
  padding: 6px 16px 16px;
}

.personal-summary {
  display: grid;
  gap: 0;
  padding: 6px 16px 16px;
}

.pool-row,
.pool-total,
.personal-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.pool-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pool-row strong,
.pool-total strong,
.personal-row strong {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.personal-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
}

.personal-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pool-total {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 46px;
  border-bottom: 0;
  color: var(--teal);
}

.pool-empty {
  display: grid;
  gap: 6px;
  min-height: 112px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.pool-empty strong {
  color: var(--text);
  font-size: 15px;
}

.pool-empty span {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 620;
}

.template-list {
  display: grid;
  padding: 6px 16px 12px;
}

.template-panel .panel-heading {
  align-items: center;
}

.template-toggle svg {
  transition: transform 160ms ease;
}

.template-panel.collapsed .template-toggle svg {
  transform: rotate(-90deg);
}

.template-panel.collapsed .template-body {
  display: none;
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 30px;
  align-items: center;
  gap: 6px;
  min-height: 116px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.template-row .type-select,
.template-row .category-select,
.template-row .owner-select {
  grid-column: 1 / -1;
}

.template-row .delete-button {
  grid-column: 3 / 4;
  grid-row: 1;
  justify-self: end;
}

.template-row:last-child {
  border-bottom: 0;
}

.template-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.template-actions .outline-button {
  flex: 1;
  margin: 0;
}

.money-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 128px 34px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.money-row:last-child {
  border-bottom: 0;
}

.name-input,
.amount-input,
.category-select,
.type-select,
.owner-select {
  min-width: 0;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.name-input {
  padding: 0 2px;
  font-size: 14px;
  font-weight: 600;
}

.amount-wrap {
  display: flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.amount-input {
  width: 100%;
  padding: 0 8px;
  border: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 650;
}

.amount-wrap span {
  padding-right: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.name-input:focus,
.amount-input:focus,
.category-select:focus,
.type-select:focus,
.owner-select:focus {
  background: #f7fbfb;
}

.delete-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #7b8790;
}

.delete-button:hover {
  border-color: #ffc7c4;
  color: var(--coral);
  background: #fff7f6;
}

.delete-button svg {
  width: 17px;
  height: 17px;
}

.outline-button {
  margin: 0 16px 18px;
  border-color: #83c7c7;
  color: #00787b;
  background: #ffffff;
}

.outline-button.compact {
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  white-space: nowrap;
}

.budget-panel {
  display: flex;
  flex-direction: column;
  min-height: 616px;
  min-width: 0;
}

.budget-table {
  display: grid;
  overflow-x: auto;
  padding: 8px 16px 0;
}

.quick-add {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 118px 118px 106px 126px 106px auto;
  gap: 8px;
  padding: 8px 16px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdfd;
}

.primary-button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.empty-row {
  display: grid;
  gap: 5px;
  min-height: 132px;
  place-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.empty-row strong {
  color: var(--text);
  font-size: 16px;
}

.empty-row span {
  font-size: 13px;
  font-weight: 600;
}

.expense-head,
.expense-row {
  display: grid;
  grid-template-columns: 33px minmax(120px, 1fr) 118px 118px 104px 126px 106px 38px;
  align-items: center;
  gap: 10px;
}

.expense-head {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.expense-row {
  min-height: 61px;
  border-bottom: 1px solid var(--line);
}

.annual-expense-row {
  background: #fbfdfd;
}

.annual-expense-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.annual-expense-name strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annual-expense-name small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.readonly-amount,
.muted-cell,
.type-badge,
.category-badge,
.owner-badge {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.readonly-amount {
  justify-content: flex-end;
  padding: 0 10px;
  white-space: nowrap;
}

.muted-cell {
  justify-content: center;
  color: var(--muted);
}

.type-badge,
.category-badge,
.owner-badge {
  justify-content: flex-start;
  padding: 0 9px;
  color: var(--muted);
}

.category-badge {
  border-color: color-mix(in srgb, var(--category-color), #ffffff 72%);
  color: #3f4e57;
}

.owner-badge {
  background: #f8fbfc;
}

.expense-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: #f0f5f6;
  color: #52616b;
}

.expense-icon svg {
  width: 17px;
  height: 17px;
}

.category-select,
.type-select {
  width: 100%;
  border-color: var(--line-strong);
  padding: 0 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.panel-footer div {
  display: grid;
  gap: 4px;
}

.panel-footer div:last-child {
  text-align: right;
}

.panel-footer strong {
  font-size: 20px;
}

.chart-panel {
  min-height: 212px;
}

.distribution {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 8px 18px 24px;
}

.donut {
  position: relative;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0deg 120deg, var(--green) 120deg 190deg, var(--teal) 190deg 250deg, var(--amber) 250deg 318deg, var(--coral) 318deg 360deg);
}

.donut::after {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.donut span {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

.legend {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.legend-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 620;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px minmax(68px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.legend-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.chart-heading {
  align-items: baseline;
}

.chart-key {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-key i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.key-income {
  background: var(--teal);
}

.key-cost {
  background: var(--coral);
}

.bar-chart {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  height: 182px;
  padding: 8px 18px 18px;
}

.bar-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 0 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.bar-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 36px;
  padding: 8px 20px 0;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 24%, var(--line) 24%, transparent calc(24% + 1px)),
    linear-gradient(to bottom, transparent 49%, var(--line) 49%, transparent calc(49% + 1px)),
    linear-gradient(to bottom, transparent 74%, var(--line) 74%, transparent calc(74% + 1px));
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  min-width: 0;
}

.bar-column > span {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.bar {
  width: min(68px, 100%);
  min-height: 6px;
  border-radius: 4px 4px 0 0;
  transition: height 180ms ease;
}

.income-bar {
  background: linear-gradient(180deg, #10a4a6, var(--teal));
}

.cost-bar {
  background: linear-gradient(180deg, #ff7b78, var(--coral));
}

.bar-column small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.leftover-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 20px;
}

.leftover-card p {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 690;
}

.leftover-card strong {
  color: var(--teal);
  font-size: 30px;
  line-height: 1;
  font-weight: 820;
}

.changes-panel {
  margin-top: 16px;
  overflow: hidden;
}

.changes-list {
  display: grid;
  padding: 0 18px 16px;
}

.empty-change {
  min-height: 42px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.change-row {
  display: grid;
  grid-template-columns: 32px minmax(160px, 1fr) 132px 130px 90px;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.change-row:first-child {
  border-top: 0;
}

.change-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #9fd3d3;
  border-radius: 50%;
  color: var(--teal);
}

.change-icon svg {
  width: 15px;
  height: 15px;
}

.change-title {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 11px 14px;
  border: 1px solid #85c8c8;
  border-radius: 7px;
  background: #ffffff;
  color: var(--teal);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 740;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 247, 248, 0.88);
  backdrop-filter: blur(8px);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  width: min(100%, 380px);
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-card .brand-mark {
  width: 38px;
  height: 38px;
}

.auth-card h1 {
  margin-bottom: 5px;
}

.auth-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 560;
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 740;
}

.auth-card input {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  font-size: 15px;
}

.auth-card input:focus {
  border-color: #83c7c7;
  box-shadow: 0 0 0 3px rgba(0, 139, 141, 0.1);
}

.auth-card .primary-button {
  width: 100%;
}

.auth-error {
  min-height: 18px;
  color: var(--coral) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.mobile-quick-add-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #007a7c;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 139, 141, 0.24);
  font-size: 14px;
  font-weight: 780;
}

.mobile-quick-add-button svg {
  width: 18px;
  height: 18px;
}

.mobile-quick-add-button:hover {
  background: #007a7c;
}

.section-pulse {
  animation: sectionPulse 900ms ease;
}

@keyframes sectionPulse {
  0%,
  100% {
    border-color: var(--line);
  }

  35% {
    border-color: var(--teal);
    box-shadow: 0 18px 45px rgba(0, 139, 141, 0.15);
  }
}

@media (max-width: 1840px) {
  .dashboard-grid {
    grid-template-columns: minmax(240px, 0.32fr) minmax(740px, 1fr);
  }

  .right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 1500px) {
  .distribution {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legend {
    width: 100%;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .annual-head,
  .annual-row {
    grid-template-columns: minmax(150px, 1fr) 128px 112px 132px 32px;
    min-width: 680px;
  }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar-year-nav {
    display: none;
  }

  .brand span:last-child,
  .nav-item span {
    display: none;
  }

  .brand {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-grid {
    grid-template-columns: 1fr;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }

  .left-stack {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .month-board {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    display: grid;
    align-items: stretch;
    height: auto;
    gap: 10px;
    overflow-x: visible;
    padding: 10px;
  }

  .brand {
    justify-content: flex-start;
    padding: 0;
    font-size: 19px;
  }

  .brand span:last-child,
  .nav-item span {
    display: inline;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  .nav-item {
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
    text-align: center;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .topbar,
  .page-header,
  .dashboard-home-grid,
  .dashboard-grid,
  .left-stack,
  .right-stack {
    grid-template-columns: 1fr;
  }

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

  .page-header {
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

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

  .budget-panel {
    order: 1;
  }

  .left-stack {
    order: 2;
  }

  .right-stack {
    order: 3;
  }

  .overview-band,
  .month-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annual-head,
  .annual-row {
    grid-template-columns: minmax(132px, 1fr) 104px 104px 104px 30px;
    min-width: 590px;
  }

  .quick-add {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(110px, 132px)) minmax(104px, 1fr) minmax(118px, 1fr) minmax(96px, 1fr) auto;
    overflow-x: auto;
  }

  .template-row {
    grid-template-columns: minmax(120px, 1fr) 104px 92px 112px 96px 30px;
  }
}

@media (max-width: 650px) {
  .main {
    padding: 12px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .month-switcher,
  .top-actions .status-picker,
  .top-actions .year-picker,
  .top-actions .primary-button,
  .top-actions .danger-button,
  .top-actions .ghost-button,
  .top-actions .outline-button {
    flex: 1 1 160px;
  }

  .status-picker select {
    min-width: 0;
    width: 100%;
  }

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

  .budget-heading .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .budget-heading .panel-actions .outline-button {
    flex: 1 1 110px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 74px;
  }

  .mobile-quick-add-button.visible {
    display: inline-flex;
  }

  .overview-band,
  .month-board {
    grid-template-columns: 1fr;
  }

  .annual-head {
    display: none;
  }

  .annual-row {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 128px) 32px;
    gap: 8px;
    padding: 10px 0;
  }

  .annual-row .amount-wrap:first-of-type {
    grid-column: 1 / 2;
  }

  .annual-row .amount-wrap:nth-of-type(2) {
    grid-column: 2 / 3;
  }

  .annual-row .category-select {
    grid-column: 1 / 3;
  }

  .metric {
    min-height: 96px;
    padding: 16px;
  }

  .money-row {
    grid-template-columns: minmax(70px, 1fr) minmax(110px, 132px) 32px;
  }

  .quick-add {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .quick-add .name-input {
    grid-column: 1 / -1;
  }

  .quick-add .amount-wrap {
    min-width: 0;
  }

  .quick-add .type-select,
  .quick-add .category-select,
  .quick-add .owner-select {
    grid-column: span 1;
  }

  .quick-add .primary-button {
    grid-column: 1 / -1;
  }

  .template-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 10px 0;
  }

  .template-row .name-input,
  .template-row .amount-wrap,
  .template-row .type-select,
  .template-row .category-select,
  .template-row .owner-select {
    grid-column: 1 / -1;
  }

  .template-row .delete-button {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .month-switcher {
    width: 100%;
  }

  .month-switcher .month-picker {
    flex: 1;
  }

  .month-picker span {
    min-width: 0;
  }

  .month-picker input {
    width: 100%;
  }

  .dashboard-month-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .expense-head {
    display: none;
  }

  .expense-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 10px 0;
  }

  .expense-row .expense-icon {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .expense-row .name-input {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .expense-row .amount-wrap {
    grid-column: 1 / 3;
  }

  .expense-row .actual-wrap {
    grid-column: 3 / 5;
  }

  .annual-expense-row .annual-expense-name {
    grid-column: 2 / 5;
    grid-row: 1;
  }

  .annual-expense-row .readonly-amount {
    grid-column: 1 / 3;
  }

  .annual-expense-row .muted-cell {
    grid-column: 3 / 5;
  }

  .annual-expense-row .type-badge,
  .annual-expense-row .category-badge,
  .annual-expense-row .owner-badge {
    grid-column: 1 / -1;
  }

  .expense-row .type-select,
  .expense-row .category-select,
  .expense-row .owner-select {
    grid-column: 1 / -1;
  }

  .expense-row .row-actions {
    grid-column: 4 / 5;
    grid-row: 1;
    justify-self: end;
  }

  .distribution {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legend {
    width: 100%;
  }

  .change-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .change-row span:nth-child(4),
  .change-row span:nth-child(5) {
    display: none;
  }
}

@media (max-width: 430px) {
  .copy-year-picker {
    width: 100%;
  }

  .copy-year-picker select {
    width: 100%;
  }

  .quick-add {
    grid-template-columns: 1fr;
  }

  .quick-add .type-select,
  .quick-add .category-select,
  .quick-add .owner-select,
  .quick-add .primary-button {
    grid-column: 1 / -1;
  }

  .panel-footer {
    flex-direction: column;
  }

  .panel-footer div:last-child {
    text-align: left;
  }
}
