:root {
  color-scheme: light;
  --ink: #1f2530;
  --muted: #626b7a;
  --line: #d9dde5;
  --paper: #fffaf2;
  --surface: #ffffff;
  --accent: #a5233f;
  --accent-dark: #7f1830;
  --sage: #637d5b;
  --gold: #c99435;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23c99435' stroke-opacity='.25' stroke-width='2'%3E%3Cpath d='M20 44c22-28 56-28 78 0M58 118c22-28 56-28 78 0'/%3E%3Ccircle cx='32' cy='112' r='10'/%3E%3Ccircle cx='126' cy='48' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

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

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.subline,
p {
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.stats {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 37, 48, 0.08);
}

.panel {
  padding: 24px;
  margin-bottom: 18px;
}

.invite {
  max-width: 680px;
}

.guest-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.flyer-card {
  margin: 0;
}

.flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(201, 148, 53, 0.45);
  box-shadow: 0 18px 45px rgba(31, 37, 48, 0.22);
  background: #111;
}

.guest-layout .invite {
  max-width: none;
}

.actions,
.calendar,
.guest-form,
.import-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

button,
.button,
.ghost {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.primary:hover {
  background: var(--accent-dark);
}

.danger {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
}

.stats div {
  padding: 18px;
  background: white;
}

.stats strong {
  display: block;
  font-size: 2rem;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

input {
  min-height: 42px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

.guest-form label {
  flex: 1 1 210px;
}

.import-form label {
  flex: 1 1 100%;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef0f3;
  font-weight: 700;
}

.status.yes {
  background: #e8f2e5;
  color: var(--sage);
}

.status.no {
  background: #f8e7ec;
  color: var(--accent);
}

td form {
  margin: 0;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    display: block;
  }

  .ghost {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
  }

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

  .panel {
    padding: 18px;
  }

  .guest-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flyer-card img {
    max-height: 72vh;
    object-fit: contain;
  }
}
