/* Warm Ivory colors. Geometry and type come from Studio glass. */
:root[data-studio-theme="light"],
:root[data-studio-theme="light"] body.studio-glass {
  --g-bg: #fbf6ef;
  --g-glass: #fffdf9;
  --g-glass-soft: #fbf6ef;
  --g-glass-strong: #fffdf9;
  --g-text: #17110d;
  --g-sub: #61564b;
  --g-faint: #6d6055;
  --g-accent: #785a40;
  --g-accent-ink: #fffdf9;
  --g-accent-soft: #efe5d8;
  --g-chip: #f1e8db;
  --g-line: #c8b9a7;
  --g-track: #ddcbb6;
  --g-scheme: light;
  color-scheme: light;
}
:root[data-studio-theme="light"] { background: var(--g-bg); }
:root[data-studio-theme="light"] body.studio-glass::before {
  background: radial-gradient(ellipse at top left, #efe5d8, transparent 58%), var(--g-bg);
}
:root[data-studio-theme="light"] .studio-shell::after { opacity: .12; }
:root[data-studio-theme="light"] .sidebar-brand img { filter: brightness(.37); }
:root[data-studio-theme="light"] :is(.needs-bell-panel, .glass-bottom-nav, .project-more__menu, .events-more__menu) {
  background: var(--g-glass-strong);
}
:root[data-studio-theme="light"] :is(input, textarea, select, .glass-event-select) {
  border-color: #96836f;
}
:root[data-studio-theme="light"] :focus-visible {
  outline: 2px solid #8a6d4f;
  outline-offset: 2px;
}
:root[data-studio-theme="light"] .login-message[data-kind="error"] { color: #903e30; }

/* Keep the MOU face on its original brown button. The conversation uses ivory. */
:root[data-studio-theme="light"] .ask-mou-panel {
  --mou-ink: var(--g-text);
  --mou-muted: var(--g-sub);
  --mou-gold: var(--g-accent);
  --mou-line: var(--g-line);
  background: var(--g-bg);
}
:root[data-studio-theme="light"] .ask-mou-panel :is(button, .mou-menu summary, .mou-menu-actions, textarea) {
  background: var(--g-glass);
  color: var(--g-text);
}
:root[data-studio-theme="light"] .mou-compose button {
  background: var(--g-accent);
  color: var(--g-accent-ink);
}
:root[data-studio-theme="light"] .mou-group p { background: var(--g-glass); }
:root[data-studio-theme="light"] .mou-group[data-role="user"] p { background: var(--g-chip); }

/* Appearance uses the same panel and form colors in both themes. */
body.studio-glass .settings-appearance {
  display: grid;
  min-inline-size: 0;
  gap: 8px;
}
body.studio-glass .settings-appearance .panel-note { margin: 0 0 4px; }
body.studio-glass .settings-appearance label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  padding: 8px 12px;
  border: 1px solid var(--g-line);
  border-radius: var(--radius-field);
  color: var(--g-text);
  cursor: pointer;
}
body.studio-glass .settings-appearance input {
  width: auto;
  margin: 0;
  flex: none;
}
body.studio-glass .settings-appearance label:has(input:checked) {
  border-color: var(--g-accent);
  background: var(--g-accent-soft);
}
body.studio-glass .settings-appearance small { color: var(--g-sub); }

/* RSVP values inherit an ivory color from the original dark summary card. */
:root[data-studio-theme="light"] .desk-next__stats b { color: var(--g-text); }
:root[data-studio-theme="light"] .desk-next__stats span { color: var(--g-sub); }
:root[data-studio-theme="light"] .glass-reply-chart text { fill: var(--g-sub); }
:root[data-studio-theme="light"] .glass-chart-grid { stroke: #96836f; }

/* Recolor the existing paths, keeping the character's geometry and mood states. */
:root[data-studio-theme="light"] .ask-mou-panel .mou-face [fill="#fbf2e4"] { fill: #785a40; }
:root[data-studio-theme="light"] .ask-mou-panel .mou-face [stroke="#fbf2e4"] { stroke: #785a40; }
:root[data-studio-theme="light"] .ask-mou-panel .mou-face [data-mou-cheeks] { stroke: #a94d42; }
:root[data-studio-theme="light"] .mou-launcher .mou-bubble { border-color: #785a40; }

/* Shared guest-link confirmation, including the Test event warning. */
:root[data-studio-theme="light"] .send-confirmation {
  background: var(--g-glass);
  color: var(--g-text);
  border-color: var(--g-line);
}
:root[data-studio-theme="light"] .send-confirmation h2 { color: #785a40; }
:root[data-studio-theme="light"] .send-confirmation__actions button {
  background: var(--g-glass);
  color: var(--g-text);
  border-color: #96836f;
}
:root[data-studio-theme="light"] .send-confirmation__actions .send-confirmation__primary {
  background: var(--g-accent);
  color: var(--g-accent-ink);
}
/* Destructive confirmations retain a distinct red action in the ivory palette. */
:root[data-studio-theme="light"] .mm-confirm__button--danger {
  background: #903e30;
  color: #fffdf9;
  border-color: #903e30;
}

/* Workspace errors need a deeper red than the shared Dark error color. */
:root[data-studio-theme="light"] body.studio-glass [data-film-link-error] {
  color: #903e30 !important;
}
:root[data-studio-theme="light"] .rsvp-answers button.is-danger {
  color: #903e30;
  border-color: #903e30;
}

/* Events list "⋯" menu: Delete event in the ivory red (Nov 23). */
:root[data-studio-theme="light"] body.studio-glass .events-more__menu > .is-danger { color: #903e30; }
