/* ---------------------------------------------------------------------------
 * Lumina public preview — overlay styles.
 *
 * Two layers live here:
 *  1. the original public-preview chrome (watermark, status, queue notice), and
 *  2. the V2 operations layer (bottom dock, support entry, nudge card, notices).
 *
 * Everything colour-related reads the application's own theme variables
 * (--surface-*, --info-*, --warning-*, --success-*, --shadow-card), so light and
 * dark themes follow the host app instead of being detected again here.
 * ------------------------------------------------------------------------- */

html[data-lumina-public-preview="true"] [data-lumina-public-hidden="true"] {
  display: none !important;
}

/* The operations layer sets `display` on its own containers, which would
 * override the user agent's `[hidden]` rule; keep `hidden` authoritative for
 * every node we own (collapsed rows, absent QR codes, closed menus, ...). */
[data-lumina-public-root] [hidden],
[data-lumina-public-root][hidden] {
  display: none !important;
}

/* ===== preview identity ================================================== */

#lumina-public-preview-watermark {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

#lumina-public-preview-watermark > span {
  color: rgb(51 65 85);
  font-size: 64px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.055;
  transform: rotate(-24deg);
}

html.dark #lumina-public-preview-watermark > span {
  color: rgb(226 232 240);
}

#lumina-public-preview-status {
  position: fixed;
  right: 12px;
  /* Lifted above the operations row (height published by the overlay) so the
   * status note and the filing line can never overlap. */
  bottom: calc(var(--lumina-ops-dock-height, 0px) + 8px);
  z-index: 30;
  max-width: min(448px, calc(100vw - 24px));
  color: rgb(100 116 139 / 65%);
  font-size: 12px;
  line-height: 16px;
  text-align: right;
  pointer-events: none;
  user-select: none;
}

#lumina-public-preview-status strong {
  display: block;
  font-weight: 600;
}

#lumina-public-preview-status [data-lumina-status-quota] {
  display: block;
}

html.dark #lumina-public-preview-status {
  color: rgb(148 163 184 / 60%);
}

/* ===== queue notice ====================================================== */

#lumina-public-queue-notice {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(720px, calc(100vw - 24px));
  padding: 9px 12px;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: color-mix(
    in srgb,
    var(--surface-panel-strong) 88%,
    var(--warning-soft)
  );
  font-size: 13px;
  line-height: 18px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 14%);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

#lumina-public-queue-notice[data-active="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

#lumina-public-queue-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--warning-border);
  box-shadow: 0 0 0 4px var(--warning-soft);
  animation: lumina-public-queue-pulse 1.4s ease-in-out infinite;
}

#lumina-public-queue-notice[data-state="done"] #lumina-public-queue-dot {
  background: var(--success-border);
  box-shadow: 0 0 0 4px var(--success-soft);
  animation: none;
}

#lumina-public-queue-message {
  min-width: 0;
  font-weight: 600;
}

#lumina-public-queue-elapsed {
  flex: 0 0 auto;
  opacity: 0.78;
}

@keyframes lumina-public-queue-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===== bottom operations dock =========================================== */

/*
 * The dock is a real flex item of the converter's centre column: it reserves
 * layout height instead of floating over the canvas, and it is horizontally
 * inset by the two dock widths so it never slides under the parameter panels.
 * It is deliberately outside [data-testid="scene3d-container"], so the browser
 * hides it while the viewer is fullscreen and restores it on exit.
 */
#lumina-ops-dock {
  /*
   * Out of flow on purpose. The application's scene is sized by its own resize
   * logic, and as a flex sibling the row made that shrink non-deterministic —
   * measuring states ranged from "row entirely below the viewport" to "scene
   * shrunk twice". Absolute positioning inside the column's reserved strip keeps
   * the layout a single-writer affair: the column's padding-bottom (set by
   * publishDockHeight) is the only thing that reserves space, and it is also
   * what makes the scene's `height: 100%` shrink so the canvas is never covered.
   *
   * No band of its own: an earlier version painted a full-column background with
   * a top border, which read as a square-cornered strip whose ends sat abruptly
   * in the middle of the page, next to panels that are all rounded cards. The
   * row is now just the cards themselves, on the application's own background.
   */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  color: var(--surface-text-muted);
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
}

/* Sponsor entry only lands in the column when the action panel anchor is gone. */
[data-lumina-public-root="support"][data-lumina-ops-fallback] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--lumina-ops-dock-height, 0px) + 8px);
  z-index: 21;
  padding: 0 16px;
}

#lumina-ops-dock[hidden] {
  display: none;
}

/*
 * Phone widths: the application stacks its own panels over the centre column, and
 * the column's `z-10` is a stacking context the row cannot escape. The script then
 * reparents the row to the workspace container (same box, same absolute offsets)
 * where this puts it above those panels. Safe because the row keeps
 * `pointer-events: none` and only its own controls opt back in.
 */
#lumina-ops-dock[data-stacked="above-panels"] {
  z-index: 40;
}

/*
 * The centre column is marked, not inset. It used to carry a padding-bottom equal
 * to the operations row so the row reserved real space instead of covering the
 * scene — but the strip that left under the canvas was the application's own
 * surface showing through (#f8fafc against the canvas's gradient edge), i.e. a
 * full-width white band. The row floats over the scene now; the column is only
 * marked so the script and the diagnostics can find it.
 */
[data-lumina-ops-centre] {
  box-sizing: border-box;
}

.lumina-ops-dock__main {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  height: var(--lumina-ops-main-row-height, 84px);
  min-height: 0;
}

#lumina-ops-dock[data-variant="collapsed"] .lumina-ops-dock__main {
  height: auto;
  min-height: 40px;
}

.lumina-ops-dock__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--lumina-ops-legal-row-height, 22px);
  font-size: 11px;
  line-height: 14px;
  opacity: 0.9;
}

.lumina-ops-dock__legal a,
.lumina-ops-dock__legal button {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.lumina-ops-dock__legal a:hover,
.lumina-ops-dock__legal button:hover {
  text-decoration: underline;
}

.lumina-ops-dock__legal [data-lumina-legal-filing] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/*
 * Panel-shaped on purpose: same 8px radius, same panel surface and the same
 * border-only elevation as the application's own panels (its `--shadow-control`
 * resolves to `none`), so the operations row reads as part of the UI instead of
 * a floating strip. It sits directly on the page background — the row has no
 * band of its own.
 */
.lumina-ops-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--surface-outline);
  border-radius: 8px;
  background: var(--surface-panel-strong);
  pointer-events: none;
}

/*
 * Clickable cards: the community and sponsor cards are each one link, and the
 * whole card is the tap target — no copy button, no nested "learn more" button.
 * `padding-right` reserves room for the trailing chevron, which is positioned
 * absolutely so the card keeps the fixed height of the main row.
 */
.lumina-ops-card--link {
  position: relative;
  padding-right: 24px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.lumina-ops-card--link:hover {
  border-color: var(--info-border);
  background: var(--surface-panel-strong);
}

.lumina-ops-card--link:focus-visible {
  outline: 2px solid var(--info-border);
  outline-offset: 2px;
}

/* Without an href there is nothing to open, so the card goes inert instead of
   staying a link that leads nowhere. */
#lumina-ops-dock a.lumina-ops-card:not([href]) {
  pointer-events: none;
  cursor: default;
}

/* Decoration, never a nested control: the operator's own CTA text plus a
   chevron. A campaign without a CTA simply shows the chevron. */
.lumina-ops-card__tail {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.lumina-ops-card__cta {
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.9;
}

.lumina-ops-card__arrow {
  font-size: 15px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 120ms ease, transform 120ms ease;
}

.lumina-ops-card--link:hover .lumina-ops-card__arrow,
.lumina-ops-card--link:focus-visible .lumina-ops-card__arrow {
  opacity: 0.9;
  transform: translateX(2px);
}

.lumina-ops-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.lumina-ops-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.lumina-ops-card__title {
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: var(--surface-text, inherit);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumina-ops-card__text {
  font-size: 11px;
  line-height: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/*
 * The row is `pointer-events: none` so it never blocks the canvas; everything a
 * visitor can actually operate opts back in here.
 *
 * This must not be scoped to individual class names: an earlier version enabled
 * only `.lumina-ops-card__actions > *`, while the community and ad rows carry
 * their own classes, so the join link, the copy button, the QR toggle and the
 * ad link all stayed inert — every one computed to `pointer-events: none`
 * on the live application, i.e. the whole main row was unclickable.
 *
 * The community and sponsor cards are `<a>` elements themselves today, so this
 * one rule is also what makes both whole cards tappable.
 */
#lumina-ops-dock a,
#lumina-ops-dock button,
#lumina-ops-dock [role="button"],
#lumina-ops-dock input,
#lumina-ops-dock select,
#lumina-ops-dock textarea,
#lumina-ops-dock summary,
#lumina-ops-dock [tabindex]:not([tabindex="-1"]) {
  pointer-events: auto;
}

.lumina-ops-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* community segment ------------------------------------------------------ */

.lumina-ops-community {
  flex: 0 0 var(--lumina-ops-community-width, 224px);
  max-width: 45%;
  flex-direction: column;
  /* `stretch`, not `flex-start`: with fit-content sizing the body collapsed to
     the widest child (107px once the button row was removed), which clipped the
     title and the body copy — the English strings did not fit at all. */
  align-items: stretch;
  justify-content: center;
  gap: 0;
  /* No chevron on this card (the platform tile is the affordance), so the
     trailing inset the other card reserves for it is not needed here — and the
     centring below stays symmetrical. */
  padding-right: 10px;
  overflow: hidden;
}

#lumina-ops-dock[data-variant="compact"] .lumina-ops-community {
  flex-basis: 168px;
}

/* The platform tile: the official glyph in white on the platform's brand
   colour, i.e. the app icon. 22px is the ceiling here — the main row is a fixed
   84px and, in English at the compact width, the copy already fills it, so the
   tile must fit inside the identity line it shares with the platform name. */
.lumina-ops-community__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  /* Chrome / Edge paint the brand colour; the mark itself stays white. */
  background: var(--surface-outline);
}

/* Two-level selector on purpose: the shared `.lumina-ops-icon` rule below sets
   14px for inline marks and wins on source order at equal specificity. */
.lumina-ops-community__badge .lumina-ops-community__badge-glyph {
  width: 14px;
  height: 14px;
  display: block;
}

/*
 * `stretch` + `text-align: center` on purpose: centred text needs the children
 * to be full width, otherwise they size to fit-content and a too-long title
 * sticks out past the card and gets clipped mid-word by the card's own
 * `overflow: hidden` instead of being ellipsized.
 *
 * `justify-content: center` is the vertical half of "centred": in a column flex
 * container the shared `.lumina-ops-card__body` rule (`flex: 1 1 auto`) stretches
 * this box to the card's full height, and its content would sit at the top —
 * measured 9px above the title against 17px below the identity line. The sponsor
 * card does not need this because it lays out in a row, where `align-items:
 * center` already centres its body.
 */
.lumina-ops-community__body {
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

/* One line only: the main row is a fixed 84px, and in English at the compact
   width the two-line description left no room for the platform tile. The
   sponsor card keeps its two-line body. */
.lumina-ops-community .lumina-ops-card__text {
  -webkit-line-clamp: 1;
}

.lumina-ops-community__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  opacity: 0.85;
}

.lumina-ops-community__qr {
  align-self: center;
  margin-top: 4px;
  max-width: 132px;
  max-height: 132px;
  border-radius: 8px;
  border: 1px solid var(--surface-outline);
  background: var(--surface-panel-strong);
}

.lumina-ops-community__qr[hidden] {
  display: none;
}

/* sponsor slot ----------------------------------------------------------- */

.lumina-ops-ad {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 10px;
}

.lumina-ops-ad > .lumina-ops-card__tail {
  position: static;
  transform: none;
  flex: 0 0 auto;
}

#lumina-ops-dock[data-variant="compact"] .lumina-ops-ad .lumina-ops-card__cta {
  display: none;
}

.lumina-ops-ad-slot {
  display: flex;
  flex: 1 1 0;
  gap: 4px;
  min-width: 0;
  min-height: 0;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] {
  overflow: hidden;
  background: #fffdf2;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-ad__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__body,
.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__tail {
  position: relative;
  z-index: 1;
  color: #181818;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__body {
  flex: 0 1 70%;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__eyebrow { display: none; }
.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__title {
  color: #181818;
  font-size: 12px;
  line-height: 16px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lumina-ops-ad[data-campaign-id="snapmaker-lumina-vote-2026"] .lumina-ops-card__text { color: #343434; }

.lumina-ops-seasonal {
  position: relative;
  flex: 0 0 clamp(230px, 42%, 360px);
  overflow: hidden;
  background: #0d292e;
  color: #fff;
}

.lumina-ops-seasonal__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lumina-ops-seasonal__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 65%;
  min-width: 0;
}

.lumina-ops-seasonal__title {
  font-size: 12px;
  line-height: 16px;
}

.lumina-ops-seasonal__text {
  color: #ffe1a2;
  font-size: 11px;
  line-height: 15px;
}

#lumina-ops-dock[data-variant="compact"] .lumina-ops-seasonal:not([data-kind="paid"]),
#lumina-ops-dock[data-variant="collapsed"] .lumina-ops-seasonal {
  display: none !important;
}

.lumina-ops-seasonal[data-kind="paid"] {
  flex: 1 1 50%;
  min-width: 0;
  background: #fafafa;
  color: #222;
  text-decoration: none;
}
.lumina-ops-seasonal[data-kind="paid"] .lumina-ops-seasonal__image { object-fit: contain; }
.lumina-ops-seasonal[data-kind="paid"] .lumina-ops-seasonal__copy { width: 42%; max-width: 42%; }
.lumina-ops-seasonal[data-kind="paid"] .lumina-ops-seasonal__title { font-size: 11px; line-height: 14px; }
.lumina-ops-seasonal[data-kind="paid"] .lumina-ops-seasonal__text { color: #555; font-size: 9px; line-height: 12px; }
.lumina-ops-ad-slot[data-dual="true"] .lumina-ops-ad { flex: 1 1 50%; min-width: 0; }
.lumina-ops-ad-slot[data-dual="true"] .lumina-ops-ad__image { max-width: 70px; }

.lumina-cailab-logo { display: none; }
[data-brand="cailab"] {
  position: relative;
  overflow: hidden;
  background: #eeeaf4 !important;
  color: #24212b !important;
}
[data-brand="cailab"] .lumina-cailab-logo {
  display: block;
  position: absolute;
  right: 8px;
  top: 3px;
  width: 64px;
  height: 23px;
  background: url('/lumina-public/assets/cailab-brand-source-20260930.webp') -378px -13px / 450px 600px no-repeat;
  mix-blend-mode: multiply;
  z-index: 2;
}
.lumina-ops-ad[data-brand="cailab"] .lumina-ops-ad__image,
.lumina-ops-seasonal[data-brand="cailab"] .lumina-ops-seasonal__image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  border: 0;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.lumina-ops-ad[data-brand="cailab"] .lumina-ops-card__body {
  position: relative;
  z-index: 1;
  flex: 0 1 48%;
  max-width: 48%;
}
.lumina-ops-ad[data-brand="cailab"] .lumina-ops-card__text { display: none; }
.lumina-ops-ad[data-brand="cailab"] .lumina-ops-card__title {
  white-space: normal;
  overflow: visible;
  font-size: 11px;
  line-height: 14px;
}
.lumina-ops-ad[data-brand="cailab"] .lumina-ops-card__tail { display: none; }
.lumina-ops-seasonal[data-brand="cailab"] .lumina-ops-seasonal__copy {
  width: 44%;
  max-width: 44%;
}
.lumina-ops-seasonal[data-brand="cailab"] .lumina-ops-seasonal__text {
  font-size: 9px;
  line-height: 12px;
  color: #5e566d;
}

header [data-lumina-brand-notice] { position: relative; }
.lumina-service-announcement {
  box-sizing: border-box;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  container: lumina-header-notice / inline-size;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 6px;
  min-width: 0;
  padding: 3px 6px;
  z-index: 40;
  background: var(--surface-panel-strong);
  border: 1px solid var(--surface-outline);
  border-radius: 4px;
  font-size: 11px;
  line-height: 15px;
  color: var(--surface-text-muted);
  letter-spacing: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.lumina-service-announcement[hidden] { display: none !important; }
.lumina-service-announcement__icon { color: var(--info-border); font-weight: 700; grid-column: 1; grid-row: 1 / 3; }
.lumina-service-announcement[data-level="warning"] {
  color: rgb(185 28 28);
  background: var(--error-soft);
  border: 1px solid var(--error-border);
  border-radius: 4px;
  padding: 3px 6px;
}
html.dark .lumina-service-announcement[data-level="warning"] { color: rgb(252 165 165); }
.lumina-service-announcement[data-level="warning"] .lumina-service-announcement__icon { color: inherit; }
.lumina-service-announcement__title { grid-column: 2; grid-row: 1; }
.lumina-service-announcement__body { grid-column: 2 / 4; grid-row: 2; min-width: 0; }
.lumina-service-announcement__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lumina-service-announcement__body { white-space: normal; overflow-wrap: anywhere; }
.lumina-service-announcement__time { font-variant-numeric: tabular-nums; grid-column: 3; grid-row: 1; white-space: nowrap; }
.lumina-service-announcement__short { display: none; grid-column: 2 / 4; grid-row: 1 / 3; white-space: nowrap; overflow: hidden; }
.lumina-service-announcement:focus-visible { outline: 1px solid var(--info-border); outline-offset: 3px; }
.lumina-service-announcement[data-has-details="true"] { cursor: pointer; }
.lumina-service-announcement__details { grid-column: 2 / 4; grid-row: 3; text-decoration: underline; }
.lumina-service-announcement[data-has-details="true"] .lumina-service-announcement__body { display: none; }
.lumina-service-announcement[data-has-details="true"] .lumina-service-announcement__title { grid-column: 2 / 4; }
.lumina-service-announcement[data-has-details="true"] .lumina-service-announcement__time { grid-column: 2 / 4; grid-row: 2; }
.lumina-service-announcement[data-has-details="true"] .lumina-service-announcement__short { white-space: normal; overflow-wrap: anywhere; }
.lumina-announcement-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--surface-outline);
  border-radius: 8px;
  background: var(--surface-panel-strong);
  color: var(--surface-text-muted);
  font: 14px/1.6 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}
.lumina-announcement-dialog[open] { display: flex; flex-direction: column; }
.lumina-announcement-dialog::backdrop { background: var(--surface-scrim); }
.lumina-announcement-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-outline);
}
.lumina-announcement-dialog__header h2 { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.lumina-announcement-dialog__header button {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 32px;
  border: 1px solid var(--surface-outline);
  border-radius: 4px;
  background: var(--surface-panel-strong);
  color: var(--surface-text-muted);
  font: inherit;
  cursor: pointer;
}
.lumina-announcement-dialog__header button:focus-visible { outline: 2px solid var(--info-border); outline-offset: 2px; }
.lumina-announcement-dialog__body { overflow-y: auto; min-height: 0; padding: 16px 24px 24px; }
.lumina-announcement-dialog__body p { margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lumina-announcement-dialog__deadline { font-weight: 600; }
.lumina-announcement-dialog__sections { margin: 0; padding-left: 20px; }
.lumina-announcement-dialog__sections li { padding-left: 4px; }
.lumina-announcement-dialog__sections h3 { margin: 0 0 6px; font-size: 14px; }
.lumina-announcement-dialog__footer { color: var(--surface-text-muted); }

.lumina-service-announcement[data-placement="band"] {
  position: relative;
  inset: auto;
  transform: none;
  width: auto;
  margin: 4px 12px;
}

@container lumina-header-notice (max-width: 180px) {
  .lumina-service-announcement__title,
  .lumina-service-announcement__body,
  .lumina-service-announcement__time { display: none; }
  .lumina-service-announcement__short { display: block; }
}

@container lumina-header-notice (max-width: 48px) {
  .lumina-service-announcement__short { display: none; }
}

.lumina-ops-ad__image {
  flex: 0 0 auto;
  max-width: 148px;
  max-height: calc(var(--lumina-ops-main-row-height, 84px) - 20px);
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid var(--surface-outline);
}

.lumina-ops-ad[data-kind="paid"] .lumina-ops-card__eyebrow {
  color: var(--warning-border);
}

.lumina-ops-ad[data-kind="project_notice"] .lumina-ops-card__eyebrow {
  color: var(--surface-text, inherit);
  opacity: 0.75;
  letter-spacing: 0;
}

/* collapsed entry -------------------------------------------------------- */

.lumina-ops-collapsed {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--surface-outline);
  /* Same panel shape as the expanded cards: this entry replaces them. */
  border-radius: 8px;
  background: var(--surface-panel-strong);
  pointer-events: auto;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* ===== buttons ========================================================== */

.lumina-ops-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--surface-outline);
  background: var(--surface-well);
  color: inherit;
  font-size: 11px;
  line-height: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lumina-ops-button:hover {
  border-color: var(--focus-ring);
}

.lumina-ops-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.lumina-ops-button[data-tone="primary"] {
  background: var(--info-soft);
  border-color: var(--info-border);
}

.lumina-ops-button[data-tone="quiet"] {
  background: transparent;
  border-color: transparent;
  opacity: 0.85;
  text-decoration: underline;
  padding: 2px 4px;
}

/* ===== support entry (near the generate button) ========================= */

#lumina-ops-support {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--surface-divider);
  pointer-events: auto;
}

.lumina-ops-support__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lumina-ops-support__label {
  font-size: 11px;
  opacity: 0.85;
}

#lumina-ops-support[data-has-credit-card="true"] .lumina-ops-support__label {
  flex-basis: 100%;
}

/* Inline brand marks: decorative, sized to the button's text. */
.lumina-ops-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.lumina-ops-support__icon {
  display: inline-flex;
  align-items: center;
}

.lumina-ops-support__text {
  white-space: nowrap;
}

.lumina-ops-support__ext {
  opacity: 0.7;
}

/* Both support channels sit on one line, side by side. */
.lumina-ops-support__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== notices + nudge (anchored inside the centre region) ============== */

/*
 * The container is positioned from measured coordinates of the converter's
 * centre column, so a card can never cover the parameter panels or the action
 * panel — the action area sits outside the centre column by definition.
 */
#lumina-ops-notices {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

#lumina-ops-notices > * {
  pointer-events: auto;
  width: min(320px, 100%);
  max-width: 320px;
}

.lumina-ops-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--surface-card-outline);
  border-radius: 10px;
  background: var(--surface-panel-strong);
  box-shadow: 0 10px 30px rgb(15 23 42 / 18%);
  font-size: 12px;
  line-height: 16px;
}

.lumina-ops-notice[data-tone="warning"] {
  border-color: var(--warning-border);
  background: color-mix(in srgb, var(--surface-panel-strong) 92%, var(--warning-soft));
}

.lumina-ops-notice[data-tone="info"] {
  border-color: var(--info-border);
  background: color-mix(in srgb, var(--surface-panel-strong) 92%, var(--info-soft));
}

.lumina-ops-notice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.lumina-ops-notice__title {
  font-weight: 600;
  font-size: 12px;
  color: var(--surface-text, inherit);
}

.lumina-ops-notice__close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  opacity: 0.75;
}

.lumina-ops-notice__close:hover {
  opacity: 1;
}

.lumina-ops-notice[data-appearing="true"] {
  opacity: 0;
  transform: translateY(4px);
}

.lumina-ops-notice[data-appearing="false"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

/* ===== restore-the-creative-features helpers =========================== */

.lumina-ops-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  padding: 2px 6px;
  border: 1px solid var(--info-border);
  border-radius: 999px;
  background: var(--info-soft);
  color: inherit;
  font-size: 10px;
  line-height: 14px;
  opacity: 0.95;
  pointer-events: auto;
}

.lumina-ops-slicer-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--surface-text-muted);
}

/*
 * Sits directly below the action panel, in the dock's own flow, because the
 * panel itself is a fixed-height box that clips anything appended inside it.
 */
.lumina-ops-action-footer {
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.lumina-ops-action-footer:empty {
  display: none;
}

/* ===== narrow screens =================================================== */

@media (max-width: 639px) {
  #lumina-public-preview-watermark > span {
    font-size: 32px;
  }

  #lumina-public-preview-status {
    font-size: 10px;
  }

  #lumina-public-queue-notice {
    top: 68px;
    align-items: flex-start;
    width: calc(100vw - 20px);
    padding: 8px 10px;
    font-size: 12px;
    line-height: 17px;
  }

  #lumina-public-queue-elapsed {
    display: none;
  }

  #lumina-ops-notices > * {
    width: 100%;
    max-width: none;
  }

  .lumina-ops-dock__main {
    flex-direction: column;
    height: auto;
  }

  #lumina-ops-dock[data-variant] .lumina-ops-community {
    flex: 0 0 84px;
    max-width: none;
  }

  .lumina-ops-ad-slot {
    flex: 0 0 84px;
    min-height: 84px;
  }

  .lumina-ops-ad__image {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lumina-ops-notice[data-appearing="true"],
  .lumina-ops-notice[data-appearing="false"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #lumina-public-queue-dot {
    animation: none;
  }

  #lumina-public-queue-notice {
    transition: none;
  }
}
