.workbench-tabs { height: 44px; display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.workbench-tabs [role=tab] { padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); }
.workbench-tabs [aria-selected=true] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.main, .repo-import-panel { height: calc(100vh - var(--header-height) - 44px); height: calc(100dvh - var(--header-height) - 44px); }
#requirementsPanel[hidden], #repoImportPanel[hidden], #menuBtn[hidden] { display: none; }
.repo-import-panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.import-sidebar { min-height: 0; overflow: auto; background: #f8f9fa; border-right: 1px solid var(--line); }
.import-sidebar .req-item { display: block; width: 100%; border: 0; background: transparent; text-align: left; }
.import-sidebar .req-item.active { background: #e9edf3; }
.import-sidebar .req-item:hover { background: #edf0f3; }
.import-task-repo { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.import-task-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.import-content { min-width: 0; overflow: auto; padding: 28px clamp(18px, 3vw, 40px) 40px; }
.import-create { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.import-create .form-heading { margin-bottom: 20px; }
.import-create-row { display: flex; align-items: flex-end; gap: 12px; max-width: 850px; }
.import-create-row .form-group { min-width: 0; flex: 1; margin-bottom: 0; }
.import-create-row .btn-primary { min-height: 38px; flex: none; }
.import-content a { color: var(--accent); }
.import-message { margin: 10px 0; color: var(--muted); overflow-wrap: anywhere; }
.import-message:empty { display: none; }
.import-message.error { color: var(--danger); }
.import-sidebar .import-message { padding: 0 16px; font-size: 12px; }
.import-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 16px; }
.import-detail-header h2 { font-size: 16px; }
.import-detail-header code { font-size: 12px; color: var(--muted); }
.import-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #edf0f3; color: #55606e; font-size: 12px; }
.import-badge.passed { background: #eaf5ee; color: var(--success); }
.import-badge.running, .import-badge.assigned { background: #edf2fd; color: var(--accent); }
.import-badge.failed, .import-badge.shelved { background: #fdf0f0; color: var(--danger); }
.import-section { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.import-section h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.import-metadata { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr); gap: 12px 16px; margin: 0; }
.import-metadata dt { color: var(--muted); }
.import-metadata dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.import-file { border-top: 1px solid var(--line); padding: 12px 0; }
.import-file:last-child { padding-bottom: 0; }
.import-file summary { cursor: pointer; font-weight: 550; overflow-wrap: anywhere; }
.import-file a { display: inline-block; margin-top: 10px; font-size: 12px; }
.import-pre { margin: 12px 0 0; padding: 14px; background: var(--soft); border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 440px; overflow: auto; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-hint { color: var(--muted); }
.import-warning { color: #966315; }
@media (max-width: 900px) { .repo-import-panel { grid-template-columns: 210px minmax(0, 1fr); } .import-metadata { grid-template-columns: 80px minmax(0, 1fr); } }
@media (max-width: 700px) {
  .workbench-tabs { padding: 0 16px; }
  .repo-import-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .import-sidebar { max-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .import-sidebar .req-list { display: flex; }
  .import-sidebar .req-item { flex: 0 0 210px; }
  .import-create-row { align-items: stretch; flex-direction: column; }
  .import-detail-header { align-items: flex-start; }
  .import-section { padding: 16px; }
  .import-content { padding-top: 20px; }
}
