:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background: #000;
  color: #f5f5f7;
  --surface: rgba(28, 28, 30, 0.88);
  --surface-strong: #1c1c1e;
  --border: rgba(255, 255, 255, 0.08);
  --secondary: #a1a1a6;
  --green: #30d158;
  --red: #ff453a;
  --blue: #0a84ff;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(94, 92, 230, 0.18), transparent 35%),
    #000;
}

body {
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

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

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

.eyebrow {
  margin: 0 0 4px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 9vw, 42px);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.mini-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.date-panel {
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.date-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
}

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

input[type="date"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  color: #fff;
  background: #2c2c2e;
  outline: none;
}

.secondary-button {
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 650;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}

.section-heading span {
  color: var(--secondary);
  font-size: 13px;
  text-align: right;
}

.card-list {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.card-list.compact {
  margin-top: 10px;
}

.heuriger-card,
.search-card {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 15px;
  border-radius: 20px;
}

.status-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin: 0 14px 0 2px;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.status-dot.open { color: var(--green); background: var(--green); }
.status-dot.closed { color: var(--red); background: var(--red); }

.card-copy {
  flex: 1;
  min-width: 0;
}

.card-copy h3 {
  margin: 0 0 5px;
  font-size: 17px;
  letter-spacing: -0.018em;
}

.status-text {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.35;
}

.remove-button,
.add-button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.remove-button {
  color: var(--secondary);
  background: #2c2c2e;
}

.add-button {
  color: white;
  background: var(--blue);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 15px;
  padding: 0 13px;
}

.search-icon {
  color: var(--secondary);
  font-size: 20px;
}

.search-box input {
  width: 100%;
  border: 0;
  padding: 13px 0;
  color: #fff;
  background: transparent;
  outline: none;
}

.search-box input::placeholder { color: #8e8e93; }

.search-card {
  min-height: 58px;
}

.search-name {
  flex: 1;
  font-size: 16px;
  font-weight: 550;
}

.empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--secondary);
  text-align: center;
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .heuriger-card,
  .search-card,
  button {
    transition: transform .18s ease, opacity .18s ease;
  }

  button:active {
    transform: scale(.94);
  }
}
