:root {
  --bg: #f2f0eb;
  --panel: #ffffff;
  --ink: #1f1f1f;
  --accent: #ff5c35;
  --accent-2: #0f6ab4;
  --muted: #6b6b6b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Futura", sans-serif;
  background: radial-gradient(circle at top, #fff3e7 0%, #f2f0eb 55%, #e7eef5 100%);
  color: var(--ink);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: rgba(242, 240, 235, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.topbar h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.3px;
}

.panels {
  flex: 1;
  padding: 8px 16px 90px;
}

.panel {
  display: none;
  animation: fadeIn 240ms ease;
}

.panel.active {
  display: block;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.card {
  background: var(--panel);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8d6cf;
  background: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.btn {
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d8d6cf;
}

.btn.link {
  background: transparent;
  color: var(--accent-2);
}

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

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #e3e0d8;
}

.bottom-nav button {
  border: none;
  background: transparent;
  font-size: 12px;
  padding: 8px 4px;
  font-weight: 600;
}

.status {
  min-height: 18px;
  margin: 6px 0 10px;
  font-size: 13px;
  color: #6b6b6b;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(92vw, 360px);
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
  .panels {
    padding: 20px 24px 110px;
  }
  .bottom-nav {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
    left: 50%;
    transform: translateX(-50%);
  }
}
