:root {
  --bg: #f4f7f5;
  --card: #ffffff;
  --text: #15211b;
  --muted: #68756e;
  --line: #dde7e1;
  --green: #0f3d2e;
  --green-2: #1f7a4d;
  --soft-green: #e5f3eb;
  --danger: #a93f3f;
  --warning: #926b00;
  --shadow: 0 24px 60px rgba(18, 41, 30, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(31, 122, 77, 0.18), transparent 35%),
    linear-gradient(180deg, #f8fbf9 0%, var(--bg) 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 18px 4px 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-2);
  font-weight: 800;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 9vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.app-icon {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.status-card,
.admin-card,
.summary-grid article,
.day-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 231, 225, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  margin-bottom: 14px;
}

.muted,
.status-card span,
.summary-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.status-card strong {
  display: block;
  margin-top: 3px;
}

.ghost-button {
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-weight: 800;
}

.admin-card {
  padding: 16px;
  border-radius: 24px;
  margin-bottom: 14px;
}

.admin-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.admin-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.admin-form input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.admin-form button {
  border-radius: 16px;
  padding: 13px 15px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.message {
  margin-top: 12px;
  font-weight: 700;
}

.message.ok {
  color: var(--green-2);
}

.message.error {
  color: var(--danger);
}

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

.summary-grid article {
  padding: 14px;
  border-radius: 22px;
}

.summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin: 0 4px 12px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.day-card {
  border-radius: 26px;
  padding: 16px;
}

.day-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 13px;
}

.day-title {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.available {
  background: var(--soft-green);
  color: var(--green);
}

.badge.full {
  background: #f2efe7;
  color: var(--warning);
}

.badge.closed {
  background: #eceff0;
  color: #566166;
}

.badge.error {
  background: #f7e5e5;
  color: var(--danger);
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f8f6;
  border: 1px solid var(--line);
  font-weight: 800;
}

.day-message {
  margin: 0;
  color: var(--muted);
}

.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  z-index: 50;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.splash-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: white;
}

.splash-card strong {
  font-size: 1.45rem;
}

.splash-card span {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 520px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form button {
    width: 100%;
  }

  .app-icon {
    width: 72px;
    height: 72px;
  }
}
