:root {
  --bg: #f3efe6;
  --ink: #1c1914;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #d9d0c1;
  --accent: #0f5c4c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 92, 76, 0.08), transparent 40%),
    linear-gradient(180deg, #efe8da, var(--bg));
}
.studio-header, .studio-main { max-width: 980px; margin: 0 auto; padding: 1rem 1.25rem; }
.studio-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.studio-nav a { color: var(--accent); text-decoration: none; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}
.hint, .disclaimer, .muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.grid .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; }
input, select, textarea, button {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary { background: #2f2a24; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.actions.wrap { margin-top: 0.5rem; }
.list .item, .output {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: #fff;
}
.output {
  white-space: pre-wrap;
  min-height: 8rem;
  max-height: 24rem;
  overflow: auto;
  font-size: 0.85rem;
}
.banner {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #e7f3ef;
  border: 1px solid #b7d8cd;
}
.banner.error { background: #f8e8e4; border-color: #e2b7ad; }
.hidden { display: none !important; }
.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #ece6da;
}


.generated-media {
  margin: 12px 0;
  border: 1px solid var(--line, #2a4a6a);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.18);
}

.generated-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}


.image-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 12px;
}

.image-controls label {
  display: grid;
  gap: 6px;
}

.image-controls select {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
}

.generated-media {
  position: relative;
}

.official-brand-overlay {
  position: absolute;
  top: 2.5%;
  left: 2.5%;
  width: 28%;
  max-width: 260px;
  height: auto;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  object-fit: contain;
}


.presenter-media {
  position: relative;
}

.presenter-media video {
  display: block;
  width: 100%;
  max-height: 720px;
  background: #000;
}

.presenter-live-caption {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 12%;
  z-index: 4;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  pointer-events: none;
}

.presenter-live-caption:empty {
  display: none;
}


.presenter-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.presenter-settings label {
  min-width: 0;
}

.presenter-settings select {
  min-height: 44px;
}

.presenter-controls {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}


.readiness-grid {
  display: grid;
  gap: 0.65rem;
}

.readiness-summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.readiness-summary.ready {
  background: #e7f3ef;
  border-color: #b7d8cd;
}

.readiness-summary.needs-work {
  background: #fff6e8;
  border-color: #e7cda4;
}

.readiness-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.readiness-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #9c8f7e;
}

.readiness-item.ready .readiness-dot {
  background: #2d7a67;
}

.readiness-item.missing .readiness-dot {
  background: #b86c2e;
}

.readiness-empty {
  color: var(--muted);
}


.next-action-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f3ea;
}

.next-action-card span {
  flex: 1 1 220px;
}

.readiness-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.readiness-action {
  margin-left: auto;
  white-space: nowrap;
}
