:root {
  --mint: #63d6d4;
  --mint-dark: #279ea0;
  --surface: #f7fbfb;
  --ink: #113335;
  --muted: #5e7d80;
  --card: #ffffff;
  --line: #d5e6e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eff9f9 0%, #ffffff 70%);
  color: var(--ink);
  font: 15px/1.4 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 12px 80px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hidden {
  display: none !important;
}

.hero {
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
}

p {
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(39, 158, 160, 0.08);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inline {
  display: flex;
  gap: 8px;
}

.inline input,
.inline select {
  flex: 1;
}

.inline button {
  width: auto;
  white-space: nowrap;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0 10px;
  background: var(--surface);
}

button {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
}

.btn-primary {
  background: var(--mint-dark);
  color: #fff;
}

.btn-secondary {
  background: #dfeef0;
  color: var(--ink);
}

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

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin: 6px 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}

.metric-grid p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #0c2a2d;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
