:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.64);
  --line: rgba(0, 0, 0, 0.1);
  --brand: #db3b47;
  --brand-deep: #d82240;
  --accent: #000000;
  --success: #157447;
  --success-soft: rgba(21, 116, 71, 0.1);
  --expense: #d82240;
  --expense-soft: rgba(216, 34, 64, 0.1);
  --warning: #f4b942;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 20px 42px rgba(216, 34, 64, 0.16);
}

/* Premium UI pass: richer surfaces, clearer hierarchy, and safer mobile controls. */
:root {
  --surface-warm: #fff7f8;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.06);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 34, 64, 0.13), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(0, 0, 0, 0.08), transparent 24%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

button,
.import-button,
input,
select,
textarea,
.topbar,
.account-menu,
.setup-band,
.entry-band,
.history-band,
.tools-band,
.settlement-band,
.metric,
.entry-item,
.share-row,
.segmented span,
.profile-sheet {
  border-radius: 18px;
}

.topbar {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.menu-button,
.quiet-button,
.delete-entry,
.edit-entry,
.mobile-tabbar,
.mobile-tabbar a,
.entry-type {
  border-radius: 999px;
}

.setup-band {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 28px auto;
  padding: clamp(22px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 248, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(216, 34, 64, 0.16), transparent 30%);
}

.setup-band::after {
  position: absolute;
  right: -76px;
  bottom: -92px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(216, 34, 64, 0.08);
  border-radius: 50%;
  content: "";
}

.setup-band > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

h2 {
  font-size: 1.2rem;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 14%, rgba(216, 34, 64, 0.3), transparent 30%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(31, 5, 8, 0.95));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.dashboard-hero::after {
  position: absolute;
  right: -78px;
  bottom: -122px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.dashboard-hero .eyebrow {
  color: #ffb6bd;
}

.dashboard-hero .intro {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.sync-strip {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(21, 116, 71, 0.11);
}

.metric {
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, rgba(21, 116, 71, 0.12), transparent 42%);
  box-shadow: var(--shadow-soft);
}

.metric.expense {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, rgba(216, 34, 64, 0.14), transparent 42%);
}

.metric.profit {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.1), transparent 42%);
}

.metric strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.settlement-band {
  border-left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 248, 0.88));
}

.share-row {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.entry-item {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.delete-entry,
.edit-entry {
  padding: 0 14px;
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 0% 0%, rgba(216, 34, 64, 0.12), transparent 30%),
      linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    background-size: auto, 34px 34px, 34px 34px, auto;
  }

  .topbar {
    border-radius: 18px;
  }

  .setup-band,
  .entry-band,
  .history-band,
  .tools-band,
  .settlement-band,
  .dashboard-hero {
    border-radius: 22px;
  }

  .dashboard-hero {
    padding: 18px;
  }

  .dashboard-hero h1 {
    font-size: 1.65rem;
    line-height: 1.04;
  }

  .sync-strip {
    display: flex;
    width: 100%;
    align-items: flex-start;
    border-radius: 18px;
  }

  .metric {
    border-radius: 20px;
  }

  .entry-item {
    padding: 14px;
  }

  .mobile-tabbar {
    border-radius: 24px;
  }

  .mobile-tabbar a {
    min-height: 46px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
.import-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow-brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
.import-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(216, 34, 64, 0.2);
}

button:active,
.import-button:active {
  transform: translateY(0);
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 42px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
h1,
h2,
.metric strong {
  font-family: "Outfit", "Manrope", sans-serif;
}

.brand-copy strong {
  line-height: 1;
  font-size: 1rem;
}

.brand-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-pill {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-menu-wrap {
  position: relative;
}

.menu-button {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--line);
  background: #000;
  box-shadow: none;
  color: #fff;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.account-menu strong {
  padding: 6px 4px 4px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.profile-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.34);
}

.profile-sheet {
  width: min(100%, 520px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.profile-sheet input[readonly] {
  background: #f6f6f6;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 2.55rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.intro,
.setup-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

section {
  margin: 14px 0;
}

.setup-band,
.entry-band,
.history-band,
.tools-band,
.settlement-band {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.partner-form,
.entry-form {
  display: grid;
  gap: 12px;
}

.setup-copy {
  margin-bottom: 16px;
}

.partner-name-grid {
  display: grid;
  gap: 12px;
}

.partner-credential {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.partner-credential legend {
  padding: 0 6px;
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 900;
}

.form-error {
  margin: 0;
  color: var(--expense);
  font-size: 0.88rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
}

input[type="date"] {
  max-width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(216, 34, 64, 0.14);
}

.sync-strip {
  display: block;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 34, 64, 0.03);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.sync-strip .quiet-button {
  min-height: 34px;
  padding: 0 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--success);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.metric.profit {
  border-top-color: var(--accent);
}

.metric.income strong {
  color: var(--success);
}

.metric.expense strong {
  color: var(--expense);
}

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

.metric strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
}

.settlement-band {
  display: grid;
  gap: 16px;
  border-left: 5px solid var(--brand);
}

.settlement-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.share-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.share-row strong {
  text-align: right;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented label {
  display: block;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.segmented input:checked + span {
  border-color: var(--brand);
  background: rgba(216, 34, 64, 0.08);
  color: var(--brand-deep);
}

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

.quiet-button {
  min-height: 40px;
  padding: 0 12px;
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
  color: var(--text);
}

.quiet-button:hover {
  background: rgba(216, 34, 64, 0.06);
  box-shadow: none;
}

.empty-state {
  padding: 18px 0 4px;
  color: var(--muted);
}

.tools-copy {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.entry-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.entry-type {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 900;
}

.entry-type.expense {
  background: var(--expense-soft);
  color: var(--expense);
}

.entry-main,
.entry-meta {
  display: block;
}

.entry-main {
  overflow-wrap: anywhere;
}

.entry-meta {
  margin-top: 4px;
  color: var(--muted);
}

.delete-entry,
.edit-entry {
  min-height: 38px;
  padding: 0 10px;
  background: #fff;
  border-color: rgba(180, 35, 24, 0.22);
  box-shadow: none;
  color: var(--danger);
}

.delete-entry:hover,
.edit-entry:hover {
  background: rgba(180, 35, 24, 0.08);
  box-shadow: none;
}

.edit-entry {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.edit-entry:hover {
  background: rgba(0, 0, 0, 0.06);
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--danger);
}

.danger-button:hover {
  background: rgba(180, 35, 24, 0.08);
}

.entry-item.is-editing {
  border-color: rgba(216, 34, 64, 0.38);
  box-shadow: 0 18px 42px rgba(216, 34, 64, 0.12);
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.import-button {
  display: grid;
  place-items: center;
}

.import-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

textarea {
  min-height: 118px;
  margin-top: 12px;
  resize: vertical;
}

.mobile-tabbar {
  display: none;
}

.app-panel {
  scroll-margin-top: 92px;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(1180px, calc(100% - 40px));
    margin-top: 20px;
  }

  .partner-form,
  .entry-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-form button,
  .partner-name-grid,
  .entry-form button,
  .entry-form .segmented {
    grid-column: 1 / -1;
  }

  .partner-name-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-credential {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-credential legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 86px;
    scroll-padding-bottom: 86px;
  }

  body {
    background:
      linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    background-size: 34px 34px, 34px 34px, auto;
  }

  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 10px 12px 94px;
  }

  .topbar {
    top: 8px;
    margin-inline: 0;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    display: none;
  }

  .menu-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .account-menu {
    min-width: 172px;
  }

  .profile-panel {
    align-items: end;
    padding: 10px;
  }

  .profile-sheet {
    padding: 14px;
  }

  .setup-band,
  .entry-band,
  .history-band,
  .tools-band,
  .settlement-band {
    padding: 14px;
    border-radius: 8px;
  }

  h1 {
    font-size: 1.68rem;
    line-height: 1.08;
  }

  h2 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .intro,
  .setup-copy,
  .settlement-band p {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  section {
    margin: 10px 0;
  }

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

  .sync-strip {
    display: block;
    padding: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .entry-item,
  .share-row {
    grid-template-columns: 1fr;
  }

  .share-row strong {
    text-align: left;
  }

  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 84px;
    padding: 14px;
  }

  .metric strong {
    margin-top: 0;
    text-align: right;
    font-size: 1.1rem;
  }

  .metric span {
    max-width: 9rem;
  }

  .entry-form {
    gap: 10px;
  }

  .entry-form label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .segmented {
    position: sticky;
    top: 74px;
    z-index: 5;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
  }

  .segmented span,
  input,
  select,
  textarea,
  button,
  .import-button {
    min-height: 50px;
  }

  .entry-form button[type="submit"] {
    box-shadow: 0 18px 38px rgba(216, 34, 64, 0.22);
  }

  .app-panel {
    display: none;
  }

  .app-panel.is-active {
    display: grid;
  }

  .summary-grid.is-active {
    display: grid;
  }

  .entry-list {
    gap: 0;
  }

  .entry-item {
    padding: 14px 0;
  }

  .delete-entry,
  .edit-entry {
    width: 100%;
  }

  .mobile-tabbar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-tabbar a.is-active,
  .mobile-tabbar a:nth-child(2).is-active {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    box-shadow: var(--shadow-brand);
  }

  .mobile-tabbar a:nth-child(2):not(.is-active) {
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }
}

/* Final UI overrides: keep these last so older mobile rules cannot flatten the design. */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 34, 64, 0.13), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(0, 0, 0, 0.08), transparent 24%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.topbar,
.account-menu,
.setup-band,
.entry-band,
.history-band,
.tools-band,
.settlement-band,
.metric,
.entry-item,
.share-row,
.profile-sheet {
  border-radius: 22px;
}

button,
.import-button,
input,
select,
textarea,
.segmented span {
  border-radius: 16px;
}

.menu-button,
.quiet-button,
.delete-entry,
.edit-entry,
.entry-type {
  border-radius: 999px;
}

.topbar {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.setup-band {
  max-width: 720px;
  margin: 28px auto;
  padding: clamp(22px, 5vw, 42px);
}

.dashboard-hero {
  border-radius: 26px;
}

.sync-strip {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.metric {
  border-top: 0;
  box-shadow: var(--shadow-soft);
}

.share-row,
.entry-item {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.share-row {
  padding: 12px;
}

.entry-item {
  padding: 14px;
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 0% 0%, rgba(216, 34, 64, 0.12), transparent 30%),
      linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
      linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    background-size: auto, 34px 34px, 34px 34px, auto;
  }

  .topbar,
  .setup-band,
  .entry-band,
  .history-band,
  .tools-band,
  .settlement-band,
  .dashboard-hero,
  .metric {
    border-radius: 20px;
  }

  .dashboard-hero {
    padding: 18px;
  }

  .dashboard-hero h1 {
    font-size: 1.65rem;
    line-height: 1.04;
  }

  .sync-strip {
    display: flex;
    width: 100%;
    align-items: flex-start;
    border-radius: 18px;
  }

  .mobile-tabbar {
    border-radius: 24px;
  }

  .mobile-tabbar a {
    min-height: 46px;
    border-radius: 18px;
  }
}
