/* Reversible app chrome only. Remove data-lab-theme to restore the dark UI.
   Artwork, template colors, typography and editor positioning remain untouched. */
html[data-lab-theme="daylight"] {
  color-scheme: light;
  color: #202c3a;
  background: #f6f5f1;
  --lab-ink: #202c3a;
  --lab-muted: #647180;
  --lab-blue: #3159e8;
  --lab-blue-hover: #2449ca;
  --lab-line: #dce2e8;
}
html[data-lab-theme="daylight"] body { background: #f6f5f1; }
html[data-lab-theme="daylight"] .topbar { min-height: 66px; gap: 12px; }
html[data-lab-theme="daylight"] .topbar h1 { color: var(--lab-ink); font-size: 24px; letter-spacing: -.8px; }
html[data-lab-theme="daylight"] .eyebrow { color: #687583; font-size: 9px; letter-spacing: .18em; margin-bottom: 5px; }
html[data-lab-theme="daylight"] .brand-mark { border-color: #253a51; width: 40px; height: 40px; flex-shrink: 0; }
html[data-lab-theme="daylight"] .brand-mark::after { background: #253a51; top: 17px; }
html[data-lab-theme="daylight"] .brand-mark::before { background: #ff9c53; }
.lab-studio-label, .lab-plan-title { display: none; }
html[data-lab-theme="daylight"] .lab-studio-label { display: block; margin-left: auto; color: #7a6b59; padding: 7px 9px; border: 1px solid #e4d9cb; border-radius: 7px; font-size: 9px; font-weight: 700; letter-spacing: .05em; background: #faf7f1; }
html[data-lab-theme="daylight"] .lab-plan-title { display: block; margin: 28px 2px 14px; color: var(--lab-ink); font-size: 22px; font-weight: 800; letter-spacing: -.7px; }

/* Optional identity settings are visually separate from the daily workflow. */
html[data-lab-theme="daylight"] .brand-style-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--lab-line); border-radius: 22px; background: #fff; color: var(--lab-ink); box-shadow: 0 4px 20px #25384b05; }
html[data-lab-theme="daylight"] .brand-style-panel .brand-style-panel__title { font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
html[data-lab-theme="daylight"] .brand-style-panel__badge { background: #f0f3f6; border: 0; color: #647180; padding: 5px 8px; font-weight: 500; }
html[data-lab-theme="daylight"] .brand-style-panel__hint { color: var(--lab-muted); margin: 8px 0 18px; font-size: 12px; }
html[data-lab-theme="daylight"] .brand-style-panel__groups { gap: 14px; }
html[data-lab-theme="daylight"] .brand-style-panel__group { padding: 14px; background: #f6f8fa; border: 1px solid #e7ebf0; border-radius: 14px; }
html[data-lab-theme="daylight"] .brand-style-panel__group.is-enabled { border-color: #7893f0; background: #f2f5ff; }
html[data-lab-theme="daylight"] .brand-style-panel__toggle { color: #344456; font-size: 13px; }
html[data-lab-theme="daylight"] .brand-style-panel__toggle input { accent-color: var(--lab-blue); }
html[data-lab-theme="daylight"] .brand-style-panel__label { color: #5d6b7b; font-weight: 600; }
html[data-lab-theme="daylight"] .brand-style-panel__hex { color: #687583; font-variant-numeric: tabular-nums; }
html[data-lab-theme="daylight"] .brand-style-panel__color { background: white; border: 1px solid #cfd6df; box-shadow: 0 2px 4px #202c3a06; }
html[data-lab-theme="daylight"] .brand-style-panel__color::-webkit-color-swatch { border: 1px solid #202c3a12; }
html[data-lab-theme="daylight"] .brand-style-panel__select { background: #fff; border-color: #cfd7e2; color: var(--lab-ink); padding-inline: 10px; }
html[data-lab-theme="daylight"] .brand-style-panel__preview { background: #edf0f4; color: #344456; border-radius: 7px; }

/* A calendar tile identifies the day even when its header is portaled to body. */
html[data-lab-theme="daylight"] .day-schedule { margin-top: 0; }
html[data-lab-theme="daylight"] .day-item { border: 2px solid #111; border-radius: 17px; background: #f4f5f7; }
html[data-lab-theme="daylight"] .day-item + .day-item { margin-top: 18px; }
html[data-lab-theme="daylight"] .day-heading { min-height: 72px; gap: 11px; padding: 12px; border: 0; border-radius: 14px; background: #111; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; }
html[data-lab-theme="daylight"] .day-heading::before { content: attr(data-day-number); display: grid; place-items: center; flex: 0 0 40px; height: 42px; border-radius: 9px; border-top: 5px solid #c7ced7; background: #fff; color: #111; font-size: 22px; line-height: 1; font-weight: 800; }
html[data-lab-theme="daylight"] .day-heading[aria-expanded="true"] { background: #111; border-radius: 14px 14px 0 0; color: #fff; }
html[data-lab-theme="daylight"] .day-heading.day-is-today::before { border-top-color: #ffaf71; }
html[data-lab-theme="daylight"] .day-today-kicker { color: #ffbe83; }
html[data-lab-theme="daylight"] .day-heading.day-is-pinned { border-radius: 0 0 16px 16px; box-shadow: 0 8px 24px #11243b26; padding-top: max(12px, env(safe-area-inset-top)); }
html[data-lab-theme="daylight"] .day-heading:disabled { opacity: 1; }
html[data-lab-theme="daylight"] .day-count { color: #fff; background: #383838; border-radius: 6px; font-size: 12px; min-width: 23px; text-align: center; }
html[data-lab-theme="daylight"] .day-chevron { color: #c8c8c8; }
html[data-lab-theme="daylight"] .day-body { padding: 12px; }
html[data-lab-theme="daylight"] :is(.day-actions,.day-downloads) { gap: 7px; padding: 0; background: transparent; border: 0; border-radius: 0; }
html[data-lab-theme="daylight"] .day-action { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 9px 7px; background: #fff; border: 1px solid #cbd1d9; border-radius: 10px; color: #202c3a; font-size: 12px; line-height: 1.25; font-weight: 650; box-shadow: 0 2px 4px #202c3a08; }
html[data-lab-theme="daylight"] .day-action::before { content: "+"; flex: 0 0 12px; font-size: 18px; line-height: 1; font-weight: 400; }
html[data-lab-theme="daylight"] .day-action:nth-child(2) { background: var(--lab-blue); border-color: var(--lab-blue); color: #fff; }
html[data-lab-theme="daylight"] .day-action:disabled { background: #f2f4f6; color: #8792a0; border-color: #e7ebef; opacity: 1; box-shadow: none; }
html[data-lab-theme="daylight"] .day-action:nth-child(2):disabled { background: #e5ebfa; color: #7184b1; border-color: #d4def4; }
html[data-lab-theme="daylight"] .day-composer-host .story-composer { margin-top: 16px; padding-top: 1px; border-top: 1px solid #d8dde4; }
html[data-lab-theme="daylight"] .day-downloads { margin-top: 7px; }
html[data-lab-theme="daylight"] .day-download { min-height: 44px; padding: 2px 4px; background: #111; border: 1px solid #111; color: #fff; font-size: 12px; font-weight: 650; border-radius: 10px; }
html[data-lab-theme="daylight"] .day-download.is-published { background: #20834b; color: #fff; border-color: #20834b; }
html[data-lab-theme="daylight"] .day-download.is-published::before { content: "✓"; margin-right: 7px; }
html[data-lab-theme="daylight"] .day-download:disabled { opacity: 1; background: #f5f6f7; color: #929ba7; border-color: #e7ebef; }
html[data-lab-theme="daylight"] .day-next { margin-top: 12px; border: 1px dashed #b5c3d3; border-radius: 14px; background: #eef1f5; color: #354d67; font-size: 14px; font-weight: 600; min-height: 54px; }
html[data-lab-theme="daylight"] .day-next::before { content: "+"; margin-right: 9px; font-size: 19px; font-weight: 400; }
html[data-lab-theme="daylight"] .day-error { color: #a23c43; }
html[data-lab-theme="daylight"] .day-action-note { color: #5d6875; }

/* Each stage gets a white surface; template artwork itself is never themed. */
html[data-lab-theme="daylight"] .template-picker { padding: 18px 12px 8px; margin: 20px 0; background: #fff; border: 1px solid var(--lab-line); border-radius: 22px; }
html[data-lab-theme="daylight"] .template-picker .step { margin-bottom: 5px; color: #738295; font-size: 10px; letter-spacing: .1em; font-weight: 650; }
html[data-lab-theme="daylight"] .template-picker h2 { color: var(--lab-ink); font-size: 24px; letter-spacing: -.8px; margin-bottom: 16px; }
html[data-lab-theme="daylight"] .template-carousel { gap: 12px; }
html[data-lab-theme="daylight"] .template-card { flex-basis: clamp(146px, 28vw, 196px); border: 2px solid #e7ebef; border-radius: 15px; padding: 6px 6px 12px; background: #f9fafb; color: var(--lab-ink); box-shadow: none; }
html[data-lab-theme="daylight"] .template-card img { border-radius: 9px; }
html[data-lab-theme="daylight"] .template-card strong { margin-top: 11px; font-size: 13px; font-weight: 700; }
html[data-lab-theme="daylight"] .template-card span { margin-top: 5px; color: #738093; font-size: 11px; }
html[data-lab-theme="daylight"] .template-card.is-active { border-color: var(--lab-blue); background: #eff3ff; box-shadow: 0 0 0 1px #3159e819; }
html[data-lab-theme="daylight"] .template-card.is-active span { color: var(--lab-blue); }
html[data-lab-theme="daylight"] .template-card.is-active::after { content: "✓"; position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: var(--lab-blue); color: white; font-size: 14px; font-weight: 700; box-shadow: 0 2px 7px #1c345929; }
html[data-lab-theme="daylight"] .workspace { gap: 20px; }
html[data-lab-theme="daylight"] .upload-column { padding: 16px; border: 1px solid var(--lab-line); border-radius: 22px; background: #fff; gap: 14px; }
html[data-lab-theme="daylight"] .upload-card { min-height: 172px; padding: 20px 10px; border: 1.5px dashed #a9bde8; border-radius: 14px; background: #f4f7ff; color: var(--lab-ink); }
html[data-lab-theme="daylight"] .upload-icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; background: #e4ecff; color: var(--lab-blue); box-shadow: none; font-size: 30px; }
html[data-lab-theme="daylight"] .upload-card strong { font-size: 16px; font-weight: 700; }
html[data-lab-theme="daylight"] .upload-card small { font-size: 12px; color: #64758c; margin-top: 7px; }
html[data-lab-theme="daylight"] .source-preview { background: #f5f7fb; border-color: var(--lab-line); color: var(--lab-ink); }
html[data-lab-theme="daylight"] .text-button { color: var(--lab-blue); }
html[data-lab-theme="daylight"] .system-status { color: #637080; font-size: 12px; }
html[data-lab-theme="daylight"] .system-status.is-ready .status-dot { background: #228257; box-shadow: 0 0 0 4px #e8f5ee; }
html[data-lab-theme="daylight"] .generate-button,
html[data-lab-theme="daylight"] .day-save { min-height: 54px; border-radius: 13px; background: var(--lab-blue); box-shadow: 0 6px 16px #3159e826; color: #fff; font-size: 15px; font-weight: 700; }
html[data-lab-theme="daylight"] .generate-button:disabled,
html[data-lab-theme="daylight"] .day-save:disabled { background: #e8edf4; color: #8391a5; filter: none; opacity: 1; box-shadow: none; }
html[data-lab-theme="daylight"] .day-save { margin-top: 5px; }
html[data-lab-theme="daylight"] .story-frame { box-shadow: 0 8px 30px #2636481f; }
/* Keep selected editor tools distinct inside the light chat toolbar too. */
html[data-lab-theme="daylight"] .text-style-panel .editor-tools button:is(.is-active, [aria-pressed="true"]),
html[data-lab-theme="daylight"] .text-style-panel:has(.color-strip:not([hidden])) .editor-tools [data-tool="color"],
html[data-lab-theme="daylight"] .story-frame > div[data-template-product-ui] button[aria-pressed="true"] {
  background: #6d35cf;
  color: #fff;
  border-color: #5023a4;
  box-shadow: inset 0 0 0 2px #5023a4;
}
html[data-lab-theme="daylight"] .story-placeholder { background: linear-gradient(#29466606 1px,transparent 1px),linear-gradient(90deg,#29466606 1px,transparent 1px),#edf1f4; background-size: 24px 24px; color: #7a8999; }
html[data-lab-theme="daylight"] .story-placeholder span { color: #4c6684; border-color: #cbd6e2; background: #ffffffb3; }
html[data-lab-theme="daylight"] .generating-layer { background: #f4f7faf2; color: var(--lab-ink); }
html[data-lab-theme="daylight"] .generating-layer small { color: #64758c; }
html[data-lab-theme="daylight"] .spinner { border-color: #d4def1; border-top-color: var(--lab-blue); }

html[data-lab-theme="daylight"] .generation-cost { margin: 0; padding: 12px; border-color: #e5e9ef; border-radius: 12px; background: #f7f9fb; color: var(--lab-ink); }
html[data-lab-theme="daylight"] .generation-cost__total { color: var(--lab-ink); }
html[data-lab-theme="daylight"] :is(.generation-cost__status,.generation-cost__subtotal,.generation-cost__note,.generation-cost__model,.generation-cost__fx-note,.generation-cost__infrastructure-note,.generation-cost__references,.generation-cost__term,.generation-cost__label) { color: #637184; }
html[data-lab-theme="daylight"] .generation-cost__summary,
html[data-lab-theme="daylight"] .generation-cost__link { color: #3159bf; }
html[data-lab-theme="daylight"] .generation-cost__details,
html[data-lab-theme="daylight"] .generation-cost__row { border-color: #dfe5ed; }
html[data-lab-theme="daylight"] .generation-cost .generation-cost__input { background: #fff; border-color: #cfd7e2; color: var(--lab-ink); }
html[data-lab-theme="daylight"] .generation-cost__warnings { color: #946317; }
html[data-lab-theme="daylight"] .generation-cost__validation { color: #b33943; }
html[data-lab-theme="daylight"] .message { background: #fff5f4; color: #8b303b; border-color: #e7b9bf; box-shadow: 0 8px 28px #57373c24; }

html[data-lab-theme="daylight"] :is(.brand-style-panel input,.brand-style-panel select,.template-card,.upload-card,.generate-button,.day-heading,.day-action,.day-download,.day-next,.day-save,.generation-cost__input,.generation-cost__summary):focus-visible { outline: 3px solid #3159e8; outline-offset: 3px; }
@media (hover: hover) {
  html[data-lab-theme="daylight"] :is(.day-action,.generate-button,.day-save):not(:disabled):hover { background: var(--lab-blue-hover); color: #fff; }
  html[data-lab-theme="daylight"] .template-card:not(.is-active):hover { border-color: #b4c3da; background: #f2f5f9; }
  html[data-lab-theme="daylight"] .upload-card:hover { border-color: #6383d4; background: #edf2ff; }
  html[data-lab-theme="daylight"] .day-next:not(:disabled):hover { background: #e4eaf2; }
}
@media (min-width: 760px) {
  html[data-lab-theme="daylight"] .brand-style-panel__groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-lab-theme="daylight"] .brand-style-panel__hint { max-width: 620px; }
  html[data-lab-theme="daylight"] :is(.day-actions,.day-downloads) { grid-template-columns: repeat(3,minmax(0,180px)); }
}
@media (max-width: 720px) {
  html[data-lab-theme="daylight"] .brand-style-panel { padding: 16px; }
  html[data-lab-theme="daylight"] .lab-plan-title { margin-top: 24px; }
  html[data-lab-theme="daylight"] .upload-column { padding: 14px; }
}
@media (max-width: 360px) {
  html[data-lab-theme="daylight"] .lab-studio-label { font-size: 8px; padding: 6px; }
  html[data-lab-theme="daylight"] .brand-style-panel { padding: 13px; }
  html[data-lab-theme="daylight"] .brand-style-panel__group { padding: 11px; }
  html[data-lab-theme="daylight"] .day-heading { font-size: 13px; gap: 8px; }
  html[data-lab-theme="daylight"] .day-heading::before { flex-basis: 34px; height: 38px; font-size: 20px; }
  html[data-lab-theme="daylight"] .day-body { padding: 8px; }
  html[data-lab-theme="daylight"] :is(.day-actions,.day-downloads) { padding: 0; gap: 5px; }
  html[data-lab-theme="daylight"] .day-action { font-size: 11px; padding-inline: 4px; }
  html[data-lab-theme="daylight"] .day-download { font-size: 11px; }
}

/* Mango Studio — opt-in presentation. Remove data-lab-design to return to daylight.
   Keep mobile canvas geometry and all template-specific styles in their own modules. */
html[data-lab-design="mango-studio"] {
  background: #f8f6f2;
  color: #242421;
  --lab-ink: #242421;
  --lab-muted: #77756e;
  --lab-line: #e5e0d7;
  --lab-blue: #ff981f;
  --lab-blue-hover: #f38a10;
  --studio-mango: #ff981f;
  --studio-paper: #fff;
  --mango-loader-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20128%20128%22%20width%3D%22128%22%20height%3D%22128%22%20role%3D%22img%22%20aria-label%3D%22%C5%81adowanie%20%E2%80%94%20CosmoMango%22%3E%0A%20%20%3Cstyle%3E%0A%20%20%20%20.cmLoaderStatic%20%7B%20display%3A%20none%3B%20%7D%0A%20%20%20%20%40media%20(prefers-reduced-motion%3A%20reduce)%20%7B%0A%20%20%20%20%20%20.cmLoaderMoving%20%7B%20display%3A%20none%3B%20%7D%0A%20%20%20%20%20%20.cmLoaderStatic%20%7B%20display%3A%20inline%3B%20%7D%0A%20%20%20%20%7D%0A%20%20%3C%2Fstyle%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3ClinearGradient%20id%3D%22cmLoaderMango%22%20x1%3D%220.05%22%20y1%3D%220%22%20x2%3D%220.9%22%20y2%3D%221%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23FFC85A%22%2F%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220.52%22%20stop-color%3D%22%23FF9A2E%22%2F%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F26B1D%22%2F%3E%0A%20%20%20%20%3C%2FlinearGradient%3E%0A%20%20%20%20%3CclipPath%20id%3D%22cmLoaderFront%22%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%22-300%22%20y%3D%2270%22%20width%3D%22800%22%20height%3D%22500%22%20transform%3D%22rotate(-24%2062%2070)%22%2F%3E%0A%20%20%20%20%3C%2FclipPath%3E%0A%20%20%20%20%3C!--%20The%20two%20semicircular%20arcs%20are%20the%20original%20rx%3D58%2C%20ry%3D25%20ellipse%2C%0A%20%20%20%20%20%20%20%20%20rotated%20-24%20degrees%20about%20(62%2C70)%2C%20starting%20at%20ellipse%20angle%20140deg.%20--%3E%0A%20%20%20%20%3Cpath%20id%3D%22cmLoaderOrbit%22%20d%3D%22M27.94677943%20102.75193655%20A58%2025%20-24%200%201%2096.05322057%2037.24806345%20A58%2025%20-24%200%201%2027.94677943%20102.75193655%22%2F%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Cellipse%20cx%3D%2262%22%20cy%3D%2270%22%20rx%3D%2258%22%20ry%3D%2225%22%20transform%3D%22rotate(-24%2062%2070)%22%20fill%3D%22none%22%20stroke%3D%22%237A5CFF%22%20stroke-width%3D%224.5%22%20stroke-opacity%3D%220.45%22%2F%3E%0A%20%20%3C!--%20One%20satellite%2C%20painted%20behind%20the%20planet%20and%20then%20on%20the%20front%20orbit%20half.%20--%3E%0A%20%20%3Cg%20class%3D%22cmLoaderMoving%22%20fill%3D%22%237A5CFF%22%3E%0A%20%20%20%20%3Ccircle%20r%3D%227%22%3E%0A%20%20%20%20%20%20%3CanimateMotion%20dur%3D%222.4s%22%20begin%3D%220s%22%20repeatCount%3D%22indefinite%22%20calcMode%3D%22paced%22%3E%0A%20%20%20%20%20%20%20%20%3Cmpath%20href%3D%22%23cmLoaderOrbit%22%2F%3E%0A%20%20%20%20%20%20%3C%2FanimateMotion%3E%0A%20%20%20%20%3C%2Fcircle%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cg%20transform%3D%22translate(62%2070)%20scale(0.76)%20translate(-62%20-70)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M36%2026C60%2014%2096%2030%20102%2060C108%2090%2090%20110%2064%20110C38%20110%2022%2092%2020%2068C18%2048%2024%2034%2036%2026Z%22%20fill%3D%22url(%23cmLoaderMango)%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M37%2025C42%2010%2058%203%2072%206C69%2020%2056%2028%2041%2029Z%22%20fill%3D%22%237A5CFF%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cellipse%20cx%3D%2262%22%20cy%3D%2270%22%20rx%3D%2258%22%20ry%3D%2225%22%20transform%3D%22rotate(-24%2062%2070)%22%20fill%3D%22none%22%20stroke%3D%22%237A5CFF%22%20stroke-width%3D%224.5%22%20clip-path%3D%22url(%23cmLoaderFront)%22%2F%3E%0A%20%20%3Cg%20class%3D%22cmLoaderMoving%22%20fill%3D%22%237A5CFF%22%20clip-path%3D%22url(%23cmLoaderFront)%22%3E%0A%20%20%20%20%3Ccircle%20r%3D%227%22%3E%0A%20%20%20%20%20%20%3CanimateMotion%20dur%3D%222.4s%22%20begin%3D%220s%22%20repeatCount%3D%22indefinite%22%20calcMode%3D%22paced%22%3E%0A%20%20%20%20%20%20%20%20%3Cmpath%20href%3D%22%23cmLoaderOrbit%22%2F%3E%0A%20%20%20%20%20%20%3C%2FanimateMotion%3E%0A%20%20%20%20%3C%2Fcircle%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Ccircle%20class%3D%22cmLoaderStatic%22%20cx%3D%2227.94677943%22%20cy%3D%22102.75193655%22%20r%3D%227%22%20fill%3D%22%237A5CFF%22%2F%3E%0A%3C%2Fsvg%3E");
  --mango-static-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20128%20128%22%20width%3D%22128%22%20height%3D%22128%22%20role%3D%22img%22%20aria-label%3D%22CosmoMango%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3ClinearGradient%20id%3D%22cmLogoMango%22%20x1%3D%220.05%22%20y1%3D%220%22%20x2%3D%220.9%22%20y2%3D%221%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23FFC85A%22%2F%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220.52%22%20stop-color%3D%22%23FF9A2E%22%2F%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F26B1D%22%2F%3E%0A%20%20%20%20%3C%2FlinearGradient%3E%0A%20%20%20%20%3CclipPath%20id%3D%22cmLogoFront%22%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%22-300%22%20y%3D%2270%22%20width%3D%22800%22%20height%3D%22500%22%20transform%3D%22rotate(-24%2062%2070)%22%2F%3E%0A%20%20%20%20%3C%2FclipPath%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Cellipse%20cx%3D%2262%22%20cy%3D%2270%22%20rx%3D%2258%22%20ry%3D%2225%22%20transform%3D%22rotate(-24%2062%2070)%22%20fill%3D%22none%22%20stroke%3D%22%237A5CFF%22%20stroke-width%3D%224.5%22%20stroke-opacity%3D%220.45%22%2F%3E%0A%20%20%3Cg%20transform%3D%22translate(62%2070)%20scale(0.76)%20translate(-62%20-70)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M36%2026C60%2014%2096%2030%20102%2060C108%2090%2090%20110%2064%20110C38%20110%2022%2092%2020%2068C18%2048%2024%2034%2036%2026Z%22%20fill%3D%22url(%23cmLogoMango)%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M37%2025C42%2010%2058%203%2072%206C69%2020%2056%2028%2041%2029Z%22%20fill%3D%22%237A5CFF%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cellipse%20cx%3D%2262%22%20cy%3D%2270%22%20rx%3D%2258%22%20ry%3D%2225%22%20transform%3D%22rotate(-24%2062%2070)%22%20fill%3D%22none%22%20stroke%3D%22%237A5CFF%22%20stroke-width%3D%224.5%22%20clip-path%3D%22url(%23cmLogoFront)%22%2F%3E%0A%20%20%3Ccircle%20cx%3D%2227.94677943%22%20cy%3D%22102.75193655%22%20r%3D%227%22%20fill%3D%22%237A5CFF%22%2F%3E%0A%3C%2Fsvg%3E");
  --studio-icon-post: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%228.5%22%20r%3D%221.5%22%2F%3E%3Cpath%20d%3D%22m21%2015-5-5L5%2021%22%2F%3E%3C%2Fsvg%3E");
  --studio-icon-story: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20stroke-dasharray%3D%223%203%22%2F%3E%3C%2Fsvg%3E");
  --studio-icon-reel: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m10%208%206%204-6%204V8Z%22%2F%3E%3C%2Fsvg%3E");
  --studio-icon-download: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");
}
html[data-lab-design="mango-studio"] body { background: #f8f6f2; }
html[data-lab-design="mango-studio"] .app-shell { background: #fff; }
html[data-lab-design="mango-studio"] .topbar { min-height: 74px; padding-bottom: 18px; border-bottom: 1px solid #e8e4de; gap: 8px; }
html[data-lab-design="mango-studio"] .studio-logo { width: 44px; height: 44px; flex: 0 0 44px; }
html[data-lab-design="mango-studio"] .topbar h1 { font-size: 20px; font-weight: 600; letter-spacing: -.7px; line-height: 1.15; }
.studio-nav, .studio-intro, .studio-preview-heading { display: none; }
html[data-lab-design="mango-studio"] .studio-nav { display: flex; align-items: center; justify-content: center; gap: 32px; margin-inline: auto; }
html[data-lab-design="mango-studio"] .studio-nav-link { padding: 12px 0; border-bottom: 2px solid transparent; color: #242421; font-size: 14px; font-weight: 400; text-decoration: none; }
html[data-lab-design="mango-studio"] .studio-nav-link.is-current { border-bottom-color: #ff981f; }
html[data-lab-design="mango-studio"] .lab-studio-label { margin-left: 0; padding: 0; border: 0; background: transparent; color: #797167; font-size: 12px; font-weight: 400; letter-spacing: .06em; }
html[data-lab-design="mango-studio"] .studio-intro { display: block; margin: 30px 0 22px; }
html[data-lab-design="mango-studio"] .studio-kicker { margin: 0 0 9px; color: #a55700; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
html[data-lab-design="mango-studio"] .studio-intro h2 { margin: 0; font-size: clamp(28px,3.5vw,42px); line-height: 1.17; letter-spacing: -1.55px; font-weight: 650; }
html[data-lab-design="mango-studio"] .studio-intro h2 span { color: #9c9083; font-weight: 500; }
html[data-lab-design="mango-studio"] .studio-intro-note { margin: 11px 0 0; font-size: 14px; line-height: 1.5; color: #6a655f; font-weight: 400; }

/* The optional brand kit is a compact, keyboard-accessible native disclosure. */
html[data-lab-design="mango-studio"] .brand-style-panel { margin-top: 0; padding: 0; border: 1px solid #e1dbd0; border-radius: 8px; box-shadow: none; background: #fff; }
html[data-lab-design="mango-studio"] .brand-style-panel__header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 28px; min-height: 62px; padding: 14px 18px; cursor: pointer; list-style: none; }
html[data-lab-design="mango-studio"] .brand-style-panel__header::-webkit-details-marker { display: none; }
html[data-lab-design="mango-studio"] .brand-style-panel__header::marker { content: ""; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-name { display: flex; align-items: center; gap: 8px; }
html[data-lab-design="mango-studio"] .brand-style-panel .brand-style-panel__title { font-size: 14px; font-weight: 500; letter-spacing: -.2px; }
html[data-lab-design="mango-studio"] .brand-style-panel__badge { padding: 0; background: transparent; color: #777168; font-size: 12px; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-preview { display: flex; align-items: center; gap: 26px; min-width: 0; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-colors { display: flex; align-items: center; flex-shrink: 0; gap: 7px; padding-right: 26px; border-right: 1px solid #e8e3d9; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-swatch { width: 25px; height: 25px; border: 1px solid #d9d5cc; border-radius: 50%; box-shadow: inset 0 1px 4px #ffffff60; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-font { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 170px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-font::before { content: "Aa"; font-size: 24px; line-height: 1; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-edit { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; }
html[data-lab-design="mango-studio"] .brand-style-panel__summary-edit::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
html[data-lab-design="mango-studio"] .brand-style-panel__disclosure[open] .brand-style-panel__summary-edit::after { transform: rotate(225deg); margin-top: 3px; }
html[data-lab-design="mango-studio"] .brand-style-panel__disclosure[open] .brand-style-panel__header { border-bottom: 1px solid #ebe6dc; }
html[data-lab-design="mango-studio"] .brand-style-panel__hint { margin: 16px 18px; color: #777267; }
html[data-lab-design="mango-studio"] .brand-style-panel__groups { margin: 0 18px 18px; gap: 14px; }
html[data-lab-design="mango-studio"] .brand-style-panel__group { border-color: #ebe5da; background: #faf8f4; border-radius: 10px; }
html[data-lab-design="mango-studio"] .brand-style-panel__group.is-enabled { border-color: #edb56c; background: #fff7e9; }
html[data-lab-design="mango-studio"] .brand-style-panel__toggle { color: #39372f; }
html[data-lab-design="mango-studio"] .brand-style-panel__toggle input { accent-color: #242421; }
html[data-lab-design="mango-studio"] :is(.brand-style-panel__label,.brand-style-panel__hex) { color: #777267; }
html[data-lab-design="mango-studio"] :is(.brand-style-panel__color,.brand-style-panel__select) { border-color: #ddd6ca; }
html[data-lab-design="mango-studio"] .brand-style-panel__preview { background: #f0ede6; color: #39372f; }

/* Each day is one complete black-framed unit, separated by generous page space. */
html[data-lab-design="mango-studio"] .lab-plan-title { margin: 26px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
html[data-lab-design="mango-studio"] .day-item { border: 2px solid #242421; border-radius: 11px; background: #fff; box-shadow: 0 5px 0 #2424210a; }
html[data-lab-design="mango-studio"] .day-item + .day-item { margin-top: 32px; }
html[data-lab-design="mango-studio"] .day-heading { min-height: 68px; padding: 11px 18px; gap: 14px; background: #242421; color: #fff; border-radius: 8px; font-size: 15px; font-weight: 450; }
html[data-lab-design="mango-studio"] .day-heading[aria-expanded="true"] { background: #242421; border-radius: 8px 8px 0 0; }
html[data-lab-design="mango-studio"] .day-heading::before { flex-basis: 40px; height: 42px; border-radius: 5px; border-top: 0; color: #242421; font-size: 24px; font-weight: 600; background: linear-gradient(#fff,#f2f1ed); }
html[data-lab-design="mango-studio"] .day-heading.day-is-today::before { border-top: 0; }
html[data-lab-design="mango-studio"] .day-today-kicker { color: #ffab39; font-size: 12px; font-weight: 500; }
html[data-lab-design="mango-studio"] .day-chevron { color: #d7d3cb; }
html[data-lab-design="mango-studio"] .day-count { background: #4b493f; color: #fff; }
html[data-lab-design="mango-studio"] .day-heading.day-is-pinned { background: #242421; border-radius: 0 0 8px 8px; box-shadow: 0 5px 15px #2424211a; padding-top: max(11px, env(safe-area-inset-top)); }
html[data-lab-design="mango-studio"] .day-body { padding: 18px; }
html[data-lab-design="mango-studio"] :is(.day-actions,.day-downloads) { gap: 8px; }
html[data-lab-design="mango-studio"] .day-action { min-height: 44px; background: #faf9f7; border-color: #eeeae4; border-radius: 6px; color: #3e3a32; box-shadow: none; font-weight: 400; font-size: 14px; }
html[data-lab-design="mango-studio"] .day-action:nth-child(2) { background: linear-gradient(110deg,#ffa52e,#ff941d); border-color: #f3921c; color: #171714; font-weight: 500; }
html[data-lab-design="mango-studio"] .day-action::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: var(--studio-icon-post) center / contain no-repeat; -webkit-mask: var(--studio-icon-post) center / contain no-repeat; }
html[data-lab-design="mango-studio"] .day-action:nth-child(2)::before { mask-image: var(--studio-icon-story); -webkit-mask-image: var(--studio-icon-story); }
html[data-lab-design="mango-studio"] .day-action:nth-child(3)::before { mask-image: var(--studio-icon-reel); -webkit-mask-image: var(--studio-icon-reel); }
html[data-lab-design="mango-studio"] .day-save::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: var(--studio-icon-download) center / contain no-repeat; -webkit-mask: var(--studio-icon-download) center / contain no-repeat; }
html[data-lab-design="mango-studio"] .day-action:disabled { background: #f1eee8; color: #817c72; border-color: #e5e0d6; }
html[data-lab-design="mango-studio"] .day-action:nth-child(2):disabled { background: #f4e5d0; color: #8a7b66; border-color: #ecdbc2; }
html[data-lab-design="mango-studio"] .day-download { min-height: 44px; background: linear-gradient(110deg,#ffa52e,#ff941d); border-color: #f3921c; border-radius: 6px; color: #171714; font-weight: 500; }
html[data-lab-design="mango-studio"] .day-download.is-published { background: #20834b; border-color: #20834b; color: #fff; }
html[data-lab-design="mango-studio"] .day-download:disabled { background: #f1eee8; border-color: #e5e0d6; color: #817c72; }
html[data-lab-design="mango-studio"] .day-downloads { margin-top: 8px; }
html[data-lab-design="mango-studio"] .day-composer-host .story-composer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8e2d7; }
html[data-lab-design="mango-studio"] .day-next { margin-top: 28px; min-height: 46px; border: 1px solid #97948c; border-radius: 6px; background: #fff; color: #242421; font-size: 14px; font-weight: 400; }
html[data-lab-design="mango-studio"] .day-action-note { color: #756b5d; }
html[data-lab-design="mango-studio"] .day-close { min-height: 36px; padding: 7px 12px; margin-top: 20px; border: 0; border-radius: 6px; background: transparent; color: #69625a; font-size: 12px; box-shadow: none; font-weight: 400; }

/* The creator uses existing controls and real template previews, with quieter framing. */
html[data-lab-design="mango-studio"] .template-picker { margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; }
html[data-lab-design="mango-studio"] .template-picker .step { margin-bottom: 6px; color: #8a7b65; font-size: 9px; letter-spacing: .13em; }
html[data-lab-design="mango-studio"] .template-picker h2 { margin-bottom: 14px; font-size: 16px; letter-spacing: -.25px; font-weight: 500; }
html[data-lab-design="mango-studio"] .template-carousel { gap: 16px; }
html[data-lab-design="mango-studio"] .template-card { flex-basis: clamp(126px,23vw,144px); padding: 3px 3px 8px; background: transparent; border-color: transparent; border-radius: 6px; }
html[data-lab-design="mango-studio"] .template-card img { border: 1px solid #e5e1da; border-radius: 6px; }
html[data-lab-design="mango-studio"] .template-card strong { margin-top: 9px; padding-inline: 0; font-size: 13px; letter-spacing: -.15px; font-weight: 400; text-align: center; }
html[data-lab-design="mango-studio"] .template-card span { display: none; }
html[data-lab-design="mango-studio"] .template-card.is-active { background: transparent; border-color: transparent; box-shadow: none; }
html[data-lab-design="mango-studio"] .template-card.is-active img { border-color: #ff981f; box-shadow: 0 0 0 2px #ff981f; }
html[data-lab-design="mango-studio"] .template-card.is-active span { color: #916021; }
html[data-lab-design="mango-studio"] .template-card.is-active::after { top: 10px; right: 10px; width: 25px; height: 25px; background: #ff981f; color: #fff; font-size: 14px; box-shadow: 0 2px 5px #3a2d1426; }
html[data-lab-design="mango-studio"] .workspace { gap: 20px; }
html[data-lab-design="mango-studio"] .upload-column { padding: 0; border: 0; border-radius: 0; background: transparent; gap: 10px; align-content: start; }
html[data-lab-design="mango-studio"] .upload-card { grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center; justify-items: start; min-height: 62px; padding: 9px 12px; background: #fff; border: 1px solid #ded8cc; border-radius: 7px; text-align: left; }
html[data-lab-design="mango-studio"] .upload-icon { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; border: 1px dashed #c4bbb0; background: #fff; color: #50483e; border-radius: 5px; font-size: 24px; }
html[data-lab-design="mango-studio"] .upload-card strong { align-self: end; font-size: 14px; font-weight: 400; }
html[data-lab-design="mango-studio"] .upload-card small { grid-column: 2; align-self: start; margin: 0; color: #8a7b66; font-size: 12px; }
html[data-lab-design="mango-studio"] .upload-card #upload-photo-hint { font-size: 14px; line-height: 1.35; color: #66533f; }
html[data-lab-design="mango-studio"] .source-preview { grid-template-columns: 42px minmax(0,1fr); padding: 9px 12px; border-radius: 7px; gap: 12px; background: #fff; border-color: #ded8cc; }
html[data-lab-design="mango-studio"] .source-preview img { width: 42px; height: 42px; border-radius: 4px; }
html[data-lab-design="mango-studio"] .source-preview strong { font-size: 14px; font-weight: 400; }
html[data-lab-design="mango-studio"] .source-preview .text-button { margin-top: 4px; font-size: 12px; font-weight: 400; }
html[data-lab-design="mango-studio"] .text-button { color: #946025; }
html[data-lab-design="mango-studio"] .system-status { order: 3; justify-content: center; color: #777067; font-size: 12px; }
html[data-lab-design="mango-studio"] #generation-cost { order: 4; }
html[data-lab-design="mango-studio"] .generate-button,
html[data-lab-design="mango-studio"] .day-save { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; background: linear-gradient(110deg,#ffa52e,#ff941d); color: #171714; border-radius: 6px; box-shadow: inset 0 1px 0 #ffffff40; font-size: 14px; font-weight: 500; }
html[data-lab-design="mango-studio"] .day-save { background: #242421; color: #fff; }
html[data-lab-design="mango-studio"] .studio-button-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-lab-design="mango-studio"] .studio-preview-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1px; color: #242421; font-size: 14px; font-weight: 500; }
html[data-lab-design="mango-studio"] .studio-preview-heading span:last-child { color: #777168; font-size: 12px; font-weight: 400; }
html[data-lab-design="mango-studio"] .result-column { gap: 10px; }
html[data-lab-design="mango-studio"] .generate-button:disabled,
html[data-lab-design="mango-studio"] .day-save:disabled { background: #ece7df; color: #918677; box-shadow: none; }
html[data-lab-design="mango-studio"] .story-placeholder { background: #f1eee7; background-size: auto; color: #91887a; }
html[data-lab-design="mango-studio"] .story-placeholder span { border-color: #d5ccbd; background: #faf8f3; color: #827157; }
html[data-lab-design="mango-studio"] .generating-layer { background: #fcfaf6f2; color: #242421; }
html[data-lab-design="mango-studio"] .generating-layer small { color: #827767; }
html[data-lab-design="mango-studio"] .spinner { width: 72px; height: 72px; border: 0; border-radius: 0; background: var(--mango-loader-image) center / contain no-repeat; animation: none; }
html[data-lab-design="mango-studio"] .system-status:not(.is-ready):not(.is-error) .status-dot { width: 24px; height: 24px; border-radius: 0; background: var(--mango-loader-image) center / contain no-repeat; box-shadow: none; }
.mango-loading::before, .generation-cost__status[aria-busy="true"]::before { content: ""; display: inline-block; width: 26px; height: 26px; margin-right: 6px; vertical-align: middle; background: var(--mango-loader-image, url("/assets/brand/cosmomango-loader.svg")) center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) {
  .mango-loading::before, .generation-cost__status[aria-busy="true"]::before { background-image: var(--mango-static-image, url("/assets/brand/cosmomango-logo.svg")); }
}
html[data-lab-design="mango-studio"] .generation-cost { padding: 10px 0 0; border: 0; border-top: 1px solid #eee8df; border-radius: 0; background: transparent; }
html[data-lab-design="mango-studio"] .generation-cost__heading { font-size: 12px; font-weight: 400; color: #777168; }
html[data-lab-design="mango-studio"] :is(.generation-cost__summary,.generation-cost__link) { color: #8c5d29; }
html[data-lab-design="mango-studio"] :is(.generation-cost__status,.generation-cost__subtotal,.generation-cost__note,.generation-cost__model,.generation-cost__fx-note,.generation-cost__infrastructure-note,.generation-cost__references,.generation-cost__term,.generation-cost__label) { color: #817565; }
html[data-lab-design="mango-studio"] :is(.generation-cost__details,.generation-cost__row) { border-color: #e5ded2; }
html[data-lab-design="mango-studio"] .generation-cost .generation-cost__input { border-color: #ded6c9; }
html[data-lab-design="mango-studio"] :is(.studio-nav-link,.brand-style-panel__header,.brand-style-panel input,.brand-style-panel select,.template-card,.upload-card,.generate-button,.day-heading,.day-action,.day-download,.day-next,.day-save,.day-close,.generation-cost__input,.generation-cost__summary):focus-visible { outline: 3px solid #9a611d; outline-offset: 3px; }
@media (hover: hover) {
  html[data-lab-design="mango-studio"] :is(.day-action,.generate-button,.day-save):not(:disabled):hover { background: #f38a10; color: #171714; }
  html[data-lab-design="mango-studio"] .template-card:not(.is-active):hover { background: transparent; border-color: transparent; }
  html[data-lab-design="mango-studio"] .template-card:not(.is-active):hover img { border-color: #b0a496; box-shadow: 0 0 0 1px #b0a496; }
  html[data-lab-design="mango-studio"] .upload-card:hover { background: #fffbf2; border-color: #c19455; }
  html[data-lab-design="mango-studio"] .day-next:not(:disabled):hover { background: #eee8dd; }
  html[data-lab-design="mango-studio"] .brand-style-panel__header:hover { background: #fcfaf6; border-radius: 12px; }
}
@media (min-width: 960px) {
  html[data-lab-design="mango-studio"] .day-body:has(.story-composer:not([hidden])) { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,310px); grid-template-rows: auto auto auto auto 1fr auto; column-gap: 28px; align-items: start; }
  html[data-lab-design="mango-studio"] .day-body > .day-materials { grid-column: 1; grid-row: 1; }
  html[data-lab-design="mango-studio"] .day-body > .day-action-note { grid-column: 1; grid-row: 3; }
  html[data-lab-design="mango-studio"] .day-composer-host,
  html[data-lab-design="mango-studio"] .story-composer:not([hidden]),
  html[data-lab-design="mango-studio"] .story-composer > .workspace { display: contents; }
  html[data-lab-design="mango-studio"] .story-composer > .template-picker { grid-column: 1; grid-row: 4; min-width: 0; margin: 20px 0 8px; }
  html[data-lab-design="mango-studio"] .workspace > .upload-column { grid-column: 1; grid-row: 5; min-width: 0; }
  html[data-lab-design="mango-studio"] .workspace > .result-column { grid-column: 2; grid-row: 1 / 6; min-width: 0; padding-left: 20px; border-left: 1px solid #eeebe5; }
  html[data-lab-design="mango-studio"] .story-composer > .day-close { grid-column: 1 / -1; grid-row: 6; justify-self: center; margin-top: 12px; }
}
@media (min-width: 760px) {
  html[data-lab-design="mango-studio"] .app-shell { width: min(calc(100% - 48px),1120px); margin: 24px auto; padding: 24px 40px 36px; border: 1px solid #e3ded6; border-radius: 18px; box-shadow: 0 8px 28px #3a302b05; }
  html[data-lab-design="mango-studio"] .topbar { margin: -24px -40px 0; padding: 16px 40px; }
}
@media (max-width: 720px) {
  html[data-lab-design="mango-studio"] .topbar { min-height: 64px; gap: 10px; padding-bottom: 14px; }
  html[data-lab-design="mango-studio"] .topbar h1 { font-size: 20px; }
  html[data-lab-design="mango-studio"] .studio-nav { display: none; }
  html[data-lab-design="mango-studio"] .lab-studio-label { margin-left: auto; padding: 0 5px; font-size: 12px; }
  html[data-lab-design="mango-studio"] .studio-intro { margin: 22px 4px 18px; }
  html[data-lab-design="mango-studio"] .studio-intro h2 { font-size: 30px; letter-spacing: -1px; }
  html[data-lab-design="mango-studio"] .studio-intro h2 span { display: block; }
  html[data-lab-design="mango-studio"] .studio-intro-note { max-width: 32ch; font-size: 14px; }
  html[data-lab-design="mango-studio"] .brand-style-panel__header { grid-template-columns: minmax(0,1fr) auto auto; gap: 20px; min-height: 64px; padding: 12px 16px; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-name { display: grid; gap: 4px; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-preview { gap: 0; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-colors { padding: 0; border: 0; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-swatch { width: 28px; height: 28px; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-font { display: none; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-edit { font-size: 0; }
  html[data-lab-design="mango-studio"] .brand-style-panel__summary-edit::after { transform: rotate(-45deg); }
  html[data-lab-design="mango-studio"] .brand-style-panel__groups { margin: 0 12px 12px; }
  html[data-lab-design="mango-studio"] .brand-style-panel__hint { margin: 14px 12px; font-size: 11px; }
  html[data-lab-design="mango-studio"] .lab-plan-title { margin: 26px 2px 13px; font-size: 20px; }
  html[data-lab-design="mango-studio"] .day-heading { padding: 11px 12px; gap: 10px; font-size: 14px; min-height: 68px; }
  html[data-lab-design="mango-studio"] .day-heading::before { flex-basis: 37px; height: 40px; font-size: 24px; }
  html[data-lab-design="mango-studio"] .day-body { padding: 12px; }
  html[data-lab-design="mango-studio"] .day-item + .day-item { margin-top: 28px; }
  html[data-lab-design="mango-studio"] .day-action { gap: 4px; padding-inline: 3px; font-size: 12px; }
  html[data-lab-design="mango-studio"] :is(.day-actions,.day-downloads) { gap: 6px; }
  html[data-lab-design="mango-studio"] .day-download { font-size: 11px; }
  html[data-lab-design="mango-studio"] .day-composer-host .story-composer { margin-top: 16px; padding-top: 18px; }
  html[data-lab-design="mango-studio"] .upload-column { padding: 0; }
}
@media (max-width: 380px) {
  html[data-lab-design="mango-studio"] .day-action { font-size: 11px; gap: 3px; }
  html[data-lab-design="mango-studio"] .day-action::before { width: 16px; height: 16px; flex-basis: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-lab-design="mango-studio"] { --mango-loader-image: var(--mango-static-image); }
  html[data-lab-design="mango-studio"] :is(.day-action,.day-download,.day-next,.day-save,.day-close,.brand-style-panel__group) { transition: none; }
}

/* One shared three-column grid: dividers follow the tallest material list. */
html[data-lab-theme="daylight"] .day-materials :is(.day-actions,.day-downloads) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 16px; padding: 0 8px; }


/* One shared day presentation, including the mobile pinned heading. */
html .day-schedule .day-item { border: 0; border-radius: 18px; background: transparent; box-shadow: none; }
html .day-schedule .day-item + .day-item { margin-top: 0; }
html .day-heading[data-state] {
  --day-card: #fff; --day-ink: #293e32;
  min-height: 68px; padding: 10px; gap: 9px; border: 1px solid #e3e9e4;
  border-radius: 17px; background: var(--day-card); color: var(--day-ink);
  font-family: inherit; font-size: 13px; line-height: 1.25; font-weight: 600;
  box-shadow: 0 2px 5px #203c2c03;
}
html .day-heading[data-state][data-state="ready"],
html .day-heading[data-state][data-state="published"] { --day-card: #c7e8cd; --day-ink: #1f492e; border-color: #abd7b5; }
html .day-heading[data-state][data-state="unavailable"] { --day-card: #fff6eb; --day-ink: #69533a; }
html .day-heading[data-state][data-state="overdue"] { --day-card: #fcf0ed; --day-ink: #814c40; border-color: #f1dcd6; }
html .day-heading[data-state].day-is-today { border-color: #40985b; box-shadow: inset 0 0 0 1px #40985b; }
html .day-heading[data-state][aria-expanded="true"] { border-radius: 17px; background: var(--day-card); color: var(--day-ink); }
html .day-heading[data-state]::before { content: none; display: none; }
html .day-heading[data-state] .day-number { display: grid; place-items: center; width: 40px; height: 43px; flex: 0 0 40px; min-width: 0; border: 0; border-radius: 12px; background: #f0f4ef; color: #304c39; font-size: 23px; line-height: 1; font-weight: 650; }
html .day-heading[data-state].day-is-today .day-number { background: #d7edda; color: #23603a; }
html .day-heading .day-today-kicker { display: inline-block; margin: 2px 0 0; padding: 0; border-radius: 0; background: none; color: #23723c; font-size: 8px; line-height: 1.3; font-weight: 700; letter-spacing: .04em; }
html .day-heading .day-today-kicker[hidden] { display: none; }
html .day-heading :is(.day-stat-value,.day-count) { min-width: 0; padding: 0; border: 0; background: none; color: inherit; font-size: 14px; line-height: 1; font-weight: 600; }
html .day-heading .day-stat { background: #ffffff80; color: #285535; }
html .day-heading[data-state="empty"] .day-stat { background: #f3f6f2; color: #7b8a7f; }
html .day-heading .day-chevron { color: inherit; opacity: .6; font-size: 15px; }
html .day-heading[data-state].day-is-pinned { background: var(--day-card); color: var(--day-ink); border-radius: 0 0 17px 17px; padding-top: max(10px, env(safe-area-inset-top)); box-shadow: 0 5px 18px #183b2420; }
html .day-schedule .day-next { min-height: 48px; margin-top: 16px; padding: 12px; border: 1px dashed #cbd8ce; border-radius: 16px; background: #fafcf9; color: #526e5c; font-size: 13px; font-weight: 500; }
html .day-schedule .day-next::before { font-size: 16px; margin-right: 6px; }
html .day-schedule .day-body { padding: 12px 0 18px; }
html .day-schedule .day-action { height: auto; min-height: 50px; padding: 10px 6px; border: 1px solid #dce7df; border-radius: 12px; background: #f2f7f3; color: #2a5c3d; font-size: 12px; line-height: 1.4; }
html .day-schedule .day-materials::before, html .day-schedule .day-materials::after { display: none; }
html .day-schedule .day-materials :is(.day-actions,.day-downloads) { gap: 8px; padding: 0; }
html .day-schedule .day-download { height: auto; min-height: 58px; padding: 9px 5px; border-color: #e2e9e3; border-radius: 10px; background: #fff; color: #3f5b48; line-height: 1.4; }
.day-material-action { display: block; }
.day-material-family { display: block; margin-top: 5px; font-size: 10px; line-height: 1.35; color: #738077; overflow-wrap: anywhere; }
html .day-schedule .day-preview-publish { border-color: #22643b; background: #22643b; color: #fff; }
.day-date { font-size: 16px; letter-spacing: -.02em; }
@media (max-width: 479px) { .day-date { font-size: 0; } .day-date::after { font-size: 16px; } }
@media (max-width: 350px) {
 html .day-heading[data-state] { gap: 5px; padding: 8px; }
 html .day-heading[data-state] .day-number { width: 32px; flex-basis: 32px; height: 40px; font-size: 21px; }
 html .day-heading :is(.day-stat-value,.day-count) { font-size: 13px; }
}
html .day-schedule .day-action:nth-child(2) { background: #e5f0e8; border-color: #c5ddcc; color: #285d3c; }
html .day-schedule .day-action:not(:disabled):hover { background: #dcece1; color: #244f34; }
html .day-schedule .day-materials .day-downloads { grid-auto-flow: row dense; }
html .day-schedule .day-download[data-kind="post"] { grid-column: 1; }
html .day-schedule .day-download[data-kind="story"] { grid-column: 2; }
html .day-schedule .day-download[data-kind="reel"] { grid-column: 3; }
html .day-schedule button:focus-visible, html .day-heading.day-is-pinned:focus-visible { outline-color: #40985b; }
