:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #b8c7cf;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(8, 24, 31, 0.82);
  --panel-strong: rgba(5, 16, 22, 0.94);
  --gold: #f4c56c;
  --aqua: #88d7f8;
  --green: #51d38a;
  --red: #f27777;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #071018;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(120deg, rgba(5, 16, 23, 0.82), rgba(9, 31, 40, 0.7)),
    url("we2026.jpg") center / cover fixed;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.52;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.hero {
  position: relative;
  min-height: 220px;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: url("we2026.jpg") center 42% / cover;
  box-shadow: var(--shadow);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 12, 18, 0.88), rgba(4, 12, 18, 0.38) 48%, rgba(4, 12, 18, 0.08));
}

.hero__content {
  position: relative;
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 220px;
  padding: 22px;
}

.hero__logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: 1.05rem;
}

.command,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.command {
  min-width: 0;
  padding: 14px;
}

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

.stats article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.stats span {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  font-weight: 850;
  line-height: 1;
}

.stats small,
.guest span,
.guest small,
.muted,
.form-message,
.recent span {
  color: var(--muted);
}

.stats .accent span {
  color: var(--green);
}

.progress {
  height: 8px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--aqua), var(--gold));
  transition: width 180ms ease;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  outline: 0;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
}

input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(136, 215, 248, 0.18);
}

.filters {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.filter {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
}

.filter.is-active {
  color: #061018;
  background: var(--gold);
}

.guest-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.guest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.guest--checked_in {
  border-left-color: var(--green);
}

.guest--absent {
  border-left-color: var(--red);
}

.guest__main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.guest strong,
.guest span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.guest__status {
  min-width: 86px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.guest__actions {
  display: flex;
  gap: 6px;
}

.check,
.primary {
  border-radius: 8px;
  padding: 0 14px;
  color: #041015;
  font-weight: 850;
  background: var(--green);
}

.ghost {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--panel-strong);
}

.quick-panels {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.add-panel form {
  display: grid;
  gap: 12px;
}

.add-panel summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.add-panel summary::-webkit-details-marker {
  display: none;
}

.add-panel summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.add-panel[open] summary::after {
  content: "-";
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel a {
  color: var(--aqua);
  font-weight: 800;
  text-decoration: none;
}

.form-message {
  min-height: 20px;
  margin: 0;
}

.recent-list {
  display: grid;
  gap: 8px;
}

.recent {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.recent:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 16px, 1280px);
    padding-top: 8px;
    gap: 10px;
  }

  .hero,
  .hero__content {
    min-height: 172px;
  }

  .hero__content {
    align-items: center;
    padding: 14px;
  }

  .hero__logo {
    width: 72px;
    height: 72px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

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

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    overflow-x: auto;
  }

  .filter {
    flex: 1 0 auto;
  }

  .guest {
    grid-template-columns: 1fr;
  }

  .guest__main {
    display: grid;
  }

  .guest__status {
    justify-self: start;
  }

  .guest__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}
