/* Embedded Dispatch uses Office's shared palette and glass decision. Standalone
   Dispatch keeps its own design-system shell; the parent's sea remains the only sea. */
html[data-office-frame]:root:not(#_) {
  --ds-bg: var(--c-surface-page);
  --ds-surface: var(--c-surface-1);
  --ds-surface-2: var(--c-surface-2);
  --ds-surface-3: var(--c-surface-3);
  --ds-text: var(--c-text-1);
  --ds-text-2: var(--c-text-2);
  --ds-text-3: var(--c-text-2);
  --ds-border: var(--c-hairline);
  --ds-border-strong: var(--c-hairline-strong);
  --ds-accent: var(--c-primary);
  --ds-accent-strong: var(--c-primary);
  --ds-accent-text: var(--c-primary);
  --ds-accent-fg: var(--c-primary-ink);
  --ds-accent-soft: var(--c-nav-active-bg);
  --ds-accent-line: var(--c-hairline-strong);
  --ds-hover: var(--calm-fill-hover);
  --ds-selected: var(--og-sel);
  --ds-overlay: var(--c-scrim);
  --ds-control-border: var(--c-hairline-strong);
  --ds-success: var(--c-success-ink);
  --ds-warning: var(--c-warning-ink);
  --ds-danger: var(--c-danger-ink);
  --ds-info: var(--c-info-ink);
  --bg: var(--c-surface-page);
  --card: var(--c-surface-1);
  --deep: var(--c-surface-2);
  --glass: var(--og-panel);
  --text: var(--c-text-1);
  --text-mid: var(--c-text-2);
  --text-dim: var(--c-text-2);
  --border: var(--c-hairline);
  --input: var(--og-field);
  --accent: var(--c-primary);
  --accent-soft: var(--c-nav-active-bg);
  --accent-border: var(--c-hairline-strong);
}
html[data-office-frame]:root, html[data-office-frame] body,
html[data-office-frame][data-glass="solid"] body,
html[data-office-frame] .ds-shell, html[data-office-frame] .ds-content {
  background: transparent !important;
}
/* The parent shell owns the one sea, AQUIS, Dive and theme control. The framed board's own copies would paint an opaque
   rectangle over the real sea and a second AQUIS inside the content column. */
html[data-office-frame] :is(.iovo-sea-canvas, .iovo-sea-still, .iovo-sea-life, .iovo-sea-dive-btn, .iovo-rep-aquis-mark, .iovo-rep-theme-floating) {
  display: none !important;
}
html[data-office-frame] :is(.date-strip, .panel, .tech-column, .board-status, .ds-stat) {
  background: var(--og-panel);
  border-color: var(--c-glass-border);
  box-shadow: var(--og-shadow);
  -webkit-backdrop-filter: var(--og-blur-panel);
  backdrop-filter: var(--og-blur-panel);
}
html[data-office-frame] :is(input, select, textarea) {
  color: var(--c-text-1);
  background-color: var(--og-field);
  border-color: var(--c-hairline-strong);
}
html[data-office-frame] :is(.modal, .qa-drawer, select option) {
  color: var(--c-text-1);
  background: var(--og-pop-solid);
}
/* The framed board contributes its native actions to the date/header band.
   Their original document and listeners stay intact; no duplicate toolbar row. */
@media (min-width: 960px) {
  /* Only the plain framed board. The dispatch presentation (data-office-dispatch-design) moves the
     toolbar into the day strip itself, so reserving 368px there crushed the date heading to one
     letter per line (review f75d REG-5B/5F). */
  html[data-office-frame]:not([data-office-dispatch-design]) #boardApp { position: relative; }
  html[data-office-frame]:not([data-office-dispatch-design]) #boardApp > .topbar {
    position: absolute; inset: 10px 16px auto auto; z-index: 2;
    margin: 0; padding: 0; min-height: 44px;
  }
  html[data-office-frame]:not([data-office-dispatch-design]) #boardApp > .date-strip { padding-inline-end: 368px; }
}
