:root {
  color-scheme: light;
  --bg: #f6f6f8;
  --card: #ffffff;
  --text: #0f1115;
  --muted: #667085;
  --line: #e6e7eb;
  --accent: #0a84ff;
  --accent-strong: #0a66ff;
  --shadow: 0 12px 36px rgba(10, 16, 30, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 2px;
}

.title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 17, 21, 0.04);
}

.panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}

.receipt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f7fa;
  font-size: 15px;
}

.receipt-row .name {
  font-weight: 500;
}

.receipt-row .sum {
  color: var(--muted);
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  background: #fbfbfd;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: #f1f2f6;
  color: var(--text);
}

.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  flex: 1;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 6px;
}

@media (max-width: 420px) {
  .actions {
    flex-direction: column;
  }
}
