/**
 * 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-color: rgba(255, 255, 255, 0.2) var(--catalog-bg, #030308);
}

.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;
}

.hub-page-head__hint {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.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 {
  font-size: 18px;
  line-height: 1;
}

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;
  color: #64748b;
  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: #94a3b8;
}

.hub-page-tab.is-active {
  color: #f1f5f9;
  font-weight: 600;
  cursor: default;
}

html.catalog-theme-biz .hub-page-tab {
  color: #64748b;
}

html.catalog-theme-biz .hub-page-tab:hover {
  color: #475569;
}

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: 720px) {
  .hub-page-main {
    padding: 154px 16px 32px;
  }

  .hub-page-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
