/*
  Phase 2:
  - topics.html imports product.css and no longer depends on styles.css
  - workbench.html imports product.css for shell/layout but still keeps styles.css
    as a compatibility layer for deep modules during migration
  - product rules are scoped to .topic-page / .workbench-page to avoid bleed
*/

body.topic-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.08), transparent 18%),
    linear-gradient(180deg, #f8fafd 0%, var(--bg-canvas) 100%);
}

.topic-page .page-shell {
  width: min(var(--max-product), calc(100% - 48px));
  max-width: var(--max-product);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.topic-page .brand-lockup strong {
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.topic-page .brand-text {
  display: grid;
  gap: 2px;
}

.topic-page .brand-text em {
  margin: 0;
  line-height: 1.1;
}

.topic-page .brand-text em,
.topic-page .nav-links a,
.topic-page .auth-user-label,
.topic-page .topics-status,
.topic-page .topic-profile-status,
.topic-page .topic-empty,
.topic-page .topic-hero-description,
.topic-page .topic-hero-next p,
.topic-page .topic-profile-analyze label,
.topic-page .topic-profile-panel label span {
  color: var(--muted);
}

.topic-page .nav-links a {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.94rem;
}

.topic-page .top-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.topic-page .auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-page .secondary-btn,
.topic-page .tiny-btn {
  border-radius: 999px;
}

.topic-page .brand-link {
  text-decoration: none;
}

.topic-page .topics-page-main {
  display: grid;
  gap: 28px;
}

.topic-page .topics-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.84fr);
  gap: 26px;
  align-items: stretch;
}

.topic-page .topics-hero-copy,
.topic-page .topics-hero-preview,
.topic-page .topics-surface,
.topic-page .topic-profile-panel,
.topic-page .topic-hero-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
}

.topic-page .topics-hero-copy,
.topic-page .topics-hero-preview,
.topic-page .topics-surface,
.topic-page .topic-profile-panel {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.topic-page .topics-hero-copy {
  padding: 30px;
}

.topic-page .topics-hero-copy h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-wrap: balance;
}

.topic-page .topics-hero-copy .lead {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.topic-page .topics-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.topic-page .topics-hero-preview {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.94), transparent 22%),
    linear-gradient(140deg, #edf3ff 0%, #f8fbff 42%, #e8eef8 100%);
}

.topic-page .topics-preview-glow {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 72%);
}

.topic-page .topics-preview-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100%;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.58);
}

.topic-page .topics-preview-card p,
.topic-page .topics-preview-card span {
  margin: 0;
  color: var(--muted);
}

.topic-page .topics-preview-card p {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topic-page .topics-preview-card strong {
  font-size: 1.52rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.topic-page .topics-preview-card span {
  margin-top: 20px;
  line-height: 1.5;
}

.topic-page .topics-surface {
  padding: 22px 24px 24px;
}

.topic-page .topics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topic-page .topics-toolbar-actions,
.topic-page .topic-profile-actions,
.topic-page .topics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-page .topics-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.topic-page .topics-filter select {
  min-width: 104px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.topic-page .topic-profile-actions {
  align-items: center;
}

.topic-page .topic-profile-actions p {
  margin: 0;
}

.topic-page .topic-profile-actions .secondary-btn {
  margin-left: auto;
  margin-right: 10px;
}

.topic-page .topics-main-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.topic-page .topics-main-shell.topic-profile-collapsed {
  grid-template-columns: 1fr;
}

.topic-page .topic-profile-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.topic-page .topic-profile-panel-hidden {
  display: none;
}

.topic-page .topic-profile-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.topic-page .topic-profile-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.topic-page .topic-profile-grid {
  display: grid;
  gap: 14px;
}

.topic-page .topic-profile-grid + .topic-profile-actions {
  margin-top: 20px;
}

.topic-page .topic-profile-panel label {
  display: grid;
  gap: 8px;
}

.topic-page .topic-profile-panel select,
.topic-page .topic-profile-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  color: var(--ink);
}

.topic-page .topic-profile-panel select {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.topic-page .topic-profile-analyze {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
}

.topic-page .topics-recommend-shell {
  display: grid;
  gap: 16px;
}

.topic-page .topics-main-shell.topic-profile-collapsed .topics-recommend-shell {
  max-width: none;
}

.topic-page .topic-hero-card {
  min-height: 560px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-focus);
  display: grid;
  gap: 20px;
  align-content: start;
}

.topic-page .topic-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topic-page .topic-hero-head {
  display: grid;
  gap: 14px;
}

.topic-page .topic-hero-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.topic-page .topic-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-page .topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
}

.topic-page .topic-hero-description {
  margin: 0;
  max-width: 52ch;
  line-height: 1.72;
}

.topic-page .topic-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-page .topic-hero-panel,
.topic-page .topic-hero-next {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.88);
}

.topic-page .topic-hero-panel h3,
.topic-page .topic-hero-next h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.topic-page .topic-hero-panel p,
.topic-page .topic-hero-next p {
  margin: 0;
  line-height: 1.66;
}

.topic-page .topic-hero-summary {
  grid-column: 1 / -1;
}

.topic-page .topic-summary-status {
  margin-top: 10px !important;
  color: rgba(30, 64, 175, 0.72);
  font-size: 0.88rem;
}

.topic-page .topic-hero-next {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 255, 0.94));
  border-color: rgba(37, 99, 235, 0.12);
}

.topic-page .topics-actions .secondary-btn {
  min-height: 46px;
}

.topic-page #topicProfileSaveBtn,
.topic-page #topicProfileAnalyzeBtn {
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.topic-page .topic-card-enter {
  animation: topicCardEnter 220ms ease-out;
}

.topic-page .topic-card-leave {
  animation: topicCardLeave 180ms ease-in forwards;
}

@keyframes topicCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topicCardLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 980px) {
  .topic-page .topics-hero,
  .topic-page .topics-main-shell,
  .topic-page .topic-hero-grid {
    grid-template-columns: 1fr;
  }

  .topic-page .topic-hero-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .topic-page .page-shell {
    padding: 18px 14px 42px;
  }

  .topic-page .topics-hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    max-width: none;
  }

  .topic-page .topics-hero-copy,
  .topic-page .topics-hero-preview,
  .topic-page .topics-surface,
  .topic-page .topic-profile-panel,
  .topic-page .topic-hero-card {
    border-radius: 24px;
  }

  .topic-page .topics-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-page .top-nav-right {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
  }

  .topic-page .auth-nav {
    flex-wrap: wrap;
  }
}

body.workbench-page {
  background:
    radial-gradient(circle at top left, rgba(80, 122, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f8ff 0%, #edf3ff 100%);
}

.workbench-page .page-shell {
  max-width: 1560px;
  padding-top: 0;
}

.workbench-page .product-workbench-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 1.5rem;
  align-items: start;
}

.workbench-page .top-nav {
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: 0;
}

.workbench-page .stitch-left-nav {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(24, 42, 84, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 48px rgba(48, 76, 155, 0.09);
  backdrop-filter: blur(18px);
}

.workbench-page .workbench-main-column,
.workbench-page .workbench-delivery-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.workbench-page .studio {
  border: 1px solid rgba(24, 42, 84, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 52px rgba(48, 76, 155, 0.09);
  backdrop-filter: blur(20px);
}

.workbench-page .workbench-studio-intro {
  display: grid;
  gap: 0.75rem;
}

.workbench-page .workbench-persistence-notice {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(65, 99, 191, 0.14);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.96);
  color: #3351a5;
  font-size: 0.88rem;
  line-height: 1.4;
}

.workbench-page .workbench-progress-strip {
  margin-top: 1.25rem;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(233, 241, 255, 0.9));
  border: 1px solid rgba(76, 108, 196, 0.12);
}

.workbench-page .chat-flow-panel,
.workbench-page .quick-compose-panel,
.workbench-page .brief-diagnosis-panel,
.workbench-page .workbench-delivery-intro {
  border: 1px solid rgba(24, 42, 84, 0.08);
  background: rgba(248, 251, 255, 0.88);
  box-shadow: 0 16px 36px rgba(48, 76, 155, 0.07);
}

.workbench-page .workbench-delivery-intro {
  padding: 1.25rem 1.35rem;
  border-radius: 26px;
}

.workbench-page .workbench-delivery-intro h3 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.45rem);
  line-height: 1.3;
}

.workbench-page .workbench-delivery-intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.workbench-page #resultFlowSection,
.workbench-page #editorStageSection {
  min-width: 0;
}

.workbench-page #resultFlowSection > .card,
.workbench-page #resultFlowSection > .card.subtle-card,
.workbench-page #resultFlowSection > .advanced-section,
.workbench-page #resultFlowSection > .advanced-section.subtle-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workbench-page #resultFlowSection.stage-hidden,
.workbench-page #editorStageSection.stage-hidden {
  display: none;
}

.workbench-page .results .result-stage,
.workbench-page #editorStageSection .editor-card {
  border: 1px solid rgba(24, 42, 84, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 52px rgba(48, 76, 155, 0.09);
}

.workbench-page .results .result-stage {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}

.workbench-page .stitch-skeleton-card,
.workbench-page .understanding-panel,
.workbench-page .style-profile-panel,
.workbench-page .author-profile-panel,
.workbench-page .style-impact-panel,
.workbench-page .risk-summary,
.workbench-page .draft-section {
  border: 1px solid rgba(24, 42, 84, 0.08);
  background: rgba(249, 251, 255, 0.95);
}

.workbench-page .understanding-panel,
.workbench-page .style-profile-panel,
.workbench-page .author-profile-panel,
.workbench-page .style-impact-panel,
.workbench-page .risk-summary,
.workbench-page .draft-section,
.workbench-page .primary-result-grid .result-card,
.workbench-page .primary-result-grid .outline-card,
.workbench-page .support-grid .result-card,
.workbench-page #editorStageSection .editor-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.workbench-page .stitch-skeleton-card,
.workbench-page .draft-section,
.workbench-page .primary-result-grid .result-card,
.workbench-page .primary-result-grid .outline-card,
.workbench-page .advanced-section,
.workbench-page .understanding-panel,
.workbench-page .style-profile-panel,
.workbench-page .author-profile-panel,
.workbench-page .style-impact-panel,
.workbench-page .risk-summary,
.workbench-page #editorStageSection .editor-card {
  border-radius: 28px;
  overflow: hidden;
  background-clip: padding-box;
}

.workbench-page .stitch-skeleton-card,
.workbench-page .primary-result-grid .result-card,
.workbench-page .primary-result-grid .outline-card {
  padding: 28px;
}

.workbench-page .stitch-blueprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(24, 42, 84, 0.1);
}

.workbench-page .stitch-blueprint-head .section-index {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a14f26;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-page .stitch-blueprint-head .history-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workbench-page .stitch-blueprint-head .history-actions .secondary-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(65, 99, 191, 0.14);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.96);
  color: #3351a5;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 400;
  box-shadow: none;
}

.workbench-page .stitch-blueprint-head .history-actions .secondary-btn:hover {
  border-color: rgba(65, 99, 191, 0.24);
  background: rgba(235, 242, 255, 0.98);
  color: #2747a5;
}

.workbench-page .draft-section {
  margin-top: 10px;
}

.workbench-page .draft-rating-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 42, 84, 0.12);
}

.workbench-page .draft-rating-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--font-sm);
}

.workbench-page .draft-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workbench-page .draft-feedback-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 42, 84, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2f58;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.workbench-page .draft-feedback-btn:hover {
  transform: translateY(-1px);
}

.workbench-page .draft-feedback-btn.is-active {
  border-color: rgba(65, 99, 191, 0.28);
  background: rgba(235, 242, 255, 0.96);
  color: #2747a5;
}

.workbench-page .copy-feedback {
  margin: 0;
}

.workbench-page .result-stage-actions {
  margin-top: 16px;
}

.workbench-page #resultFlowSection,
.workbench-page .results,
.workbench-page .stitch-blueprint-panel,
.workbench-page .stitch-skeleton-only {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workbench-page #draftStatus,
.workbench-page #draftRatingStatus {
  margin-top: 10px;
}

.workbench-page .understanding-panel,
.workbench-page .style-profile-panel,
.workbench-page .author-profile-panel,
.workbench-page .style-impact-panel,
.workbench-page .advanced-section {
  display: none;
}

.workbench-page .risk-summary {
  display: grid;
}

.workbench-page .stitch-skeleton-only .risk-summary {
  display: grid;
}

.workbench-page .chat-thread {
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 248, 255, 0.95));
  border: 1px solid rgba(24, 42, 84, 0.08);
}

.workbench-page .chat-bubble.bot {
  border-color: rgba(65, 99, 191, 0.12);
  background: rgba(241, 246, 255, 0.96);
  color: #24365f;
}

.workbench-page .chat-edit-btn,
.workbench-page .chat-quick-btn {
  border: 1px solid rgba(65, 99, 191, 0.14);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.96);
  color: #3351a5;
}

.workbench-page .chat-edit-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.workbench-page .chat-quick-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.workbench-page .chat-edit-btn:hover,
.workbench-page .chat-quick-btn:hover {
  border-color: rgba(65, 99, 191, 0.24);
  background: rgba(235, 242, 255, 0.98);
  color: #2747a5;
}

.workbench-page #editorStageSection .card-tag {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.workbench-page #editorStageSection .outline-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  width: 100%;
}

.workbench-page #editorStageSection .editor-head-copy {
  display: grid;
  gap: 8px;
}

.workbench-page #editorStageSection .editor-inline-note {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3351a5;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  min-height: 34px;
}

.workbench-page #editorStageSection .history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.workbench-page #editorStageSection .history-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(65, 99, 191, 0.14);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.96);
  color: #3351a5;
  font-size: 0.82rem;
  line-height: 34px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.workbench-page #editorStageSection .history-actions .secondary-btn:hover {
  border-color: rgba(65, 99, 191, 0.24);
  background: rgba(235, 242, 255, 0.98);
  color: #2747a5;
}

@media (max-width: 1120px) {
  .workbench-page #editorStageSection .outline-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .workbench-page #editorStageSection .history-actions {
    justify-self: start;
  }
}


.workbench-page #editorStageSection .editor-grid > .field:not(.field-full) textarea {
  min-height: 168px;
}

.workbench-page .chat-composer textarea,
.workbench-page .field textarea,
.workbench-page .field input,
.workbench-page .field select {
  border-color: rgba(65, 99, 191, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.workbench-page .action-row {
  gap: 0.8rem;
}

.workbench-page .stitch-collection-bar,
.workbench-page .studio-steps {
  overflow-x: auto;
}

.workbench-page .workbench-progress-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.workbench-page .workbench-progress-strip::-webkit-scrollbar {
  display: none;
}

.workbench-page .workbench-progress-strip .stitch-collection-item {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7b869d;
  font-size: 0.8rem;
  font-weight: 600;
}

.workbench-page .workbench-progress-strip .stitch-collection-item.is-done {
  color: #2447a6;
  background: transparent;
  border: 0;
  font-weight: 700;
}

.workbench-page .workbench-progress-strip .stitch-collection-sep {
  flex: 0 0 auto;
}

.workbench-page .stitch-history-item,
.workbench-page .stitch-profile-entry {
  border-color: rgba(24, 42, 84, 0.1);
}

.workbench-page,
.workbench-page button,
.workbench-page input,
.workbench-page select,
.workbench-page textarea {
  font-family: var(--font-body);
  font-style: normal;
}

.workbench-page .brand-lockup strong,
.workbench-page .brand-lockup p,
.workbench-page .nav-links a,
.workbench-page .auth-user-label,
.workbench-page .stitch-nav-item,
.workbench-page .stitch-nav-link,
.workbench-page h1,
.workbench-page h2,
.workbench-page h3,
.workbench-page h4,
.workbench-page h5,
.workbench-page h6 {
  font-family: var(--font-body);
  font-style: normal;
}

.workbench-page .brand-text {
  display: grid;
  gap: 2px;
}

.workbench-page .brand-text em {
  margin: 0;
  line-height: 1.1;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-page .stitch-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.workbench-page .stitch-nav-head .card-tag,
.workbench-page .draft-section .card-tag {
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.workbench-page .stitch-collection-track .stitch-collection-item {
  padding: 8px 11px;
}

.workbench-page .top-nav .auth-user-label.stage-hidden {
  display: none;
}

@media (max-width: 1260px) {
  .workbench-page .product-workbench-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .workbench-page .workbench-delivery-column {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .workbench-page .product-workbench-layout {
    grid-template-columns: 1fr;
  }

  .workbench-page .stitch-left-nav {
    position: static;
  }
}
