/**
 * Shared Hub chrome — orders, projects, library, profile (not catalog listing).
 * Extracted from catalog.css so non-catalog routes get tabs/head typography.
 */
:root {
  --catalog-nav-font: "Raleway", Inter, system-ui, sans-serif;
}

body.catalog-body {
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
}

.catalog-sidebar,
.catalog-sidebar__label,
.hub-page-tab,
.hub-page-tabs {
  font-family: var(--catalog-nav-font);
}

/* ── Hub list pages (orders, projects) — shared shell ── */
.catalog-main.hub-list-page {
  overflow-y: auto;
  align-items: stretch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-main.hub-list-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.hub-page-main {
  --hub-page-rail-w: 148px;
  padding: 162px 40px 48px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.hub-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hub-page-rail-w);
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hub-page-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  /* Explicit — inherit alone can go near-black if a parent/token drifts */
  color: var(--catalog-text, #f1f5f9);
}

.hub-page-head__hint {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

html.catalog-theme-biz .hub-page-head h1 {
  color: var(--catalog-text, #0f172a);
}

html.catalog-theme-biz .hub-page-head__hint {
  color: #475569;
}

.hub-page-head__action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  width: 100%;
}

.hub-page-head__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 10px;
  color: #00d2ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-align: right;
}

.hub-page-head__link:hover {
  text-decoration: underline;
}

.hub-page-head__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 0;
  border: none;
  background: transparent;
  color: #00d2ff;
  text-decoration: none;
  transition: color 0.15s;
}

.hub-page-head__icon-btn:hover {
  color: #67e8f9;
  background: transparent;
}

.hub-page-head__icon-btn .ti,
.hub-page-head__icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

html.catalog-theme-biz .hub-page-head__icon-btn {
  color: #0891b2;
}

html.catalog-theme-biz .hub-page-head__icon-btn:hover {
  color: #0e7490;
}

.hub-page-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 14px;
  margin: 0 0 22px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.hub-page-tab {
  padding: 0;
  border: none;
  background: transparent;
  /* Was #64748b — near-illegible on cyber black ("чёрный по чёрному") */
  color: #94a3b8;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}

.hub-page-tab:hover {
  color: #e2e8f0;
}

.hub-page-tab.is-active {
  color: #f8fafc;
  font-weight: 600;
  cursor: default;
}

html.catalog-theme-biz .hub-page-tab {
  color: #64748b;
}

html.catalog-theme-biz .hub-page-tab:hover {
  color: #334155;
}

html.catalog-theme-biz .hub-page-tab.is-active {
  color: #0f172a;
}

.hub-page-tab--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.hub-page-tab--icon .ti {
  font-size: 16px;
}

/* Inline links inside empty-state copy */
.hub-empty__inline-link {
  color: #00d2ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-empty__inline-link:hover {
  color: #67e8f9;
}

.hub-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hub-btn-min-h, 44px);
  margin-top: 12px;
  padding: 0 16px;
  border-radius: var(--hub-radius, 12px);
  background: rgba(0, 210, 255, 0.12);
  color: #00d2ff;
  font-weight: 600;
  text-decoration: none;
}

.hub-empty__cta:hover {
  background: rgba(0, 210, 255, 0.2);
}

@media (max-width: 768px) {
  .hub-page-main {
    padding-left: clamp(12px, 3vw, 20px);
    padding-right: clamp(12px, 3vw, 20px);
  }
}

@media (max-width: 720px) {
  .hub-page-main {
    padding: 154px 12px 32px;
  }

  .hub-page-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Commerce flow steps — shared with cart/checkout/orders */
.commerce-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.commerce-flow-steps__sep {
  padding: 0 4px;
  color: #475569;
}

.commerce-flow-steps__label {
  color: #64748b;
}

.commerce-flow-steps__label--active {
  color: #67e8f9;
}

.commerce-flow-steps__label--done {
  color: #cbd5e1;
}

.commerce-flow-steps a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.commerce-flow-steps a:hover .commerce-flow-steps__label--done {
  color: #67e8f9;
}

html.catalog-theme-biz .commerce-flow-steps__label--active {
  color: #0891b2;
}

html.catalog-theme-biz .commerce-flow-steps__label--done {
  color: #475569;
}
