/* Colors mirror lib/theme/colors.dart (the app's light theme). */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --divider: #e3e7ef;
  --text: #1b1d3a;
  --text-secondary: #3a4054;
  --muted: #4f5568;
  --accent: #3d3ab8;
  --accent-light: #4744cc;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.logo span {
  color: var(--accent-light);
}

p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 24px 0;
}

.code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--divider);
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 16px 0;
}

.amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.amount.owed {
  color: #137333;
}

.amount.owes {
  color: #c81e1e;
}

.left {
  text-align: left;
  margin-bottom: 4px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
}

.rows .small {
  margin: 0;
}

.what {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.share {
  font-weight: 600;
  white-space: nowrap;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--text);
}
