:root {
  color-scheme: dark;
  --bg: #0c1b28; --card: #142633; --text: #f4f7fa; --muted: #b7c8d5;
  --line: #304b5e; --gold: #ffb68b; --accent: #65e3df; --field: #0d1d2b;
  --shadow: 0 10px 32px #00000018;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf4f6; --card: #ffffff; --text: #142d3e; --muted: #486172;
  --line: #bdced7; --gold: #9a421f; --accent: #086c72; --field: #f8fbfc;
  --shadow: 0 10px 32px #1237470a;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button, .secondary {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 46px; padding: 11px 18px; border: 1px solid transparent;
  border-radius: 10px; background: #ffb291; color: #172532;
  font-weight: 700; text-decoration: none;
}
button:disabled { cursor: default; opacity: .6; }
.secondary { background: var(--card); border-color: var(--line); color: var(--text); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
header {
  background: #081b28; color: #fff;
  padding: 20px max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid #274557;
}
.header-inner { max-width: 1320px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.wordmark { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -.035em; line-height: 1; }
.wordmark span { color: #ff8968; }
.identity > div { min-width: 0; border-left: 1px solid #ffffff45; padding-left: 22px; }
.identity strong { font-size: 1.45rem; letter-spacing: -.025em; }
.identity p { margin: 1px 0 0; color: #c6d5df; font-size: .82rem; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.quiet { color: #f4f8fb; background: #102736; border-color: #395264; font-size: .85rem; padding: 8px 12px; min-height: 42px; }
.version { border: 1px solid #638192; color: #d4e5ed; border-radius: 20px; padding: 6px 11px; font-size: .72rem; font-weight: 650; white-space: nowrap; letter-spacing: .04em; }
main { max-width: 1368px; padding: 22px max(24px, env(safe-area-inset-right)) 40px max(24px, env(safe-area-inset-left)); margin: auto; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .13em; font-weight: 750; color: var(--accent); margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 1.9rem; font-weight: 750; margin: 0 0 12px; }
h3 { margin: 0 0 10px; font-size: 1.12rem; }
p { margin: 8px 0 16px; }
.welcome {
  border-radius: 17px; padding: 44px 32px; margin-bottom: 24px; color: #fff;
  background: linear-gradient(90deg, #061725f5, #061725be 49%, #0617251a), url('/demo/assets/dj/partyoffice/assets/hero-sommerfest-v1.webp') center 54% / cover;
}
.welcome .eyebrow { color: #6de8e1; }
.welcome h1 { max-width: 700px; }
.welcome p:last-child { max-width: 630px; color: #dbe6ec; margin-bottom: 0; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.login { max-width: 620px; }
label { display: block; margin: 15px 0 6px; font-size: .94rem; font-weight: 650; }
input, textarea, select { width: 100%; max-width: 100%; min-height: 46px; padding: 11px 13px; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 9px; }
textarea { resize: vertical; min-height: 110px; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 22px; margin: 0; accent-color: var(--accent); }
form > button { margin-top: 20px; }
.event-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.event-switch label { margin: 0; font-size: .86rem; color: var(--muted); }
.event-switch select { width: auto; flex: 1; min-width: 180px; min-height: 42px; padding: 8px 12px; }
.event-switch button, .event-switch a { font-size: .85rem; min-height: 42px; padding: 8px 12px; }
.event-hero {
  position: relative; isolation: isolate; border-radius: 17px; overflow: hidden;
  min-height: 290px; display: flex; align-items: center; padding: 34px 32px; color: #fff;
  background: #09202f url('/demo/assets/dj/partyoffice/assets/hero-sommerfest-v1.webp') center 55% / cover;
  border: 1px solid #315064; box-shadow: var(--shadow);
}
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #051623f5, #051623ca 36%, #0516235e 65%, #05162308); }
.event-hero > div { width: min(100%, 800px); }
.event-hero .eyebrow { color: #65e6e1; }
.event-hero h1 { font-size: clamp(2rem, 4.3vw, 3.3rem); font-style: normal; margin-bottom: 12px; }
.event-hero h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 650; overflow-wrap: anywhere; margin: 0 0 6px; }
.event-hero p { margin: 6px 0 0; color: #e5edf3; }
.event-hero #eventType { color: #a6cedc; font-size: .85rem; }
#countdown { display: inline-block; padding: 7px 12px; margin-top: 17px; background: #082b3deb; border: 1px solid #286078; border-radius: 9px; font-size: .84rem; }
#accessNote { font-size: .8rem; margin: 12px 2px 0; }
.intro { margin: 26px 0 17px; }
.intro h2 { font-size: clamp(1.7rem, 3.3vw, 2.3rem); margin: 0 0 6px; }
.intro p { margin: 0; }
.intro p:last-child, .muted { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tile {
  isolation: isolate; position: relative; text-align: left; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; gap: 4px; min-width: 0;
  aspect-ratio: 2 / 1; min-height: 185px; padding: 20px 17px 15px;
  border: 1px solid #466272; border-radius: 13px; background: #132838; color: #fff;
  overflow: hidden; box-shadow: var(--shadow);
}
.tile-art { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #05131e00 18%, #05131e52 45%, #05131eeb 79%, #05131ef5); }
.tile strong { max-width: 100%; font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 750; line-height: 1.23; overflow-wrap: anywhere; }
.tile-caption { max-width: 100%; font-weight: 400; font-size: .82rem; color: #e2eaf0; line-height: 1.4; overflow-wrap: anywhere; }
.tile-arrow { position: absolute; top: 10px; right: 10px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #061c2cbd; font-size: 1.1rem; line-height: 1; color: #fff; }
.tile:hover { border-color: #65e3df; }
.progress-card { margin-top: 23px; }
.progress-card progress { width: 100%; height: 13px; accent-color: var(--accent); }
.panel { margin-top: 23px; }
.panel > button:first-child { margin-bottom: 23px; }
.panel > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; }
.entry { padding: 16px; margin: 13px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.entry .actions { margin-top: 10px; }
.entry .secondary { font-size: .85rem; }
.check-label { display: flex; align-items: center; gap: 10px; }
.message { padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow-wrap: anywhere; }
.message.dj { border-left: 3px solid var(--gold); }
.message p { white-space: pre-wrap; }
.message small { color: var(--muted); }
.file-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.file-row strong { overflow-wrap: anywhere; }
.file-row button { min-height: 40px; padding: 8px 12px; }
.link-box { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
#status { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--accent); font-weight: 600; }
#status:empty { display: none; }
.qr svg { max-width: 220px; height: auto; background: #fff; border-radius: 12px; }
.note { font-size: .88rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 23px 20px max(23px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .8rem; }
footer a { color: var(--accent); }
[hidden], .hidden { display: none !important; }
#momentList { columns: 180px; column-gap: 12px; }
#momentList .moment-album-card { display: inline-block; vertical-align: top; break-inside: avoid; width: 100%; padding: 0; margin: 0 0 12px; border: 0; border-radius: 12px; background: transparent; }
#momentList .moment-preview { min-height: 0; overflow: hidden; border-radius: 12px; line-height: 0; }
#momentList .moment-preview img { display: block; width: 100%; height: auto; background: transparent; margin: 0; border-radius: 12px; }
#momentList strong { display: block; font-size: .85rem; padding: 7px 3px 0; overflow-wrap: anywhere; }
.moment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.moment-photo-dialog { color: #fff; }
.moment-photo-dialog button { background: #ffb291; color: #172532; }
.moments-export { border-color: var(--line); }
@media (max-width: 1000px) {
  .header-inner { align-items: flex-start; }
  .header-actions { max-width: 255px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 185px; }
  .tile strong { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  header { padding: 17px 18px; }
  .header-inner { display: block; }
  .identity { gap: 15px; }
  .identity > div { padding-left: 15px; }
  .identity strong { font-size: 1.3rem; }
  .identity p { font-size: .76rem; }
  .header-actions { max-width: none; justify-content: flex-start; margin-top: 15px; gap: 7px; }
  .version { margin-left: auto; font-size: .67rem; }
  .quiet { font-size: .8rem; padding: 8px 10px; min-height: 44px; }
  main { padding: 18px 16px 30px; }
  .welcome { padding: 30px 21px; }
  .welcome h1 { font-size: 2.1rem; }
  .event-switch { gap: 8px; }
  .event-switch label { width: 100%; }
  .event-switch select { min-width: 0; flex-basis: calc(100% - 135px); }
  .event-hero { padding: 28px 21px; min-height: 295px; background-position: 62% 53%; }
  .event-hero::before { background: linear-gradient(90deg, #051623ef, #051623b8 55%, #05162342); }
  .event-hero h1 { font-size: 2.1rem; }
  .event-hero h2 { font-size: 1.3rem; }
  .event-hero .eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .card { padding: 22px 18px; }
  .intro { margin-top: 23px; }
  .intro p { font-size: .94rem; }
  .tiles { gap: 13px; }
  .tile { aspect-ratio: auto; min-height: 185px; padding: 15px 12px; }
  .tile strong { font-size: 1.08rem; }
  .tile-caption { font-size: .8rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .panel h2 { font-size: 1.6rem; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1.9 / 1; min-height: 170px; padding: 20px 17px 15px; }
  .tile strong { font-size: 1.3rem; }
  .tile-caption { font-size: .86rem; }
}



/* Shared visual language for the individual planning sections. */
.panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) 30%; align-items: center; gap: 25px; padding: 0 0 24px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.panel-copy { min-width: 0; }
.panel-copy .eyebrow { margin-bottom: 8px; }
.panel-copy h2 { margin-bottom: 10px; }
.panel-copy > p:last-child { color: var(--muted); margin-bottom: 0; }
.panel-art { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 11px; }
.form-section-title { margin: 25px 0 0; font-size: 1.05rem; color: var(--accent); }
.draft-note { margin: 22px 0 0; font-size: .86rem; color: var(--muted); }
.entry > h3 { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--accent); }
@media (max-width: 600px) {
  .panel-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .panel-art { height: 130px; object-position: center 45%; }
  .panel-copy > p:last-child { font-size: .94rem; }
}


