:root {
  color-scheme: dark;
  --background: #171a24;
  --ink: #f1eadd;
  --muted: #bab6b4;
  --copper: #c89874;
  --teal: #62c8c0;
  --line: #ffffff25;
  --panel: #20232dcc;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background-color: var(--background);
  background-image: radial-gradient(ellipse at 48% 28%, #2d2d38 0, #1b1d28 45%, #161923 82%);
  background-attachment: fixed; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }
.masthead, main, footer { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.masthead, footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--line); padding-block: 22px;
}
.masthead nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .875rem; }
.brand { display: inline-flex; align-items: center; gap: 2px; font: 35px/1 var(--serif); letter-spacing: -.055em; }
.brand img { width: 28px; height: 38px; margin-right: 10px; }
.brand span { color: var(--copper); }
main { padding: clamp(32px, 5vw, 70px) 0 36px; min-height: 75vh; }
.intro { margin: 0 0 30px; }
.section-name { color: var(--teal); margin: 0 0 9px; font-size: .9rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.07; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -.055em; margin: 0; }
h2 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.025em; }
.intro > p:last-child, .card > p:not(.seat-status) { color: var(--muted); margin: 10px 0 0; }
.card { padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 12px; box-shadow: 0 20px 54px #090b1435; min-width: 0; }
.sign-in { max-width: 500px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; margin: 16px 0; }
input, button { font: inherit; }
input { min-width: 0; min-height: 44px; color: var(--ink); background: #171a25;
  border: 1px solid #77778880; border-radius: 6px; padding: 9px 12px; }
input:focus { border-color: var(--teal); }
input::placeholder { color: #a8a6af; }
button { color: #171a24; background: #e4c4a8; border: 1px solid transparent; padding: 9px 17px;
  min-height: 42px; border-radius: 24px; cursor: pointer; }
button:hover { background: #f1d6bf; }
button:disabled { cursor: wait; opacity: .6; }
button span { margin-left: 12px; }
.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.secondary:hover { color: var(--ink); background: #ffffff0b; border-color: var(--copper); }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 15px; }
.notice { max-width: 58rem; padding: 10px 14px; color: var(--teal); background: #17292d;
  border: 1px solid #4e988e80; border-radius: 6px; overflow-wrap: anywhere; }
.notice[data-error="true"] { color: #ffd0bb; background: #352523; border-color: #c8987480; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; }
td button { margin: 3px 4px 3px 0; }
.empty { color: var(--muted); margin: 0; }
#audit { max-height: 440px; margin-bottom: 12px; }
.seat-status { display: inline-block; color: var(--teal); margin: 0; border: 1px solid #4e988e80; padding: 4px 12px; border-radius: 20px; }
.details { margin: 18px 0 0; }
.details div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.details dt, footer { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); border-bottom: 0; font-size: .82rem; }
@media (max-width: 630px) {
  .masthead, main, footer { width: calc(100% - 34px); }
  .masthead { align-items: flex-start; }
  .masthead nav { justify-content: flex-end; text-align: right; gap: 5px 14px; }
  .brand { font-size: 29px; }
  .brand img { width: 22px; height: 31px; margin-right: 6px; }
  .fields { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: 1px; }
  footer { flex-wrap: wrap; gap: 4px 15px; }
}
