/* 大锤办公（projects/office）V1 珠光通透旗舰风样式 — 浅色珠光 ⇄ 深色星夜曜石 1:1 */

.office-body {
  --o-bg: #ffffff;
  --o-surface: #ffffff;
  --o-surface-inset: #f5f7fb;
  --o-surface-glass: rgba(255, 255, 255, 0.88);
  --o-ink: #0f172a;
  --o-muted: #475569;
  --o-subtle: #64748b;
  --o-faint: #94a3b8;
  --o-border: rgba(15, 23, 42, 0.08);
  --o-border-strong: rgba(15, 23, 42, 0.14);
  --o-obsidian: #111827;
  --o-obsidian-fg: #ffffff;
  --o-cobalt: #2350dc;
  --o-cobalt-soft: #eef3ff;
  --o-indigo: #4f46e5;
  --o-amber: #b45309;
  --o-danger: #dc2626;
  --o-success: #0f766e;
  --o-grid-line: rgba(15, 23, 42, 0.032);
  --o-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 34px -16px rgba(15, 23, 42, 0.09);
  --o-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06), 0 24px 48px -22px rgba(15, 23, 42, 0.14);
  --o-radius: 1.125rem;
  --o-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --o-gutter: clamp(0.9rem, 2.5vw, 1.5rem);
  --o-width: min(76rem, calc(100% - 2.25rem));

  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--o-bg);
  color: var(--o-ink);
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.office-shell {
  width: var(--o-width);
  max-width: none;
  margin-inline: auto;
}

.office-main {
  flex: 1 0 auto;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.office-body input::placeholder,
.office-body textarea::placeholder {
  font-family: "XinHammer Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: normal;
}

/* =========================================================================
   1. 60px 珠光毛玻璃顶栏
   ========================================================================= */
body.office-body > header.site-header.office-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 3.75rem;
  padding-inline: max(var(--o-gutter), calc((100% - 82rem) / 2));
  background: var(--o-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--o-border);
}

body.office-body > header.office-header .identity {
  gap: 0.6rem;
}
body.office-body > header.office-header .brand-icon {
  width: 30px;
  height: 30px;
}
body.office-body > header.office-header .wordmark {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
}
body.office-body > header.office-header .brand-name {
  padding-left: 0.6rem;
  border-left-color: var(--o-border-strong);
  font-size: 0.88rem;
  color: var(--o-muted);
}
body.office-body > header.office-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.65rem);
}
body.office-body > header.office-header nav > a {
  display: inline-flex;
  align-items: center;
  color: var(--o-muted);
  font-size: 0.92rem;
  font-weight: 560;
  padding-block: 0.3rem;
}
body.office-body > header.office-header nav > a:hover {
  color: var(--o-ink);
}
body.office-body > header.office-header nav > a::after {
  background: var(--o-obsidian);
}
.office-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  width: 34px;
  height: 34px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font-size: 0.92rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s var(--o-ease), border-color 0.18s var(--o-ease), background 0.18s var(--o-ease);
}
.office-theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 80, 220, 0.35);
}

/* =========================================================================
   2. 按钮体系（黑曜 ⇄ 珠白签名胶囊 + 磨砂白瓷次按钮）
   ========================================================================= */
.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--o-ease), box-shadow 0.2s var(--o-ease), background 0.18s var(--o-ease), border-color 0.18s var(--o-ease), color 0.18s var(--o-ease);
}
.o-btn:hover {
  transform: translateY(-1px);
}
.o-btn:active {
  transform: translateY(0);
}
.o-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.o-btn-primary {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.45);
}
.o-btn-primary:hover {
  box-shadow: 0 12px 24px -10px rgba(35, 80, 220, 0.45);
}
.o-btn-glass {
  background: rgba(255, 255, 255, 0.85);
  color: var(--o-ink);
  border-color: var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
}
.o-btn-glass:hover {
  border-color: rgba(35, 80, 220, 0.35);
  color: var(--o-cobalt);
}
.o-btn-subtle {
  background: var(--o-surface);
  color: var(--o-ink);
  border-color: var(--o-border-strong);
}
.o-btn-subtle:hover {
  border-color: rgba(35, 80, 220, 0.35);
  color: var(--o-cobalt);
}
.o-btn-subtle.is-active {
  background: rgba(35, 80, 220, 0.11);
  border-color: rgba(35, 80, 220, 0.45);
  color: var(--o-cobalt);
}
.o-btn-ghost {
  background: transparent;
  color: var(--o-muted);
  border-color: transparent;
}
.o-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--o-ink);
}
.o-btn-danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--o-danger);
  border-color: rgba(220, 38, 38, 0.28);
}
.o-btn-danger:hover {
  background: var(--o-danger);
  color: #ffffff;
}
.o-btn-sm {
  padding: 0.48rem 0.92rem;
  font-size: 0.84rem;
}
.o-btn-xs {
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
}

.o-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.34rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}
.o-badge.is-zero {
  background: rgba(15, 23, 42, 0.12);
  color: var(--o-muted);
}
.o-badge-soft {
  background: rgba(35, 80, 220, 0.12);
  color: var(--o-cobalt);
}

/* =========================================================================
   3. Band 1 · 珠光网格日光首屏（可折叠）
   ========================================================================= */
.office-hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 72% at 78% 34%, rgba(69, 120, 255, 0.12), transparent 66%),
    radial-gradient(ellipse 46% 54% at 88% 82%, rgba(255, 194, 88, 0.14), transparent 62%),
    radial-gradient(ellipse 42% 52% at 10% 18%, rgba(139, 92, 246, 0.06), transparent 64%),
    linear-gradient(128deg, #ffffff 16%, #f4f7ff 56%, #faf8ff 100%);
  border-bottom: 1px solid var(--o-border);
}
.office-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 84% 82% at 50% 42%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 84% 82% at 50% 42%, #000 30%, transparent 90%);
}
.office-hero-band > .office-shell {
  position: relative;
  z-index: 1;
}

.office-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.58rem;
}
.office-hero-compact[hidden] { display: none; }

.office-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  row-gap: clamp(0.85rem, 1.7vw, 1.35rem);
  column-gap: clamp(1.3rem, 3.2vw, 2.8rem);
  padding-block: 0.58rem clamp(1.3rem, 2.4vw, 2.05rem);
}
.office-hero-inner[hidden] { display: none; }

.office-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--o-border-strong);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--o-muted);
  white-space: nowrap;
}
.office-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2350dc, #f59e0b);
}

.office-hero-copy h1.display {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.office-hero-lead {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--o-muted);
  max-width: 38rem;
}
.office-hero-lead code {
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(35, 80, 220, 0.09);
  color: var(--o-cobalt);
  font-size: 0.88em;
}
.office-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.office-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--o-border);
}
.office-hero-metrics dt {
  font-size: 0.76rem;
  color: var(--o-subtle);
  margin-bottom: 0.16rem;
}
.office-hero-metrics dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.office-hero-metrics dd strong {
  font-size: 1rem;
  color: var(--o-ink);
}
.office-hero-metrics dd span {
  font-size: 0.78rem;
  color: var(--o-muted);
}

.office-hero-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf0ff;
}
.office-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-del-btn {
  color: var(--o-muted);
}
.dock-del-btn:hover,
.dock-del-btn.is-confirming {
  background: rgba(220, 38, 38, 0.11);
  border-color: rgba(220, 38, 38, 0.32);
  color: var(--o-danger);
}
.ann-list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--o-subtle);
}
.ann-list-bar[hidden] { display: none; }
.history-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.history-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.history-del-btn {
  border: 0;
  background: transparent;
  color: var(--o-subtle);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 6px;
}
.history-del-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  color: var(--o-danger);
}
.local-decks-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 22rem;
  overflow-y: auto;
}
.local-deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: 0.9rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.local-deck-row.is-current {
  border-color: rgba(35, 80, 220, 0.35);
  background: rgba(35, 80, 220, 0.06);
}
.local-deck-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}
.local-deck-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.local-deck-meta span {
  font-size: 0.76rem;
  color: var(--o-muted);
}
.local-deck-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.cloud-shelf-section,
.local-shelf-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.local-shelf-section {
  padding-top: 0.85rem;
  border-top: 1px solid var(--o-border);
}
.cloud-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cloud-shelf-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cloud-login-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.82rem 0.95rem;
  border-radius: 0.95rem;
  background: linear-gradient(110deg, rgba(35, 80, 220, 0.08), rgba(79, 70, 229, 0.08));
  border: 1px dashed rgba(35, 80, 220, 0.34);
  font-size: 0.84rem;
}
.cloud-login-prompt p {
  margin: 0;
  color: var(--o-muted);
  line-height: 1.5;
}
#deck-cloud-save-btn.is-synced {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}
html[data-theme="dark"] #deck-cloud-save-btn.is-synced {
  color: #34d399;
}

/* =========================================================================
   4. Band 2 · 主阅片提词与排练工作台
   ========================================================================= */
.office-workbench-band {
  padding-top: clamp(0.95rem, 1.8vw, 1.45rem);
}

.office-share-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.05rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(110deg, rgba(35, 80, 220, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(35, 80, 220, 0.22);
  font-size: 0.86rem;
}
.office-share-banner.is-expired {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.26);
}
.office-share-banner[hidden] { display: none; }
.share-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.office-progress-bar {
  margin-bottom: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 0.95rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
}
.office-progress-bar[hidden] { display: none; }
.progress-text {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--o-cobalt);
}
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--o-surface-inset);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2350dc, #4f46e5, #f59e0b);
  transition: width 0.2s ease;
}

/* 悬浮毛玻璃双层指令坞（零重叠、允许浮层菜单向下自由展开） */
.office-dock {
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
  border-radius: 1.15rem;
  background: var(--o-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
  overflow: visible;
}
.dock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.52rem 0.78rem;
}

.dock-left,
.dock-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.dock-left {
  min-width: 0;
  flex: 1 1 18rem;
  flex-wrap: nowrap;
}
.dock-left > .o-btn {
  flex-shrink: 0;
}
.dock-right {
  flex-shrink: 0;
}
.dock-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.deck-title-label {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.14rem 0.3rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.deck-title-label:hover {
  background: rgba(35, 80, 220, 0.09);
  color: var(--o-cobalt);
}
.deck-title-input {
  width: 14rem;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  border-radius: 7px;
  border: 1.5px solid var(--o-cobalt);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}
.deck-title-input[hidden] { display: none; }
.deck-source-badge {
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: rgba(35, 80, 220, 0.1);
  color: var(--o-cobalt);
  font-size: 0.73rem;
  font-weight: 650;
  flex-shrink: 0;
}

.dock-seg {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}

/* 排练计时器胶囊 */
.dock-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dock-timer.is-running {
  border-color: rgba(35, 80, 220, 0.42);
  background: rgba(35, 80, 220, 0.08);
}
.dock-timer.is-warn {
  border-color: rgba(217, 119, 6, 0.55);
  background: rgba(245, 158, 11, 0.14);
}
.dock-timer.is-overtime {
  border-color: rgba(220, 38, 38, 0.6);
  background: rgba(239, 68, 68, 0.14);
}
.timer-chip {
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 0;
  background: var(--o-surface);
  color: var(--o-muted);
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}
.timer-select {
  border: 0;
  background: transparent;
  color: var(--o-ink);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
}
.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  font-weight: 760;
  min-width: 3.4rem;
  text-align: center;
  color: var(--o-ink);
}
.dock-timer.is-warn .timer-display { color: #b45309; }
.dock-timer.is-overtime .timer-display { color: #dc2626; }
.timer-play-btn,
.timer-rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
}
.timer-play-btn {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.timer-rec-btn {
  background: transparent;
  color: var(--o-muted);
  border: 1px solid transparent;
}
.timer-rec-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.timer-rec-btn.is-armed {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.45);
  color: #dc2626;
}
.timer-rec-btn.is-recording {
  background: #dc2626;
  color: #ffffff;
  animation: pinPulse 1.1s ease-in-out infinite;
}

/* =========================================================================
   5. 主双栏舞台（左幻灯片 + 右提词/批注）
   ========================================================================= */
.office-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(20rem, 0.92fr);
  gap: 1rem;
  align-items: start;
}
.office-review-grid[hidden] { display: none; }
.office-stage-col,
.office-side-col {
  min-width: 0;
  max-width: 100%;
}

.stage-card {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  padding: 0.85rem;
  box-shadow: var(--o-shadow-sm);
}

.slide-canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--slide-ratio, 1.7778);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.22);
  container-type: inline-size;
  user-select: none;
}
.slide-canvas-frame.is-pin-mode {
  cursor: crosshair;
  outline: 2.5px solid #ef4444;
  outline-offset: 2px;
}

.slide-render-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-overlay-img, .slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-bg-img { object-fit: cover; }

.slide-el {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}
.slide-el-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35em;
  padding: calc(var(--slide-unit, 1cqw) * 0.4) calc(var(--slide-unit, 1cqw) * 0.6);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.slide-el-text.valign-middle {
  justify-content: center;
}
.slide-el-text.valign-bottom {
  justify-content: flex-end;
}
.slide-el-text p {
  margin: 0;
}
.slide-el-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-el-table {
  overflow: auto;
  border-radius: calc(var(--slide-unit, 1cqw) * 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
}
.slide-el-table table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: calc(var(--slide-unit, 1cqw) * 1.35);
  color: #0f172a;
}
.slide-el-table th, .slide-el-table td {
  padding: calc(var(--slide-unit, 1cqw) * 0.75) calc(var(--slide-unit, 1cqw) * 1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  line-height: 1.3;
}
.slide-el-table tr:first-child th,
.slide-el-table tr:first-child td {
  background: #eff4ff;
  font-weight: 700;
  color: #1e3a8a;
}

/* 画面图钉 Pin 层 */
.slide-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.slide-pin-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2.5px solid #ffffff;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s var(--o-ease);
}
.slide-pin-dot:hover,
.slide-pin-dot.is-active {
  transform: translate(-50%, -50%) scale(1.2);
}
.slide-pin-dot.is-done {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.slide-pin-dot.is-pending {
  background: #f59e0b;
  animation: pinPulse 1.2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.18); }
}

.slide-pin-hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.slide-pin-hint[hidden] { display: none; }

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.slide-counter {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 3.4rem;
  text-align: center;
}
.stage-dwell-pill {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  color: var(--o-muted);
  font-size: 0.78rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.stage-dwell-pill.is-over {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
html[data-theme="dark"] .stage-dwell-pill.is-over {
  color: #fde68a;
}

/* 缩略图搜索条 + 胶片带 */
.filmstrip-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.slide-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.8rem;
}
.slide-search-input:focus {
  outline: none;
  border-color: var(--o-cobalt);
}
.slide-search-count {
  font-size: 0.75rem;
  color: var(--o-cobalt);
  font-weight: 650;
  white-space: nowrap;
}
.slide-search-count[hidden] { display: none; }
.thumb-item.is-filtered-out {
  display: none;
}

/* 全局拖拽蒙层 + 微信存图提示 + 老浏览器 dialog 降级 + 独立观众投屏窗 */
.office-global-drop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(9, 13, 22, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.office-global-drop[hidden] { display: none; }
.global-drop-box {
  padding: 2.2rem 2.8rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 2.5px dashed #2350dc;
  text-align: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}
.global-drop-box strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}
.global-drop-box span {
  font-size: 0.9rem;
  color: #525e75;
}
.wechat-save-tip {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  font-size: 0.78rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(5, 150, 105, 0.2);
}
html[data-theme="dark"] .wechat-save-tip {
  color: #6ee7b7;
}
.office-dialog.is-fallback-open {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 180;
  display: block;
}

/* 独立观众投屏窗模式 (?audience=1) */
body.office-audience-mode {
  margin: 0;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
body.office-audience-mode > *:not(#audience-stage-root) {
  display: none !important;
}
#audience-stage-root {
  width: min(100vw, calc(100dvh * var(--slide-ratio, 1.7778)));
  aspect-ratio: var(--slide-ratio, 1.7778);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
.audience-badge-hint {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  pointer-events: none;
}

/* 缩略图胶片带 */
.filmstrip-wrap {
  margin-top: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: 1.05rem;
  padding: 0.58rem;
  box-shadow: var(--o-shadow-sm);
}
.slide-filmstrip {
  display: flex;
  gap: 0.52rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
.thumb-item {
  position: relative;
  flex: 0 0 9.6rem;
  text-align: left;
  padding: 0.36rem;
  border-radius: 0.82rem;
  border: 1.5px solid var(--o-border);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.thumb-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.48rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  margin-bottom: 0.34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.32rem 0.42rem;
}
.thumb-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-preview-title {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 黑白屏遮罩（翻页笔 B / W 键） */
.slide-screen-curtain {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.slide-screen-curtain[hidden] { display: none; }
.slide-screen-curtain.is-black {
  background: #000000;
  color: rgba(255, 255, 255, 0.52);
}
.slide-screen-curtain.is-white {
  background: #ffffff;
  color: rgba(15, 23, 42, 0.42);
}

/* 批注署名条、录音回听条、多轮排练对比、二维码卡、整稿弹窗、镜像提词 */
.ann-author-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--o-muted);
}
.ann-author-input {
  flex: 1;
  min-width: 0;
  padding: 0.34rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.8rem;
}
.ann-author-pill {
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.11);
  color: var(--o-indigo);
  font-size: 0.7rem;
  font-weight: 650;
}
html[data-theme="dark"] .ann-author-pill {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.22);
}

.analytics-audio-box,
.analytics-history-box {
  margin-bottom: 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 1rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.analytics-audio-box[hidden],
.analytics-history-box[hidden] { display: none; }
.analytics-history-box {
  margin-top: 1rem;
  margin-bottom: 0;
}
.audio-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.audio-head-row strong { font-size: 0.9rem; }
.audio-player-el {
  width: 100%;
  height: 36px;
}
.bar-audio-btn {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-cobalt);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.bar-audio-btn:hover {
  background: rgba(35, 80, 220, 0.1);
}
.history-rounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.history-round-card {
  padding: 0.68rem 0.8rem;
  border-radius: 0.85rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  font-size: 0.8rem;
}
.history-round-card strong {
  display: block;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  margin-block: 0.16rem;
}
.history-delta {
  font-size: 0.74rem;
  font-weight: 650;
}
.history-delta.is-faster { color: #059669; }
.history-delta.is-slower { color: #dc2626; }

.tp-script-scroll.is-mirrored {
  transform: scaleX(-1);
}

.dialog-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.office-dialog-narrow {
  width: min(28rem, calc(100vw - 1.5rem));
}
.share-security-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.share-sec-field {
  display: flex;
  flex-direction: column;
}
.share-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 0.9rem;
  align-items: center;
}
.share-result-left {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.share-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.share-qr-box {
  width: 136px;
  height: 136px;
  padding: 8px;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.share-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}
.share-qr-tip {
  font-size: 0.72rem;
  color: var(--o-muted);
  text-align: center;
}
.bulk-script-textarea {
  width: 100%;
  min-height: 13rem;
  resize: vertical;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
}
.passcode-error-msg {
  margin: 0;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .share-security-row,
  .share-result-grid {
    grid-template-columns: 1fr;
  }
}
.thumb-item:hover {
  border-color: rgba(35, 80, 220, 0.4);
  transform: translateY(-1px);
}
.thumb-item.is-active {
  border-color: var(--o-cobalt);
  background: rgba(35, 80, 220, 0.08);
  box-shadow: 0 0 0 2px rgba(35, 80, 220, 0.14);
}
.thumb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.26rem;
}
.thumb-num {
  font-size: 0.72rem;
  font-weight: 760;
  color: var(--o-cobalt);
}
.thumb-badges {
  display: flex;
  align-items: center;
  gap: 0.24rem;
}
.thumb-time {
  font-size: 0.68rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
}
.thumb-ann-dot {
  padding: 0.04rem 0.34rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
}
.thumb-title {
  font-size: 0.75rem;
  line-height: 1.32;
  color: var(--o-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2rem;
}

/* 右侧提词与批注面板 */
.side-panel-card {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  box-shadow: var(--o-shadow-sm);
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 31rem;
}
.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--o-border);
  border-radius: var(--o-radius) var(--o-radius) 0 0;
  background: var(--o-surface-inset);
  padding: 0.32rem;
  gap: 0.32rem;
}
.side-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.56rem 0.6rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.side-tab.is-active {
  background: var(--o-surface);
  color: var(--o-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.side-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  gap: 0.75rem;
}
.side-pane[hidden] { display: none; }

.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.notes-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
}
.notes-controls {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}
.notes-reader {
  flex: 1;
  min-height: 19rem;
  max-height: 30rem;
  overflow-y: auto;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  font-size: var(--notes-font-size, 1.08rem);
  line-height: 1.85;
  color: var(--o-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.notes-reader mark.note-hl {
  padding: 0.08em 0.32em;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.34);
  color: inherit;
  font-weight: 650;
}
.notes-empty-placeholder {
  color: var(--o-subtle);
  font-size: 0.92rem;
  line-height: 1.65;
}
.notes-editor {
  flex: 1;
  min-height: 19rem;
  resize: vertical;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  border: 1.5px solid var(--o-cobalt);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* 批注区 */
.ann-composer {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--o-border);
}
.ann-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.ann-tag-chip {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.ann-tag-chip.is-selected {
  background: var(--o-obsidian);
  border-color: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.pending-pin-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.68rem;
  border-radius: 0.65rem;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.78rem;
  color: #b45309;
  font-weight: 600;
}
.pending-pin-chip[hidden] { display: none; }

.ann-input-row {
  display: flex;
  gap: 0.45rem;
}
.ann-input {
  flex: 1;
  min-width: 0;
  padding: 0.52rem 0.8rem;
  border-radius: 0.78rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.86rem;
}
.ann-input:focus {
  outline: none;
  border-color: var(--o-cobalt);
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 21rem;
  overflow-y: auto;
}
.ann-card {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.88rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  transition: border-color 0.16s ease;
}
.ann-card.is-highlighted {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16);
}
.ann-card.is-done {
  opacity: 0.65;
}
.ann-card input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}
.ann-card-body {
  flex: 1;
  min-width: 0;
}
.ann-card-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.22rem;
}
.ann-tag-pill {
  padding: 0.1rem 0.46rem;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
}
.ann-card.is-done .ann-tag-pill {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.ann-pin-pill {
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  background: rgba(35, 80, 220, 0.1);
  color: var(--o-cobalt);
  font-size: 0.7rem;
  font-weight: 650;
}
.ann-card-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--o-ink);
  word-break: break-word;
}
.ann-card.is-done .ann-card-text {
  text-decoration: line-through;
  color: var(--o-subtle);
}
.ann-del-btn {
  border: 0;
  background: transparent;
  color: var(--o-subtle);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  font-size: 0.85rem;
}
.ann-del-btn:hover { color: var(--o-danger); }
.ann-empty {
  text-align: center;
  padding: 2rem 0.75rem;
  color: var(--o-subtle);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* =========================================================================
   6. 视图 B · 排练每页耗时分布复盘
   ========================================================================= */
.office-analytics-view {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--o-shadow-sm);
}
.office-analytics-view[hidden] { display: none; }
.analytics-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.analytics-header-row h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.analytics-header-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--o-muted);
}
.analytics-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.kpi-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.kpi-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--o-subtle);
  margin-bottom: 0.3rem;
}
.kpi-card strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--o-ink);
}
.kpi-card.is-warn strong { color: #d97706; }
.kpi-card.is-danger strong { color: #dc2626; }
.kpi-card.is-ok strong { color: #059669; }

.analytics-bars-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(7rem, 15rem) minmax(0, 1fr) 4.4rem 5.4rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--o-border);
  background: var(--o-surface);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  text-align: left;
  width: 100%;
  font: inherit;
  color: var(--o-ink);
}
.bar-row:hover {
  border-color: var(--o-cobalt);
  background: var(--o-surface-inset);
}
.bar-page {
  font-weight: 750;
  color: var(--o-cobalt);
  font-size: 0.84rem;
}
.bar-title {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--o-surface-inset);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2350dc, #4f46e5);
}
.bar-fill.is-long {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.bar-sec {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}
.bar-status {
  font-size: 0.75rem;
  font-weight: 650;
  text-align: right;
  color: var(--o-subtle);
}
.bar-status.is-long { color: #dc2626; }
.bar-status.is-good { color: #059669; }

/* =========================================================================
   7. Band 3 · 晴空微光生态收口带
   ========================================================================= */

/* =========================================================================
   8. 沉浸全屏提词剧场（深曜石无干扰）
   ========================================================================= */
.teleprompter-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #070b14;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}
.teleprompter-overlay[hidden] { display: none; }

.tp-badge {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
}
.tp-title {
  font-size: 0.95rem;
  max-width: 24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.04em;
}
.tp-timer.is-warn { color: #fbbf24; }
.tp-timer.is-overtime { color: #f87171; }

.tp-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(17rem, 0.38fr) minmax(0, 0.62fr);
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
}
.tp-visual-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
}
.tp-current-label, .tp-next-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.tp-next-wrap {
  margin-top: auto;
}
.tp-next-card {
  margin-top: 0.4rem;
  padding: 0.78rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.tp-script-col {
  min-height: 0;
  display: flex;
}
.tp-script-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(1.35rem, calc(var(--notes-font-size, 1.08rem) * 1.42), 2.5rem);
  line-height: 1.82;
  color: #f8fafc;
  white-space: pre-wrap;
}
.tp-script-scroll mark.note-hl {
  background: rgba(251, 191, 36, 0.28);
  color: #fde68a;
  padding: 0.06em 0.3em;
  border-radius: 8px;
}

.tp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.94);
}
.tp-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}
.tp-nav-btn {
  padding: 0.58rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}
.tp-nav-primary {
  background: #f8fafc;
  color: #0b0f19;
  border-color: #f8fafc;
}

/* =========================================================================
   9. 弹窗（修改清单 / 自毁短链 / 微信飞书导出）
   ========================================================================= */
.office-dialog {
  width: min(44rem, calc(100vw - 1.5rem));
  max-height: min(88dvh, 56rem);
  padding: 0;
  border: 1px solid var(--o-border-strong);
  border-radius: 1.35rem;
  background: var(--o-surface);
  color: var(--o-ink);
  box-shadow: 0 32px 70px -24px rgba(15, 23, 42, 0.38);
  overflow: hidden;
}
.office-dialog-wide {
  width: min(56rem, calc(100vw - 1.5rem));
}
.office-dialog::backdrop {
  background: rgba(9, 13, 22, 0.56);
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--o-border);
}
.dialog-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.dialog-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--o-muted);
}
.dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.dialog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 1.3rem;
  border-bottom: 1px solid var(--o-border);
  background: var(--o-surface-inset);
}
.dialog-seg {
  display: inline-flex;
  gap: 0.25rem;
}
.dialog-seg-btn {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.8rem;
  font-weight: 620;
  cursor: pointer;
}
.dialog-seg-btn.is-active {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.dialog-body {
  padding: 1.15rem 1.3rem 1.35rem;
  overflow-y: auto;
  max-height: calc(88dvh - 8rem);
}

.fix-group {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.fix-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  gap: 0.5rem;
}
.fix-group-head strong {
  font-size: 0.9rem;
}

/* 自毁短链弹窗 */
.share-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 680;
  margin-bottom: 0.5rem;
}
.retention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.retention-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1.5px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  text-align: left;
}
.retention-card strong { font-size: 0.94rem; }
.retention-card span { font-size: 0.74rem; color: var(--o-muted); }
.retention-card.is-active {
  border-color: var(--o-cobalt);
  background: rgba(35, 80, 220, 0.08);
  box-shadow: 0 0 0 2px rgba(35, 80, 220, 0.14);
}
.share-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.share-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--o-muted);
  cursor: pointer;
}
.share-check input {
  margin-top: 0.16rem;
  accent-color: var(--o-cobalt);
}
.share-create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-size-hint {
  font-size: 0.8rem;
  color: var(--o-subtle);
}
.share-result-box {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.share-result-box[hidden] { display: none; }
.share-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-ok-tag { color: #059669; font-size: 0.9rem; }
.share-exp-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 650;
}
.share-url-row {
  display: flex;
  gap: 0.45rem;
}
.share-url-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font-size: 0.84rem;
}
.share-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.my-shares-section {
  border-top: 1px solid var(--o-border);
  padding-top: 0.85rem;
}
.my-shares-section[hidden] { display: none; }
.my-shares-section h3 {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: var(--o-muted);
}
.my-shares-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.my-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.58rem 0.75rem;
  border-radius: 0.8rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  font-size: 0.82rem;
}
.my-share-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.my-share-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-share-meta span {
  font-size: 0.74rem;
  color: var(--o-subtle);
}
.my-share-btns {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* 导出弹窗 */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.export-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.05rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.export-badge {
  display: inline-block;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.export-badge-blue {
  background: rgba(35, 80, 220, 0.12);
  color: var(--o-cobalt);
}
.export-badge-green {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.export-card h3 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
}
.export-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--o-muted);
  line-height: 1.5;
}
.export-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}
.export-md-preview {
  margin: 0;
  padding: 0.72rem;
  border-radius: 0.78rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  font-size: 0.75rem;
  line-height: 1.55;
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--o-muted);
}
.export-png-preview-wrap {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--o-border-strong);
  max-height: 14rem;
  overflow-y: auto;
  background: #ffffff;
}
.export-png-preview-wrap[hidden] { display: none; }
.export-png-preview-wrap img {
  width: 100%;
  display: block;
}

/* 非阻塞 Toast（不拦截点击，仅内嵌撤销按钮可点） */
.office-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  background: #090d16;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 560;
  box-shadow: 0 14px 32px rgba(9, 13, 22, 0.3);
  max-width: calc(100vw - 2rem);
  text-align: center;
  pointer-events: none;
}
.office-toast[hidden] { display: none; }
.toast-undo-btn {
  pointer-events: auto;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.toast-undo-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
html[data-theme="dark"] .toast-undo-btn {
  border-color: rgba(11, 15, 25, 0.22);
  background: rgba(11, 15, 25, 0.1);
  color: #0b0f19;
}

/* 退后半步的轻量化生态衔接与等宽极细贴底页脚 */

.office-footer {
  margin-top: auto;
  border-top: 0;
  min-height: 0;
  padding-block: 0;
  background: transparent;
}
.office-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1rem 1.25rem;
  border-top: 1px solid var(--o-border);
  font-size: 0.8rem;
  color: var(--o-subtle);
}
.office-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: nowrap;
}
.office-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--o-muted);
  text-decoration: none;
  white-space: nowrap;
}
.office-footer a:last-child {
  margin-left: 0;
}
.office-footer a:hover {
  color: var(--o-cobalt);
}

/* =========================================================================
   9.8 极简浮层菜单（实底不透字、优先向下、贴底自动上翻）与折叠高级抽屉
   ========================================================================= */
.o-menu-host {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.o-menu-host.is-open {
  z-index: 95;
}

.o-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 96;
  min-width: 13.5rem;
  max-width: min(17rem, calc(100vw - 1.5rem));
  padding: 0.38rem;
  border-radius: 0.95rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border-strong);
  box-shadow: 0 14px 36px -8px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.o-menu-pop[hidden] { display: none; }
.o-menu-pop.is-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.o-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.o-menu-group + .o-menu-group {
  padding-top: 0.28rem;
  margin-top: 0.16rem;
  border-top: 1px solid var(--o-border);
}
.o-menu-label {
  padding: 0.18rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--o-subtle);
}
.o-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.62rem;
  border: 0;
  border-radius: 0.62rem;
  background: transparent;
  color: var(--o-ink);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 540;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.o-menu-item:hover {
  background: var(--o-surface-inset);
  color: var(--o-cobalt);
}
.o-menu-item[hidden] { display: none; }
.o-menu-item.is-danger {
  color: var(--o-danger);
}
.o-menu-item.is-danger:hover,
.o-menu-item.is-danger.is-confirming {
  background: rgba(220, 38, 38, 0.1);
  color: var(--o-danger);
  font-weight: 680;
}
.o-menu-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.34rem 0.62rem;
  font-size: 0.82rem;
  color: var(--o-muted);
}
.o-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 80, 220, 0.35);
  background: rgba(35, 80, 220, 0.09);
  color: var(--o-cobalt);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
}
.o-active-pill[hidden] { display: none; }
.o-active-pill:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.32);
  color: var(--o-danger);
}
.o-badge[hidden] { display: none; }
.deck-source-badge[hidden] { display: none; }

/* 分享高级抽屉 + 外露胶囊 + 内联署名触发 */
.share-adv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-active-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.share-adv-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.share-adv-drawer[hidden] { display: none; }
.ann-author-inline {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.ann-author-row[hidden] { display: none; }
.o-btn.is-feedback-ok {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
html[data-theme="dark"] .o-btn.is-feedback-ok {
  color: #34d399;
}
html[data-theme="dark"] .o-menu-pop {
  background: #131c2e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
.mobile-bottom-dock {
  display: none;
}

/* =========================================================================
   10. 1:1 深色模式（#0b0f19 星夜曜石）
   ========================================================================= */
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] .office-body {
  --ink: #f8fafc;
  --secondary: #a3b1c8;
  --rule: rgba(255, 255, 255, 0.09);
  --o-bg: #0b0f19;
  --o-surface: #111827;
  --o-surface-inset: #161f33;
  --o-surface-glass: rgba(11, 15, 25, 0.86);
  --o-ink: #f8fafc;
  --o-muted: #a3b1c8;
  --o-subtle: #8b9bb5;
  --o-border: rgba(255, 255, 255, 0.09);
  --o-border-strong: rgba(255, 255, 255, 0.16);
  --o-obsidian: #f8fafc;
  --o-obsidian-fg: #0b0f19;
  --o-cobalt: #60a5fa;
  --o-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.32);
  --o-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .office-body select option {
  background: #111827;
  color: #f8fafc;
}
html[data-theme="dark"] .office-footer .footer-brand {
  color: #f8fafc;
}
html[data-theme="dark"] .office-footer a {
  color: #a3b1c8;
}
html[data-theme="dark"] .office-footer a:hover {
  color: #93c5fd;
}
html[data-theme="dark"] .kpi-card.is-warn strong { color: #fbbf24; }
html[data-theme="dark"] .kpi-card.is-danger strong { color: #f87171; }
html[data-theme="dark"] .kpi-card.is-ok strong { color: #34d399; }
html[data-theme="dark"] .bar-status.is-long { color: #f87171; }
html[data-theme="dark"] .bar-status.is-good { color: #34d399; }
html[data-theme="dark"] body.office-body > header.office-header .wordmark {
  background: linear-gradient(108deg, #f8fafc 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] body.office-body > header.office-header .brand-name {
  color: #cbd5e1;
}
html[data-theme="dark"] body.office-body > header.office-header nav > a {
  color: #cbd5e1;
}
html[data-theme="dark"] body.office-body > header.office-header nav > a:hover {
  color: #ffffff;
}

html[data-theme="dark"] .office-hero-band {
  background:
    radial-gradient(ellipse 62% 72% at 78% 34%, rgba(59, 130, 246, 0.18), transparent 66%),
    radial-gradient(ellipse 46% 54% at 88% 82%, rgba(245, 158, 11, 0.12), transparent 62%),
    linear-gradient(128deg, #0b0f19 16%, #0f172a 58%, #111827 100%);
}
html[data-theme="dark"] .office-hero-band::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
html[data-theme="dark"] .office-eyebrow,
html[data-theme="dark"] .o-btn-glass {
  background: rgba(17, 24, 39, 0.88);
}

html[data-theme="dark"] .office-toast {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .toast-undo-btn {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(147, 197, 253, 0.35);
  color: #dbeafe;
}
html[data-theme="dark"] .toast-undo-btn:hover {
  background: rgba(96, 165, 250, 0.34);
}
html[data-theme="dark"] .dock-timer.is-warn .timer-display { color: #fbbf24; }
html[data-theme="dark"] .dock-timer.is-overtime .timer-display { color: #f87171; }
html[data-theme="dark"] .pending-pin-chip { color: #fde68a; }
html[data-theme="dark"] .share-exp-pill { color: #fde68a; }
html[data-theme="dark"] .ann-tag-pill { color: #fca5a5; background: rgba(239, 68, 68, 0.18); }

/* =========================================================================
   10.5 V3.0 激光笔/圈画层、备用页、行内编辑、远程同频条、手机无线翻页笔与快捷键卡
   ========================================================================= */
.slide-draw-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
.slide-canvas-frame.is-laser-mode {
  cursor: none;
}
.slide-canvas-frame.is-draw-mode {
  cursor: crosshair;
  touch-action: none;
  outline: 2.5px solid #ef4444;
  outline-offset: 2px;
}
.slide-laser-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ffffff 0%, #ff2e2e 42%, rgba(239, 68, 68, 0.85) 70%, rgba(239, 68, 68, 0) 100%);
  box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.72), 0 0 24px 8px rgba(239, 68, 68, 0.35);
  pointer-events: none;
  z-index: 9;
}
.slide-laser-dot[hidden] { display: none; }
.slide-pin-dot {
  touch-action: none;
  cursor: grab;
}
.slide-pin-dot.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.28);
  z-index: 15;
}
.thumb-item.is-skipped {
  opacity: 0.56;
  border-style: dashed;
}
.thumb-skip-tag {
  padding: 0.04rem 0.32rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.16);
  color: var(--o-muted);
  font-size: 0.64rem;
  font-weight: 700;
}
.notes-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.notes-cpm-pill {
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 620;
  cursor: pointer;
}
.notes-cpm-pill:hover {
  border-color: var(--o-cobalt);
  color: var(--o-cobalt);
}
.ann-card-text {
  cursor: text;
}
.ann-edit-input {
  width: 100%;
  padding: 0.32rem 0.52rem;
  border-radius: 0.55rem;
  border: 1.5px solid var(--o-cobalt);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.84rem;
}
.ann-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

/* 远程跨地同频领讲横条 */
.office-live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.95rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(108deg, rgba(16, 185, 129, 0.12), rgba(35, 80, 220, 0.11));
  border: 1px solid rgba(16, 185, 129, 0.34);
  font-size: 0.84rem;
}
.office-live-bar[hidden] { display: none; }
.live-bar-left, .live-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
}
.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  display: inline-block;
  flex-shrink: 0;
}
.live-peer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.live-peer-chip:hover {
  border-color: var(--o-cobalt);
  color: var(--o-cobalt);
}
.live-peers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--o-border);
}
#live-sync-btn.is-live {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.5);
  color: #059669;
}
html[data-theme="dark"] #live-sync-btn.is-live {
  color: #6ee7b7;
}

/* 手机遥控二维码弹窗 & 独立手机无线翻页笔全屏界面 */
.remote-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}
.remote-qr-lg {
  width: 184px;
  height: 184px;
}
.remote-status-text {
  font-size: 0.9rem;
  color: var(--o-cobalt);
}
body.office-remote-mode {
  margin: 0;
  background: #090d16;
  color: #f8fafc;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
body.office-remote-mode > *:not(#phone-remote-root) {
  display: none !important;
}
#phone-remote-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 34rem;
  margin-inline: auto;
  padding: 0.9rem 1rem max(1rem, env(safe-area-inset-bottom));
  gap: 0.75rem;
}
.pr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pr-page {
  font-size: 1.05rem;
  font-weight: 800;
  color: #93c5fd;
}
.pr-timer {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pr-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  padding-inline: 0.25rem;
}
.pr-notes {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.24rem;
  line-height: 1.78;
  white-space: pre-wrap;
  word-break: break-word;
}
.pr-notes mark.note-hl {
  background: rgba(251, 191, 36, 0.35);
  color: #fef08a;
  padding: 0.05em 0.25em;
  border-radius: 5px;
}
.pr-next-tip {
  font-size: 0.8rem;
  color: #94a3b8;
  padding-inline: 0.25rem;
}
.pr-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.pr-tool-btn {
  padding: 0.68rem 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}
.pr-tool-btn.is-active {
  background: #2350dc;
  border-color: #60a5fa;
}
.pr-nav {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 0.65rem;
}
.pr-nav-btn {
  padding: 1.25rem 0.8rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}
.pr-nav-next {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}
.pr-nav-btn:active, .pr-tool-btn:active {
  transform: scale(0.97);
}

/* 快捷键速查网格 */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.78rem;
  border-radius: 0.78rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  font-size: 0.82rem;
}
.shortcut-row kbd {
  padding: 0.14rem 0.42rem;
  border-radius: 6px;
  background: var(--o-surface);
  border: 1px solid var(--o-border-strong);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--o-cobalt);
}
@media (max-width: 768px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   11. 响应式适配（平板 / 手机 390px / 360px 零溢出）
   ========================================================================= */
@media (max-width: 1080px) {
  .office-hero-inner {
    grid-template-columns: 1fr;
  }
  .dock-left, .dock-center, .dock-right {
    flex-wrap: wrap;
  }
  .office-review-grid {
    grid-template-columns: 1fr;
  }
  .side-panel-card {
    min-height: 22rem;
  }
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .export-grid {
    grid-template-columns: 1fr;
  }
  .tp-body {
    grid-template-columns: 1fr;
  }
  .tp-visual-col {
    max-height: 30dvh;
    flex-direction: row;
    align-items: center;
  }

  .tp-next-wrap {
    margin-top: 0;
    flex: 1;
  }
}

@media (max-width: 768px) {
  body.office-body > header.office-header {
    padding-inline: 0.75rem;
  }
  body.office-body > header.office-header .identity {
    flex-direction: row;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
  }
  body.office-body > header.office-header .brand-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  body.office-body > header.office-header .wordmark {
    font-size: 1.12rem;
    line-height: 1.1;
  }
  body.office-body > header.office-header .brand-name {
    display: inline-flex;
    align-items: center;
    padding-left: 0.45rem;
    border-left: 1px solid var(--o-border-strong);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--o-muted);
  }
  body.office-body > header.office-header nav {
    gap: 0.58rem;
  }
  body.office-body > header.office-header nav > a {
    font-size: 0.82rem;
  }
  .office-main {
    padding-bottom: 5.5rem;
  }
  .office-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .office-hero-metrics dd strong {
    font-size: 0.88rem;
  }
  .office-hero-metrics dd span {
    font-size: 0.72rem;
  }
  .office-hero-compact {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .office-dock {
    padding: 0;
    gap: 0;
  }
  .dock-row {
    padding: 0.48rem 0.62rem;
    gap: 0.45rem;
  }
  .dock-left,
.dock-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .dock-doc-meta {
    flex: 1 1 10rem;
  }
  .deck-title-label {
    max-width: 100%;
  }
  .retention-grid {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 2.8rem minmax(0, 1fr) 3.8rem;
  }
  .bar-title, .bar-status {
    display: none;
  }
  .mobile-bottom-dock {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.9fr 1fr;
    gap: 0.35rem;
    padding: 0.38rem;
    border-radius: 1.05rem;
    background: var(--o-surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--o-border-strong);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(120%);
    transition: transform 0.22s var(--o-ease), opacity 0.2s ease, visibility 0.2s ease;
  }
  .mobile-bottom-dock.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mbd-btn, .mbd-center {
    border: 0;
    border-radius: 0.78rem;
    padding: 0.48rem 0.3rem;
    background: transparent;
    color: var(--o-ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    text-align: center;
  }
  .mbd-next {
    background: var(--o-obsidian);
    color: var(--o-obsidian-fg);
  }
  .mbd-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    background: var(--o-surface-inset);
  }
  .mbd-center strong { font-size: 0.78rem; }
  .mbd-center span { font-size: 0.72rem; color: var(--o-cobalt); font-variant-numeric: tabular-nums; }
  .office-toast {
    bottom: 1.25rem;
  }
  body.has-mobile-dock .office-toast {
    bottom: 5.1rem;
  }
  .desktop-only-group,
  .desktop-only-btn {
    display: none !important;
  }
  .office-footer-inner {
    font-size: 0.76rem;
    gap: 0.35rem 0.75rem;
    padding-block: 0.85rem 1.15rem;
  }
  .office-footer-links {
    gap: 0.72rem;
  }

  .tp-title { display: none; }
  .tp-visual-col { display: none; }
}

@media (max-width: 360px) {
  body.office-body > header.office-header {
    padding-inline: 0.55rem;
  }
  body.office-body > header.office-header .wordmark {
    font-size: 1rem;
  }
  body.office-body > header.office-header .brand-name {
    font-size: 0.74rem;
    padding-left: 0.35rem;
  }
  body.office-body > header.office-header nav {
    gap: 0.38rem;
  }
  body.office-body > header.office-header nav > a {
    font-size: 0.76rem;
  }
  .office-dock .o-btn-sm {
    padding: 0.4rem 0.68rem;
    font-size: 0.78rem;
  }
  .dock-timer {
    gap: 0.2rem;
    padding: 0.2rem 0.32rem;
  }
  .timer-display {
    min-width: 2.8rem;
    font-size: 0.86rem;
  }
  .office-footer-inner {
    font-size: 0.72rem;
    gap: 0.25rem 0.5rem;
  }
}

/* 手机横屏自动双栏演讲驾驶舱（置于窄屏断点之后以确保双栏生效） */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  body.office-body > header.office-header,
.office-hero-band,
.office-footer,
.mobile-bottom-dock,
.filmstrip-wrap {
    display: none !important;
  }
  .office-main {
    padding-bottom: 0.4rem;
  }
  .office-workbench-band {
    padding-top: 0.4rem;
  }
  .office-dock {
    padding: 0.32rem 0.55rem;
    margin-bottom: 0.45rem;
  }
  .office-review-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 0.6rem;
  }
  .stage-card {
    padding: 0.42rem;
  }
  .side-panel-card {
    min-height: calc(100dvh - 5.1rem);
    max-height: calc(100dvh - 5.1rem);
  }
  .notes-reader {
    min-height: 7.5rem;
    max-height: none;
  }
}

/* =========================================================================
   V5.0 · 1:1 对齐大锤同步极简旗舰视觉体系（60px 单行顶栏 / 48px 微网格首屏 / 单行控制条 / 零 Emoji / 极轻页脚）
   ========================================================================= */

html[data-theme="dark"] .office-body {
  --o-bg: #0b0f19;
  --o-surface: #111827;
  --o-surface-inset: #161f32;
  --o-surface-glass: rgba(11, 15, 25, 0.86);
  --o-ink: #f1f5f9;
  --o-muted: #cbd5e1;
  --o-subtle: #94a3b8;
  --o-faint: #64748b;
  --o-border: rgba(148, 163, 184, 0.14);
  --o-border-strong: rgba(148, 163, 184, 0.24);
  --o-cobalt: #5c8aff;
  --o-cobalt-soft: rgba(92, 138, 255, 0.15);
  --o-obsidian: #f8fafc;
  --o-obsidian-fg: #0b0f19;
  --o-grid-line: rgba(148, 163, 184, 0.05);
  --o-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.5);
}

/* 1. 60px 大锤同步同款极简磨砂顶栏 */
.office-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--o-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--o-border);
}

.site-header.studio-nav.office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  border-bottom: 0;
  padding-block: 6px;
  padding-inline: 0;
  max-width: none;
  width: var(--o-width);
  margin-inline: auto;
  background: transparent;
}

.office-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.site-header.studio-nav.office-header .office-brand-group .identity {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
}

.office-brand-group .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}

.office-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.site-header.studio-nav.office-header .office-brand-text .wordmark {
  font-family: "XinHammer Logo EN", var(--sans);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  color: var(--o-cobalt);
  line-height: 1.05;
}

.site-header.studio-nav.office-header .office-brand-text .brand-name {
  padding-left: 0;
  border-left: 0;
  font-family: "XinHammer Logo CN", var(--sans);
  font-size: 1.06rem;
  font-weight: 840;
  letter-spacing: 0.015em;
  color: var(--o-ink);
  white-space: nowrap;
}

.office-back-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--o-subtle);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}

.office-back-link:hover {
  color: var(--o-cobalt);
  border-color: var(--o-cobalt);
}

.office-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.o-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-muted);
  cursor: pointer;
  flex: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.o-icon-btn:hover {
  color: var(--o-cobalt);
  border-color: var(--o-cobalt);
}

.o-icon-btn-sm {
  width: 32px;
  height: 32px;
}

.o-menu-host.is-open > .o-icon-btn {
  color: var(--o-cobalt);
  border-color: var(--o-cobalt);
  background: var(--o-cobalt-soft);
}

.office-header-actions .icon-moon { display: none; }
html[data-theme="dark"] .office-header-actions .icon-sun { display: none; }
html[data-theme="dark"] .office-header-actions .icon-moon { display: block; }

/* 2. 按钮与微件原子对齐大锤同步 */
.o-btn-outline {
  background: var(--o-surface);
  color: var(--o-ink);
  border: 1px solid var(--o-border-strong);
}

.o-btn-outline:hover {
  border-color: var(--o-cobalt);
  color: var(--o-cobalt);
}

.o-btn-outline.is-active {
  background: var(--o-cobalt-soft);
  border-color: var(--o-cobalt);
  color: var(--o-cobalt);
}

.o-btn-outline.is-synced {
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--o-success);
}

.o-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--o-subtle);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 560;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}

.o-ghost-link:hover {
  color: var(--o-cobalt);
  background: var(--o-cobalt-soft);
}

.o-danger-link:hover {
  color: var(--o-danger);
  background: rgba(220, 38, 38, 0.1);
}

/* 3. 48px 珠光微网格首屏 + 零闪屏回访折叠（1:1 复刻大锤同步） */
.office-hero-band,
html[data-theme="dark"] .office-hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--o-border);
  background: var(--o-bg);
  background-image:
    linear-gradient(to right, var(--o-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--o-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.office-hero-band::before {
  display: none;
}

.office-hero-compact {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding-block: 9px;
}

.office-hero-compact .o-ghost-link {
  flex: none;
}

.office-hero-full {
  padding-block: 10px 28px;
}

html[data-hero-collapsed="true"] .office-hero-compact { display: flex; }
html[data-hero-collapsed="true"] .office-hero-full { display: none; }

.office-compact-meta {
  flex: 1 1 auto;
  font-size: 0.82rem;
  color: var(--o-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.office-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 14px;
}

.office-hero-toprow .office-eyebrow {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--o-cobalt);
  letter-spacing: 0.02em;
}

.office-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.office-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--o-ink);
}

.office-hero-copy h1 span {
  color: var(--o-cobalt);
}

.office-hero-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--o-muted);
  max-width: 35rem;
}

.office-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.office-hero-media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--o-border);
  background: var(--o-surface-inset);
  box-shadow: var(--o-shadow-sm);
}

.office-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 4. 单行纯净工作台总控条 (.office-bar) */
.office-workbench-band {
  padding-block: 18px 36px;
}

.office-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-bar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--o-border);
  background: var(--o-surface);
  box-shadow: var(--o-shadow-sm);
  overflow: visible;
}

.office-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.office-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.o-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  flex: none;
}

.o-seg-btn {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: transparent;
  color: var(--o-subtle);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.o-seg-btn.is-active {
  background: var(--o-surface);
  color: var(--o-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.office-bar .dock-doc-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.office-bar .deck-title-label {
  font-size: 0.92rem;
  font-weight: 680;
  color: var(--o-ink);
}

/* 精简计时胶囊 + 弹出设置层 */
.office-bar .dock-timer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  box-shadow: none;
  min-height: 32px;
}

.office-bar .dock-timer.is-running {
  border-color: var(--o-cobalt);
  background: var(--o-cobalt-soft);
}

.office-bar .dock-timer.is-warn {
  border-color: rgba(180, 83, 9, 0.45);
}

.office-bar .dock-timer.is-overtime {
  border-color: rgba(220, 38, 38, 0.48);
}

.timer-readout-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0 4px 0 0;
  cursor: pointer;
  color: var(--o-ink);
  font: inherit;
}

.office-bar .timer-display {
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: auto;
  color: var(--o-ink);
}

.timer-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--o-danger);
  flex: none;
}

.dock-timer.is-running .timer-rec-dot:not([hidden]) {
  animation: officeRecPulse 1.2s ease-in-out infinite;
}

@keyframes officeRecPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.timer-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
  cursor: pointer;
  flex: none;
}

.timer-play-btn .icon-pause { display: none; }
.dock-timer.is-running .timer-play-btn .icon-play { display: none; }
.dock-timer.is-running .timer-play-btn .icon-pause { display: block; }

.timer-settings-pop {
  min-width: 14.5rem;
}

.timer-pop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 6px;
}

.timer-pop-select {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.78rem;
}

/* 5. 画布、胶片带与右侧白纸提词精简 */
.stage-card,
.filmstrip-wrap,
.side-panel-card {
  border-radius: 18px;
  border: 1px solid var(--o-border);
  background: var(--o-surface);
  box-shadow: var(--o-shadow-sm);
}

.stage-toolbar {
  padding-top: 10px;
}

.stage-dwell-text {
  font-size: 0.78rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
}

.stage-dwell-text.is-over {
  color: var(--o-danger);
  font-weight: 650;
}

.filmstrip-search-row[hidden] {
  display: none;
}

.notes-meta {
  font-size: 0.78rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
}

.notes-reader {
  background: var(--o-surface-inset);
  border-color: var(--o-border);
}

/* 6. 1:1 大锤同步极轻贴底页脚 */
.office-footer {
  margin-top: auto;
  padding-block: 0 22px;
  background: transparent;
  border-top: 0;
}

.office-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 0;
  border-top: 1px solid var(--o-border);
  font-size: 0.78rem;
  color: var(--o-subtle);
}

.office-footer-brand {
  white-space: nowrap;
}

.office-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.office-footer-links a {
  color: var(--o-subtle);
  text-decoration: none;
  transition: color 140ms ease;
}

.office-footer-links a:hover {
  color: var(--o-cobalt);
}

/* 7. 响应式严格 0px 溢出（对齐大锤同步 40rem / 24rem 断点） */
@media (max-width: 62rem) {
  .office-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .office-bar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 56rem) {
  .office-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .office-body {
    --o-width: calc(100% - 1.5rem);
  }
  .office-back-link { display: none; }
  .office-brand-text .wordmark { display: none; }
  .site-header.studio-nav.office-header .office-brand-text .brand-name { font-size: 1rem; }
  .site-header.studio-nav.office-header { gap: 0.5rem; }

  .office-bar { padding: 10px 12px; }
  .office-bar-right { justify-content: flex-start; gap: 6px; }
  .office-footer-inner { font-size: 0.75rem; padding-top: 14px; }
  .office-footer-links { gap: 12px; }
}

@media (max-width: 24rem) {
  .office-body {
    --o-width: calc(100% - 1rem);
  }
  .office-brand-group .brand-icon { width: 28px; height: 28px; }
  .site-header.studio-nav.office-header .office-brand-text .brand-name { font-size: 0.92rem; }
  .o-icon-btn { width: 32px; height: 32px; }

  .office-bar .o-btn-xs { padding: 0.3rem 0.56rem; font-size: 0.73rem; }
  .o-seg-btn { padding: 3px 9px; font-size: 0.74rem; }
}

/* 手机横屏双栏演讲驾驶舱 */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  .office-header-wrap,
  .office-hero-band,
  .office-footer,
  .mobile-bottom-dock,
  .filmstrip-wrap {
    display: none !important;
  }
  .office-bar {
    padding: 6px 10px;
  }
}

/* =========================================================================
   12. 专业双栏讲义 PDF 打印排版（@media print）
   ========================================================================= */
.office-print-sheet {
  display: none;
}

@media print {
  body.office-body > *:not(#office-print-sheet) {
    display: none !important;
  }
  #office-print-sheet {
    display: block !important;
    background: #ffffff;
    color: #0f172a;
    padding: 0;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  .print-doc-header {
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .print-doc-header h1 {
    margin: 0;
    font-size: 18pt;
  }
  .print-doc-header span {
    font-size: 9pt;
    color: #475569;
  }
  .print-slide-row {
    display: grid;
    grid-template-columns: 46% 52%;
    gap: 2%;
    padding: 12px 0;
    border-bottom: 1px solid #cbd5e1;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-slide-visual {
    position: relative;
    width: 100%;
    aspect-ratio: var(--slide-ratio, 1.7778);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    container-type: inline-size;
  }
  .print-slide-right h3 {
    margin: 0 0 6px;
    font-size: 11pt;
  }
  .print-slide-notes {
    margin: 0 0 8px;
    font-size: 9.5pt;
    line-height: 1.55;
    white-space: pre-wrap;
    color: #1e293b;
  }
  .print-slide-anns {
    margin: 0;
    padding-left: 16px;
    font-size: 9pt;
    color: #dc2626;
    line-height: 1.5;
  }
  .print-slide-anns li.is-done {
    color: #059669;
    text-decoration: line-through;
  }
}
