* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #1f2329;
  font-size: 14px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e8e9eb;
}
.brand { font-weight: 600; font-size: 18px; }
.topnav {
  display: flex;
  gap: 24px;
  flex: 1;
  padding-left: 24px;
  align-items: stretch;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: #8f959e;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.nav-item:hover { color: #1677ff; text-decoration: none; }
.nav-item.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  font-weight: 500;
}
.nav-item.disabled {
  color: #8f959e;
  cursor: default;
  pointer-events: none;
}
.nav-item.disabled.active {
  pointer-events: auto;
  cursor: default;
}
.badge {
  font-size: 13px;
  padding: 4px 8px;
  background: #fff7e6;
  color: #d48806;
  border-radius: 4px;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
body.page-viewer main {
  max-width: none;
  padding: 0;
  margin: 0;
}
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e8e9eb;
  box-shadow: none;
}
.panel h1, .page-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #1f2329;
}
.btn-primary { background: #1677ff; color: #fff; border-color: #1677ff; }
.btn-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #1677ff;
  border-radius: 6px;
  color: #1677ff;
  text-decoration: none;
  font-size: 13px;
}
.btn-link:hover { background: #e8f3ff; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.oss-list { list-style: none; padding: 0; margin: 0; }
.oss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e8e9eb;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
}
.oss-item:hover, .oss-item.selected {
  border-color: #1677ff;
  background: #f0f7ff;
}
.hint-muted { color: #8f959e; font-size: 12px; margin-top: 0; }
.oss-search-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
  align-items: center;
}
.oss-search {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}
.oss-search:disabled { background: #f5f6f7; color: #8f959e; }
.btn-search { white-space: nowrap; }
.oss-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8e9eb;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
}
.oss-page-label {
  font-size: 13px;
  color: #646a73;
  min-width: 64px;
  text-align: center;
}
.oss-page-size {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #1f2329;
}
.oss-empty-page p { margin: 0 0 10px; }
.oss-empty-page .btn { margin-top: 4px; }
.oss-name { flex: 1; font-size: 14px; word-break: break-all; min-width: 0; }
.oss-size { color: #8f959e; font-size: 13px; white-space: nowrap; }
.oss-time { color: #8f959e; font-size: 13px; white-space: nowrap; min-width: 140px; text-align: right; }
.oss-error p { margin: 0 0 12px; }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid #d9d9d9;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 6px;
}
.status.completed { background: #f6ffed; color: #52c41a; }
.status.ongoing, .status.submitted, .status.pending {
  background: #e6f4ff;
  color: #1677ff;
}
.status.failed { background: #fff2f0; color: #ff4d4f; }
.empty { text-align: center; padding: 48px; color: #8f959e; font-size: 14px; }
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e9eb;
}
.tab {
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #8f959e;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 500; }
.url-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.hint { font-size: 13px; color: #8f959e; margin: 8px 0 16px; line-height: 1.6; }
.panel-hidden { display: none !important; }

/* Import modal */
.import-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.import-modal-card {
  width: 600px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.import-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e9eb;
  flex-shrink: 0;
}
.import-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.import-modal-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #8f959e;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.import-modal-close:hover { color: #1f2329; background: #f0f2f5; }
.import-modal-body {
  padding: 20px;
  overflow-y: auto;
}
.import-modal-body .oss-list { max-height: 280px; overflow-y: auto; }
a { color: #1677ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Step2 task center */
.tasks-panel { border: none; border-radius: 0; }
.task-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e8e9eb;
  margin-bottom: 16px;
}
.task-tab {
  position: relative;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #8f959e;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.task-tab.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  font-weight: 500;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #ff4d4f;
  font-weight: 500;
}
.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4f;
  flex-shrink: 0;
}
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e8e9eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.task-card:hover { border-color: #d0d3d6; }
.task-cover {
  width: 88px;
  height: 56px;
  border-radius: 6px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f959e;
  font-size: 18px;
}
.task-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-original-file {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8f959e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-source {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8f959e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #8f959e;
  margin-bottom: 4px;
}
.task-actions { align-self: center; }

/* Step3 viewer */
.viewer-v2 {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 4px 300px;
  min-height: calc(100vh - 49px);
  background: #fff;
}
.viewer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-right: 1px solid #e8e9eb;
  background: #fafafa;
}
.nav-btn {
  width: 40px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #646a73;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1.3;
}
.nav-btn:hover { background: #f0f2f5; color: #1677ff; }
.viewer-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #e8e9eb;
  overflow-y: auto;
  height: calc(100vh - 49px);
}
.viewer-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e9eb;
  flex-shrink: 0;
}
.viewer-title-block {
  margin-top: 8px;
  min-width: 0;
}
.viewer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.viewer-original-file {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8f959e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title-edit-hint {
  font-size: 12px;
  color: #8f959e;
  white-space: nowrap;
}
.viewer-back-link {
  flex-shrink: 0;
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  white-space: nowrap;
}
.viewer-back-link:hover { text-decoration: underline; }
.viewer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.viewer-title-input {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid #1677ff;
  border-radius: 4px;
  font-family: inherit;
}
.title-edit-btn {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #8f959e;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
}
.title-edit-btn:hover { color: #1677ff; background: #f0f7ff; }
.viewer-video-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 1px solid #e8e9eb;
  background: #fafafa;
}
.video-collapse-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #646a73;
  padding: 4px 8px;
  border-radius: 4px;
}
.video-collapse-btn:hover { background: #f0f2f5; color: #1677ff; }
.video-bar-label { font-size: 13px; color: #8f959e; }
.viewer-video-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafafa;
  flex-shrink: 0;
}
.viewer-video-wrap {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 0;
  border-bottom: 1px solid #e8e9eb;
  background: #fafafa;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease, height 0.1s ease;
  box-sizing: border-box;
}
.viewer-video-wrap.video-collapsed {
  max-height: 0 !important;
  height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-bottom: none;
}
.viewer-video-wrap video {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #000;
  border-radius: 6px;
  object-fit: contain;
}
.video-resize-handle {
  flex-shrink: 0;
  height: 4px;
  margin: 8px -16px 0;
  cursor: ns-resize;
  background: transparent;
  transition: background 0.15s;
}
.video-resize-handle:hover,
body.video-resizing .video-resize-handle {
  background: #1677ff;
}
.viewer-video-wrap.video-collapsed .video-resize-handle {
  display: none;
}
.summary-section-title {
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: 500;
  color: #646a73;
  flex-shrink: 0;
}
.summary-pane {
  max-height: 160px;
  overflow-y: auto;
  border-bottom: 1px solid #e8e9eb;
  flex-shrink: 0;
}
.summary-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
}
.summary-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
  font-size: 13px;
}
.summary-item:last-child { border-bottom: none; }
.summary-item:hover { color: #1677ff; }
.summary-time, .summary-speaker {
  color: #1677ff;
  font-size: 13px;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.summary-text {
  display: block;
  margin-top: 4px;
  color: #1f2329;
  line-height: 1.5;
}
.summary-sub {
  font-size: 13px;
  color: #8f959e;
}
.summary-placeholder {
  margin: 0;
  padding: 24px 16px;
  color: #8f959e;
  font-size: 13px;
  text-align: center;
}
.smart-overview {
  border-bottom: 1px solid #e8e9eb;
  flex-shrink: 0;
}
.summary-locked {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}
.smart-overview-toggle .locked-tag {
  margin-left: auto;
  font-size: 12px;
  color: #8f959e;
  background: #f0f2f5;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
}
.smart-overview-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
  color: #1f2329;
  cursor: pointer;
  text-align: left;
}
.smart-overview-toggle:hover { background: #f0f2f5; }
.toggle-icon { font-size: 10px; color: #8f959e; }
.smart-overview-body {
  padding: 0 16px 12px;
  background: #fafafa;
}
.smart-overview.collapsed .smart-overview-body { display: none; }
.overview-section { margin-bottom: 12px; }
.overview-section:last-child { margin-bottom: 0; }
.overview-label {
  font-size: 13px;
  font-weight: 500;
  color: #646a73;
  margin-bottom: 6px;
}
.overview-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #bfbfbf;
}
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.keyword-chip {
  display: inline-block;
  padding: 3px 10px;
  background: #e8f3ff;
  color: #1677ff;
  border-radius: 12px;
  font-size: 13px;
}
.overview-excerpt { font-size: 13px; line-height: 1.6; }
.excerpt-line {
  margin: 0 0 6px;
  color: #1f2329;
}
.excerpt-time {
  color: #1677ff;
  font-size: 13px;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.overview-empty { font-size: 13px; color: #bfbfbf; }
.transcript-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.transcript-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid #e8e9eb;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.transcript-toolbar input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
}
.transcript-scroll {
  flex: 1;
  padding: 12px 16px 24px;
}
.export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.export-dialog {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  min-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.export-dialog h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}
.export-dialog label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}
.export-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.seg-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 0 4px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.6;
  font-size: 14px;
}
.seg-line:hover { background: #f5f6f8; }
.seg-line.active {
  background: #e8f3ff;
  border-left: 3px solid #1677ff;
  padding-left: 5px;
}
.seg-time {
  border: none;
  background: none;
  color: #1677ff;
  font-size: 13px;
  padding: 2px 0 0;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.seg-text {
  color: #1f2329;
  min-width: 0;
  word-break: break-word;
  position: relative;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 2px 24px 2px 4px;
}
.seg-line:not(:has(.seg-editing)) .seg-text:hover::after {
  content: '✎';
  position: absolute;
  right: 6px;
  top: 2px;
  font-size: 12px;
  color: #8f959e;
  pointer-events: none;
  line-height: 1.4;
}
.seg-text.seg-editing {
  background: #e8f3ff;
  border: 1px solid #1677ff;
  cursor: text;
}
.seg-text.seg-save-flash {
  border-color: #52c41a !important;
  transition: border-color 0.15s ease;
}
.resize-handle {
  width: 4px;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s;
  align-self: stretch;
}
.resize-handle:hover,
body.notes-resizing .resize-handle { background: #1677ff; }
.viewer-notes {
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
  min-height: 0;
  width: 300px;
  position: relative;
  overflow: hidden;
}
.viewer-notes-collapsed {
  width: 32px !important;
  min-width: 32px;
}
.viewer-notes-collapsed .notes-body { display: none; }
.viewer-notes-collapsed .notes-title { display: none; }
.notes-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-bottom: 1px solid #e8e9eb;
  background: #fff;
  flex-shrink: 0;
}
.notes-header .locked-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  color: #8f959e;
  background: #f0f2f5;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.notes-collapse-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #646a73;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.notes-collapse-btn:hover { color: #1677ff; background: #f0f7ff; }
.notes-title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2329;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notes-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.notes-editor {
  flex: 1;
  margin: 12px;
  padding: 12px;
  border: 1px solid #e8e9eb;
  border-radius: 8px;
  background: #fff;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  min-height: 200px;
}
.notes-editor:focus {
  outline: none;
  border-color: #1677ff;
}
.notes-status {
  margin: 0 12px 12px;
  font-size: 13px;
  color: #bfbfbf;
  min-height: 16px;
}

/* 来源标签 */
.source-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.6;
}
.source-pill-local {
  background: #e8f3ff;
  color: #1677ff;
  border: 1px solid #91caff;
}

/* 上传区 */
.upload-drop {
  border: 1.5px dashed #d9d9d9;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.upload-drop.drag-over {
  border-color: #1677ff;
  background: #e8f3ff;
}
.upload-drop-text {
  margin: 0 0 12px;
  color: #8f959e;
  font-size: 14px;
}
.upload-progress {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e8e9eb;
  border-radius: 8px;
  background: #fff;
}
.upload-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.upload-progress-name {
  color: #1f2329;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
  flex: 1;
  min-width: 0;
}
.upload-progress-pct {
  color: #1677ff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.upload-progress-bar {
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #1677ff;
  border-radius: 3px;
  transition: width 0.2s ease;
}
.upload-progress-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8f959e;
}

.upload-queue {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #e8e9eb;
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
}
.upload-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f2f5;
}
.upload-queue-item:last-child { border-bottom: none; }
.upload-queue-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.upload-queue-item span:last-child {
  color: #8f959e;
  flex-shrink: 0;
}
.upload-queue-done span:last-child { color: #389e0d; }
.upload-queue-error span:last-child { color: #cf1322; }
.upload-queue-active span:last-child { color: #1677ff; }

.oss-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 8px 0 10px;
  font-size: 13px;
}
.oss-crumb {
  border: none;
  background: none;
  color: #1677ff;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 13px;
}
.oss-crumb:hover { background: #e8f3ff; }
.oss-crumb.current { color: #1f2329; font-weight: 500; cursor: default; }
.oss-crumb-sep { color: #bbb; user-select: none; }

.oss-item.oss-folder {
  cursor: pointer;
  background: #fafafa;
}
.oss-item.oss-folder:hover { background: #f0f7ff; }
.oss-folder-icon {
  display: inline-block;
  width: 18px;
  height: 14px;
  margin-right: 4px;
  background: #faad14;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}
.oss-folder-label { color: #8f959e; }

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  background: #1f2329;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  max-width: 80vw;
}
.toast-show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-success { background: #389e0d; }
.toast-info { background: #1677ff; }

@media (max-width: 960px) {
  .viewer-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .resize-handle { display: none; }
  .viewer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #e8e9eb;
  }
  .viewer-notes { min-height: 240px; }
  .task-card {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .task-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
