@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #171816;
  --muted: #6d7068;
  --soft: #eeebe3;
  --line: #ddd8cc;
  --line-strong: #cfc7b8;
  --green: #1f765f;
  --green-soft: #e7f4ef;
  --blue: #315fbd;
  --blue-soft: #e8eefb;
  --coral: #d75e4f;
  --coral-soft: #fbeae7;
  --gold: #a57418;
  --gold-soft: #f7edd6;
  --violet: #6d53a6;
  --violet-soft: #eee9f8;
  --slate: #53606a;
  --slate-soft: #eaedf0;
  --shadow: 0 16px 44px rgba(33, 30, 24, 0.08);
  --radius: 8px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overscroll-behavior: contain;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(247, 246, 241, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(23, 24, 22, 0.025) 35px 36px);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 118, 95, 0.28);
  outline-offset: 2px;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder {
  color: #9b9b92;
}

input:hover,
input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(33, 30, 24, 0.06);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

svg {
  flex: 0 0 auto;
}

.hidden {
  display: none !important;
}

.app {
  min-height: 100vh;
  padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
}

.desktop-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.content {
  min-width: 0;
}

.mobile-header,
.view-title-row,
.section-head,
.event-top,
.price-main,
.event-kind,
.form-actions,
.brand,
.nav-button,
.primary-action,
.secondary-action,
.primary-compact,
.quiet-button,
.input-with-icon,
.kind-chip,
.metric-card,
.draft-row,
.kind-bar > div {
  display: flex;
  align-items: center;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(247, 246, 241, 0.92) 78%, rgba(247, 246, 241, 0) 100%);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #22231f;
  border-radius: var(--radius);
  background: #171816;
  color: #fffdf8;
  overflow: hidden;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark i {
  position: absolute;
  right: 8px;
  bottom: -8px;
  width: 12px;
  height: 38px;
  background: var(--green);
  transform: rotate(34deg);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.icon-button,
.mini-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mini-icon-button {
  min-width: 44px;
  min-height: 44px;
}

.icon-button:hover,
.mini-icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 64px;
  padding: 7px;
  border: 1px solid rgba(23, 24, 22, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-button {
  justify-content: center;
  gap: 5px;
  min-height: 48px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-button span {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-button.active {
  background: #171816;
  color: #fffdf8;
}

.nav-button:hover {
  transform: translateY(-1px);
}

.side-panel {
  display: none;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.side-note span,
.eyebrow,
.data-pill,
.field-block label,
.metric-card span,
.hero-total span,
.draft-head span,
.draft-totals span,
.price-data dt,
.event-kind small,
.event-items small,
.date-chip {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.side-note strong {
  display: block;
  margin-top: 7px;
  line-height: 1.25;
}

.view-title-row {
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.primary-compact,
.primary-action,
.secondary-action,
.quiet-button {
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-compact,
.primary-action {
  background: #171816;
  color: #fffdf8;
}

.primary-compact {
  padding: 0 14px;
}

.primary-action,
.secondary-action {
  flex: 1 1 0;
  padding: 0 14px;
}

.secondary-action,
.quiet-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.quiet-button {
  flex: 0 0 auto;
  padding: 0 12px;
}

.primary-compact:hover,
.primary-action:hover,
.secondary-action:hover,
.quiet-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(33, 30, 24, 0.1);
}

.hero-ledger {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #171816;
  color: #fffdf8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
}

.hero-total {
  display: grid;
  gap: 8px;
  margin: 28px 0 18px;
}

.hero-total span {
  color: rgba(255, 253, 248, 0.68);
}

.hero-total strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 2.55rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.segmented,
.currency-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.segmented button,
.currency-row button {
  min-height: 44px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.segmented button.selected,
.currency-row button.selected {
  background: var(--surface-strong);
  color: var(--ink);
}

.segmented.soft,
.currency-row {
  width: min(280px, 100%);
  border-color: rgba(255, 253, 248, 0.14);
  background: rgba(255, 253, 248, 0.08);
}

.segmented.soft button,
.currency-row button {
  color: rgba(255, 253, 248, 0.68);
}

.segmented.soft button.selected,
.currency-row button.selected {
  background: #fffdf8;
  color: #171816;
}

.currency-row {
  width: min(260px, 100%);
}

.receipt-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.receipt-rail div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-left-width: 4px;
  border-radius: var(--radius);
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
}

.receipt-rail div[data-color="green"],
.progress-line i[data-color="green"],
.price-icon[data-color="green"],
.event-kind span[data-color="green"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.receipt-rail div[data-color="blue"],
.progress-line i[data-color="blue"],
.price-icon[data-color="blue"],
.event-kind span[data-color="blue"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.receipt-rail div[data-color="coral"],
.progress-line i[data-color="coral"],
.price-icon[data-color="coral"],
.event-kind span[data-color="coral"] {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral);
}

.receipt-rail div[data-color="gold"],
.progress-line i[data-color="gold"],
.price-icon[data-color="gold"],
.event-kind span[data-color="gold"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.receipt-rail div[data-color="violet"],
.progress-line i[data-color="violet"],
.price-icon[data-color="violet"],
.event-kind span[data-color="violet"] {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet);
}

.receipt-rail div[data-color="slate"],
.progress-line i[data-color="slate"],
.price-icon[data-color="slate"],
.event-kind span[data-color="slate"] {
  border-color: var(--slate);
  background: var(--slate-soft);
  color: var(--slate);
}

.receipt-rail div[data-color="ink"],
.progress-line i[data-color="ink"],
.price-icon[data-color="ink"],
.event-kind span[data-color="ink"] {
  border-color: #171816;
  background: #eeeeea;
  color: #171816;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  justify-content: space-between;
  gap: 14px;
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.metric-card svg {
  color: var(--green);
}

.overview-grid,
.add-layout {
  display: grid;
  gap: 14px;
}

.trend-panel,
.category-panel,
.entry-sheet,
.draft-panel,
.catalog-tools,
.event-card,
.price-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trend-panel,
.category-panel,
.entry-sheet,
.draft-panel,
.catalog-tools {
  padding: 16px;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.data-pill,
.date-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  white-space: nowrap;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 190px;
}

.bar-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.bar-track {
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  background: #efede7;
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #171816;
  transition: height 260ms ease;
}

.bar-column small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.kind-bars {
  display: grid;
  gap: 14px;
}

.kind-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.kind-bar > div {
  min-width: 0;
  gap: 8px;
  font-weight: 800;
}

.kind-bar > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind-bar strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-line {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border-radius: 6px;
  background: #efede7;
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

.field-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-block label {
  color: #55574f;
}

.kind-scroll,
.filter-scroll,
.category-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.kind-scroll::-webkit-scrollbar,
.filter-scroll::-webkit-scrollbar,
.category-row::-webkit-scrollbar {
  display: none;
}

.kind-chip {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.kind-chip.active {
  border-color: #171816;
  background: #171816;
  color: #fffdf8;
}

.kind-chip:hover {
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.form-grid > * {
  min-width: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.input-with-icon {
  position: relative;
  min-width: 0;
}

.input-with-icon svg,
.input-with-icon > i {
  position: absolute;
  left: 12px;
  color: var(--muted);
}

.input-with-icon input {
  padding-left: 40px;
}

.strong-input {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.autocomplete-wrap {
  position: relative;
  z-index: 5;
}

.suggestion-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  max-height: 304px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.suggestion-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease;
}

.suggestion-menu button:hover {
  background: #f0eee8;
}

.suggestion-menu strong,
.suggestion-menu small {
  display: block;
}

.suggestion-menu small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.suggestion-menu em {
  color: var(--green);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.category-row button,
.filter-scroll button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.category-row button.active,
.filter-scroll button.active {
  border-color: #171816;
  background: #171816;
  color: #fffdf8;
}

.stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  overflow: hidden;
}

.stepper button {
  display: grid;
  place-items: center;
  min-height: 46px;
  background: transparent;
  color: var(--ink);
}

.stepper input {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-weight: 900;
  box-shadow: none;
}

.form-actions {
  gap: 10px;
  margin-top: 16px;
}

.form-message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.draft-panel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.draft-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
  line-height: 1;
}

.draft-head svg {
  color: var(--green);
}

.draft-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.draft-totals div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.draft-totals strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.draft-list {
  display: grid;
  gap: 8px;
  min-height: 122px;
}

.draft-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.draft-row > div {
  min-width: 0;
}

.draft-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-row strong,
.draft-row span {
  display: block;
}

.draft-row strong {
  overflow-wrap: anywhere;
}

.draft-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.empty-state {
  display: grid;
  min-height: 116px;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.empty-state.large {
  min-height: 220px;
  background: var(--surface);
}

.catalog-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.search-field input {
  min-height: 50px;
}

.catalog-list,
.event-list {
  display: grid;
  gap: 10px;
}

.price-row {
  display: grid;
  gap: 14px;
  padding: 13px;
}

.price-main {
  gap: 10px;
  min-width: 0;
}

.price-icon,
.event-kind > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.price-main strong,
.price-main span {
  display: block;
}

.price-main strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.price-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.price-data div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.price-data dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.date-chip {
  justify-self: start;
}

.event-card {
  padding: 13px;
  overflow: hidden;
}

.event-top {
  justify-content: space-between;
  gap: 12px;
}

.event-kind {
  min-width: 0;
  gap: 10px;
}

.event-kind strong,
.event-kind small {
  display: block;
}

.event-kind strong {
  line-height: 1.2;
}

.event-kind small {
  margin-top: 3px;
}

.event-items {
  display: grid;
  gap: 1px;
  margin: 12px -13px 0;
  border-top: 1px solid var(--line);
}

.event-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  gap: 3px 10px;
  align-items: center;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.52);
}

.event-items span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.event-items small {
  grid-column: 1;
  color: var(--muted);
}

.event-items strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.event-total {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 11px;
}

.event-total strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: #171816;
  color: #fffdf8;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 560px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-ledger {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
  }

  .receipt-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: end;
  }

  .price-row {
    grid-template-columns: minmax(190px, 1fr) minmax(300px, 1.2fr) auto;
    align-items: center;
  }

  .date-chip {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .app {
    padding: 24px;
  }

  .desktop-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 24px;
  }

  .mobile-header,
  .bottom-nav {
    display: none;
  }

  .side-panel {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .side-panel .brand {
    margin-bottom: 28px;
  }

  .side-nav .nav-button {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .side-nav .nav-button span {
    font-size: 0.88rem;
  }

  .content {
    padding-top: 6px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-total strong {
    font-size: 4rem;
  }

  .overview-grid,
  .add-layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  }
}

@media (max-width: 420px) {
  .app {
    padding-right: 10px;
    padding-left: 10px;
  }

  h1 {
    font-size: 1.72rem;
  }

  .hero-total strong {
    font-size: 2.15rem;
  }

  .form-grid {
    gap: 10px;
  }

  .form-actions {
    display: grid;
  }

  .price-data {
    grid-template-columns: 1fr;
  }

  .nav-button {
    gap: 3px;
  }

  .nav-button span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
