:root {
  --ink: #12211b;
  --muted: #5c6d64;
  --paper: #f5f3eb;
  --card: #fffdf7;
  --line: #d8d7cc;
  --accent: #166a4b;
  --accent-dark: #0c4c35;
  --warm: #e8b85b;
  --danger: #9a2f2f;
  --shadow: 0 18px 50px rgb(25 49 37 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgb(232 184 91 / 24%), transparent 28rem),
    linear-gradient(145deg, #f8f6ef 0%, #edf3ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: min(28rem, 100%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 247 / 76%);
}

#account-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  padding: 20px 0 48px;
}

.auth-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
}

.card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgb(18 33 27 / 10%);
  border-radius: 24px;
  background: rgb(255 253 247 / 92%);
  box-shadow: var(--shadow);
}

.hero-card {
  color: #f7fff9;
  background: linear-gradient(150deg, var(--accent-dark), #237456);
}

.hero-card .eyebrow {
  color: #fff0c9;
}

.hero-card p:not(.eyebrow) {
  color: #f7fff9;
}

.stack,
.button-stack {
  display: grid;
  gap: 16px;
}

form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-row > div {
  display: grid;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.hero-card .button:focus-visible {
  outline-color: white;
}

#booking-panel:focus {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

.button {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.primary {
  color: white;
  background: var(--accent);
}

.primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.secondary {
  color: var(--ink);
  background: var(--warm);
}

.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.danger {
  border-color: rgb(154 47 47 / 32%);
  color: var(--danger);
  background: rgb(154 47 47 / 6%);
}

.hint,
footer {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.message,
.result,
.secret-result,
.warning {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgb(22 106 75 / 24%);
  border-radius: 14px;
  background: #eef8f2;
}

.message[data-kind="error"],
.warning {
  border-color: rgb(154 47 47 / 25%);
  color: #702020;
  background: #fff0ed;
}

.result,
.secret-result {
  display: block;
  margin-top: 18px;
  overflow-wrap: anywhere;
}

.secret-result output {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #17251f;
  color: #f8fff9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
}

footer {
  padding: 0 0 30px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-grid,
  .dashboard-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

h3 {
  margin: 28px 0 12px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.boot-warning {
  margin-bottom: 20px;
}

.owner-operations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.owner-schedule-card {
  grid-column: 1 / -1;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 72%);
}

.record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-meta,
.empty-state {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #eceeea;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.status-confirmed,
.status-active,
.status-promoted {
  color: #0c5139;
  background: #dff3e7;
}

.status-pending_club_approval,
.status-pending,
.status-offered,
.status-reserved {
  color: #6b4c0c;
  background: #fff0c9;
}

.status-cancelled,
.status-rejected,
.status-blocked,
.status-expired,
.status-declined {
  color: #7b2929;
  background: #f9dfdc;
}

@media (forced-colors: active) {
  input:focus-visible,
  select:focus-visible,
  button:focus-visible,
  #booking-panel:focus {
    outline-color: Highlight;
  }
}

@media (max-width: 760px) {
  .owner-operations {
    grid-template-columns: 1fr;
  }

  .owner-schedule-card {
    grid-column: auto;
  }

  .record-heading {
    flex-direction: column;
  }

  .status {
    align-self: flex-start;
  }
}