.semantic-workspace { max-width: 1200px; }
.semantic-workspace [hidden] { display: none !important; }
.semantic-workspace p { margin: 0; }
.semantic-workspace .semantic-purpose { margin: 0 0 20px; color: var(--text-muted, #586477); }
.semantic-route { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 0 0 24px; color: var(--text-muted, #586477); }
.semantic-workspace .semantic-route li { margin: 0; padding: 0; font-size: 15px; line-height: 24px; }
.semantic-route [aria-current] { color: var(--primary, #4c50dc); font-weight: 600; }
.semantic-workspace .semantic-console { display: block; }
.semantic-workspace .ui-file-empty { display: none; }
.semantic-workspace #semantic-stopwords-panel { display: grid; gap: 12px; }
.semantic-workspace .semantic-section { padding: 24px 0; border-top: 1px solid var(--border, #d9dee7); }
.semantic-workspace h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.semantic-workspace h3 { margin: 8px 0 0; font-size: 17px; }
.semantic-workspace .semantic-state { display: grid; gap: 6px; padding: 14px 16px; margin: 16px 0; border: 1px solid var(--border, #d9dee7); border-left: 4px solid #a5acb7; border-radius: 6px; background: #f7f8fa; }
.semantic-state[data-state="ready"] { border-left-color: #26834a; background: #f2faf5; }
.semantic-state[data-state="checking"], .semantic-state[data-state="sending"] { border-left-color: #565be2; }
.semantic-state[data-state="error"] { border-left-color: #bd3e38; background: #fff5f4; }
.semantic-state[data-state="selection"] { border-left-color: #b48015; background: #fffbed; }
.semantic-state p { font-size: 14px; overflow-wrap: anywhere; }
.semantic-state progress { width: 100%; height: 8px; accent-color: var(--primary, #4c50dc); }
.semantic-workspace .semantic-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.semantic-workspace .semantic-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.semantic-workspace .semantic-field { display: grid; align-content: start; min-width: 0; gap: 8px; }
.semantic-field label { font-size: 14px; font-weight: 600; }
.semantic-field select, .semantic-field textarea { width: 100%; min-width: 0; max-width: 100%; font-size: 15px; }
.semantic-field select { height: 44px; padding: 8px 32px 8px 12px; text-overflow: ellipsis; }
.semantic-workspace .semantic-details-content { display: grid; gap: 16px; padding: 20px; }
.semantic-workspace details { margin: 16px 0 0; align-self: start; }
.semantic-workspace details > summary { min-height: 56px; padding: 14px 20px; }
.semantic-workspace details:not([open]) > summary { border-radius: inherit; }
.semantic-workspace .semantic-check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 0; cursor: pointer; }
.semantic-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary, #4c50dc); }
.semantic-check input:disabled { opacity: .45; }
.semantic-check span { display: grid; gap: 6px; min-width: 0; }
.semantic-check small { font-size: 14px; color: var(--text-muted, #586477); line-height: 1.5; }
.semantic-workspace .semantic-details-content .semantic-check { margin: 0; }
.semantic-workspace .semantic-warnings { background: #fffbed; border-left: 3px solid #b48015; border-radius: 4px; padding: 12px 16px 12px 32px; margin: 16px 0; font-size: 14px; }
.semantic-workspace .semantic-warnings li { margin: 4px 0; }
.semantic-table-scroll { overflow-x: auto; max-width: 100%; }
.semantic-table-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.semantic-table-scroll th, .semantic-table-scroll td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border, #d9dee7); min-width: 100px; max-width: 320px; overflow-wrap: anywhere; vertical-align: top; }
.semantic-table-scroll th { background: #f7f8fa; }
.semantic-table-scroll caption { text-align: left; padding: 8px 0; color: var(--text-muted, #586477); }
.semantic-workspace #semantic-mode-example { white-space: pre-wrap; margin: 8px 0 0; background: #f7f8fa; padding: 12px; font-size: 14px; }
.semantic-workspace .semantic-launchpad { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 0; margin: 0; border-top: 1px solid var(--border, #d9dee7); background: transparent; }
.semantic-launchpad #semantic-run-note, .semantic-launchpad #semantic-removal-warning { flex: 1 0 100%; margin: 0; }
.semantic-workspace .btn { min-height: 44px; }
.semantic-workspace .semantic-history { font-size: 14px; }
.semantic-workspace .semantic-faq { margin-top: 24px; }
.semantic-queue-shell .queue-hero { display: block; padding: 0; }
.semantic-queue-shell .queue-side { display: none; }
.semantic-queue-shell .queue-title { font-size: 28px; margin: 0; }
.semantic-queue-shell .queue-chip-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
.semantic-queue-shell .queue-chip { overflow-wrap: anywhere; font-size: 14px; }
.semantic-queue-shell .queue-progress-shell { padding: 16px 0; }
.semantic-queue-shell .queue-progress-top { display: flex; align-items: center; gap: 20px; }
.semantic-queue-shell .queue-percent { font-size: 32px; font-weight: 700; }
.semantic-queue-shell .queue-bar { height: 8px; background: #e9edf3; border-radius: 4px; overflow: hidden; margin: 16px 0; }
.semantic-queue-shell .queue-bar__fill { height: 100%; background: #4c50dc; }
.semantic-queue-shell .queue-results { display: grid; gap: 24px; margin-top: 20px; }
.semantic-queue-shell .queue-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.semantic-queue-shell .queue-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.semantic-queue-shell .queue-results details .queue-results-grid { padding: 20px; }
.semantic-queue-shell .queue-result-card { min-width: 0; }
.semantic-queue-shell .queue-result-card ul { margin: 12px 0 0; padding-left: 20px; }
.semantic-queue-shell .queue-result-card li { overflow-wrap: anywhere; }
.semantic-queue-shell.semantic-result-ready .queue-hero { display: none; }
@media (max-width: 767px) {
  .semantic-workspace .semantic-fields, .semantic-workspace .semantic-fields--two { grid-template-columns: minmax(0, 1fr); }
  .semantic-workspace .semantic-route { gap: 6px 18px; margin-bottom: 16px; }
  .semantic-workspace .semantic-route li { font-size: 13px; }
  .semantic-workspace .semantic-section { padding: 20px 0; }
  .semantic-workspace h2 { font-size: 20px; }
  .semantic-workspace .semantic-details-content { padding: 16px; }
  .semantic-workspace .tool-page-header { margin-bottom: 12px; }
  .semantic-workspace .tool-page-header h1 { font-size: 28px; }
  .semantic-workspace #semantic-process-button { width: 100%; }
  .semantic-queue-shell .queue-results-grid { grid-template-columns: minmax(0, 1fr); }
  .semantic-queue-shell .queue-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .semantic-workspace * { scroll-behavior: auto; } }
