:root {
  color-scheme: dark;
  --bg: #082657;
  --paper: #0d3474;
  --card: #102e60;
  --text: #f3f8ff;
  --muted: #c1d5f2;
  --line: #77b6ff40;
  --accent: #8fd7ff;
  --accent-soft: #0d3772;
  --gold: #8bd5ff;
  --swatch: #52b6ff;
  --hero-start: #1044a8;
  --hero-mid: #1764d8;
  --hero-end: #208bdc;
  --hero-glow: #59cfff;
  --hero-shade: #153f99;
  --hero-ink: #d5f3ff;
  --hero-title: #ffffff;
  --page-glow: #2486ed;
  --shadow: 0 10px 28px #03142f40;
  --input: #0c326c;
  --button-text: #082e61;
}
:root[data-theme="red"] {
  --bg: #70080f;
  --paper: #ad0b12;
  --card: #8f0d15;
  --text: #fff9ed;
  --muted: #ffebce;
  --line: #ffda864d;
  --accent: #ffe19a;
  --accent-soft: #760912;
  --gold: #ffd578;
  --swatch: #ff3434;
  --hero-start: #ca060b;
  --hero-mid: #e31313;
  --hero-end: #e81a14;
  --hero-glow: #ff3930;
  --hero-shade: #cb090e;
  --hero-ink: #ffda86;
  --hero-title: #fff0b8;
  --page-glow: #ff2026;
  --shadow: 0 10px 28px #3f000538;
  --input: #750b13;
  --button-text: #901015;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: radial-gradient(ellipse 900px 760px at 50% 0, color-mix(in srgb, var(--page-glow) 28%, transparent), transparent 85%), var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  line-height: 1.65;
}
svg {
  display: block;
}
.page {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: auto;
  background: radial-gradient(ellipse 560px 820px at 100% 0, color-mix(in srgb, var(--page-glow) 30%, transparent), transparent), var(--paper);
  box-shadow: 0 0 70px #00000020;
  overflow-wrap: anywhere;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 152px;
  height: 30px;
  object-fit: contain;
}
.theme-toggle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 85px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.theme-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--swatch);
  flex-shrink: 0;
}
.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.hero {
  position: relative;
  isolation: isolate;
  padding: 29px 28px 0;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 100% 64%, color-mix(in srgb, var(--hero-glow) 28%, transparent), transparent 57%),
    linear-gradient(127deg, var(--hero-start) 0%, var(--hero-mid) 62%, var(--hero-end) 100%);
  overflow: hidden;
  min-height: 432px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hero-shade) 28%, transparent), transparent 78%);
}
:root[data-theme="red"] .hero-kicker,
:root[data-theme="red"] .hero-pretitle,
:root[data-theme="red"] .hero-subtitle,
:root[data-theme="red"] .hero-theme,
:root[data-theme="red"] .hero-meta span {
  color: #fff6e7;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #ffffffd9;
  font-weight: 500;
}
.small-line {
  width: 25px;
  height: 1px;
  background: #ffffffa8;
}
.hero-pretitle {
  font-size: 11px;
  letter-spacing: 5px;
  color: #ffffffe0;
  margin-top: 32px;
}
.hero h1 {
  font-family: inherit;
  font-size: clamp(25px, 7.6vw, 36px);
  max-width: 440px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  font-weight: 650;
}
.title-brand {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.title-main {
  display: block;
  color: var(--hero-title);
  white-space: nowrap;
  letter-spacing: .5px;
}
.hero-subtitle {
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 9px;
  color: #ffffffed;
  position: relative;
  z-index: 1;
}
.hero-theme {
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 21px;
  color: #ffffffe3;
  position: relative;
  z-index: 1;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  color: var(--hero-ink);
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.tech-grid {
  fill: none;
  stroke: currentColor;
  stroke-width: .7;
  opacity: .12;
}
.tech-orbits {
  fill: none;
  stroke: currentColor;
  stroke-width: .75;
  opacity: .34;
}
.hero-meta {
  display: flex;
  position: relative;
  gap: 18px;
  justify-content: space-between;
  border-top: 1px solid #ffffff40;
  padding: 17px 0 28px;
  margin-top: 61px;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #ffffffcf;
}
.hero-meta strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
}
.tips-contacts {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 16px;
}
.tips-contacts:first-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.contact-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 20px;
  font-size: 13px;
}
.contact-phone {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  min-height: 38px;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.content {
  padding: 0 20px 24px;
}
.card {
  background: linear-gradient(135deg, #ffffff06, transparent 70%), var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.invitation {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  padding: 26px 24px 0;
  border-top: 3px solid var(--gold);
}
.invitation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}
.seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50% 50% 4px 4px;
  font-family: serif;
  font-size: 21px;
}
.salutation {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  letter-spacing: 1px;
}
.salutation strong {
  font-weight: 600;
}
.guest-affiliation {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.letter {
  font-size: 13px;
  line-height: 2.2;
  margin-top: 17px;
  text-align: justify;
}
.signature {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 11px;
  line-height: 1.9;
  margin: 18px 0 21px;
  color: var(--muted);
}
.invitation-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding: 14px 0;
  gap: 12px;
}
.quick-nav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 23px 0 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.quick-nav a {
  font-size: 11px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.quick-nav span {
  font-size: 9px;
  color: var(--gold);
}
.text-card {
  padding: 22px;
  margin-bottom: 18px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.card-heading h2 {
  font-size: 17px;
}
.card-symbol {
  color: var(--gold);
  font-size: 23px;
  line-height: 1;
}
.prose {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  display: inline-block;
  padding: 9px 0;
  min-height: 36px;
}
.section {
  margin: 32px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin-top: 5px;
}
.pill {
  font-size: 10px;
  white-space: nowrap;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--muted);
}
.agenda-card {
  overflow: hidden;
}
.day-tabs {
  display: flex;
  background: var(--accent-soft);
  padding: 8px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.day-tabs button {
  flex: 1;
  min-width: 100px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 10px;
  color: var(--muted);
}
.day-tabs button[aria-selected="true"] {
  background: var(--card);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.day-tabs strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}
.day-tabs span {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 2px;
}
.timeline {
  padding: 25px 20px 10px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 79px 1fr;
  gap: 16px;
  position: relative;
}
.time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.timeline-copy {
  border-left: 1px solid var(--line);
  padding: 0 0 26px 18px;
  position: relative;
}
.timeline-copy:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: -3.5px;
  top: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--card);
}
.timeline-item:last-child .timeline-copy {
  border-color: transparent;
}
.timeline-copy p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.9;
}
.arrangements {
  padding: 0 20px;
}
.arrangement {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.arrangement:last-child {
  border-bottom: 0;
}
.arrangement-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--accent);
}
.detail-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-value {
  font-size: 13px;
  line-height: 1.95;
}
.feedback-card {
  padding: 22px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0;
}
.optional {
  color: var(--muted);
  font-size: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.field textarea {
  resize: vertical;
  font-size: 14px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.field select {
  font-size: 14px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 22px 0 16px;
}
legend {
  font-size: 12px;
  margin-bottom: 12px;
}
.choice-row {
  display: flex;
  gap: 10px;
}
.choice-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}
.choice-row label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 18px;
  min-height: 46px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.primary {
  color: var(--button-text);
  background: var(--accent);
  width: 100%;
}
.primary span {
  margin-left: auto;
}
.secondary {
  border-color: var(--line);
  background: var(--accent-soft);
}
.form-status {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 12px;
  color: var(--accent);
}
.form-status:empty {
  display: none;
}
.schedule-note,
.privacy-note {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
  padding: 0 12px;
  margin: 20px 0;
}
.privacy-note {
  margin-top: 10px;
}
.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 12px 20px 34px;
  color: var(--muted);
  gap: 9px;
  font-size: 9px;
}
.footer-mark {
  font-family: serif;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--accent);
  opacity: 0.8;
}
.preview-banner {
  padding: 8px 15px;
  background: var(--accent-soft);
  text-align: center;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.admin-main {
  padding: 14px 20px 30px;
}
.admin-heading {
  margin-bottom: 24px;
}
.admin-heading h1 {
  font-size: 27px;
  margin: 6px 0;
}
.login-card {
  padding: 6px 22px 22px;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 14px;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 12px;
  color: var(--accent);
  min-height: 36px;
}
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
  margin-bottom: 16px;
}
.admin-tabs button {
  flex: 1;
  padding: 12px 3px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.admin-tabs .active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
#admin-status {
  font-size: 12px;
  color: var(--accent);
  margin: 12px 0;
}
.admin-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.admin-controls .field {
  margin: 0;
  flex: 1;
}
.admin-controls input {
  font-size: 13px;
}
.admin-controls .button {
  flex-shrink: 0;
  padding: 11px;
  font-size: 12px;
}
.record {
  padding: 18px;
  margin: 12px 0;
}
.record-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.record h3 {
  font-size: 16px;
}
.record p {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
}
.record-actions {
  display: flex;
  gap: 17px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 5px;
  font-size: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.record-actions a {
  padding: 8px 0;
  min-height: 36px;
}
.empty {
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.editor-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 20px;
  margin-top: 18px;
}
.editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.editor-top h2 {
  font-size: 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 10px 0;
}
.editor-subtitle {
  font-size: 16px;
  margin: 28px 0 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.card-editor,
.day-editor,
.agenda-item-editor {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
  margin: 12px 0;
  background: var(--paper);
}
.card-editor .field {
  margin: 12px 0;
}
.day-editor {
  background: var(--card);
}
.agenda-item-editor {
  padding: 10px;
}
.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.compact-row .field {
  flex: 1;
  min-width: 0;
}
.editor-buttons {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding: 14px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  z-index: 3;
}
.editor-buttons .primary {
  flex: 1;
}
.danger-text {
  color: #ffd19e;
}
.feedback-meta {
  margin-bottom: 9px;
}
.error-card {
  margin-top: 32px;
}
.error-card h1 {
  font-size: 24px;
  margin: 12px 0;
}
.error-card .button {
  margin-top: 24px;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.saved {
  color: var(--accent);
}
@media (min-width: 600px) {
  body {
    padding: 28px 0;
  }
  .page {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
  }
  .hero {
    padding-top: 30px;
  }
  .topbar {
    padding-top: 20px;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero h1 {
    font-size: clamp(23px, 7.4vw, 27px);
  }
  .hero-subtitle {
    font-size: 11px;
    letter-spacing: .3px;
  }
  .hero-meta {
    gap: 12px;
  }
  .hero-meta strong {
    font-size: 11px;
  }
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .invitation {
    padding-left: 19px;
    padding-right: 19px;
  }
  .quick-nav a {
    font-size: 10px;
  }
  .timeline {
    padding-left: 15px;
    padding-right: 15px;
  }
  .timeline-item {
    grid-template-columns: 73px 1fr;
    gap: 9px;
  }
  .feedback-card {
    padding: 18px;
  }
}
@media print {
  body {
    background: white;
    padding: 0;
  }
  .page {
    max-width: 100%;
    border: 0;
  }
  .theme-toggle,
  .quick-nav,
  #feedback {
    display: none;
  }
  .card {
    break-inside: avoid;
  }
  .hero {
    print-color-adjust: exact;
  }
  .timeline[hidden] {
    display: block !important;
  }
}
