:root {
  color-scheme: light;
  --ink: #122b3a;
  --muted: #526977;
  --line: #dce6e9;
  --paper: #f3f7f8;
  --white: #fff;
  --teal: #006c63;
  --teal-dark: #00574f;
  --navy: #071e30;
  font-family: "Inter", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
p { line-height: 1.65; }
form, fieldset { margin: 0; }
fieldset { min-inline-size: 0; }
:focus-visible { outline: 3px solid #16988c; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; line-height: 1.3; }
.brand-mark { position: relative; flex: 0 0 30px; width: 30px; height: 30px; display: inline-block; border-radius: 9px; background: #076c63; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; width: 13px; height: 13px; border: 1.5px solid #d9fff5; border-radius: 3px; transform: rotate(45deg); }
.brand-mark::before { top: 6px; left: 6px; }
.brand-mark::after { top: 11px; left: 11px; background: #a3fce4; }
.public-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1440px; padding: 24px clamp(22px, 4.5vw, 68px); margin: auto; }
.top-link, .quiet-link { color: var(--teal); font-size: .86rem; font-weight: 700; }
.top-link { white-space: nowrap; }
.top-link:hover, .quiet-link:hover { text-decoration: underline; }
.top-link span { margin-left: 4px; }
.registration-layout { display: grid; grid-template-columns: 1fr 1.02fr; max-width: 1440px; min-height: 735px; padding: 0 clamp(22px, 4.5vw, 68px) 40px; margin: 0 auto; }
.event-hero { overflow: hidden; position: relative; display: flex; isolation: isolate; flex-direction: column; min-height: 100%; border-radius: 22px 0 0 22px; color: white; background: radial-gradient(ellipse at 90% 106%, #0c626a 0%, #07384d 31%, transparent 61%), linear-gradient(154deg, #061929 6%, #082936 75%, #003d42); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .55; background: repeating-linear-gradient(90deg, transparent 0 46px, #7aefdc18 46px 47px), repeating-linear-gradient(0deg, transparent 0 46px, #7aefdc18 46px 47px); mask-image: linear-gradient(145deg, transparent 3%, #000 76%); }
.hero-content { padding: clamp(34px, 5vw, 72px); }
.hero-kicker { display: flex; align-items: center; gap: 9px; font-size: .84rem; letter-spacing: .16em; color: #a6f5e5; font-weight: 700; }
.hero-kicker span { width: 20px; height: 1px; background: #76f5db; }
.hero-content h1 { position: relative; max-width: 9ch; margin-top: 23px; font-size: clamp(2.7rem, 5.1vw, 5.4rem); line-height: 1.12; letter-spacing: -.065em; text-wrap: balance; }
.hero-organizer { margin-top: 16px; color: #c2dce1; }
.hero-cta { display: inline-flex; align-items: center; gap: 30px; margin-top: 36px; padding: 11px 15px; border: 1px solid #81c2c279; border-radius: 7px; font-size: .84rem; color: #d4f8f2; }
.hero-cta:hover { background: #ffffff14; color: #fff; }
.orbit { position: absolute; z-index: -1; width: 120%; height: 49%; left: 5%; bottom: 3%; transform: rotate(-32deg); transform-origin: center; }
.orbit i { position: absolute; inset: 0 0 0 0; border: 1px solid #b4fff2; border-radius: 50%; box-shadow: 0 0 18px #36edcb73, inset 0 0 20px #36edcb49; }
.orbit i:nth-child(2) { inset: 10% -2% 10% -2%; border-color: #48edbaae; }
.orbit i:nth-child(3) { inset: 20% -4% 20% -4%; border-color: #68caffbb; }
.orbit i:nth-child(4) { inset: 32% -5% 32% -5%; border-color: #91ebff85; }
.orbit b { position: absolute; display: block; top: 86%; left: 22%; width: 7px; height: 7px; border-radius: 50%; background: white; box-shadow: 0 0 14px 4px #6effdd; }
.event-hero-custom { background: #082433; }
.event-image { margin: auto; width: 100%; height: auto; max-height: 960px; object-fit: contain; }
.form-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(30px, 4vw, 62px); border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; background: white; scroll-margin-top: 10px; }
.form-intro h2 { font-size: clamp(1.8rem, 2.65vw, 2.55rem); letter-spacing: -.05em; }
.form-intro p { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.signup { display: grid; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink); font-size: .88rem; font-weight: 700; }
.field label { display: block; }
.required { color: #b64438; }
.optional { margin-left: 3px; color: var(--muted); font-size: .72rem; font-weight: 500; }
input:not([type=checkbox]), select { display: block; min-width: 0; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #cddcde; border-radius: 8px; background: #fcfefe; color: var(--ink); font-size: 16px; font-weight: 450; }
input::placeholder { color: #748791; }
select { appearance: none; padding-right: 33px; background-image: linear-gradient(45deg, transparent 50%, #476872 50%), linear-gradient(135deg, #476872 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #bc483c; }
.person-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; border: 0; }
.person-fields:disabled { opacity: .56; }
.person-fields:disabled input, .person-fields:disabled select { cursor: not-allowed; }
.full-field { grid-column: 1 / -1; }
.consent-section { padding-top: 2px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .81rem; line-height: 1.5; cursor: pointer; }
input[type=checkbox] { margin: 1px 0 0; flex: 0 0 17px; width: 17px; height: 17px; accent-color: var(--teal); }
.privacy-contact { margin: 6px 0 0 26px; color: var(--muted); font-size: .77rem; }
.field-error { color: #a13529; font-size: .78rem; font-weight: 600; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-size: .87rem; font-weight: 750; line-height: 1.3; text-align: center; }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: var(--teal-dark); }
.secondary { background: white; border-color: #cddcde; color: var(--ink); }
.secondary:hover { background: #edf6f5; }
.submit { width: 100%; min-height: 48px; justify-content: space-between; padding: 11px 16px; }
.notice { margin-top: 15px; padding: 11px 13px; border: 1px solid; border-radius: 8px; font-size: .88rem; }
.notice.error { color: #902c24; border-color: #f0c5bd; background: #fff1ee; }
.notice.success { color: #05634a; border-color: #b5e3d2; background: #eaf8f1; }
.center-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 9% 0%, #d5f2e9 0%, transparent 46%), var(--paper); }
.center-card { width: min(100%, 450px); padding: clamp(26px, 5vw, 44px); border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: 0 14px 52px #0d344610; }
.center-card h1 { margin-top: 25px; font-size: 2rem; }
.center-card p { margin-top: 10px; color: var(--muted); }
.center-card > .button, .center-card .quiet-link { margin-top: 20px; }
.stack { display: grid; gap: 16px; margin-top: 23px; }
.success-mark { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 13px; background: #ddf7ec; color: var(--teal); font-size: 1.5rem; font-weight: 700; }
.receipt-box { display: grid; gap: 7px; margin-top: 22px; padding: 14px 16px; background: #edf6f5; border-radius: 9px; }
.receipt-box span { color: var(--muted); font-size: .8rem; }
.receipt-box strong { letter-spacing: .08em; }
.bare { border: 0; background: transparent; padding: 0; color: inherit; }
.center-card .bare { color: var(--teal); }

.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100svh; background: var(--navy); color: #f4fcfd; padding: 27px 20px 20px; }
.sidebar-caption { margin: 18px 0 24px; padding-inline: 4px; color: #b6cdd6; font-size: .82rem; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 12px 11px; border-radius: 8px; color: #b6cdd6; font-size: .88rem; font-weight: 650; }
.sidebar nav a[aria-current], .sidebar nav a:hover { background: #133b48; color: #d0fbf2; }
.nav-icon { width: 18px; font-size: 1.13rem; text-align: center; }
.sidebar-account { margin-top: auto; padding: 16px 3px 1px; border-top: 1px solid #2b4250; }
.account-name { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: #17434f; color: #b4f6e8; }
.account-name strong, .account-name small { display: block; }
.account-name strong { font-size: .79rem; }
.account-name small, .account-links { color: #b6cdd6; font-size: .74rem; }
.account-name small { margin-top: 4px; }
.account-links { display: flex; gap: 14px; margin-top: 13px; }
.account-links a:hover, .account-links button:hover { color: white; text-decoration: underline; }
.admin-main { width: 100%; max-width: 1600px; padding: clamp(20px, 3.7vw, 56px); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-bottom: 25px; }
.workspace-header h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.workspace-header p, .list-head p { margin-top: 7px; color: var(--muted); font-size: .87rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.metric { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: .82rem; color: var(--muted); }
.metric:hover, .metric[aria-current] { border-color: #79b7ab; }
.metric strong { color: var(--ink); font-size: 1.85rem; font-variant-numeric: tabular-nums; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; background: #e8f3f8; color: #225775; border-radius: 8px; font-size: 1rem; }
.metric-icon.pending, .badge.pending { color: #825411; background: #fff3da; }
.metric-icon.approved, .badge.approved { color: #10644b; background: #e0f5eb; }
.metric-icon.rejected, .badge.rejected { color: #8a4141; background: #fff0ee; }
.admin-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-card h2 { font-size: 1.15rem; }
.list-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.exports { position: relative; z-index: 1; }
.exports summary { list-style: none; }
.exports summary::-webkit-details-marker { display: none; }
.export-menu { position: absolute; top: calc(100% + 5px); right: 0; width: max-content; min-width: 160px; display: grid; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px #17344120; }
.export-menu button { text-align: left; padding: 10px 11px; border-radius: 5px; color: var(--ink); font-size: .85rem; }
.export-menu button:hover { background: #edf6f5; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 3px 20px 16px; }
.filter-bar input, .filter-bar select { min-height: 41px; width: auto; font-size: .86rem; }
.filter-bar .filter-search { flex: 1 1 220px; }
.table-box { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; text-align: left; }
th { padding: 11px 14px; background: #f0f6f6; color: #44616d; white-space: nowrap; font-weight: 700; }
th:first-child, td:first-child { padding-left: 20px; }
td { padding: 13px 14px; border-top: 1px solid #eaf0f1; }
.person-cell { min-width: 150px; }
.person-cell strong { display: block; margin-bottom: 5px; overflow-wrap: anywhere; }
.person-cell small, .date-cell { font-size: .77rem; color: var(--muted); overflow-wrap: anywhere; }
.badge, .chip { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: .72rem; line-height: 1.2; white-space: nowrap; font-weight: 700; }
.chip { background: #eaf3f6; color: #265767; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.review-link { color: var(--teal); font-weight: 750; white-space: nowrap; }
.review-link:hover { text-decoration: underline; }
.empty-state { border-top: 1px solid #eaf0f1; padding: 40px 15px; text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--teal); border-radius: 10px; background: #e7f5f3; font-size: 1.15rem; }
.empty-state h3 { margin-top: 12px; font-size: .94rem; }
.empty-state p { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; color: var(--muted); font-size: .84rem; }
.region-summary { margin-top: 18px; overflow: hidden; }
.region-summary summary { padding: 17px 20px; font-size: .94rem; font-weight: 740; }
.back-link { display: inline-block; margin-bottom: 16px; }
.review-header { margin-bottom: 17px; }
.review-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 17px; align-items: start; }
.padded { padding: clamp(17px, 2.5vw, 26px); }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin: 21px 0 0; }
.details-grid dt { color: var(--muted); font-size: .8rem; }
.details-grid dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: .95rem; }
.review-form { margin-top: 20px; }
.transfer-tip { color: var(--muted); font-size: .77rem; font-weight: 500; }
.invites { padding: 0; border: 0; }
.invites legend { padding: 0; font-size: .88rem; font-weight: 700; }
.invites p, .history p, .qr-card p { margin: 7px 0 11px; color: var(--muted); font-size: .84rem; }
.option-row { align-items: center; min-height: 41px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; margin-top: 5px; color: var(--ink); }
.invites:disabled { opacity: .58; }
.history { margin-top: 16px; }
.history ol { display: grid; gap: 11px; margin: 15px 0 0; padding: 0; list-style: none; }
.history li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .83rem; }
.history li > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.history time { color: var(--muted); }
.qr-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; }
.qr-url { margin: 17px 0 13px; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 178px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .review-layout { grid-template-columns: 1fr; }
  .registration-layout { min-height: 700px; }
}

@media (max-width: 700px) {
  .public-top { padding: 15px 16px; font-size: .9rem; }
  .public-top .top-link { font-size: .76rem; }
  .registration-layout { display: block; min-height: auto; padding: 0 12px 22px; }
  .event-hero { min-height: 285px; border-radius: 16px 16px 0 0; }
  .hero-content { padding: 27px 23px 30px; }
  .hero-content h1 { margin-top: 16px; max-width: 12ch; font-size: clamp(2.1rem, 9vw, 3.75rem); }
  .hero-cta { margin-top: 23px; padding: 9px 12px; }
  .orbit { bottom: -4%; left: 42%; height: 68%; width: 92%; }
  .event-hero-custom { min-height: 0; }
  .event-image { max-height: 78svh; }
  .form-panel { padding: 25px 17px 23px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
  .person-fields { grid-template-columns: 1fr; gap: 15px; }
  .workspace { display: block; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px; padding: 14px 15px 11px; }
  .sidebar .brand { font-size: .9rem; }
  .sidebar-caption, .sidebar .avatar { display: none; }
  .sidebar nav { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar nav a { gap: 4px; padding: 7px; font-size: .77rem; }
  .sidebar-account { grid-column: 2; grid-row: 1 / span 2; margin: auto 0; text-align: right; padding: 0; border: 0; }
  .account-name, .account-links { justify-content: end; }
  .account-links { margin-top: 6px; }
  .admin-main { padding: 19px 12px; }
  .workspace-header { margin-bottom: 17px; }
  .workspace-header .button { min-height: 36px; padding: 7px 9px; font-size: .76rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
  .metric { grid-template-columns: 29px minmax(0, 1fr); align-items: center; padding: 10px; gap: 6px 7px; }
  .metric strong { grid-column: 2; font-size: 1.38rem; }
  .list-head, .filter-bar { padding-inline: 12px; }
  .filter-bar .filter-search { flex-basis: 100%; }
  .filter-bar input, .filter-bar select { font-size: 16px; }
  .registrations { display: block; padding: 0 10px 10px; }
  .registrations thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .registrations tbody { display: grid; gap: 9px; }
  .registrations tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
  .registrations td { padding: 0; border: 0; }
  .registrations td[data-label]::before { display: block; content: attr(data-label); margin-bottom: 4px; color: var(--muted); font-size: .7rem; }
  .registrations .person-cell { grid-column: 1 / -1; padding-right: 57px; padding-bottom: 5px; }
  .registrations .review-cell { position: absolute; top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
