/* ============================================================
   MYOBOKU · Data Annotation Workbench
   妙境 AI · 数据标注工作台
   Dark theme, tech gray, professional
   ============================================================ */

:root {
  /* ---------- MYOBOKU Brand ---------- */
  --tc-primary: #3B82F6;
  --tc-primary-hover: #2563EB;
  --tc-primary-active: #1D4ED8;
  --tc-accent: #10B981;
  --tc-warning: #F59E0B;
  --tc-danger: #EF4444;

  /* ---------- Dark Workbench Colors ---------- */
  --tc-bg: #0F172A;
  --tc-bg-alt: #1E293B;
  --tc-surface: #334155;
  --tc-surface-hover: #475569;
  --tc-border: #475569;
  --tc-border-light: #64748B;

  /* ---------- Text Colors ---------- */
  --tc-text: #F8FAFC;
  --tc-text-secondary: #CBD5E1;
  --tc-text-tertiary: #94A3B8;
  --tc-text-muted: #64748B;

  /* ---------- Canvas Colors ---------- */
  --tc-canvas-bg: #1E293B;
  --tc-canvas-checker: #334155;
  --tc-canvas-checker-alt: #475569;

  /* ---------- OBB/Object Colors ---------- */
  --tc-obj-1: #3B82F6;
  --tc-obj-2: #10B981;
  --tc-obj-3: #F59E0B;
  --tc-obj-4: #EF4444;
  --tc-obj-5: #8B5CF6;
  --tc-obj-6: #EC4899;

  /* ---------- Layout ---------- */
  --tc-header-height: 56px;
  --tc-toolbar-height: 48px;
  --tc-statusbar-height: 36px;
  --tc-panel-width: 280px;
  --tc-panel-min-width: 240px;
  --tc-panel-max-width: 380px;
}

/* ---------- Base Workbench Reset ---------- */
.tc-workbench * {
  box-sizing: border-box;
}

.tc-workbench {
  font-family: var(--font-sans);
  background: var(--tc-bg);
  color: var(--tc-text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tc-workbench body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ---------- Scrollbar Styling ---------- */
.tc-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tc-scrollbar::-webkit-scrollbar-track {
  background: var(--tc-bg);
}

.tc-scrollbar::-webkit-scrollbar-thumb {
  background: var(--tc-surface);
  border-radius: 4px;
}

.tc-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--tc-surface-hover);
}

/* ---------- Security Banner ---------- */
.tc-security-banner {
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--tc-text-secondary);
  font-size: 12px;
}

.tc-security-banner svg {
  width: 14px;
  height: 14px;
  color: var(--tc-accent);
}

/* ---------- Header ---------- */
.tc-header {
  height: var(--tc-header-height);
  background: var(--tc-bg-alt);
  border-bottom: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.tc-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-active));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.tc-brand-text {
  display: flex;
  flex-direction: column;
}

.tc-brand-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--tc-text);
}

.tc-brand-zh {
  font-size: 11px;
  color: var(--tc-text-tertiary);
}

.tc-slogan {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
}

.tc-slogan-text {
  font-size: 12px;
  color: var(--tc-text-secondary);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.tc-header-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--tc-border);
}

.tc-header-task-label {
  color: var(--tc-text-tertiary);
  font-size: 12px;
}

.tc-header-task-name {
  color: var(--tc-text);
  font-weight: 600;
  font-size: 14px;
}

.tc-header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-progress-text {
  font-size: 13px;
  color: var(--tc-text-secondary);
}

.tc-progress-bar {
  width: 120px;
  height: 6px;
  background: var(--tc-surface);
  border-radius: 3px;
  overflow: hidden;
}

.tc-progress-fill {
  height: 100%;
  background: var(--tc-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.tc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.tc-btn svg {
  width: 16px;
  height: 16px;
}

.tc-btn-ghost {
  background: transparent;
  color: var(--tc-text-secondary);
}

.tc-btn-ghost:hover {
  background: var(--tc-surface);
  color: var(--tc-text);
}

.tc-btn-secondary {
  background: var(--tc-surface);
  color: var(--tc-text);
}

.tc-btn-secondary:hover {
  background: var(--tc-surface-hover);
}

.tc-btn-primary {
  background: var(--tc-primary);
  color: white;
}

.tc-btn-primary:hover {
  background: var(--tc-primary-hover);
}

.tc-btn-danger {
  background: transparent;
  color: var(--tc-danger);
}

.tc-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ---------- Toolbar ---------- */
.tc-toolbar {
  height: var(--tc-toolbar-height);
  background: var(--tc-bg-alt);
  border-bottom: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.tc-toolbar-left, .tc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tc-toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--tc-border);
  margin: 0 8px;
}

.tc-tool-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--tc-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-tool-btn:hover {
  background: var(--tc-surface);
  color: var(--tc-text);
}

.tc-tool-btn.active {
  background: var(--tc-primary);
  color: white;
}

.tc-tool-btn svg {
  width: 18px;
  height: 18px;
}

.tc-tool-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tc-surface-hover);
  color: var(--tc-text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  margin-bottom: 8px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tc-tool-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--tc-surface-hover);
}

.tc-tool-tooltip kbd {
  background: var(--tc-bg);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-left: 6px;
  color: var(--tc-text-tertiary);
}

.tc-tool-btn:hover .tc-tool-tooltip {
  opacity: 1;
  visibility: visible;
}

.tc-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--tc-surface);
  border-radius: 8px;
  padding: 2px;
}

.tc-zoom-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--tc-text-secondary);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s ease;
}

.tc-zoom-btn:hover {
  background: var(--tc-surface-hover);
  color: var(--tc-text);
}

.tc-zoom-btn.active {
  background: var(--tc-bg);
  color: var(--tc-text);
}

.tc-zoom-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Main Workspace ---------- */
.tc-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.tc-panel {
  background: var(--tc-bg-alt);
  border-right: 1px solid var(--tc-border);
  display: flex;
  flex-direction: column;
  width: var(--tc-panel-width);
  min-width: var(--tc-panel-min-width);
  max-width: var(--tc-panel-max-width);
  flex-shrink: 0;
}

.tc-panel-right {
  border-right: none;
  border-left: 1px solid var(--tc-border);
}

.tc-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-panel-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--tc-text);
}

.tc-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* ---------- Image List (Left Panel) ---------- */
.tc-image-search {
  padding: 0 12px 12px 12px;
}

.tc-search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  color: var(--tc-text);
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

.tc-search-input::placeholder {
  color: var(--tc-text-muted);
}

.tc-search-input:focus {
  border-color: var(--tc-primary);
}

.tc-filter-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px 12px 12px;
}

.tc-filter-tab {
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--tc-text-tertiary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-filter-tab:hover {
  color: var(--tc-text-secondary);
}

.tc-filter-tab.active {
  background: var(--tc-surface);
  color: var(--tc-text);
}

.tc-image-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 12px 12px;
}

.tc-image-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--tc-surface);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.tc-image-item:hover {
  border-color: var(--tc-border-light);
}

.tc-image-item.active {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 1px var(--tc-primary);
}

.tc-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #475569);
}

.tc-image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-image-num {
  font-size: 10px;
  color: var(--tc-text-secondary);
  font-family: var(--font-mono);
}

.tc-image-status {
  font-size: 10px;
}

.tc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tc-status-unannotated { background: var(--tc-text-muted); }
.tc-status-inprogress { background: var(--tc-warning); }
.tc-status-completed { background: var(--tc-accent); }
.tc-status-reviewing { background: var(--tc-primary); }
.tc-status-failed { background: var(--tc-danger); }

.tc-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--tc-border);
  font-size: 12px;
  color: var(--tc-text-tertiary);
}

/* ---------- Canvas Area ---------- */
.tc-canvas-container {
  flex: 1;
  background: var(--tc-canvas-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.tc-canvas-checkerboard {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, var(--tc-canvas-checker) 25%, transparent 25%),
    linear-gradient(-45deg, var(--tc-canvas-checker) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--tc-canvas-checker) 75%),
    linear-gradient(-45deg, transparent 75%, var(--tc-canvas-checker) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
}

.tc-canvas-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  will-change: transform;
}

.tc-canvas-image {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.tc-canvas-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tc-canvas-svg > * {
  pointer-events: auto;
}

/* ---------- OBB Styles ---------- */
.tc-obb {
  cursor: pointer;
}

.tc-obb rect,
.tc-obb polygon {
  fill: none;
  stroke-linejoin: round;
}

.tc-obb .obb-fill {
  fill-opacity: 0.1;
}

.tc-obb .obb-stroke {
  stroke-dasharray: none;
}

.tc-obb:hover .obb-stroke {
  stroke-width: 3;
}

.tc-obb.selected .obb-stroke {
  stroke-width: 3;
}

.tc-obb-handle {
  fill: white;
  stroke: var(--tc-primary);
  stroke-width: 2;
  cursor: move;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tc-obb:hover .tc-obb-handle,
.tc-obb.selected .tc-obb-handle {
  opacity: 1;
}

.tc-obb-handle-corner {
  r: 5;
}

.tc-obb-handle-edge {
  r: 4;
}

.tc-obb-handle-center {
  r: 6;
  stroke: var(--tc-warning);
}

.tc-obb-label {
  font-size: 10px;
  font-weight: 600;
  fill: white;
  pointer-events: none;
}

.tc-obb-label-bg {
  fill: currentColor;
  opacity: 0.9;
}

/* ---------- Right Panel Sections ---------- */
.tc-panel-section {
  margin-bottom: 16px;
}

.tc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tc-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--tc-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-section-btn {
  font-size: 11px;
  color: var(--tc-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.tc-section-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.tc-label-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-label-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--tc-surface);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-label-item:hover {
  background: var(--tc-surface-hover);
}

.tc-label-item.active {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--tc-primary);
}

.tc-label-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tc-label-name {
  font-size: 12px;
  color: var(--tc-text);
  flex: 1;
}

.tc-label-count {
  font-size: 11px;
  color: var(--tc-text-muted);
  font-family: var(--font-mono);
}

.tc-object-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-object-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--tc-surface);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-object-item:hover {
  background: var(--tc-surface-hover);
}

.tc-object-item.selected {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--tc-primary);
}

.tc-object-id {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tc-bg);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tc-object-info {
  flex: 1;
  min-width: 0;
}

.tc-object-label {
  font-size: 12px;
  color: var(--tc-text);
}

.tc-object-type {
  font-size: 11px;
  color: var(--tc-text-muted);
}

.tc-attribute-group {
  margin-bottom: 12px;
}

.tc-attribute-label {
  font-size: 11px;
  color: var(--tc-text-tertiary);
  margin-bottom: 4px;
  display: block;
}

.tc-attribute-value {
  font-size: 12px;
  color: var(--tc-text);
  padding: 6px 10px;
  background: var(--tc-surface);
  border-radius: 6px;
}

.tc-attribute-select {
  width: 100%;
  padding: 6px 10px;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  color: var(--tc-text);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.tc-attribute-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.tc-attribute-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--tc-primary);
}

.tc-attribute-checkbox label {
  font-size: 12px;
  color: var(--tc-text-secondary);
  cursor: pointer;
}

/* ---------- Status Bar ---------- */
.tc-statusbar {
  height: var(--tc-statusbar-height);
  background: var(--tc-bg-alt);
  border-top: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--tc-text-tertiary);
}

.tc-status-left, .tc-status-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tc-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tc-status-saved {
  color: var(--tc-accent);
}

.tc-status-unsaved {
  color: var(--tc-warning);
}

.tc-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--tc-surface);
  border: none;
  border-radius: 6px;
  color: var(--tc-text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-nav-btn:hover {
  background: var(--tc-surface-hover);
  color: var(--tc-text);
}

.tc-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tc-nav-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Modal ---------- */
.tc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tc-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.tc-modal {
  background: var(--tc-bg-alt);
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.tc-modal-overlay.open .tc-modal {
  transform: scale(1);
}

.tc-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-text);
}

.tc-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--tc-text-tertiary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-modal-close:hover {
  background: var(--tc-surface);
  color: var(--tc-text);
}

.tc-modal-body {
  padding: 20px;
}

.tc-modal-text {
  font-size: 13px;
  color: var(--tc-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tc-modal-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.tc-modal-warning-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--tc-warning);
  margin-bottom: 4px;
}

.tc-modal-warning-text {
  font-size: 12px;
  color: var(--tc-text-secondary);
}

.tc-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--tc-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------- AI Auto Label Modal ---------- */
.tc-ai-modal .tc-modal {
  max-width: 420px;
}

.tc-ai-model-select {
  margin-bottom: 16px;
}

.tc-ai-model-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--tc-surface);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.tc-ai-model-option:hover {
  background: var(--tc-surface-hover);
}

.tc-ai-model-option.selected {
  border-color: var(--tc-primary);
  background: rgba(59, 130, 246, 0.1);
}

.tc-ai-model-icon {
  width: 36px;
  height: 36px;
  background: var(--tc-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-primary);
}

.tc-ai-model-info {
  flex: 1;
}

.tc-ai-model-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tc-text);
}

.tc-ai-model-desc {
  font-size: 11px;
  color: var(--tc-text-tertiary);
}

.tc-ai-status {
  text-align: center;
  padding: 20px;
}

.tc-ai-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--tc-surface);
  border-top-color: var(--tc-primary);
  border-radius: 50%;
  animation: tc-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}

.tc-ai-status-text {
  font-size: 13px;
  color: var(--tc-text-secondary);
}

.tc-ai-success {
  text-align: center;
  padding: 20px;
}

.tc-ai-success-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--tc-accent);
}

.tc-ai-success-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  margin-bottom: 4px;
}

.tc-ai-success-sub {
  font-size: 12px;
  color: var(--tc-text-tertiary);
}

/* ---------- Toast ---------- */
.tc-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-toast {
  background: var(--tc-bg-alt);
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: tc-toast-in 0.2s ease;
  min-width: 240px;
}

@keyframes tc-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tc-toast.success {
  border-color: var(--tc-accent);
}

.tc-toast.warning {
  border-color: var(--tc-warning);
}

.tc-toast.error {
  border-color: var(--tc-danger);
}

.tc-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tc-toast.success .tc-toast-icon { color: var(--tc-accent); }
.tc-toast.warning .tc-toast-icon { color: var(--tc-warning); }
.tc-toast.error .tc-toast-icon { color: var(--tc-danger); }

.tc-toast-message {
  font-size: 13px;
  color: var(--tc-text);
}

/* ---------- Mobile Warning ---------- */
.tc-mobile-warning {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--tc-bg);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

@media (max-width: 1024px) {
  .tc-mobile-warning {
    display: flex;
  }
  .tc-workbench {
    display: none;
  }
}

.tc-mobile-content {
  max-width: 400px;
}

.tc-mobile-icon {
  width: 64px;
  height: 64px;
  background: var(--tc-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--tc-text-muted);
}

.tc-mobile-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--tc-text);
  margin-bottom: 12px;
}

.tc-mobile-text {
  font-size: 14px;
  color: var(--tc-text-secondary);
  line-height: 1.6;
}
