@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ui-ink: #0B2346;
  --ui-muted: rgba(11, 35, 70, 0.62);
  --ui-line: rgba(11, 35, 70, 0.12);
  --ui-paper: #F6F1E8;
  --ui-card: #FFFCF8;
  --ui-accent: #1A9A96;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Montserrat", sans-serif;
  color: var(--ui-ink);
  background: var(--ui-paper);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.app { display: flex; height: 100%; min-height: 0; overflow: hidden; }

.panel {
  width: 400px;
  flex: 0 0 400px;
  background: var(--ui-card);
  border-right: 1px solid var(--ui-line);
  overflow: auto;
  min-height: 0;
  padding: 22px 20px 48px;
}
.brandbar { display: flex; gap: 12px; align-items: center; }
.brandbar img { width: 48px; height: 48px; object-fit: contain; }
.brandbar strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.brandbar span { display: block; margin-top: 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-muted); font-weight: 700; }
.lede { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--ui-muted); }

.block { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.block h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ui-muted);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span, .range span, .check span { font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 68px; line-height: 1.35; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(26, 154, 150, 0.15); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin: -6px 0 12px; font-size: 11px; line-height: 1.4; color: var(--ui-muted); }

.range { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.range input { grid-column: 1 / -1; accent-color: var(--ui-ink); }
.range output { font-weight: 600; color: var(--ui-muted); }

.check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.check input { accent-color: var(--ui-ink); }

.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.themes button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 35, 70, 0.16);
  padding: 0;
}
.themes button.on { box-shadow: 0 0 0 2px var(--ui-ink); }

.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.color {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--ui-line); border-radius: 10px; padding: 6px 8px; background: #fff;
  font-size: 12px; font-weight: 700;
}
.color input { width: 28px; height: 28px; border: 0; padding: 0; background: none; }
.color em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ui-muted); font-size: 10px; }

.segment { position: relative; display: flex; gap: 6px; margin-bottom: 12px; }
.segment label {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700;
  border: 1px solid var(--ui-line); border-radius: 999px; padding: 8px 10px; background: #fff;
}
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label:has(input:checked) { background: var(--ui-ink); color: #fff; border-color: var(--ui-ink); }

.upload-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.upload {
  position: relative; flex: 1; display: flex; gap: 10px; align-items: center;
  border: 1px dashed rgba(11, 35, 70, 0.28); border-radius: 12px; padding: 8px;
  background: #fff; min-height: 64px;
}
.upload.over { border-color: var(--ui-accent); background: #f3fbfa; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb {
  width: 48px; height: 48px; border-radius: 8px; background: #F3EFE7 center / cover no-repeat; flex: 0 0 auto;
}
.thumb.contain { background-size: contain; background-color: #fff; }
.upload b { display: block; font-size: 13px; }
.upload small { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 11px; }
.ghost, .textbtn, .primary {
  border-radius: 999px; border: 1px solid var(--ui-line); background: #fff;
  padding: 8px 12px; font-size: 12px; font-weight: 700;
}
.textbtn { border: 0; background: transparent; color: #8C3A3A; padding-inline: 6px; }
.add {
  width: 100%; border-radius: 10px; border: 1px dashed rgba(11, 35, 70, 0.28);
  background: transparent; padding: 10px; font-weight: 700; font-size: 13px;
}

.stage {
  position: relative; flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
  padding: 20px 20px 96px;
  background:
    radial-gradient(ellipse at 50% 42%, #fbf7f1 0%, #e7dfd2 72%);
}
.frame { flex: 0 0 auto; overflow: hidden; }
.poster { transform-origin: top left; box-shadow: 0 28px 70px rgba(48, 28, 8, 0.18); }

.dock {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; align-items: center;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(11, 35, 70, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(40, 24, 8, 0.14);
  backdrop-filter: blur(12px);
}
.dock .size { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ui-muted); margin-right: 4px; }
.dock .primary { background: var(--ui-ink); color: #fff; border-color: var(--ui-ink); padding: 10px 16px; font-size: 13px; }
.dock button[aria-pressed="true"] { background: var(--ui-ink); color: #fff; border-color: var(--ui-ink); }
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: var(--ui-ink); color: #fff; border-radius: 999px; padding: 10px 16px;
  font-size: 13px; z-index: 8; box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Poster. 1080 × 1530, the Spotlight light scientific session. */
.poster {
  --paper: #F7F3EC;
  --ink: #0B2346;
  --light: #A8E0DC;
  --accent: #1A9A96;
  --deep: #0E6E6B;
  --title: var(--light);
  --pill: #fff;
  --font: "Montserrat", sans-serif;
  --title-size: 76px;
  position: relative;
  width: 1080px; height: 1530px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  user-select: none;
}
.poster .bg { position: absolute; inset: 0; z-index: 0; background-repeat: no-repeat; }
.poster .film { position: absolute; inset: 0; }
.poster .art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.poster .header {
  position: absolute; left: 36px; right: 40px; top: 24px;
  display: flex; align-items: center; justify-content: space-between; z-index: 5; gap: 16px;
}
.poster .brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.poster .badge { width: 108px; height: 108px; object-fit: contain; }
.poster .wordmark { height: 88px; width: auto; object-fit: contain; display: block; }
.poster .wordmark-text { line-height: 0.95; color: var(--ink); }
.poster .wordmark-text b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.poster .wordmark-text span { display: block; margin-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.poster .header-meta { display: flex; align-items: center; gap: 16px; }
.poster .rule {
  width: 3px; height: 64px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--light) 0%, var(--accent) 40%, var(--deep) 100%);
}
.poster.flat .rule { background: var(--accent); }
.poster .meta-copy { text-align: right; max-width: 500px; }
.poster .conf { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.poster .date { margin-top: 8px; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
.poster .sep {
  display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px; border-radius: 1px;
  background: var(--accent); transform: rotate(45deg); vertical-align: middle;
}
.poster .session-pill {
  position: absolute; left: 50%; top: 768px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 40px 14px 18px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 8px 18px rgba(11, 35, 70, 0.16); z-index: 5;
  max-width: 920px;
}
.poster .dot {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 38% 32%, #fff 0%, #fff 46%, rgba(255,255,255,0.35) 47%, rgba(255,255,255,0.15) 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.28);
}
.poster .session-pill .label {
  font-size: 18px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pill);
}
.poster .copy { position: absolute; left: 40px; right: 40px; top: 268px; text-align: center; z-index: 5; }
.poster .copy h1 {
  font-size: var(--title-size); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--title);
}
.poster .copy h1:empty::before, .poster .sub:empty::before { content: "Add text"; opacity: 0.45; }
.poster .sub { margin: 18px auto 0; max-width: 920px; font-size: 34px; font-weight: 700; line-height: 1.3; color: var(--title); }
.poster .bar { width: 128px; height: 6px; margin: 20px auto 0; border-radius: 4px; background: var(--accent); }
.poster .speaker { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.poster .speaker-ring {
  position: absolute; left: 36px; top: 908px; width: 330px; height: 330px; border-radius: 50%; padding: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7fb 55%, var(--light) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent), 0 14px 28px rgba(11, 35, 70, 0.16);
}
.poster .speaker-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.poster .speaker-badge {
  position: absolute; right: 44px; top: 968px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 16px 13px 20px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 8px 18px rgba(11, 35, 70, 0.16);
}
.poster .speaker-badge .dot { width: 18px; height: 18px; }
.poster .speaker-badge .label {
  font-size: 14px; font-weight: 800; letter-spacing: 0.14em; line-height: 1;
  text-transform: uppercase; color: var(--pill); writing-mode: vertical-rl; text-orientation: upright;
}
.poster .speaker-meta {
  position: absolute; left: 394px; right: 118px; top: 908px; height: 330px;
  display: flex; flex-direction: column; justify-content: center;
}
.poster .speaker-name { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.poster .speaker-name.long { font-size: 32px; letter-spacing: -0.025em; }
.poster .speaker-lines { margin-top: 8px; font-size: 26px; font-weight: 500; line-height: 1.35; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.poster .footer {
  position: absolute; left: 36px; right: 36px; bottom: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 5;
}
.poster .reg { display: flex; align-items: center; gap: 16px; min-width: 0; }
.poster .qr {
  width: 156px; height: 156px; background: #fff; border-radius: 8px; padding: 7px;
  box-shadow: 0 8px 18px rgba(11, 35, 70, 0.12); flex: 0 0 auto;
}
.poster .qr img { width: 100%; height: 100%; display: block; }
.poster .scan { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.poster .now { margin-top: 4px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.poster .now .gold { color: var(--deep); }
.poster .url { margin-top: 6px; font-size: 18px; font-weight: 500; }
.poster .partners { display: flex; align-items: center; gap: 12px; }
.poster .partners .v { width: 1.5px; height: 96px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.poster .partners img { height: 96px; width: auto; max-width: 168px; object-fit: contain; }
.probe { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

@media (max-width: 980px) {
  html, body { height: auto; overflow: auto; }
  .app { flex-direction: column-reverse; height: auto; overflow: visible; }
  .panel { width: auto; flex: none; border-right: 0; border-top: 1px solid var(--ui-line); }
  .stage { height: 68vh; min-height: 480px; }
}
