.word-editor-shell {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(23, 32, 51, .07);
}
.word-editor-shell form { margin: 0; }
.report-commandbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  overflow-x: auto;
  overflow-y: visible;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.report-commandbar-main { display: inline-flex; align-items: center; gap: 6px; min-width: max-content; flex: 0 0 auto; flex-wrap: nowrap; }
.toolbar-audio-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}
.command-btn {
  position: relative;
  min-height: 38px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #fff;
  color: #26364d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.command-btn i { color: var(--primary); }
.command-btn:hover, .command-btn:focus-visible { border-color: #b2ccff; background: #eef6ff; color: var(--primary-dark); }
.command-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.command-btn.primary i { color: #fff; }
.command-btn.active { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.command-btn.active i { color: #067647; }
.command-btn.success { color: #067647; border-color: #abefc6; }
.command-btn.danger { color: var(--red); border-color: #fecdca; }
.command-btn:disabled { opacity: .48; cursor: not-allowed; background: #f8fafc; }
.report-commandbar .command-btn {
  width: 38px;
  min-width: 38px;
  padding: 0;
}
.report-commandbar .command-btn > span,
.audio-note-play > span,
.audio-note-open > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.btn[data-tooltip], .icon-btn[data-tooltip], .command-btn[data-tooltip] { position: relative; }
.toolbar-recorder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  min-width: 0;
}
.toolbar-recorder.is-recording .command-btn[data-record-start] {
  border-color: #fecdca;
  background: #fff5f5;
  color: var(--red);
}
.toolbar-record-timer {
  min-height: 34px;
  min-width: 38px;
  color: var(--muted);
  font-size: 12px;
}
.toolbar-record-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.toolbar-playback-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.toolbar-record-meter {
  width: 92px;
  height: 7px;
}
.report-commandbar-audios {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  overflow: visible;
  padding-top: 0;
}
.audio-note-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 5px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}
.audio-note-play,
.audio-note-open,
.audio-note-delete-btn {
  position: relative;
  border: 0;
  background: transparent;
  color: #26364d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.audio-note-play,
.audio-note-open {
  width: 28px;
  justify-content: center;
}
.audio-note-native {
  width: 168px;
  height: 28px;
  display: block;
}
.audio-note-native-revealed {
  outline: 2px solid rgba(23, 92, 211, .18);
  outline-offset: 2px;
}
.toolbar-audio-control .audio-note-native {
  width: 190px;
}
.audio-note-play i,
.audio-note-open i { color: var(--primary); }
.audio-note-play.active { color: #067647; }
.audio-note-play.active i { color: #067647; }
.audio-note-meta,
.audio-note-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.audio-note-delete { margin: 0; }
.audio-note-delete-btn { color: var(--red); }
.word-tool[data-tooltip],
.word-color[data-tooltip],
.audio-note-play[data-tooltip],
.audio-note-open[data-tooltip],
.audio-note-delete-btn[data-tooltip] { position: relative; }
@media (hover: hover) {
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 20;
    min-width: max-content;
    max-width: 220px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
  }
  [data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }
}
