:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  color: #101010;
  background: #fbfaf7;
  --ink: #101010;
  --muted: #55544f;
  --line: #e1dfd8;
  --surface: #fff;
  --canvas: #f1f0eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:where(a, button, input):focus-visible { outline: 2px solid #253ea4; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.mast-inner, .mast-identity { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; gap: 16px; min-height: 70px; }
.mast-identity { gap: 12px; }
.mast-name { font-weight: 600; letter-spacing: -.035em; font-size: 1.13rem; }
.pilot-badge, .format {
  border: 1px solid #d8d6cf;
  border-radius: 999px;
  color: #4e4e49;
  padding: 4px 9px;
  font-size: .75rem;
  white-space: nowrap;
}
.text-button { border: 0; padding: 5px 0; background: none; color: var(--ink); font-size: .875rem; text-underline-offset: 3px; }
.text-button:hover { text-decoration: underline; }

.wrap { padding-top: 32px; }
.intro {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: 254px; margin-bottom: 30px; padding: clamp(24px, 4.2vw, 54px);
  border: 1px solid #e0e5f3; border-radius: 24px; overflow: hidden;
  background: linear-gradient(110deg,#eef2fb 0%,#e9eefd 50%,#e3e8f9 100%);
}
.intro-copy { width: min(100%, 650px); z-index: 1; }
.eyebrow { color: #343f59; font-size: .875rem; font-weight: 550; margin-bottom: 14px; }
h1 { font-size: clamp(3rem, 6.2vw, 5.8rem); line-height: 1; font-weight: 500; letter-spacing: -.077em; margin-bottom: 14px; overflow-wrap: anywhere; text-wrap: balance; }
.lede { color: #353943; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.5; max-width: 440px; text-wrap: pretty; }
.intro-art { position: absolute; inset: 0 0 0 56%; overflow: hidden; pointer-events: none; }
.intro-art i {
  position: absolute; width: 100%; height: 138%; left: 17%; top: -16%;
  rotate: -29deg; border: 1px solid #fff9; border-radius: 48%;
  background: linear-gradient(128deg,#f7f9ff 5%,#dbe4ff 40%,#9aafe9 77%,#748acf 100%);
  box-shadow: inset 12px 6px 50px #ffffff83, inset -16px -10px 46px #536cb662;
}
.intro-art i:nth-child(2) { left: 33%; top: 1%; }
.intro-art i:nth-child(3) { left: 49%; top: 17%; }
.intro-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#e9eefd 0%,#e9eefd00 34%); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 20px; align-items: stretch; }
.viewer, .actions { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.viewer { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; overflow: hidden; }
.actions { grid-column: 2; padding: 24px; }
.viewer-head, .viewer-foot { display: flex; justify-content: space-between; align-items: center; padding: 20px 23px; gap: 12px; }
h2 { font-size: 1.48rem; font-weight: 550; line-height: 1.2; letter-spacing: -.05em; }
.viewer-head p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.stage { flex: 1; align-content: center; background: var(--canvas); border-block: 1px solid var(--line); }
.stage.paired { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(13px,2vw,24px); padding: clamp(16px,2.2vw,28px); }
.stage figure { min-width: 0; margin: 0; }
.stage figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 9px; margin-top: 12px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.stage figcaption strong { color: var(--ink); font-weight: 600; }
.viewer-foot { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.viewer-foot #font-note { text-align: right; }

/* Template preview geometry. Keep these coordinates aligned with the exported deck. */
.slide { position: relative; container-type: inline-size; aspect-ratio: 16/9; background: #fff; color: #0d0d0e; box-shadow: 0 1px 3px #0002, 0 6px 16px #211d1212; overflow: hidden; }
.slide.dark { background: #08090a; color: #fff; }
.slide-art { position: absolute; left: 56.816%; top: 4.8%; width: 40.48%; height: 89.11%; border-radius: 1.35%; object-fit: fill; }
.slide-openai { position: absolute; left: 1.02265%; top: 1.7826%; width: 18.5026%; height: 8.9683%; object-fit: fill; }
.slide.dark .slide-openai { left: 2.7%; top: 3.3138%; width: 9.5036%; height: 5.9457%; }
.slide-partner { position: absolute; left: 13.8402%; top: 4.7947%; width: 11.8504%; height: 2.9513%; z-index: 1; }
.slide-partner.named { top: 3.6557%; height: 5.2493%; }
.slide-title { position: absolute; top: 12.3%; left: 2.7%; font-size: 6.7cqw; letter-spacing: -.055em; line-height: 1; }
.slide-date { position: absolute; top: 87.5%; left: 2.7%; font-size: 1.75cqw; }
.slide.dark .slide-date { top: 91%; }
.slide-art-caption { position: absolute; left: 56.816%; width: 40.48%; text-align: center; top: 46.8%; color: #141619; font-size: 1.75cqw; }

.actions h2 { margin-bottom: 20px; }
.actions label:not(.drop) { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.actions input[type=text] { width: 100%; border: 1px solid #cccac2; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; min-height: 45px; }
.actions input::placeholder { color: #696760; }
.logo-uploads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.logo-field, .file-zone { position: relative; min-width: 0; }
.drop { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 45px; padding: 8px 7px; border: 1px solid #cecac0; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font-size: .875rem; font-weight: 600; line-height: 1.22; }
.drop:hover, .drop.active { background: #efeee9; border-color: #8a877e; }
.file-zone input:focus-visible + .drop { outline: 2px solid #253ea4; outline-offset: 3px; }
.file-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #1a1a1a; color: #fff; }
#drop-dark .file-icon { background: #f4f3ee; color: #202020; box-shadow: inset 0 0 0 1px #e2e0d7; }
.file-icon svg { width: 15px; height: 15px; }
.file-details { display: grid; justify-items: start; gap: 2px; }
.file-name { margin-top: 7px; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.file-details button { font-size: .8125rem; text-decoration: underline; }
.logo-guide { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 10px; border: 1px solid #e1e6f4; border-radius: 9px; background: #f1f4fc; color: #343f56; font-size: .8125rem; line-height: 1.35; }
.guide-icon { flex: none; width: 16px; height: 16px; color: #435879; }
.logo-guide .guide-title { font-weight: 600; color: #202c43; }
.logo-guide .guide-formats { font-size: .8125rem; margin-top: 3px; }
.status { font-size: .875rem; line-height: 1.45; margin-top: 9px; }
.status:empty { display: none; }
.status.error { color: #99272a; }
.ready { background: var(--canvas); padding: 14px; border-radius: 10px; display: grid; gap: 5px; justify-items: start; }
.ready span { color: var(--muted); font-size: .875rem; }

.export-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; gap: 16px 24px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); }
.export-heading p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.export-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.export-option { position: relative; display: block; width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; border: 1px solid #d5d3cb; border-radius: 999px; background: #fff; color: var(--ink); text-align: left; font-size: .9rem; line-height: 1.25; font-weight: 550; }
.export-option:hover:not(:disabled) { background: #faf9f5; border-color: #a7a399; }
.export-option:active:not(:disabled) { background: #eeece4; }
.export-option:focus-visible { outline-offset: 2px; }
.export-option .export-icon { position: absolute; top: 50%; left: 14px; translate: 0 -50%; width: 21px; height: 21px; }
#create-google .export-icon { width: 19px; height: 19px; }
.google-availability { margin: 8px 3px 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.google-result { display: block; margin-top: 10px; color: var(--ink); text-underline-offset: 3px; font-size: .875rem; font-weight: 600; }

.footer { margin-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; color: var(--muted); font-size: .8125rem; padding: 18px 0 26px; }
.footer a { color: inherit; text-underline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) {
  .mast-inner, .wrap { width: calc(100% - 48px); }
  .workspace { gap: 18px; }
  .actions { padding: 20px; }
}
@media (max-width: 760px) {
  .mast-inner, .wrap { width: calc(100% - 32px); }
  .mast-inner { min-height: 63px; }
  .wrap { padding-top: 18px; }
  .intro { min-height: 190px; margin-bottom: 20px; border-radius: 18px; }
  .intro-art { opacity: .65; left: 65%; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .viewer, .actions { grid-column: 1; grid-row: auto; }
  .viewer-head, .viewer-foot { padding-inline: 16px; }
}
@media (max-width: 470px) {
  .mast-name { font-size: 1rem; }
  .mast-identity { flex-wrap: wrap; gap: 5px 9px; }
  .intro-art { opacity: .27; left: 57%; }
  .stage.paired { grid-template-columns: minmax(0,1fr); }
  .stage figcaption { margin-top: 8px; }
}

@media (min-width: 761px) and (max-width: 950px), (max-width: 420px) { .logo-uploads { grid-template-columns: 1fr; } .drop { justify-content: flex-start; padding-inline: 13px; } }

@media (max-width: 960px) { .export-panel { grid-template-columns: minmax(140px,.72fr) minmax(0,1.6fr); } }
@media (max-width: 650px) { .export-panel { grid-template-columns: 1fr; padding: 16px; } }
@media (max-width: 540px) { .export-options { grid-template-columns: 1fr; } }
