:root {
  color-scheme: light;
  --paper: #fff9e9;
  --white: #fffdf7;
  --ink: #392617;
  --muted: #745941;
  --sun: #ffe28a;
  --gold: #fbc650;
  --line: #e9d5a9;
  --rust: #8b421f;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(16px, 4vw, 40px); }
[hidden] { display: none !important; }
.ticket, .admin {
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px #60402412;
}
.ticket { max-width: 540px; overflow: hidden; }
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(22px, 5vw, 36px);
  border-bottom: 2px dashed #bb8e39;
  background-color: var(--sun);
  background-image: linear-gradient(90deg,#fff6 50%,transparent 50%), linear-gradient(#fff4 50%,transparent 50%);
  background-size: 28px 28px;
}
.eyebrow { width: fit-content; margin: 0 0 8px; padding: 4px 10px; border-radius: 100px; background: var(--white); color: var(--rust); font-weight: 700; font-size: 13px; }
h1,h2,p,figure { margin: 0; }
h1 { font-size: clamp(28px, 7vw, 49px); line-height: 1.2; letter-spacing: -.05em; }
.intro { margin-top: 9px; color: var(--muted); font-size: 14px; }
.polaroid {
  width: 29%;
  flex-shrink: 0;
  padding: 5px 5px 12px;
  border: 1px solid #d6a94a;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 5px 6px #97702e36;
  transform: rotate(6deg);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 84%; border-radius: 3px; }
.form-panel { padding: clamp(18px, 5vw, 32px); }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span, legend { font-size: 15px; font-weight: 700; }
input:not([type=radio],[type=checkbox]) {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
}
input::placeholder { color: #806b57; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 6px; padding: 0; }
.campuses { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.campuses label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffaf0;
  cursor: pointer;
  font-size: 14px;
}
.campuses label:has(input:checked) { background: #ffedbd; border-color: var(--rust); }
input[type=checkbox],input[type=radio] { accent-color: var(--rust); flex: 0 0 auto; }
.consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.6; cursor: pointer; }
.consent input { margin: 4px 0 0; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #e4ad35;
  border-radius: 11px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: .65; cursor: wait; }
.message { color: #9a2f1b; font-size: 14px; }
.form-panel .message { font-size: 13px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.confirmation { text-align: center; padding: 30px 5px; }
.confirmation p { margin-top: 8px; color: var(--muted); }
.check { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 13px; border-radius: 50%; background: var(--sun); font-size: 28px; }
.admin { max-width: 1050px; padding: clamp(16px, 5vw, 38px); }
.admin h1 { margin-bottom: 12px; }
.admin p { color: var(--muted); }
.admin .login { max-width: 360px; margin-top: 20px; }
.admin .message { color: #9a2f1b; }
.admin .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
th,td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #fff0c9; }
.timestamp { white-space: nowrap; }
.pagination { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.pagination a { color: var(--rust); }
