:root {
  --bg: #f3efe6;
  --bg-accent: #dfe7dd;
  --paper: rgba(255, 252, 246, 0.92);
  --card: rgba(255, 255, 255, 0.8);
  --text: #13211c;
  --muted: #617067;
  --line: rgba(19, 33, 28, 0.12);
  --primary: #0f766e;
  --primary-strong: #0b5e58;
  --secondary: #f2b35d;
  --danger: #b94a48;
  --success: #2f855a;
  --warning: #c47b22;
  --shadow: 0 24px 60px rgba(22, 32, 28, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(242, 179, 93, 0.2), transparent 24%),
    linear-gradient(180deg, #f9f6ef 0%, var(--bg) 100%);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(15, 118, 110, 0.1);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.page {
  display: grid;
  gap: 1.2rem;
}

.topbar,
.panel,
.stat,
.card {
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand h1,
.hero h2,
.panel h2,
.panel h3,
.card h3,
.stat__value,
.login-copy h1 {
  margin: 0;
}

.brand__spark {
  width: 1rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.nav__link {
  color: var(--muted);
}

.nav__link:hover {
  color: var(--primary);
}

.identity {
  text-align: right;
}

.identity__name,
.identity__role,
.eyebrow,
.meta__label,
.stat__label,
.field__hint {
  display: block;
}

.identity__name {
  font-weight: 700;
}

.identity__role,
.eyebrow,
.meta__label,
.field__hint,
.lead--small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero,
.panel,
.card,
.stat {
  border-radius: var(--radius-xl);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  padding: 0.3rem 0.1rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lead {
  max-width: 42rem;
  font-size: 1.05rem;
  color: #273933;
}

.login-hero {
  display: grid;
  grid-template-columns: 1.25fr minmax(320px, 420px);
  gap: 1.4rem;
  min-height: calc(100vh - 4rem);
  align-items: center;
}

.login-copy {
  padding: 2rem 0.5rem;
}

.login-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 11ch;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(19, 33, 28, 0.08);
}

.panel {
  padding: 1.25rem;
}

.panel--login {
  padding: 1.4rem;
}

.panel__header {
  margin-bottom: 1rem;
}

.panel__header--spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel--narrow {
  max-width: 42rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.1rem 1.15rem;
}

.stat__label {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.searchbar,
.form,
.form__actions,
.card__actions,
.inline-form {
  display: flex;
  gap: 0.85rem;
}

.searchbar {
  align-items: center;
}

.searchbar__input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.cards-grid--tight {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.1rem;
}

.card__header,
.card__meta {
  display: grid;
  gap: 0.9rem;
}

.card__header {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 1rem;
}

.card__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card__notes {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #33443d;
}

.meta {
  display: grid;
  gap: 0.2rem;
}

.meta__value {
  font-weight: 600;
}

.status {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status--active {
  background: rgba(47, 133, 90, 0.12);
  color: var(--success);
}

.status--reserve {
  background: rgba(242, 179, 93, 0.18);
  color: #9a5e10;
}

.status--blocked {
  background: rgba(185, 74, 72, 0.12);
  color: var(--danger);
}

.status--neutral {
  background: rgba(97, 112, 103, 0.14);
  color: #415149;
}

.notice {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.notice--success {
  background: rgba(47, 133, 90, 0.1);
  border-color: rgba(47, 133, 90, 0.18);
  color: var(--success);
}

.notice--warning {
  background: rgba(242, 179, 93, 0.14);
  border-color: rgba(196, 123, 34, 0.2);
  color: var(--warning);
}

.notice--error {
  background: rgba(185, 74, 72, 0.1);
  border-color: rgba(185, 74, 72, 0.18);
  color: var(--danger);
}

.form {
  flex-direction: column;
}

.form--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full,
.form__actions {
  grid-column: 1 / -1;
}

.field__label {
  font-weight: 700;
}

.field__input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.field__input:focus,
.searchbar__input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.3);
}

.field__input--textarea {
  min-height: 8.4rem;
  resize: vertical;
}

.switch {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--wide {
  width: 100%;
}

.button--primary {
  color: #f8fffd;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.button--secondary {
  color: #4f3613;
  background: rgba(242, 179, 93, 0.28);
  border: 1px solid rgba(242, 179, 93, 0.55);
}

.button--ghost {
  color: var(--primary);
  background: rgba(15, 118, 110, 0.1);
}

.button--danger {
  color: #fff6f6;
  background: linear-gradient(135deg, #cb5956, #a53835);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(19, 33, 28, 0.18);
  background: rgba(255, 255, 255, 0.46);
}

@media (max-width: 920px) {
  .topbar,
  .login-hero {
    grid-template-columns: 1fr;
  }

  .identity {
    text-align: left;
  }

  .stats,
  .form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 100%);
  }

  .topbar,
  .panel,
  .card,
  .stat {
    border-radius: 22px;
  }

  .nav,
  .searchbar,
  .form__actions,
  .card__actions {
    flex-direction: column;
  }

  .stats,
  .form--grid,
  .card__meta {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }
}
