:root {
  color-scheme: light;
  --bg: #fff0fb;
  --panel: #ffffff;
  --panel-2: #ffe4f6;
  --ink: #341029;
  --muted: #7d4b70;
  --line: #f4acd8;
  --brand: #ec4899;
  --brand-dark: #9d174d;
  --accent: #f59e0b;
  --danger: #be123c;
  --ok: #0f9f8f;
  --shine: #fff7ad;
  --cyan: #22d3ee;
  --shadow: 0 20px 55px rgba(190, 18, 120, 0.18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #160214;
  --panel: #2b0a25;
  --panel-2: #4a123d;
  --ink: #fff1fb;
  --muted: #e3a5cf;
  --line: #8f2a6b;
  --brand: #f472b6;
  --brand-dark: #fbcfe8;
  --accent: #facc15;
  --danger: #fb7185;
  --ok: #5eead4;
  --shine: #fef08a;
  --cyan: #67e8f9;
  --shadow: 0 22px 58px rgba(244, 114, 182, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(45deg, rgba(236, 72, 153, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, rgba(255, 247, 173, 0.7), transparent 28%),
    linear-gradient(315deg, rgba(34, 211, 238, 0.24), transparent 34%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background:
    repeating-linear-gradient(45deg, rgba(244, 114, 182, 0.18) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.28), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(103, 232, 249, 0.22), transparent 28%),
    linear-gradient(135deg, #160214, #3b0a32 54%, #120818);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  position: relative;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background: #fff;
  font-weight: 850;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 12px 26px rgba(236, 72, 153, 0.38);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.08;
}

.brand p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 252, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .card {
  background:
    linear-gradient(180deg, rgba(58, 14, 49, 0.96), rgba(31, 5, 27, 0.94)),
    var(--panel);
}

:root[data-theme="dark"] .panel::before {
  background-image:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.18) 42%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(250, 204, 21, 0.18) 24px 26px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.7) 42%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 247, 173, 0.28) 24px 26px);
  opacity: 0.55;
}

.panel {
  padding: 18px;
}

.panel > * {
  position: relative;
}

.card {
  padding: 14px;
  box-shadow: none;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  min-height: calc(100svh - 48px);
  align-items: center;
  position: relative;
}

.hero.compact {
  align-items: start;
}

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    linear-gradient(135deg, transparent 49%, rgba(255, 247, 173, 0.95) 50%, transparent 51%);
  background-size: 38px 38px, 54px 54px;
  mix-blend-mode: screen;
  opacity: 0.32;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: #9d174d;
  text-shadow: 0 2px 0 #fff, 0 0 22px rgba(236, 72, 153, 0.42);
}

.hero-copy p,
.hero-line {
  max-width: 650px;
  color: #6f1d55;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

:root[data-theme="dark"] .hero-copy h1 {
  color: #fbcfe8;
  text-shadow: 0 2px 0 #831843, 0 0 26px rgba(244, 114, 182, 0.68);
}

:root[data-theme="dark"] .hero-copy p,
:root[data-theme="dark"] .hero-line {
  color: #f5c2df;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(236, 72, 153, 0.32);
  border-radius: 999px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fff, #ffe4f6);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.16);
}

:root[data-theme="dark"] .pill {
  color: #fff1fb;
  background: linear-gradient(135deg, rgba(157, 23, 77, 0.96), rgba(76, 5, 57, 0.96));
  border-color: rgba(244, 114, 182, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(244, 114, 182, 0.24);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.tabs,
.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffe4f6;
}

:root[data-theme="dark"] .tabs,
:root[data-theme="dark"] .segmented {
  border-color: rgba(244, 114, 182, 0.62);
  background: rgba(31, 5, 27, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tabs button,
.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
}

:root[data-theme="dark"] .tabs button,
:root[data-theme="dark"] .segmented button {
  color: #ffd6ed;
}

.tabs button {
  flex: 1;
  padding: 0 10px;
}

.segmented button {
  padding: 0 12px;
}

.tabs button.active,
.segmented button.active {
  color: var(--ink);
  background: linear-gradient(135deg, #fff, #fff7ad);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.18);
}

:root[data-theme="dark"] .tabs button.active,
:root[data-theme="dark"] .segmented button.active {
  color: #2b0625;
  background: linear-gradient(135deg, #fdf2f8, #fef08a 64%, #f9a8d4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36), 0 8px 22px rgba(250, 204, 21, 0.2);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.weight-row label {
  color: #7f1d5f;
  font-size: 0.82rem;
  font-weight: 800;
}

:root[data-theme="dark"] .field label,
:root[data-theme="dark"] .weight-row label {
  color: #fbcfe8;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #f0a8d2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 11px;
  outline: none;
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea {
  border-color: #9f3674;
  color: var(--ink);
  background: rgba(30, 5, 27, 0.92);
}

.textarea {
  min-height: 78px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18), 0 0 18px rgba(255, 247, 173, 0.4);
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #db2777, #ec4899 48%, #f97316);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.btn.secondary {
  border-color: var(--line);
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fff, #ffe4f6);
}

:root[data-theme="dark"] .btn.secondary {
  border-color: rgba(244, 114, 182, 0.66);
  color: #fff1fb;
  background: linear-gradient(135deg, #831843, #4a123d);
}

.btn.ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

:root[data-theme="dark"] .btn.ghost {
  color: #fbcfe8;
}

.auth-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.btn.danger,
.icon-btn.danger {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff;
}

:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .btn.danger,
:root[data-theme="dark"] .icon-btn.danger {
  border-color: rgba(244, 114, 182, 0.36);
  color: #fff1fb;
  background: rgba(76, 5, 57, 0.82);
}

.btn.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.icon-btn {
  width: 42px;
  flex: 0 0 auto;
  padding: 0;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.notice,
.error {
  display: none;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.notice.show {
  display: block;
  color: #6d1647;
  background: #fde7f3;
  border: 1px solid #f8a9d4;
}

:root[data-theme="dark"] .notice.show {
  color: #fff1fb;
  background: rgba(131, 24, 67, 0.94);
  border-color: rgba(244, 114, 182, 0.68);
}

.error.show {
  display: block;
  color: #7a2018;
  background: #fee4de;
}

.member-list,
.entry-list,
.transfer-list {
  display: grid;
  gap: 10px;
}

.member-row,
.entry-row,
.transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

:root[data-theme="dark"] .member-row,
:root[data-theme="dark"] .entry-row,
:root[data-theme="dark"] .transfer-row {
  border-color: rgba(244, 114, 182, 0.42);
  background: rgba(31, 5, 27, 0.82);
}

.member-name,
.entry-title,
.transfer-title {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.claim-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  color: #9d174d;
  background: #fff0fb;
  font-size: 0.72rem;
  vertical-align: middle;
}

:root[data-theme="dark"] .claim-badge {
  color: #2b0625;
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(135deg, #fdf2f8, #fef08a);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.amount.positive {
  color: var(--ok);
}

.amount.negative {
  color: var(--danger);
}

.amount.neutral {
  color: var(--muted);
}

.weight-list {
  display: grid;
  gap: 10px;
}

.weight-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.55fr) minmax(130px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 228, 246, 0.72) var(--weight-fill, 20%), rgba(255, 255, 255, 0.84) var(--weight-fill, 20%));
  padding: 10px;
}

:root[data-theme="dark"] .weight-row {
  border-color: rgba(244, 114, 182, 0.46);
  background: linear-gradient(90deg, rgba(157, 23, 77, 0.82) var(--weight-fill, 20%), rgba(31, 5, 27, 0.88) var(--weight-fill, 20%));
}

.weight-row input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.weight-row output {
  min-width: 36px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #fff;
  background: #db2777;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.split-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 247, 173, 0.74), rgba(255, 228, 246, 0.88));
  padding: 9px 10px;
}

:root[data-theme="dark"] .split-meter {
  border-color: rgba(250, 204, 21, 0.44);
  background: linear-gradient(135deg, rgba(131, 24, 67, 0.9), rgba(31, 5, 27, 0.92));
}

.split-meter strong {
  justify-self: center;
  border-radius: 999px;
  padding: 4px 12px;
  color: #6d1647;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.split-meter strong.bad {
  color: #fff;
  background: var(--danger);
}

:root[data-theme="dark"] .split-meter strong {
  color: #2b0625;
  background: #fef08a;
}

:root[data-theme="dark"] .split-meter strong.bad {
  color: #fff1fb;
  background: #be123c;
}

.scale-icon,
.scale-spark {
  font-size: 1.35rem;
}

.pair-split {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(236, 72, 153, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

:root[data-theme="dark"] .pair-split {
  border-color: rgba(244, 114, 182, 0.46);
  background: rgba(31, 5, 27, 0.82);
}

.pair-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.pair-split input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.pair-bar {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(244, 114, 182, 0.2));
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.25);
}

.pair-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #ec4899);
  transition: width 120ms ease;
}

.locked {
  opacity: 0.78;
}

.split-fixed {
  justify-self: start;
  color: var(--brand-dark);
}

:root[data-theme="dark"] .split-fixed {
  color: #fbcfe8;
}

.manual-split {
  display: grid;
  gap: 8px;
}

.split-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty {
  border: 1px dashed #cbd5d1;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  padding: 18px;
  text-align: center;
}

:root[data-theme="dark"] .empty {
  border-color: rgba(244, 114, 182, 0.46);
  color: #fbcfe8;
  background: rgba(31, 5, 27, 0.72);
}

.total-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel-2), #fff7ad);
  padding: 12px;
}

:root[data-theme="dark"] .metric {
  border-color: rgba(244, 114, 182, 0.48);
  background: linear-gradient(135deg, rgba(131, 24, 67, 0.92), rgba(74, 18, 61, 0.92));
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

:root[data-theme="dark"] .metric span {
  color: #fbcfe8;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .metric strong {
  color: #fff1fb;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-tip {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-tip.show {
  display: block;
}

.claim-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: 24px;
}

.claim-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.claim-card {
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid rgba(236, 72, 153, 0.34);
  border-radius: 8px;
  color: #6d1647;
  background: linear-gradient(135deg, #fff, #ffe4f6);
  padding: 12px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.14);
}

.claim-card span {
  font-weight: 900;
}

.claim-card small {
  color: var(--muted);
  font-weight: 750;
}

.claim-card.claimed {
  cursor: not-allowed;
  opacity: 0.58;
}

.new-claim {
  margin-top: 14px;
}

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

.activity-detail {
  margin-top: 6px;
  color: #633052;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

:root[data-theme="dark"] .activity-detail {
  color: #f5c2df;
}

.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  background: rgba(71, 9, 55, 0.22);
  backdrop-filter: blur(8px);
}

.settings-sheet.open {
  display: flex;
}

.settings-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 228, 246, 0.97)),
    var(--panel);
  box-shadow: 0 28px 70px rgba(157, 23, 77, 0.28);
  padding: 16px;
}

:root[data-theme="dark"] .settings-card {
  background:
    linear-gradient(135deg, rgba(64, 12, 54, 0.98), rgba(29, 3, 24, 0.98)),
    var(--panel);
}

.settings-choice button {
  flex: 1;
}

.sticker {
  position: fixed;
  z-index: 0;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(236, 72, 153, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.16);
  font-size: 1.7rem;
  transform: rotate(-8deg);
  pointer-events: none;
  animation: stickerFloat 5.5s ease-in-out infinite;
}

.sticker-a {
  top: 82px;
  right: max(18px, calc((100vw - 1180px) / 2 + 8px));
}

.sticker-b {
  bottom: 118px;
  left: max(14px, calc((100vw - 1180px) / 2 + 6px));
  animation-delay: 800ms;
  transform: rotate(7deg);
}

.sticker-c {
  right: max(18px, calc((100vw - 1180px) / 2 + 18px));
  bottom: 28px;
  animation-delay: 1500ms;
  transform: rotate(12deg);
}

.fx-burst {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.fx-burst span {
  position: absolute;
  top: -40px;
  left: var(--x);
  font-size: 1.35rem;
  filter: drop-shadow(0 4px 6px rgba(157, 23, 77, 0.18));
  animation: glitterFall 3300ms cubic-bezier(0.15, 0.72, 0.38, 1) var(--delay) both;
}

@keyframes stickerFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes glitterFall {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(0deg) scale(0.6);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(calc(var(--spin) * 720deg)) scale(1.15);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

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

  .toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel {
    padding: 14px;
  }

  .form-grid,
  .total-band {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .tabs button {
    min-width: max-content;
  }

  .member-row,
  .entry-row,
  .transfer-row {
    grid-template-columns: 1fr;
  }

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

  .amount {
    justify-self: start;
  }
}
