@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}


:root {
  color-scheme: dark;
  --hub-bg: #020b16;
  --hub-bg-deep: #010710;
  --hub-panel: rgba(6, 20, 35, 0.92);
  --hub-panel-soft: rgba(8, 25, 42, 0.76);
  --hub-line: #1a3148;
  --hub-line-soft: rgba(49, 82, 113, 0.48);
  --hub-text: #f4f7fb;
  --hub-muted: #95a6b9;
  --hub-faint: #65798e;
  --hub-blue: #2877e8;
  --hub-blue-bright: #51a0ff;
  --hub-cyan: #1bd9e8;
  --hub-green: #77d66c;
  --hub-amber: #f2c84b;
  --hub-pink: #ef72c3;
  --hub-sidebar-width: 204px;
  --hub-topbar-height: 64px;
  --hub-radius: 8px;
  --hub-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--hub-bg-deep);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 8%, rgba(20, 89, 167, 0.13), transparent 29rem),
    linear-gradient(135deg, #020a14 0%, #03101e 56%, #020b16 100%);
  color: var(--hub-text);
  font: 400 14px/1.45 "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.hub-boot-screen {
  align-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(37, 132, 232, 0.22), transparent 24rem),
    linear-gradient(145deg, #010712, #06172a 58%, #020a15);
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100dvh;
  padding: 1.5rem;
  position: fixed;
  z-index: 5000;
}

.hub-boot-screen[hidden] {
  display: none;
}

.hub-boot-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 32rem;
  text-align: center;
  width: 100%;
}

.hub-boot-card img {
  filter: drop-shadow(0 0 2.25rem rgba(55, 169, 255, 0.38));
  height: 5.25rem;
  margin-bottom: 1.2rem;
  width: 5.25rem;
}

.hub-boot-kicker {
  color: var(--hub-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hub-boot-card h1 {
  color: #fff;
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  line-height: 1.1;
  margin: 0.65rem 0;
}

.hub-boot-card p {
  color: #a8bbcf;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

.hub-boot-progress {
  background: rgba(137, 184, 220, 0.16);
  border-radius: 999px;
  display: block;
  height: 3px;
  margin-top: 1.7rem;
  overflow: hidden;
  width: min(18rem, 72vw);
}

.hub-boot-progress i {
  animation: hub-boot-progress 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, var(--hub-blue-bright), var(--hub-cyan));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

.hub-boot-card > button {
  margin-top: 1.4rem;
}

.hub-boot-screen[data-state="error"] .hub-boot-progress {
  display: none;
}

body.hub-booting {
  overflow: hidden;
}

body.hub-booting > :not(.hub-boot-screen) {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

@keyframes hub-boot-progress {
  from { transform: translateX(-115%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-boot-progress i { animation: none; transform: none; width: 100%; }
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-shell {
  min-height: 100vh;
}

.hub-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--hub-sidebar-width);
  padding: 18px 14px;
  flex-direction: column;
  border-right: 1px solid var(--hub-line);
  background:
    radial-gradient(circle at 30% 0%, rgba(31, 111, 219, 0.11), transparent 17rem),
    rgba(1, 11, 22, 0.96);
  backdrop-filter: blur(18px);
}

body.reach-hub .hub-brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--hub-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.reach-hub .hub-global-brand {
  min-height: 144px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px 14px;
  text-align: center;
}

body.reach-hub .hub-brand-marks {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.reach-hub .hub-brand .hub-brand-mark {
  width: 96px;
  height: 96px;
  max-height: none;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.hub-brand-copy {
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 1.05;
  text-align: center;
}

.hub-brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.hub-brand :is(i, svg) {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--hub-cyan);
}

.hub-primary-nav {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.hub-primary-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c6d1dd;
  font-size: 12px;
  text-transform: uppercase;
  transition: 160ms ease;
}

.hub-primary-nav [hidden] { display: none; }

.hub-primary-nav a:hover,
.hub-primary-nav a[aria-current="page"] {
  border-color: rgba(68, 132, 224, 0.35);
  background: linear-gradient(100deg, rgba(35, 98, 188, 0.75), rgba(19, 69, 138, 0.66));
  color: #fff;
}

.hub-primary-nav svg,
.hub-tool-entry > svg:first-child {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.65;
}

.hub-sidebar-spacer {
  flex: 1 1 auto;
  min-height: 36px;
}

.hub-tool-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid rgba(55, 113, 178, 0.55);
  border-radius: var(--hub-radius);
  background: linear-gradient(135deg, rgba(22, 78, 147, 0.26), rgba(6, 26, 46, 0.55));
  transition: 160ms ease;
}

.hub-community-tool-entry {
  border-color: rgba(27, 217, 232, 0.36);
  background: linear-gradient(135deg, rgba(16, 92, 125, 0.24), rgba(6, 26, 46, 0.58));
}

.hub-community-tool-entry > svg:first-child {
  color: var(--hub-cyan);
}

.hub-tool-entry:hover {
  border-color: var(--hub-blue-bright);
  transform: translateY(-1px);
}

.hub-tool-entry > span,
.hub-profile-card > span:nth-child(2) {
  display: grid;
}

.hub-tool-entry strong,
.hub-profile-card strong {
  font-size: 12px;
  font-weight: 600;
}

.hub-tool-entry small,
.hub-profile-card small {
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-tool-entry > svg:last-child {
  width: 14px;
}

.hub-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(4, 17, 31, 0.62);
}

.hub-profile-card > a {
  grid-column: 1 / -1;
  color: var(--hub-blue-bright);
  font-size: 11px;
  text-align: center;
}

.hub-avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 163, 217, 0.35);
  border-radius: 50%;
  background: #102743;
  color: #eaf3ff;
  font-size: 10px;
  font-weight: 650;
}

.hub-avatar.avatar-blue { background: linear-gradient(145deg, #143560, #0a1b31); }
.hub-avatar.avatar-cyan { background: linear-gradient(145deg, #12616b, #092932); }
.hub-avatar.avatar-pink { background: linear-gradient(145deg, #61345d, #28182d); }
.hub-avatar.avatar-amber { background: linear-gradient(145deg, #69511f, #2a230f); }
.hub-avatar.avatar-green { background: linear-gradient(145deg, #2c6436, #142d1b); }

.hub-social-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--hub-line);
}

.hub-social-label {
  color: var(--hub-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-social-link {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: rgba(8, 25, 42, 0.72);
  color: var(--hub-text);
  transition: border-color 150ms ease, background 150ms ease;
}

.hub-social-link:hover,
.hub-social-link:focus-visible {
  border-color: var(--hub-cyan);
  background: rgba(27, 217, 232, 0.08);
}

.hub-social-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #f4f7fb;
  color: #071323;
  font-size: 13px;
  font-weight: 850;
}

.hub-social-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.hub-social-link strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-social-link small,
.hub-social-section p {
  color: var(--hub-muted);
  font-size: 9px;
}

.hub-social-link > svg {
  width: 14px;
  height: 14px;
  color: var(--hub-muted);
}

.hub-social-section p {
  margin: 0;
}

.hub-sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: 9px;
  line-height: 1.45;
}

.hub-sidebar-footer strong {
  color: var(--hub-text);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hub-sidebar-footer span {
  color: var(--hub-faint);
}

.hub-sidebar-footer small {
  color: var(--hub-muted);
  font: inherit;
}

.hub-workspace {
  min-height: 100vh;
  margin-left: var(--hub-sidebar-width);
}

.hub-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: var(--hub-topbar-height);
  align-items: center;
  gap: 16px;
  padding: 0 22px 0 30px;
  border-bottom: 1px solid rgba(31, 56, 80, 0.72);
  background: rgba(2, 11, 22, 0.87);
  backdrop-filter: blur(18px);
}

.hub-menu-button {
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d5dee8;
  cursor: pointer;
}

.hub-global-search {
  display: flex;
  width: min(365px, 42vw);
  height: 34px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(34, 58, 82, 0.72);
  border-radius: 6px;
  background: rgba(7, 20, 34, 0.78);
  color: var(--hub-muted);
}

.hub-global-search:focus-within {
  border-color: rgba(67, 139, 231, 0.75);
  box-shadow: 0 0 0 3px rgba(40, 119, 232, 0.1);
}

.hub-global-search svg {
  width: 16px;
}

.hub-global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-text);
  font-size: 11px;
}

.hub-global-search input::placeholder {
  color: #8191a3;
}

.hub-global-search kbd {
  padding: 1px 5px;
  border: 1px solid #294158;
  border-radius: 4px;
  color: #70849a;
  font: inherit;
  font-size: 9px;
}

.hub-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hub-top-actions button,
.hub-top-actions a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d5dee8;
  cursor: pointer;
}

.hub-top-actions button:hover,
.hub-top-actions a:hover,
.hub-menu-button:hover {
  border-color: var(--hub-line);
  background: rgba(16, 41, 67, 0.58);
}

.hub-top-actions svg {
  width: 18px;
  stroke-width: 1.6;
}

.hub-top-actions .hub-avatar {
  width: 32px;
  height: 32px;
}

.hub-top-actions .hub-account-trigger {
  border-radius: 50%;
}

.hub-top-actions .hub-account-trigger:hover,
.hub-top-actions .hub-account-trigger:focus-visible {
  border-color: var(--hub-cyan);
}

.hub-main {
  width: 100%;
  min-height: calc(100vh - var(--hub-topbar-height));
  padding: 22px 26px 34px;
  outline: 0;
}

.hub-page {
  width: min(1290px, 100%);
  margin: 0 auto;
}

.hub-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hub-page-header h1 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 580;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hub-page-header p {
  margin: 4px 0 0;
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #24415e;
  border-radius: 5px;
  background: rgba(8, 23, 39, 0.88);
  color: #eff6ff;
  font-size: 12px;
  cursor: pointer;
  transition: 150ms ease;
}

.hub-button:hover {
  border-color: #3e78b8;
  transform: translateY(-1px);
}

.hub-button.primary {
  border-color: #2c73dd;
  background: linear-gradient(180deg, #2877e8, #1556bb);
  box-shadow: 0 9px 22px rgba(23, 91, 194, 0.22);
}

.hub-button svg {
  width: 16px;
}

.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hub-blue-bright);
  font-size: 11px;
}

.hub-link svg {
  width: 14px;
}

.hub-panel {
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: linear-gradient(150deg, rgba(8, 24, 40, 0.88), rgba(3, 15, 27, 0.92));
  box-shadow: var(--hub-shadow);
}

.hub-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 10px;
}

.hub-panel-title h2,
.hub-panel-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
}

.hub-home-hero {
  position: relative;
  display: grid;
  min-height: 296px;
  margin-bottom: 10px;
  overflow: hidden;
  grid-template-columns: minmax(270px, 40%) 1fr;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: #04111f;
  box-shadow: var(--hub-shadow);
}

.hub-home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 11, 22, 0.95) 2%, rgba(2, 11, 22, 0.72) 37%, rgba(2, 11, 22, 0.04) 70%);
}

.hub-home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
  filter: saturate(0.84) contrast(1.09);
}

.hub-home-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 30px 0 30px 34px;
}

.hub-home-hero-copy .eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--hub-blue-bright);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hub-home-hero-copy h1 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hub-home-hero-copy p {
  max-width: 440px;
  margin: 14px 0 22px;
  color: #b4c0cd;
  font-size: 14px;
  line-height: 1.55;
}

.hub-home-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr 1.2fr;
  gap: 10px;
}

.hub-stack-list {
  display: grid;
  gap: 0;
  padding: 0 10px 10px;
}

.hub-feature-main {
  margin: 0 10px 10px;
  overflow: hidden;
  border: 1px solid var(--hub-line-soft);
  border-radius: 6px;
  background: rgba(2, 12, 23, 0.76);
}

.hub-feature-main img {
  width: 100%;
  height: 146px;
  object-fit: cover;
}

.hub-feature-main > div {
  padding: 12px;
}

.hub-feature-main h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: 560;
}

.hub-feature-main p,
.hub-story-row p,
.hub-discussion-row p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 11px;
}

.hub-story-row,
.hub-discussion-row,
.hub-resolved-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(37, 64, 89, 0.58);
}

.hub-story-row:last-child,
.hub-discussion-row:last-child,
.hub-resolved-row:last-child {
  border-bottom: 0;
}

.hub-story-row {
  grid-template-columns: 72px 1fr;
}

.hub-story-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
}

.hub-story-row h3,
.hub-discussion-row h3,
.hub-resolved-row h3 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 520;
}

.hub-discussion-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
}

.hub-discussion-row > svg,
.hub-resolved-row > svg {
  width: 19px;
  color: #d7e4f2;
  stroke-width: 1.5;
}

.hub-discussion-meta,
.hub-story-meta,
.hub-resolved-meta,
.hub-card-meta,
.hub-thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-discussion-count {
  display: grid;
  justify-items: end;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-discussion-count strong {
  color: #dbe7f2;
  font-size: 11px;
  font-weight: 500;
}

.hub-resolved-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  margin: 0 8px;
  padding: 11px 5px;
}

.hub-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid rgba(112, 204, 103, 0.48);
  border-radius: 4px;
  color: var(--hub-green);
  font-size: 9px;
  line-height: 1.45;
  text-transform: uppercase;
}

.hub-status.resolved {
  border-color: rgba(22, 218, 226, 0.48);
  color: var(--hub-cyan);
}

.hub-status.invite {
  border-color: rgba(242, 200, 75, 0.45);
  color: var(--hub-amber);
}

.hub-tag {
  display: inline-flex;
  padding: 2px 5px;
  border: 1px solid rgba(51, 125, 222, 0.65);
  border-radius: 3px;
  color: var(--hub-blue-bright);
  font-size: 8px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hub-tag.cyan { border-color: rgba(27, 217, 232, 0.48); color: var(--hub-cyan); }
.hub-tag.pink { border-color: rgba(239, 114, 195, 0.42); color: var(--hub-pink); }
.hub-tag.green { border-color: rgba(119, 214, 108, 0.42); color: var(--hub-green); }
.hub-tag.amber { border-color: rgba(242, 200, 75, 0.42); color: var(--hub-amber); }

.hub-avatar-stack {
  display: flex;
  padding-left: 7px;
}

.hub-avatar-stack .hub-avatar {
  width: 22px;
  height: 22px;
  margin-left: -7px;
  border: 2px solid #071525;
  font-size: 7px;
}

.hub-news-layout,
.hub-discussion-layout,
.hub-thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.hub-filter-bar,
.hub-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.hub-filter-bar button,
.hub-tab-bar button {
  min-width: 58px;
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  background: rgba(3, 15, 27, 0.65);
  color: var(--hub-muted);
  font-size: 10px;
  cursor: pointer;
}

.hub-filter-bar button:hover,
.hub-filter-bar button[aria-pressed="true"],
.hub-tab-bar button[aria-selected="true"] {
  border-color: #377fdb;
  background: linear-gradient(180deg, #276fda, #1853ad);
  color: #fff;
}

.hub-section-label {
  display: block;
  margin: 0 0 8px;
  color: var(--hub-blue-bright);
  font-size: 11px;
}

.hub-news-feature {
  display: grid;
  min-height: 286px;
  overflow: hidden;
  grid-template-columns: 1.35fr 1fr;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: var(--hub-panel);
}

.hub-news-feature img {
  width: 100%;
  height: 100%;
  min-height: 286px;
  object-fit: cover;
}

.hub-news-feature-copy {
  display: flex;
  padding: 26px;
  flex-direction: column;
  justify-content: center;
}

.hub-news-feature-copy h2 {
  margin: 9px 0 9px;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 520;
  line-height: 1.15;
}

.hub-news-feature-copy > p {
  margin: 0 0 17px;
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hub-news-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.hub-news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(4, 17, 29, 0.86);
}

.hub-news-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.hub-news-card-copy {
  display: flex;
  min-height: 152px;
  padding: 10px;
  flex-direction: column;
}

.hub-news-card h3 {
  margin: 7px 0 6px;
  font-size: 14px;
  font-weight: 530;
  line-height: 1.3;
}

.hub-news-card p {
  margin: 0 0 10px;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-news-card .hub-card-meta {
  margin-top: auto;
}

.hub-news-card > a {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-blue-bright);
  font-size: 11px;
}

.hub-rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hub-rail-list {
  display: grid;
  padding: 0 12px 11px;
}

.hub-ranked-row {
  display: grid;
  grid-template-columns: 22px 64px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.hub-rank {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1c62c4;
  font-size: 9px;
}

.hub-ranked-row img,
.hub-publication-row img,
.hub-shared-row img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
}

.hub-ranked-row h3,
.hub-publication-row h3,
.hub-shared-row h3 {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 520;
}

.hub-ranked-row small,
.hub-publication-row small,
.hub-shared-row small {
  color: var(--hub-muted);
  font-size: 9px;
}

.hub-publication-row,
.hub-shared-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(37, 64, 89, 0.5);
}

.hub-publication-row:last-child,
.hub-shared-row:last-child {
  border-bottom: 0;
}

.hub-newsletter {
  padding: 12px;
}

.hub-newsletter h3 {
  margin: 0 0 2px;
  font-size: 13px;
}

.hub-newsletter p {
  margin: 0 0 10px;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.hub-newsletter input,
.hub-search-hero input,
.hub-composer textarea {
  min-width: 0;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  outline: 0;
  background: rgba(2, 12, 23, 0.78);
  color: var(--hub-text);
}

.hub-newsletter input {
  height: 31px;
  padding: 0 9px;
  font-size: 10px;
}

.hub-search-hero {
  position: relative;
  min-height: 168px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 28px 24px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: #04111f;
}

.hub-search-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #061626 0%, rgba(5, 20, 35, 0.88) 54%, rgba(3, 12, 23, 0.14) 100%),
    url("/assets/lucida-brand/lucida-realistic-satellite-hero.webp") 92% 48% / 65% auto no-repeat;
  opacity: 0.9;
}

.hub-search-hero > * {
  position: relative;
  z-index: 1;
}

.hub-search-hero h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 540;
}

.hub-search-hero label {
  display: flex;
  width: min(610px, 72%);
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #294660;
  border-radius: 24px;
  background: rgba(5, 18, 32, 0.9);
}

.hub-search-hero label svg {
  width: 20px;
}

.hub-search-hero input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.hub-search-hero p {
  margin: 10px 0 0;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.hub-domain-header h2,
.hub-conversation-section h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
}

.hub-domain-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.hub-domain-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(6, 20, 34, 0.78);
}

.hub-domain-card img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(0.72) contrast(1.08);
}

.hub-domain-card h3 {
  min-height: 33px;
  margin: 9px 0 2px;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
  text-transform: uppercase;
}

.hub-domain-card > p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-domain-activity {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--hub-muted);
  font-size: 8px;
}

.hub-domain-activity::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-green);
  content: "";
}

.hub-conversation-table {
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(5, 18, 31, 0.78);
}

.hub-table-tabs {
  display: flex;
  min-height: 38px;
  align-items: end;
  gap: 25px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-table-tabs button {
  height: 37px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hub-muted);
  font-size: 10px;
  cursor: pointer;
}

.hub-table-tabs button[aria-selected="true"] {
  border-color: var(--hub-blue);
  color: #fff;
}

.hub-thread-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: 48px minmax(210px, 1.3fr) minmax(120px, .7fr) 135px 46px 92px 94px;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(37, 64, 89, 0.55);
}

.hub-thread-row:last-child {
  border-bottom: 0;
}

.hub-thread-row:hover {
  background: rgba(20, 52, 82, 0.3);
}

.hub-thread-row > img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.hub-thread-row h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 520;
}

.hub-thread-row small,
.hub-thread-row > span {
  color: var(--hub-muted);
  font-size: 9px;
}

.hub-contributor-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}

.hub-contributor-row strong {
  display: block;
  font-size: 10px;
  font-weight: 520;
}

.hub-contributor-row small {
  color: var(--hub-muted);
  font-size: 8px;
}

.hub-contributor-row > span:last-child {
  color: var(--hub-muted);
  font-size: 9px;
  text-align: right;
}

.hub-invite-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(37, 64, 89, 0.55);
}

.hub-invite-row:last-child {
  border-bottom: 0;
}

.hub-invite-row h3 {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 520;
}

.hub-invite-row p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 8px;
}

.hub-thread-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.hub-thread-heading h1 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 520;
}

.hub-thread-heading .hub-thread-meta {
  width: 100%;
}

.hub-thread-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.hub-thread-feed {
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(4, 16, 28, 0.7);
}

.hub-post {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-post:last-child {
  border-bottom: 0;
}

.hub-post-body {
  min-width: 0;
}

.hub-post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.hub-post-header strong {
  font-size: 12px;
  font-weight: 580;
}

.hub-post-header small {
  color: var(--hub-muted);
  font-size: 9px;
}

.hub-post p {
  max-width: 800px;
  margin: 0 0 8px;
  color: #b9c5d1;
  font-size: 10px;
  line-height: 1.5;
}

.hub-post-actions {
  display: flex;
  gap: 14px;
}

.hub-post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hub-muted);
  font-size: 9px;
  cursor: pointer;
}

.hub-post-actions svg {
  width: 14px;
}

.hub-compare-grid {
  display: grid;
  max-width: 650px;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
}

.hub-compare-grid figure {
  margin: 0;
  overflow: hidden;
}

.hub-compare-grid figure + figure {
  border-left: 1px solid var(--hub-line);
}

.hub-compare-grid figcaption {
  padding: 6px 8px;
  background: #0a1a2a;
  font-size: 9px;
}

.hub-compare-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
}

.hub-quote {
  max-width: 540px;
  margin: 6px 0 9px;
  padding: 8px 10px;
  border: 1px solid #2a435b;
  border-left: 3px solid #3b81d8;
  border-radius: 5px;
  background: rgba(13, 31, 49, 0.74);
  color: var(--hub-muted);
  font-size: 9px;
}

.hub-composer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: rgba(6, 18, 31, 0.92);
}

.hub-composer textarea {
  width: 100%;
  min-height: 76px;
  padding: 11px;
  resize: vertical;
}

.hub-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.hub-composer-actions .hub-button:last-child {
  margin-left: auto;
}

.hub-shared-row {
  grid-template-columns: 68px 1fr auto;
}

.hub-shared-row > button {
  border: 0;
  background: transparent;
  color: var(--hub-muted);
  cursor: pointer;
}

.hub-shared-row > button svg {
  width: 16px;
}

.hub-empty-state {
  padding: 44px 20px;
  border: 1px dashed #2a455e;
  border-radius: var(--hub-radius);
  color: var(--hub-muted);
  text-align: center;
}

.hub-empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--hub-text);
}

.hub-toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  width: min(370px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #2d69ad;
  border-radius: 7px;
  background: rgba(7, 25, 43, 0.98);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  color: #dcecff;
  font-size: 11px;
}

.hub-toast[hidden],
.hub-sidebar-scrim[hidden] {
  display: none;
}

@media (max-width: 1240px) {
  .hub-home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-home-grid > :last-child {
    grid-column: 1 / -1;
  }

  .hub-news-layout,
  .hub-discussion-layout,
  .hub-thread-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .hub-news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-domain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-thread-row {
    grid-template-columns: 46px minmax(190px, 1.3fr) minmax(105px, .7fr) 105px 38px 76px;
  }

  .hub-thread-row > :nth-child(6) {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --hub-topbar-height: 58px;
  }

  .hub-sidebar {
    width: min(280px, 86vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.hub-menu-open .hub-sidebar {
    transform: translateX(0);
  }

  .hub-sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 6, 13, 0.74);
    backdrop-filter: blur(3px);
  }

  .hub-workspace {
    margin-left: 0;
  }

  .hub-menu-button {
    display: inline-flex;
  }

  .hub-news-layout,
  .hub-discussion-layout,
  .hub-thread-layout {
    grid-template-columns: 1fr;
  }

  .hub-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-thread-row {
    grid-template-columns: 46px minmax(180px, 1fr) 105px 38px 76px;
  }

  .hub-thread-row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 700px) {
  .hub-topbar {
    padding: 0 10px;
    gap: 8px;
  }

  .hub-global-search {
    width: 100%;
  }

  .hub-global-search kbd,
  .hub-top-actions button:not(#hub-global-help-button):not(#hub-notification-button),
  .hub-top-actions a:not(#hub-account-link) {
    display: none;
  }

  #hub-global-help-button,
  #hub-notification-button,
  #hub-account-link {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .hub-main {
    padding: 15px 12px 28px;
  }

  .hub-page-header {
    align-items: flex-start;
  }

  .hub-page-header h1 {
    font-size: 22px;
  }

  .hub-home-hero {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .hub-home-hero::after {
    background: linear-gradient(0deg, rgba(2, 11, 22, 0.98) 8%, rgba(2, 11, 22, 0.42) 78%);
  }

  .hub-home-hero > img {
    object-position: 67% 50%;
  }

  .hub-home-hero-copy {
    align-self: end;
    padding: 24px;
  }

  .hub-home-hero-copy h1 {
    font-size: 35px;
  }

  .hub-home-grid,
  .hub-rail {
    grid-template-columns: 1fr;
  }

  .hub-home-grid > :last-child {
    grid-column: auto;
  }

  .hub-news-feature {
    grid-template-columns: 1fr;
  }

  .hub-news-feature img {
    min-height: 0;
    height: 190px;
  }

  .hub-news-feature-copy {
    padding: 20px;
  }

  .hub-news-cards,
  .hub-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-search-hero {
    padding: 22px 18px;
  }

  .hub-search-hero label {
    width: 100%;
  }

  .hub-thread-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .hub-thread-row > :nth-child(n + 3):not(:last-child) {
    display: none;
  }

  .hub-thread-actions {
    width: 100%;
    margin-left: 0;
  }

  .hub-thread-actions .hub-button span {
    display: none;
  }

  .hub-compare-grid {
    grid-template-columns: 1fr;
  }

  .hub-compare-grid figure + figure {
    border-top: 1px solid var(--hub-line);
    border-left: 0;
  }

  .hub-composer {
    grid-template-columns: 1fr;
  }

  .hub-composer > .hub-avatar {
    display: none;
  }
}

/* REACH Discussions V2 */
.hub-discussions-tabs { position: sticky; top: 64px; z-index: 8; margin-bottom: 18px; backdrop-filter: blur(18px); }
.hub-pulse-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.hub-pulse-summary article { display: grid; gap: 4px; min-height: 96px; padding: 18px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: linear-gradient(145deg, color-mix(in srgb, var(--hub-cyan) 8%, var(--hub-panel)), var(--hub-panel)); }
.hub-pulse-summary strong { color: var(--hub-text); font-size: clamp(25px, 4vw, 38px); line-height: 1; }
.hub-pulse-summary span { color: var(--hub-muted); font-size: 12px; font-weight: 700; }
.hub-pulse-feed { display: grid; gap: 14px; }
.hub-pulse-signal { display: grid; gap: 9px; }
.hub-pulse-signal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.hub-pulse-signal > header time { color: var(--hub-muted); font-size: 11px; }
.hub-resolution-review-notice { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--hub-cyan) 42%, var(--hub-line)); border-radius: var(--hub-radius); padding: 16px; background: color-mix(in srgb, var(--hub-cyan) 8%, var(--hub-panel)); }
.hub-resolution-review-notice > i { flex: 0 0 auto; color: var(--hub-cyan); }
.hub-resolution-review-notice p { margin: 5px 0 0; color: var(--hub-muted); }
.hub-resolution-review-queue { margin: 0 0 20px; border: 1px solid color-mix(in srgb, var(--hub-cyan) 36%, var(--hub-line)); border-radius: var(--hub-radius); padding: 18px; background: color-mix(in srgb, var(--hub-cyan) 6%, var(--hub-panel)); }
.hub-resolution-review-queue > header { margin-bottom: 14px; }
.hub-resolution-review-queue > header :is(h2, p) { margin: 4px 0 0; }
.hub-resolution-review-queue > header p, .hub-resolution-review-queue article p { color: var(--hub-muted); }
.hub-resolution-review-queue > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-resolution-review-queue article { display: grid; justify-items: start; gap: 8px; border: 1px solid var(--hub-line); border-radius: 11px; padding: 13px; background: var(--hub-panel); }
.hub-resolution-review-queue article :is(h3, p) { margin: 0; }
.hub-resolution-review-form textarea { resize: vertical; }
.hub-documented-solution { display: grid; gap: 18px; margin: 20px 0; border: 1px solid color-mix(in srgb, var(--hub-green, #39d3b4) 48%, var(--hub-line)); border-radius: var(--hub-radius); padding: clamp(18px, 3vw, 28px); background: linear-gradient(145deg, color-mix(in srgb, var(--hub-green, #39d3b4) 8%, var(--hub-panel)), var(--hub-panel)); }
.hub-documented-solution.superseded { border-color: color-mix(in srgb, var(--hub-muted) 45%, var(--hub-line)); filter: saturate(.72); }
.hub-documented-solution > header h2, .hub-documented-solution section h3 { margin: 4px 0 0; }
.hub-documented-solution > header p { max-width: 72ch; color: var(--hub-muted); }
.hub-documented-solution > footer { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--hub-line); padding-top: 14px; color: var(--hub-muted); font-size: 11px; }
.hub-documented-solution > footer span { display: inline-flex; align-items: center; gap: 5px; }
.hub-thread-resources { margin: 20px 0; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); padding: 20px; background: var(--hub-panel); }
.hub-thread-resources > header { margin-bottom: 15px; }
.hub-thread-resources h2, .hub-thread-resources h3 { margin: 4px 0; }
.hub-thread-resource-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-thread-resource-groups > section { border: 1px solid var(--hub-line); border-radius: 11px; padding: 13px; background: var(--hub-panel-soft); }
.hub-thread-resource-groups ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.hub-thread-resource-groups li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.hub-thread-resource-groups li > i { color: var(--hub-cyan); }
.hub-thread-resource-groups li span { display: grid; min-width: 0; }
.hub-thread-resource-groups li small { overflow: hidden; color: var(--hub-muted); text-overflow: ellipsis; white-space: nowrap; }
.hub-thread-resource-groups li a { color: var(--hub-cyan); font-size: 11px; font-weight: 800; }

@media (max-width: 700px) {
  .hub-discussions-tabs { top: 55px; overflow-x: auto; }
  .hub-pulse-summary, .hub-thread-resource-groups { grid-template-columns: 1fr; }
  .hub-resolution-review-queue > div { grid-template-columns: 1fr; }
  .hub-pulse-signal > header { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 440px) {
  .hub-news-cards,
  .hub-domain-grid {
    grid-template-columns: 1fr;
  }

  .hub-page-header .hub-button span {
    display: none;
  }

  .hub-story-row {
    grid-template-columns: 62px 1fr;
  }

  .hub-story-row img {
    width: 62px;
  }
}

/* Global private-message dock. */
.hub-chat-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1180;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.hub-chat-dock[hidden], .hub-chat-panel[hidden] { display: none; }

.hub-chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid color-mix(in srgb, var(--hub-cyan) 48%, var(--hub-line));
  border-radius: 999px;
  color: #061525;
  background: linear-gradient(135deg, var(--hub-cyan), #8eeaff);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.hub-chat-launcher svg { width: 20px; height: 20px; }

/* Keep private messages visually separate from the Workspace discussion composer. */
@media (min-width: 761px) {
  body.hub-integrated-mode .hub-chat-dock {
    right: calc(min(430px, 100vw) + 22px);
  }

  body.hub-integrated-mode .hub-chat-launcher {
    color: var(--hub-cyan);
    border-color: color-mix(in srgb, var(--hub-cyan) 42%, var(--hub-line));
    background: color-mix(in srgb, var(--hub-panel) 94%, var(--hub-cyan));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .025);
  }
}

@media (max-width: 760px) {
  body.hub-integrated-mode .hub-chat-dock {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

.hub-chat-unread, .hub-chat-list-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  color: white;
  background: #d93058;
  font-size: 11px;
  line-height: 1;
}

.hub-chat-unread[hidden] { display: none; }

.hub-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(390px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 18px;
  color: var(--hub-text);
  background: color-mix(in srgb, var(--hub-panel) 96%, transparent);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px);
}

.hub-chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px 12px 17px;
  border-bottom: 1px solid var(--hub-line);
  background: var(--hub-panel-soft);
}

.hub-chat-panel-header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.hub-chat-panel-header .eyebrow { font-size: 10px; }
.hub-chat-panel-header strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.hub-chat-panel-header > div:last-child { display: flex; gap: 5px; }
.hub-chat-panel-header button,
.hub-chat-list-toolbar button,
.hub-chat-recipient-toolbar > button,
.hub-chat-conversation-toolbar > button,
.hub-chat-dock-composer button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  color: var(--hub-text);
  background: var(--hub-panel);
  cursor: pointer;
}

.hub-chat-panel-header svg,
.hub-chat-list-toolbar svg,
.hub-chat-recipient-toolbar > button svg,
.hub-chat-conversation-toolbar > button svg,
.hub-chat-dock-composer button svg { width: 17px; height: 17px; }

.hub-chat-panel button:focus-visible {
  outline: 2px solid var(--hub-cyan);
  outline-offset: 2px;
}
.hub-chat-panel :is(input, textarea):focus-visible {
  border-color: var(--hub-cyan);
  outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-cyan) 48%, transparent);
}
.hub-chat-panel button:disabled { cursor: wait; opacity: .62; }

.hub-chat-panel-body { min-height: 0; overflow: hidden; }
.hub-chat-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 9px 12px 7px 16px;
  border-bottom: 1px solid var(--hub-line);
}
.hub-chat-list-toolbar > div { display: flex; align-items: center; gap: 7px; }
.hub-chat-list-toolbar .hub-chat-new-button {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  min-height: 38px;
  gap: 7px;
  padding: 0 10px;
  border-color: color-mix(in srgb, var(--hub-cyan) 42%, var(--hub-line));
  color: var(--hub-cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}
.hub-chat-list { height: calc(100% - 54px); overflow-y: auto; }
.hub-chat-list-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--hub-line);
  color: var(--hub-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.hub-chat-list-item:hover, .hub-chat-list-item:focus-visible { background: var(--hub-panel-soft); }
.hub-chat-list-item.unread { background: color-mix(in srgb, var(--hub-cyan) 8%, transparent); }
.hub-chat-list-item > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.hub-chat-list-item strong, .hub-chat-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-chat-list-item small, .hub-chat-list-meta time { color: var(--hub-muted); font-size: 11px; }
.hub-chat-list-meta { display: grid; justify-items: end; gap: 7px; }
.hub-chat-list-meta time { max-width: 72px; text-align: right; }
.hub-chat-empty, .hub-chat-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  gap: 10px;
  padding: 34px;
  color: var(--hub-muted);
  text-align: center;
}
.hub-chat-empty > svg { width: 32px; height: 32px; color: var(--hub-cyan); }
.hub-chat-empty strong { color: var(--hub-text); }
.hub-chat-empty p { margin: 0; font-size: 13px; line-height: 1.55; }
.hub-chat-recipient-toolbar,
.hub-chat-conversation-toolbar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hub-line);
}
.hub-chat-recipient-toolbar > div { display: grid; min-width: 0; gap: 2px; }
.hub-chat-recipient-toolbar small { color: var(--hub-muted); font-size: 11px; }
.hub-chat-panel-body:has(.hub-chat-recipient-picker) { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.hub-chat-recipient-picker {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  gap: 8px;
  padding: 15px 12px 0;
}
.hub-chat-recipient-picker > label { color: var(--hub-text); font-size: 13px; font-weight: 760; }
.hub-chat-member-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--hub-panel-soft);
}
.hub-chat-member-search:focus-within { border-color: var(--hub-cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hub-cyan) 18%, transparent); }
.hub-chat-member-search > svg { width: 17px; height: 17px; color: var(--hub-muted); }
.hub-chat-member-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--hub-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.hub-chat-member-search input::placeholder { color: var(--hub-muted); }
.hub-chat-member-status { min-height: 18px; margin: 0; color: var(--hub-muted); font-size: 11px; }
.hub-chat-member-results { min-height: 0; margin: 0 -12px; overflow-y: auto; border-top: 1px solid var(--hub-line-soft); }
.hub-chat-member-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 64px;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--hub-line-soft);
  color: var(--hub-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.hub-chat-member-result:hover,
.hub-chat-member-result:focus-visible { background: var(--hub-panel-soft); }
.hub-chat-member-result > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.hub-chat-member-result strong,
.hub-chat-member-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-chat-member-result small { color: var(--hub-muted); font-size: 11px; }
.hub-chat-member-result > svg { width: 18px; height: 18px; color: var(--hub-cyan); }
.hub-chat-member-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 220px;
  gap: 10px;
  padding: 30px;
  color: var(--hub-muted);
  text-align: center;
}
.hub-chat-member-state > svg { width: 28px; height: 28px; color: var(--hub-cyan); }
.hub-chat-member-state p { margin: 0; font-size: 13px; line-height: 1.5; }
.hub-chat-member-state.error > svg,
.hub-chat-member-state.error p { color: var(--hub-pink); }
.hub-chat-conversation-toolbar > div { display: flex; align-items: center; min-width: 0; }
.hub-chat-conversation-toolbar .hub-avatar { width: 32px; height: 32px; margin-right: -7px; border: 2px solid var(--hub-panel); }
.hub-chat-conversation-toolbar span:last-child { display: grid; min-width: 0; gap: 2px; margin-left: 12px; }
.hub-chat-conversation-toolbar strong, .hub-chat-conversation-toolbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-chat-conversation-toolbar small { color: var(--hub-muted); font-size: 11px; }
.hub-chat-panel-body:has(.hub-chat-dock-feed) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hub-chat-dock-feed { display: grid; align-content: start; gap: 11px; min-height: 0; padding: 15px; overflow-y: auto; }
.hub-chat-dock-feed > article { display: grid; max-width: 88%; gap: 5px; padding: 10px 12px; border: 1px solid var(--hub-line); border-radius: 14px 14px 14px 4px; background: var(--hub-panel-soft); }
.hub-chat-dock-feed > article.mine { justify-self: end; border-color: color-mix(in srgb, var(--hub-cyan) 34%, var(--hub-line)); border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--hub-cyan) 11%, var(--hub-panel-soft)); }
.hub-chat-dock-feed > article.sending { opacity: .72; }
.hub-chat-dock-feed article header { display: flex; align-items: center; gap: 7px; }
.hub-chat-dock-feed article header .hub-avatar { width: 22px; height: 22px; }
.hub-chat-dock-feed article header time { margin-left: auto; color: var(--hub-muted); font-size: 9px; }
.hub-chat-dock-feed article p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.hub-chat-dock-composer { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; padding: 11px; border-top: 1px solid var(--hub-line); background: var(--hub-panel-soft); }
.hub-chat-dock-composer textarea { width: 100%; height: 42px; min-height: 42px; max-height: 110px; resize: none; padding: 10px 12px; border: 1px solid var(--hub-line); border-radius: 12px; color: var(--hub-text); background: var(--hub-panel); font: inherit; font-size: 13px; }
.hub-chat-dock-composer button { width: 42px; height: 42px; color: #061525; border-color: transparent; background: var(--hub-cyan); }
.hub-chat-dock-composer .hub-form-error { grid-column: 1 / -1; margin: 0; }
.hub-chat-send-blocked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--hub-line); color: var(--hub-muted); background: var(--hub-panel-soft); }
.hub-chat-send-blocked > svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--hub-cyan); }
.hub-chat-send-blocked p { display: grid; gap: 2px; margin: 0; font-size: 12px; line-height: 1.4; }
.hub-chat-send-blocked strong { color: var(--hub-text); font-size: 13px; }
.hub-chat-inline-error { margin: 0; padding: 9px 12px; color: #ff9cac; background: rgba(217, 48, 88, .12); font-size: 12px; }

@media (max-width: 600px) {
  .hub-chat-dock { inset: auto 0 0; justify-items: end; padding: 0 12px 12px; }
  body.hub-integrated-mode .hub-chat-dock { right: 0; left: 0; transform: none; }
  .hub-chat-panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .hub-chat-launcher { min-width: 54px; min-height: 54px; padding: 12px; }
  .hub-chat-launcher > span { display: none; }
  .hub-chat-list-toolbar .hub-chat-new-button,
  .hub-chat-member-result { min-height: 48px; }
}

.hub-workspace-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 16px; }
.hub-workspace-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); color: inherit; }
.hub-workspace-card:hover { border-color: var(--hub-cyan); transform: translateY(-1px); }
.hub-workspace-card h2 { margin: 7px 0; font-size: 19px; }
.hub-workspace-card p,.hub-muted { color: var(--hub-muted); }
.hub-workspace-card footer,.hub-resource-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--hub-muted); font-size: 11px; }
.hub-collaboration-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr); gap: 16px; }
.hub-shared-map { min-height: 360px; }
.hub-workspace-dashboard-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: color-mix(in srgb, var(--hub-cyan) 42%, var(--hub-line)); background: linear-gradient(135deg, color-mix(in srgb, var(--hub-cyan) 9%, var(--hub-panel)), var(--hub-panel)); }
.hub-workspace-dashboard-card > div { display: flex; align-items: flex-start; gap: 16px; }
.hub-workspace-dashboard-card h2 { margin: 4px 0 7px; }
.hub-workspace-dashboard-card p { max-width: 780px; margin: 0; color: var(--hub-muted); line-height: 1.55; }
.hub-workspace-overlay-layout { grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); }
.hub-integrated-workspace { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 12px; width: 100%; height: calc(100vh - 96px); min-height: 720px; }
.hub-workspace-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 18px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); }
.hub-workspace-identity { display: grid; min-width: 0; gap: 5px; }
.hub-workspace-toolbar label { position: relative; display: grid; grid-template-columns: auto minmax(0,420px) auto; min-width: 0; align-items: center; gap: 8px; color: var(--hub-text); }
.hub-workspace-toolbar label > svg { width: 16px; height: 16px; color: var(--hub-cyan); pointer-events: none; }
.hub-workspace-toolbar label > svg:last-child { margin-left: -31px; color: var(--hub-muted); }
.hub-workspace-toolbar select { width: 100%; min-width: 0; max-width: 420px; appearance: none; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 8px; padding: 7px 38px 7px 10px; background: #071426; color: #eef6ff; color-scheme: dark; font: inherit; font-size: clamp(14px, 1.45vw, 18px); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; outline: 0; }
.hub-workspace-toolbar select option { background: #071426; color: #eef6ff; }
.hub-workspace-switcher-trigger { display: grid; grid-template-columns: auto minmax(0,1fr) auto; width: min(100%, 480px); min-width: 0; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hub-line); border-radius: 10px; background: #071426; color: #eef6ff; cursor: pointer; text-align: left; }
.hub-workspace-switcher-trigger:hover { border-color: color-mix(in srgb,var(--hub-cyan) 58%,var(--hub-line)); background: color-mix(in srgb,var(--hub-cyan) 7%,#071426); }
.hub-workspace-switcher-trigger:focus-visible { outline: 2px solid var(--hub-cyan); outline-offset: 2px; }
.hub-workspace-switcher-trigger > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.hub-workspace-switcher-trigger strong,.hub-workspace-switcher-trigger small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-switcher-trigger strong { font-size: clamp(14px,1.35vw,18px); }
.hub-workspace-switcher-trigger small { color: var(--hub-muted); font-size: 10px; }
.hub-workspace-switcher-trigger > svg:last-child { width: 17px; color: var(--hub-muted); }
.hub-workspace-switcher-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.hub-workspace-switcher-icon.shared { background: rgba(55,205,255,.15); color: #37cdff; }
.hub-workspace-switcher-icon.private { background: rgba(169,139,255,.15); color: #b8a4ff; }
.hub-workspace-switcher-icon svg { width: 17px; height: 17px; }
.hub-workspace-toolbar-sections { display: flex; min-width: 0; align-items: stretch; justify-content: flex-end; gap: 8px; }
.hub-workspace-tool-group { display: grid; grid-template-rows: auto 1fr; gap: 5px; min-width: 0; padding-left: 9px; border-left: 1px solid var(--hub-line); }
.hub-workspace-tool-group > small { color: var(--hub-muted); font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hub-workspace-tool-group > div { display: flex; min-width: 0; align-items: center; gap: 5px; }
.hub-workspace-tool-group .hub-button { min-height: 34px; padding-inline: 9px; white-space: nowrap; }
.hub-workspace-tool-group .hub-button em { min-width: 18px; padding: 1px 5px; border-radius: 999px; background: rgba(27, 217, 232, .16); color: var(--hub-cyan); font-size: 10px; font-style: normal; text-align: center; }
.hub-form-separator { display: flex; align-items: center; gap: 10px; color: var(--hub-muted); font-size: 11px; text-transform: uppercase; }
.hub-form-separator::before,.hub-form-separator::after { height: 1px; flex: 1; background: var(--hub-line); content: ""; }
.hub-workspace-toolbar select:focus-visible { border-radius: 6px; box-shadow: 0 0 0 2px var(--hub-cyan); }
.hub-dashboard-embed { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 14px; background: #071323; box-shadow: var(--hub-shadow); }
.hub-dashboard-embed iframe { display: block; width: 100%; height: 100%; min-height: 680px; border: 0; background: #071323; }
body.hub-integrated-mode .hub-main { padding: 0; }
body.hub-integrated-mode .hub-page { width: 100%; max-width: none; }
body.hub-integrated-mode .hub-integrated-workspace { height: calc(100vh - var(--hub-topbar-height)); }
body.hub-integrated-mode .hub-workspace-toolbar { border-width: 0 0 1px; border-radius: 0; }
body.hub-integrated-mode .hub-dashboard-embed { border-width: 0; border-radius: 0; box-shadow: none; }
html[data-theme="light"] .reach-hub .hub-workspace-toolbar select,
html[data-theme="light"] .reach-hub .hub-workspace-toolbar select option,
html[data-theme="light"] .reach-hub .hub-workspace-switcher-trigger { background: #ffffff; color: #102238; color-scheme: light; }

/* Workspace operating model: REACH context first, Lucida as a local tool. */
.hub-workspace-page { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 15px; background: var(--hub-panel-soft); box-shadow: var(--hub-shadow); }
.hub-workspace-command-header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 24px 26px 21px; border-bottom: 1px solid var(--hub-line); background: color-mix(in srgb,var(--hub-panel) 92%,var(--hub-cyan) 8%); }
.hub-workspace-command-identity { min-width: 0; flex: 1 1 620px; }
.hub-workspace-command-identity > div { display: flex; min-width: 0; align-items: center; gap: 9px; margin-top: 4px; }
.hub-workspace-command-identity h1 { min-width: 0; margin: 0; overflow: hidden; color: var(--hub-text); font-size: clamp(25px,3vw,38px); letter-spacing: -.035em; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-command-identity > p { max-width: 760px; margin: 9px 0 13px; color: var(--hub-muted); line-height: 1.55; }
.hub-workspace-switcher-compact { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-panel); color: var(--hub-muted); cursor: pointer; }
.hub-workspace-switcher-compact:hover,.hub-workspace-switcher-compact:focus-visible { border-color: var(--hub-cyan); color: var(--hub-cyan); }
.hub-workspace-switcher-compact svg { width: 16px; }
.hub-workspace-command-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hub-workspace-command-status > span,.hub-workspace-command-status > button { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-panel); color: var(--hub-muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.hub-workspace-command-status > span.private { color: #b8a4ff; }
.hub-workspace-command-status > span.shared { color: var(--hub-cyan); }
.hub-workspace-command-status > span svg { width: 12px; height: 12px; }
.hub-workspace-command-status > button { color: var(--hub-cyan); cursor: pointer; }
.hub-workspace-header-actions { display: flex; max-width: 540px; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub-workspace-header-actions .hub-button { min-height: 38px; }
.hub-workspace-tabs { display: flex; min-width: 0; gap: 2px; padding: 0 18px; overflow-x: auto; border-bottom: 1px solid var(--hub-line); background: var(--hub-panel); scrollbar-width: none; }
.hub-workspace-tabs::-webkit-scrollbar { display: none; }
.hub-workspace-tabs a { position: relative; display: inline-flex; min-width: max-content; min-height: 51px; align-items: center; gap: 7px; padding: 0 12px; color: var(--hub-muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.hub-workspace-tabs a svg { width: 15px; height: 15px; }
.hub-workspace-tabs a:hover,.hub-workspace-tabs a[aria-current="page"] { color: var(--hub-text); }
.hub-workspace-tabs a[aria-current="page"]::after { position: absolute; right: 10px; bottom: 0; left: 10px; height: 3px; border-radius: 99px 99px 0 0; background: var(--hub-cyan); content: ""; }
.hub-workspace-tabs.has-lucida-tools { gap: 1px; padding-right: 8px; }
.hub-workspace-tabs-tools-label { display: inline-flex; min-width: max-content; min-height: 51px; align-items: center; gap: 7px; margin-left: 8px; padding: 0 13px 0 17px; border-left: 1px solid var(--hub-line); color: var(--hub-cyan); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hub-workspace-tabs-tools-label svg { width: 15px; height: 15px; }
.hub-workspace-tabs a.hub-workspace-tabs-tool { padding-inline: 10px; font-size: 11px; }
.hub-workspace-tabs a.hub-workspace-tabs-tool:hover,.hub-workspace-tabs a.hub-workspace-tabs-tool[aria-current="page"] { background: color-mix(in srgb,var(--hub-cyan) 7%,transparent); color: var(--hub-cyan); }
.hub-workspace-section { min-width: 0; padding: 20px; background: color-mix(in srgb,var(--hub-bg) 72%,var(--hub-panel-soft)); }
.hub-workspace-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.hub-workspace-overview-card { display: flex; min-width: 0; min-height: 190px; flex-direction: column; gap: 12px; padding: 19px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); }
.hub-workspace-overview-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hub-workspace-overview-card > header:not(:has(a)) { flex-direction: column; gap: 5px; }
.hub-workspace-overview-card > header strong { color: var(--hub-text); font-size: 17px; }
.hub-workspace-overview-card > p { margin: 0; color: var(--hub-muted); line-height: 1.5; }
.hub-workspace-overview-card > a:not(.hub-button),.hub-workspace-overview-card > header > a { display: inline-flex; width: max-content; align-items: center; gap: 5px; margin-top: auto; color: var(--hub-cyan); font-size: 12px; font-weight: 750; text-decoration: none; }
.hub-workspace-overview-card > a svg,.hub-workspace-overview-card > header > a svg { width: 14px; }
.hub-workspace-overview-card > .hub-button { width: max-content; margin-top: auto; }
.hub-workspace-active-area { display: grid; min-height: 310px; grid-row: span 2; grid-template-rows: auto minmax(150px,1fr) auto auto; }
.hub-workspace-mini-map { position: relative; min-height: 160px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--hub-cyan) 35%,var(--hub-line)); border-radius: 10px; background: radial-gradient(circle at 68% 34%,rgba(55,205,255,.16),transparent 18%),linear-gradient(145deg,#0c2940,#102f45 48%,#163444); }
.hub-workspace-mini-map.real { isolation: isolate; background: #0f1b27; }
.hub-workspace-map-mosaic { position: absolute; width: 768px; height: 768px; display: grid; grid-template-columns: repeat(3,256px); grid-template-rows: repeat(3,256px); }
.hub-workspace-map-mosaic > img { display: block; width: 256px; height: 256px; object-fit: cover; }
.hub-workspace-map-mosaic > svg { position: absolute; z-index: 2; inset: 0; width: 768px; height: 768px; overflow: visible; pointer-events: none; }
.hub-workspace-map-polygon { fill: rgba(54,210,199,.2); stroke: #5ce2d5; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hub-map-marker-halo { fill: rgba(255,189,102,.24); stroke: rgba(255,189,102,.5); stroke-width: 1; }
.hub-map-marker-core { fill: #ffbd66; stroke: #071323; stroke-width: 2; }
.hub-map-country-focus .hub-map-marker-halo { fill: rgba(54,210,199,.24); stroke: #079b91; stroke-width: 2; }
.hub-map-country-focus .hub-map-marker-core { fill: #20c7bb; stroke: #fff; stroke-width: 2; }
.hub-workspace-mini-map.real > small { position: absolute; z-index: 3; right: 5px; bottom: 4px; border-radius: 4px; padding: 2px 4px; background: rgba(4,13,22,.72); color: rgba(230,243,249,.78); font-size: 7px; }
.hub-workspace-map-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(148,199,219,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(148,199,219,.22) 1px,transparent 1px); background-size: 32px 32px; transform: rotate(-6deg) scale(1.15); }
.hub-workspace-map-area { position: absolute; width: 42%; height: 48%; top: 24%; left: 30%; border: 2px solid #36d2c7; background: rgba(54,210,199,.16); clip-path: polygon(20% 0,90% 12%,100% 70%,65% 100%,5% 78%,0 28%); }
.hub-workspace-mini-map > svg { position: absolute; z-index: 2; width: 26px; height: 26px; top: 43%; left: 47%; color: #ffbd66; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.hub-workspace-next-action { border-color: color-mix(in srgb,var(--hub-cyan) 44%,var(--hub-line)); background: linear-gradient(145deg,color-mix(in srgb,var(--hub-cyan) 7%,var(--hub-panel)),var(--hub-panel)); }
.hub-workspace-job-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hub-line-soft); }
.hub-workspace-job-line b { color: var(--hub-cyan); font-size: 10px; text-transform: uppercase; }
.hub-workspace-recent-activity { min-height: 0; grid-column: 1 / -1; }
.hub-workspace-content-panel { min-height: 520px; padding: 22px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); }
.hub-workspace-content-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.hub-workspace-content-panel > header h2 { margin: 4px 0 5px; color: var(--hub-text); font-size: 25px; }
.hub-workspace-content-panel > header p { max-width: 720px; margin: 0; color: var(--hub-muted); line-height: 1.5; }
.hub-workspace-activity-list { display: grid; }
.hub-workspace-activity-list article { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--hub-line-soft); }
.hub-workspace-activity-list article:last-child { border-bottom: 0; }
.hub-workspace-activity-list article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: color-mix(in srgb,var(--hub-cyan) 10%,var(--hub-panel-soft)); color: var(--hub-cyan); }
.hub-workspace-activity-list article svg { width: 15px; }
.hub-workspace-activity-list article div { min-width: 0; }
.hub-workspace-activity-list article strong,.hub-workspace-activity-list article p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-activity-list article p { margin: 3px 0 0; color: var(--hub-muted); font-size: 12px; }
.hub-workspace-activity-list article time { color: var(--hub-muted); font-size: 11px; white-space: nowrap; }
.hub-workspace-thread-list,.hub-workspace-files-list { display: grid; gap: 9px; }
.hub-workspace-thread-card { display: grid; grid-template-columns: 38px minmax(0,1fr) 32px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel-soft); }
.hub-workspace-thread-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(55,205,255,.11); color: var(--hub-cyan); }
.hub-workspace-thread-card h3 { margin: 6px 0 3px; font-size: 15px; }
.hub-workspace-thread-card h3 a { color: var(--hub-text); text-decoration: none; }
.hub-workspace-thread-card p { margin: 0; color: var(--hub-muted); font-size: 11px; }
.hub-workspace-thread-card > a { display: grid; width: 32px; height: 32px; place-items: center; color: var(--hub-cyan); }
.hub-workspace-data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; padding: 8px 10px; border: 1px solid var(--hub-line); border-radius: 9px; background: var(--hub-panel-soft); }
.hub-workspace-data-toolbar > span { color: var(--hub-muted); font-size: 11px; font-weight: 750; }
.hub-workspace-data-toolbar nav { display: flex; gap: 3px; }
.hub-workspace-data-toolbar a { padding: 7px 10px; border-radius: 7px; color: var(--hub-muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.hub-workspace-data-toolbar a:hover,.hub-workspace-data-toolbar a[aria-current="page"] { background: var(--hub-panel); color: var(--hub-cyan); }
.hub-workspace-data-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 12px; }
.hub-workspace-data-card { display: grid; min-width: 0; grid-template-columns: minmax(180px,25%) minmax(0,1fr); overflow: hidden; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel-soft); }
.hub-workspace-data-preview { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 7px; background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--hub-cyan) 8%,var(--hub-bg-deep)) 0 9px,var(--hub-bg-deep) 9px 18px); color: var(--hub-muted); font-size: 10px; }
.hub-workspace-data-preview:has(img) { display: block; }
.hub-workspace-data-preview img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.hub-workspace-data-preview svg { width: 28px; color: var(--hub-cyan); }
.hub-workspace-data-card > div:last-child { min-width: 0; padding: 14px; }
.hub-workspace-data-card h3 { margin: 5px 0 8px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-data-card p { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; }
.hub-workspace-data-card p span { padding: 3px 6px; border: 1px solid var(--hub-line); border-radius: 999px; color: var(--hub-muted); font-size: 9px; }
.hub-workspace-files-list article { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--hub-line); border-radius: 9px; }
.hub-workspace-files-list article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: var(--hub-panel-soft); color: var(--hub-cyan); }
.hub-workspace-files-list article div { display: grid; min-width: 0; gap: 3px; }
.hub-workspace-files-list article strong,.hub-workspace-files-list article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-files-list article small { color: var(--hub-muted); }
.hub-workspace-files-list article > a { color: var(--hub-cyan); }
.hub-workspace-member-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 10px; }
.hub-workspace-member-grid article { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel-soft); }
.hub-workspace-member-grid article > div { display: grid; min-width: 0; gap: 3px; }
.hub-workspace-member-grid article small { overflow: hidden; color: var(--hub-muted); text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-member-grid .hub-status { width: max-content; margin-top: 4px; }
.hub-workspace-empty { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 8px; grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--hub-line); border-radius: 11px; color: var(--hub-muted); text-align: center; }
.hub-workspace-empty.compact { min-height: 180px; }
.hub-workspace-empty > svg { width: 32px; height: 32px; color: var(--hub-cyan); }
.hub-workspace-empty h3,.hub-workspace-empty p { margin: 0; }
.hub-workspace-empty p { max-width: 510px; line-height: 1.5; }
.hub-workspace-tools-view { display: grid; min-height: 720px; grid-template-rows: minmax(0,1fr); overflow: hidden; border: 1px solid var(--hub-line); border-radius: 12px; background: #071323; }
.hub-workspace-tools-view .hub-dashboard-embed { border: 0; border-radius: 0; box-shadow: none; }
.hub-workspace-tools-view .hub-dashboard-embed iframe { min-height: 670px; }
body.hub-integrated-mode .hub-workspace-page { width: 100%; height: calc(100vh - var(--hub-topbar-height)); grid-template-rows: auto auto minmax(0,1fr); border: 0; border-radius: 0; box-shadow: none; }
body.hub-integrated-mode .hub-workspace-command-header { padding: 13px 20px 11px; }
body.hub-integrated-mode .hub-workspace-command-identity > p { display: none; }
body.hub-integrated-mode .hub-workspace-command-identity h1 { font-size: 24px; }
body.hub-integrated-mode .hub-workspace-header-actions { align-self: center; }
body.hub-integrated-mode .hub-workspace-tabs a { min-height: 43px; }
body.hub-integrated-mode .hub-workspace-section { min-height: 0; padding: 8px; }
body.hub-integrated-mode .hub-workspace-tools-view { height: 100%; min-height: 0; }
body.hub-integrated-mode .hub-workspace-tools-view .hub-dashboard-embed iframe { height: 100%; min-height: 0; }
.hub-map-placeholder { display: grid; place-items: center; min-height: 250px; text-align: center; border: 1px dashed var(--hub-line); border-radius: 10px; background: linear-gradient(135deg,var(--hub-panel-soft),transparent); }
.hub-map-placeholder > svg { width: 42px; height: 42px; color: var(--hub-cyan); }
.hub-map-placeholder p { max-width: 420px; color: var(--hub-muted); }
.hub-resource-strip { margin-top: 14px; }
.hub-member-panel { align-self: start; }
.hub-member-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hub-line-soft); color: inherit; }
.hub-member-row span { display: grid; min-width: 0; }
.hub-member-row small { color: var(--hub-muted); }
.hub-workspace-chat { grid-column: 1 / -1; }
.hub-chat-feed { display: grid; gap: 12px; max-height: 520px; padding: 6px 2px 16px; overflow-y: auto; }
.hub-chat-feed article { --chat-author: var(--hub-cyan); --chat-author-soft: rgba(55,205,255,.13); width: min(88%, 720px); justify-self: start; padding: 14px; border: 1px solid color-mix(in srgb, var(--chat-author) 42%, var(--hub-line)); border-left-width: 5px; border-radius: 10px; background: var(--chat-author-soft); }
.hub-chat-feed article.mine { justify-self: end; border-right-width: 4px; border-left-width: 1px; background: color-mix(in srgb, var(--chat-author) 14%, var(--hub-panel-soft)); }
.hub-chat-feed article header { display: flex; align-items: center; gap: 8px; }
.hub-chat-feed article header strong { color: var(--chat-author); }
.hub-chat-feed article .hub-avatar { border: 2px solid var(--chat-author); box-shadow: 0 0 0 3px var(--chat-author-soft); }
.hub-chat-feed article time { margin-left: auto; color: var(--hub-muted); font-size: 11px; }
.hub-chat-feed article p { margin: 10px 0 0; white-space: pre-wrap; }
.reach-hub .author-color-0 { --chat-author: #37cdff; --chat-author-soft: rgba(55,205,255,.13); }
.reach-hub .author-color-1 { --chat-author: #ff7eb6; --chat-author-soft: rgba(255,126,182,.13); }
.reach-hub .author-color-2 { --chat-author: #c8ed4d; --chat-author-soft: rgba(200,237,77,.12); }
.reach-hub .author-color-3 { --chat-author: #ffbd66; --chat-author-soft: rgba(255,189,102,.13); }
.reach-hub .author-color-4 { --chat-author: #a98bff; --chat-author-soft: rgba(169,139,255,.14); }
.reach-hub .author-color-5 { --chat-author: #55d6c2; --chat-author-soft: rgba(85,214,194,.13); }
.reach-hub .author-color-6 { --chat-author: #ff817a; --chat-author-soft: rgba(255,129,122,.13); }
.reach-hub .author-color-7 { --chat-author: #71a7ff; --chat-author-soft: rgba(113,167,255,.14); }
.hub-thread-page .hub-thread-meta[class*="author-color-"] .hub-avatar,
.hub-thread-page .hub-post[class*="author-color-"] .hub-avatar { border: 2px solid var(--chat-author); box-shadow: 0 0 0 3px var(--chat-author-soft); }
.hub-thread-page .hub-thread-meta[class*="author-color-"] strong,
.hub-thread-page .hub-post[class*="author-color-"] .hub-post-author strong,
.hub-thread-page .hub-thread-origin[class*="author-color-"] .hub-post-header strong { color: var(--chat-author); }
.hub-thread-page .hub-post[class*="author-color-"] { border-left: 4px solid var(--chat-author); background: linear-gradient(105deg,var(--chat-author-soft),var(--hub-panel) 38%); }
.hub-chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hub-line); }
.hub-chat-composer textarea { min-height: 64px; padding: 11px; border: 1px solid var(--hub-line); border-radius: 9px; background: var(--hub-bg-deep); color: var(--hub-text); resize: vertical; }
.hub-workspace-directory { display: grid; gap: 18px; }
.hub-workspace-directory-header { display: flex; min-height: 118px; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 24px; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 14px; background: radial-gradient(circle at 78% 18%,color-mix(in srgb,var(--hub-cyan) 14%,transparent),transparent 34%),linear-gradient(135deg,var(--hub-panel),var(--hub-panel-soft)); }
.hub-workspace-directory-header h1 { margin: 4px 0 7px; font-size: clamp(27px,3vw,40px); letter-spacing: -.025em; }
.hub-workspace-directory-header p { max-width: 620px; margin: 0; color: var(--hub-muted); line-height: 1.5; }
.hub-workspace-directory-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-workspace-directory-summary span { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 11px; }
.hub-workspace-directory-summary b { color: var(--hub-text); font-size: 13px; }
.hub-workspace-directory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 14px; }
.hub-workspace-directory-card,.hub-workspace-directory-create { position: relative; display: flex; min-width: 0; min-height: 238px; flex-direction: column; gap: 17px; padding: 20px; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 14px; background: linear-gradient(145deg,var(--hub-panel),var(--hub-panel-soft)); color: var(--hub-text); text-align: left; text-decoration: none; }
.hub-workspace-directory-card::after { position: absolute; right: -55px; bottom: -68px; width: 160px; height: 160px; border: 1px solid color-mix(in srgb,var(--hub-cyan) 18%,transparent); border-radius: 50%; background: color-mix(in srgb,var(--hub-cyan) 4%,transparent); content: ""; pointer-events: none; }
.hub-workspace-directory-card.private::after { border-color: color-mix(in srgb,#a98bff 20%,transparent); background: color-mix(in srgb,#a98bff 5%,transparent); }
.hub-workspace-directory-card:hover,.hub-workspace-directory-card:focus-visible,.hub-workspace-directory-create:hover,.hub-workspace-directory-create:focus-visible { border-color: color-mix(in srgb,var(--hub-cyan) 70%,var(--hub-line)); box-shadow: 0 14px 30px color-mix(in srgb,var(--hub-bg-deep) 38%,transparent); outline: none; transform: translateY(-2px); }
.hub-workspace-directory-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-workspace-directory-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb,var(--hub-cyan) 42%,var(--hub-line)); border-radius: 12px; background: color-mix(in srgb,var(--hub-cyan) 12%,transparent); color: var(--hub-cyan); }
.hub-workspace-directory-card.private .hub-workspace-directory-icon { border-color: color-mix(in srgb,#a98bff 42%,var(--hub-line)); background: color-mix(in srgb,#a98bff 12%,transparent); color: #b8a4ff; }
.hub-workspace-directory-icon svg { width: 20px; height: 20px; }
.hub-workspace-directory-access { display: inline-flex; align-items: center; gap: 5px; color: var(--hub-muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hub-workspace-directory-access svg { width: 13px; height: 13px; }
.hub-workspace-directory-copy { display: grid; min-width: 0; gap: 7px; }
.hub-workspace-directory-copy h2 { margin: 0; overflow: hidden; font-size: 21px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-directory-copy p { display: -webkit-box; min-height: 3em; overflow: hidden; margin: 0; color: var(--hub-muted); line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hub-workspace-directory-card footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--hub-line-soft); color: var(--hub-muted); font-size: 10px; }
.hub-workspace-directory-card footer span,.hub-workspace-directory-card footer time,.hub-workspace-directory-card footer b { display: inline-flex; align-items: center; gap: 5px; }
.hub-workspace-directory-card footer svg { width: 13px; height: 13px; }
.hub-workspace-directory-card footer b { margin-left: auto; color: var(--hub-cyan); font-size: 11px; }
.hub-workspace-directory-create { align-items: center; justify-content: center; border-style: dashed; background: color-mix(in srgb,var(--hub-panel-soft) 74%,transparent); color: var(--hub-text); cursor: pointer; text-align: center; }
.hub-workspace-directory-create > span { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid color-mix(in srgb,var(--hub-cyan) 45%,var(--hub-line)); border-radius: 50%; color: var(--hub-cyan); }
.hub-workspace-directory-create strong { font-size: 16px; }
.hub-workspace-directory-create small { max-width: 260px; color: var(--hub-muted); line-height: 1.45; }
.hub-workspace-switcher { display: grid; gap: 16px; }
.hub-workspace-switcher > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.hub-workspace-switcher > header p { margin: 5px 0 0; color: var(--hub-muted); }
.hub-workspace-switcher-filters { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) auto; align-items: end; gap: 10px; }
.hub-workspace-switcher-filters label { display: grid; gap: 6px; color: var(--hub-muted); font-size: 11px; font-weight: 700; }
.hub-workspace-switcher-filters select { min-width: 0; height: 40px; padding: 0 34px 0 10px; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-bg-deep); color: var(--hub-text); }
.hub-workspace-switcher-filters > span { padding: 0 0 11px; color: var(--hub-muted); font-size: 11px; white-space: nowrap; }
.hub-workspace-switcher-results { display: grid; gap: 9px; max-height: min(54vh,520px); padding-right: 4px; overflow-y: auto; }
.hub-workspace-switcher-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; width: 100%; min-width: 0; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel-soft); color: var(--hub-text); cursor: pointer; text-align: left; }
.hub-workspace-switcher-card:hover { border-color: color-mix(in srgb,var(--hub-cyan) 58%,var(--hub-line)); transform: translateY(-1px); }
.hub-workspace-switcher-card.current { border-color: rgba(55,205,255,.55); background: rgba(55,205,255,.07); }
.hub-workspace-switcher-card > svg:last-child { color: var(--hub-muted); }
.hub-workspace-switcher-card-copy { display: grid; min-width: 0; gap: 5px; }
.hub-workspace-switcher-card-copy > span:first-child { display: flex; min-width: 0; align-items: center; gap: 8px; }
.hub-workspace-switcher-card-copy strong,.hub-workspace-switcher-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-workspace-switcher-card-copy em { padding: 2px 6px; border-radius: 999px; background: rgba(55,205,255,.14); color: var(--hub-cyan); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.hub-workspace-switcher-card-copy small { color: var(--hub-muted); }
.hub-workspace-switcher-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 10px; }
.hub-workspace-switcher-meta b { font-weight: 800; }
.hub-workspace-switcher-meta b.shared { color: #37cdff; }
.hub-workspace-switcher-meta b.private { color: #b8a4ff; }
.hub-workspace-switcher-meta i,.hub-workspace-switcher-meta time { color: var(--hub-muted); font-style: normal; text-transform: capitalize; }
@media (max-width: 700px) {
  .hub-workspace-directory-header { min-height: 0; align-items: stretch; flex-direction: column; padding: 18px; }
  .hub-workspace-directory-header .hub-button { width: 100%; }
  .hub-workspace-directory-grid { grid-template-columns: 1fr; }
  .hub-workspace-directory-card,.hub-workspace-directory-create { min-height: 218px; }
}
.hub-context-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--hub-cyan); font-size: 11px; }
.hub-task-row { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hub-line-soft); }
.hub-task-row button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: var(--hub-cyan); cursor: pointer; }
.hub-task-row span { display: grid; }
.hub-task-row small { color: var(--hub-muted); }
.hub-profile-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 24px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-profile-hero > .hub-avatar { width: 72px; height: 72px; font-size: 24px; }
.hub-profile-hero > div { flex: 1; }
.hub-profile-hero h1 { margin: 4px 0; }
.hub-member-link { color: inherit; text-decoration: none; }
.hub-profile-avatar-link { cursor: pointer; outline: none; }
.hub-profile-avatar-link:hover, .hub-profile-avatar-link:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb,var(--hub-accent) 32%,transparent); }
.hub-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.hub-member-link:hover strong, .hub-member-link:focus-visible strong { color: var(--hub-accent); text-decoration: underline; }
.hub-post-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-people-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.hub-person-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-person-card > p { margin: 0; color: var(--hub-muted); min-height: 2.8em; }
.hub-person-identity { display: flex; align-items: center; gap: 12px; }
.hub-person-identity > span:last-child { display: grid; gap: 2px; }
.hub-person-identity small { color: var(--hub-muted); }
.hub-person-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--hub-muted); font-size: 13px; }
.hub-person-card footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.hub-person-card footer svg { width: 15px; height: 15px; }
.hub-person-card .hub-inline-actions { margin-top: auto; }
.hub-chat-participants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hub-chat-participants .hub-member-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--hub-line); border-radius: 999px; font-size: 13px; }
.hub-chat-participants .hub-avatar { width: 24px; height: 24px; font-size: 10px; }
.hub-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hub-profile-stats, .hub-social-counts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--hub-muted); font-size: 13px; }
.hub-profile-stats strong, .hub-social-counts strong { color: var(--hub-text); font-size: 16px; }
.hub-social-counts { padding: 12px 16px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-friend-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; }
.hub-friend-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--hub-line); border-radius: 12px; }
.hub-friend-card > span:last-child { display: grid; gap: 2px; min-width: 0; }
.hub-friend-card small { color: var(--hub-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-photo-field { display: flex !important; align-items: center; gap: 16px; padding: 16px; border: 1px dashed var(--hub-line-strong,var(--hub-line)); border-radius: var(--hub-radius); cursor: pointer; }
.hub-photo-field > span:nth-child(2) { display: grid; gap: 4px; }
.hub-photo-field .hub-button { width: max-content; margin-top: 6px; }
.hub-photo-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hub-photo-preview .hub-avatar { width: 76px; height: 76px; font-size: 22px; }
.hub-connection-requests { margin-bottom: 18px; }
.hub-connection-requests .hub-member-row { justify-content: flex-start; }
.hub-connection-requests .hub-member-row > .hub-inline-actions { margin-left: auto; }

.hub-member-profile .hub-breadcrumbs { margin-bottom: 16px; }
.hub-member-profile .hub-profile-hero { gap: 22px; padding: 28px; border-radius: 14px; }
.hub-member-profile .hub-profile-hero > div:not(.hub-profile-actions) { min-width: 0; flex: 1 1 420px; }
.hub-member-profile .hub-profile-hero > .hub-profile-actions { flex: 0 0 auto; margin-left: auto; padding-left: 12px; }
.hub-member-profile .hub-profile-hero p { max-width: 720px; margin: 7px 0 0; color: var(--hub-muted); line-height: 1.55; }
.hub-member-profile .hub-card-tags { margin-top: 14px; }
.hub-member-profile .hub-collaboration-layout > .hub-panel { min-width: 0; padding: 22px; }
.hub-member-profile .hub-collaboration-layout > .hub-panel > h2 { margin: 0 0 14px; }
.hub-member-profile .hub-collaboration-layout > .hub-panel > p { margin: 0 0 18px; line-height: 1.6; }
.hub-member-profile .hub-panel-title { min-height: 0; padding: 0 0 16px; }
.hub-member-profile .hub-friend-grid { gap: 12px; }
.hub-member-profile .hub-friend-card { padding: 12px; }
.hub-member-profile .hub-member-row:first-of-type { border-top: 1px solid var(--hub-line-soft); }
.hub-member-profile .hub-chat-feed { padding: 0; }

@media (max-width: 1240px) {
  .hub-workspace-toolbar { grid-template-columns: minmax(200px, .65fr) minmax(480px, 1fr); align-items: stretch; }
  .hub-workspace-toolbar-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-workspace-tool-group > div { flex-wrap: wrap; align-content: center; }
  .hub-workspace-tool-group .hub-button { flex: 1 1 auto; }
}

@media (max-width: 980px) {
  .hub-workspace-toolbar { grid-template-columns: minmax(0, 1fr); }
  .hub-workspace-toolbar label { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hub-workspace-toolbar select { max-width: none; }
  .hub-workspace-toolbar-sections { justify-content: stretch; }
  .hub-workspace-command-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .hub-workspace-header-actions { max-width: none; justify-content: flex-start; }
  .hub-workspace-overview-grid { grid-template-columns: 1fr; }
  .hub-workspace-active-area { min-height: 280px; grid-row: auto; }
  .hub-workspace-recent-activity { grid-column: auto; }
}

@media (max-width: 820px) { .hub-collaboration-layout { grid-template-columns: 1fr; } .hub-workspace-chat { grid-column: auto; } .hub-profile-hero { align-items: flex-start; flex-wrap: wrap; } .hub-member-profile .hub-profile-hero { padding: 22px; } .hub-member-profile .hub-profile-hero > .hub-profile-actions { width: 100%; margin-left: 0; padding: 4px 0 0; justify-content: flex-start; } .hub-member-profile .hub-collaboration-layout > .hub-panel { padding: 18px; } .hub-workspace-dashboard-card { align-items: stretch; flex-direction: column; } .hub-integrated-workspace { height: auto; min-height: 0; } .hub-workspace-toolbar-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-workspace-management { grid-column: 1 / -1; } .hub-workspace-tool-group { padding: 9px; border: 1px solid var(--hub-line); border-radius: 9px; } .hub-workspace-tool-group .hub-button { flex: 1; } .hub-dashboard-embed iframe { min-height: 760px; } }

@media (max-width: 760px) {
  .hub-workspace-switcher > header { align-items: stretch; flex-direction: column; }
  .hub-workspace-switcher > header .hub-button { width: 100%; justify-content: center; }
  .hub-workspace-switcher-filters { grid-template-columns: 1fr; }
  .hub-workspace-switcher-filters > span { padding: 0; }
  .hub-workspace-command-header { padding: 19px 16px 16px; }
  .hub-workspace-command-identity h1 { font-size: 26px; }
  .hub-workspace-command-identity > p { font-size: 13px; }
  .hub-workspace-header-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hub-workspace-header-actions .hub-button { width: 100%; justify-content: center; }
  .hub-workspace-tabs { padding-inline: 7px; }
  .hub-workspace-tabs a { min-height: 47px; padding-inline: 10px; }
  .hub-workspace-tabs-tools-label { min-height: 47px; margin-left: 4px; padding-inline: 13px 10px; }
  .hub-workspace-section { padding: 10px; }
  .hub-workspace-content-panel { min-height: 440px; padding: 15px; }
  .hub-workspace-content-panel > header { align-items: stretch; flex-direction: column; }
  .hub-workspace-content-panel > header > .hub-button { width: 100%; justify-content: center; }
  .hub-workspace-activity-list article { grid-template-columns: 32px minmax(0,1fr); }
  .hub-workspace-activity-list article time { grid-column: 2; }
  .hub-workspace-data-toolbar { align-items: stretch; flex-direction: column; }
  .hub-workspace-data-toolbar nav { overflow-x: auto; }
  .hub-workspace-data-card { grid-template-columns: 100px minmax(0,1fr); }
  .hub-workspace-data-preview { min-height: 138px; }
  body.hub-integrated-mode .hub-workspace-command-header { padding: 11px 12px; }
  body.hub-integrated-mode .hub-workspace-command-status { display: none; }
  body.hub-integrated-mode .hub-workspace-header-actions .hub-button:not(.primary) { display: none; }
  body.hub-integrated-mode .hub-workspace-header-actions { display: flex; }
}

@media (max-width: 560px) {
  .hub-workspace-toolbar-sections { grid-template-columns: 1fr; }
  .hub-workspace-management { grid-column: auto; }
  .hub-workspace-tool-group > div { align-items: stretch; flex-direction: column; }
  .hub-workspace-tool-group .hub-button, .hub-workspace-tool-group .hub-status { width: 100%; justify-content: center; }
  .hub-workspace-header-actions { grid-template-columns: 1fr; }
  .hub-workspace-overview-card { min-height: 170px; padding: 15px; }
  .hub-workspace-active-area { min-height: 260px; }
  .hub-workspace-data-grid { grid-template-columns: 1fr; }
  .hub-workspace-data-card { grid-template-columns: 1fr; }
  .hub-workspace-data-preview { height: 150px; }
  .hub-workspace-thread-card { grid-template-columns: 34px minmax(0,1fr); }
  .hub-workspace-thread-card > a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Functional Hub states and forms. */
.hub-inline-actions,
.hub-inline-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hub-state-page {
  min-height: calc(100vh - var(--hub-topbar-height) - 64px);
  display: grid;
  place-items: center;
}

.hub-state-card {
  width: min(560px, 100%);
  padding: 42px;
  text-align: center;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(8, 28, 48, 0.95), rgba(2, 12, 23, 0.96));
  box-shadow: var(--hub-shadow);
}

.hub-state-card > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--hub-blue-bright);
}

.hub-state-card h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.hub-state-card p,
.hub-state-card small {
  display: block;
  margin: 0 0 20px;
  color: var(--hub-muted);
}

.hub-state-card.error > svg {
  color: var(--hub-amber);
}

.hub-workspace-loading-shell {
  display: grid;
  min-height: calc(100vh - var(--hub-topbar-height) - 44px);
  grid-template-rows: 58px minmax(580px, 1fr);
  gap: 12px;
}

.hub-workspace-loading-toolbar,
.hub-workspace-loading-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--hub-panel-soft);
}

.hub-workspace-loading-toolbar::after,
.hub-workspace-loading-canvas::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(118, 178, 236, 0.1) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: hub-loading-sweep 1.15s ease-in-out infinite;
}

.hub-workspace-loading-toolbar::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(280px, 42%);
  height: 20px;
  border-radius: 6px;
  background: rgba(118, 163, 217, 0.14);
  content: "";
}

@keyframes hub-loading-sweep {
  to { transform: translateX(100%); }
}

.hub-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 2px solid rgba(81, 160, 255, 0.24);
  border-top-color: var(--hub-blue-bright);
  border-radius: 50%;
  animation: hub-spin 0.8s linear infinite;
}

@keyframes hub-spin { to { transform: rotate(360deg); } }

.hub-row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hub-line);
  border-radius: 7px;
  color: var(--hub-blue-bright);
  background: rgba(19, 59, 102, 0.28);
}

.hub-row-icon svg {
  width: 20px;
  height: 20px;
}

.hub-discussion-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.hub-discussion-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-discussion-copy small,
.hub-form-hint {
  color: var(--hub-muted);
}

.hub-story-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
}

.hub-story-row h3,
.hub-story-row p {
  margin: 4px 0;
}

.hub-story-row p {
  color: var(--hub-muted);
}

.hub-reading-page {
  width: min(980px, 100%);
  margin-inline: auto;
}

.hub-article-header {
  margin: 28px 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-article-header h1 {
  max-width: 860px;
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.hub-article-header > p {
  max-width: 760px;
  color: var(--hub-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hub-prose {
  margin-bottom: 28px;
  color: #d6e0eb;
  font-size: 16px;
  line-height: 1.82;
}

.hub-editorial-article {
  width: min(1180px, 100%);
}

.hub-article-hero {
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(81, 160, 255, .28);
  border-radius: 16px;
  background: #061524;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.hub-article-hero img {
  display: block;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: cover;
}

.hub-article-hero figcaption,
.hub-prose-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--hub-line-soft);
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hub-article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
}

.hub-article-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--hub-line);
  border-radius: 11px;
  background: rgba(5, 18, 31, .72);
}

.hub-article-rail dl,
.hub-article-rail dd { margin: 0; }

.hub-article-rail dl { display: grid; gap: 11px; }

.hub-article-rail dl > div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.hub-article-rail dt {
  color: var(--hub-muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hub-article-rail dd { font-size: 12px; line-height: 1.5; }
.hub-article-rail .hub-button { width: 100%; }

.hub-prose { min-width: 0; }
.hub-prose > :first-child { margin-top: 0; }
.hub-prose p { margin: 0 0 1.5em; }

.hub-prose h2,
.hub-prose h3,
.hub-prose h4 {
  color: var(--hub-text);
  font-weight: 580;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.hub-prose h2 {
  margin: 2.2em 0 .7em;
  padding-top: .35em;
  font-size: clamp(25px, 3vw, 34px);
}

.hub-prose h3 { margin: 1.8em 0 .65em; font-size: 22px; }
.hub-prose h4 { margin: 1.6em 0 .55em; font-size: 18px; }

.hub-prose ul,
.hub-prose ol {
  display: grid;
  gap: 9px;
  margin: 0 0 1.7em;
  padding-left: 1.4em;
}

.hub-prose li { padding-left: .25em; }

.hub-prose a {
  color: #7bc4ff;
  text-decoration: underline;
  text-decoration-color: rgba(123, 196, 255, .45);
  text-underline-offset: 3px;
}

.hub-prose code {
  padding: .13em .35em;
  border: 1px solid rgba(81, 160, 255, .2);
  border-radius: 4px;
  background: rgba(4, 13, 23, .92);
  color: #bfe3ff;
  font-size: .88em;
}

.hub-prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--hub-line);
}

.hub-prose-callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 1px solid rgba(56, 186, 207, .32);
  border-left: 4px solid var(--hub-cyan);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(29, 140, 168, .13), rgba(40, 119, 232, .08));
  color: #e7f6fb;
  font-size: 15px;
  line-height: 1.7;
}

.hub-prose-figure {
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #061524;
}

.hub-prose-figure img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #020b13;
}

.hub-prose-table-wrap {
  margin: 1.8em 0 2.2em;
  overflow-x: auto;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
}

.hub-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.hub-prose th,
.hub-prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hub-line-soft);
  text-align: left;
  vertical-align: top;
}

.hub-prose th {
  background: rgba(40, 119, 232, .12);
  color: var(--hub-text);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hub-prose tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  .hub-article-layout { grid-template-columns: 1fr; gap: 24px; }
  .hub-article-rail {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .hub-article-rail .eyebrow { grid-column: 1 / -1; }
  .hub-article-rail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hub-article-hero { margin-inline: -10px; border-radius: 10px; }
  .hub-article-hero img { max-height: 52vh; }
  .hub-article-layout { gap: 20px; }
  .hub-article-rail { grid-template-columns: 1fr; }
  .hub-article-rail dl { grid-template-columns: 1fr 1fr; }
  .hub-prose { font-size: 15px; line-height: 1.75; }
  .hub-prose-figure { margin-inline: -10px; border-radius: 8px; }
}

.hub-thread-origin {
  margin-bottom: 10px;
  border-color: rgba(81, 160, 255, 0.45);
}

.hub-post-accepted {
  border-color: rgba(119, 214, 108, 0.62);
  box-shadow: inset 3px 0 0 rgba(119, 214, 108, 0.72);
}

.hub-definition-list {
  margin: 0;
}

.hub-definition-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hub-line-soft);
}

.hub-definition-list dt { color: var(--hub-muted); }
.hub-definition-list dd { margin: 0; text-align: right; }

.hub-filter-bar label,
.hub-form label {
  display: grid;
  gap: 7px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.hub-filter-bar select,
.hub-form input,
.hub-form textarea,
.hub-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--hub-line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--hub-text);
  background: #071524;
  font: inherit;
  color-scheme: dark;
}

.hub-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.hub-form input:focus,
.hub-form textarea:focus {
  border-color: var(--hub-blue-bright);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(81, 160, 255, 0.36);
}

.hub-filter-bar select:focus,
.hub-form select:focus {
  border-color: var(--hub-blue-bright);
  outline: 2px solid rgba(81, 160, 255, 0.32);
}

.hub-form {
  display: grid;
  gap: 16px;
}

.hub-member-combobox {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hub-member-combobox > input[type="search"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hub-line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--hub-text);
  background: #071524;
  color-scheme: dark;
}

.hub-member-combobox > input[type="search"]:focus {
  border-color: var(--hub-blue-bright);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(81, 160, 255, 0.36);
}

.hub-member-suggestions {
  display: grid;
  max-height: 238px;
  overflow-y: auto;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  padding: 5px;
  background: var(--hub-bg-deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hub-member-suggestions[hidden] { display: none; }

.hub-member-suggestion {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--hub-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.hub-member-suggestion:hover,
.hub-member-suggestion.active {
  border-color: rgba(81, 160, 255, 0.48);
  background: rgba(40, 119, 232, 0.14);
}

.hub-member-suggestion .hub-avatar {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
}

.hub-member-suggestion > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hub-member-suggestion strong,
.hub-member-suggestion small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-member-suggestion small,
.hub-member-search-status,
.hub-member-suggestion-empty {
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 400;
}

.hub-member-suggestion-empty { padding: 14px 12px; text-align: center; }
.hub-member-search-status { min-height: 17px; }

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

.hub-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.hub-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.hub-modal-open { overflow: hidden; }

.hub-modal-root[hidden] { display: none; }

.hub-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 6, 13, 0.8);
  backdrop-filter: blur(6px);
}

.hub-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(540px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid #294762;
  border-radius: 11px;
  background: #05121f;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}

.hub-modal-wide { width: min(1040px, 100%); }

.hub-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-modal > header h2 { margin: 0; font-size: 19px; }

.hub-modal > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--hub-muted);
  background: transparent;
  cursor: pointer;
}

.hub-modal > header button:hover { border-color: var(--hub-line); color: var(--hub-text); }

.hub-modal-body {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 20px;
}

.hub-profile-modal {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(820px, calc(100vh - 36px));
  height: min(820px, calc(100dvh - 36px));
}

.hub-profile-modal > .hub-profile-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 13px 20px;
  border-top: 1px solid var(--hub-line);
  background: rgba(5, 18, 31, 0.98);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.24);
}

.hub-notification-list {
  display: grid;
  gap: 8px;
}

.hub-notification-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.hub-notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  text-align: left;
  border: 1px solid rgba(81, 160, 255, 0.45);
  border-radius: 7px;
  color: var(--hub-text);
  background: rgba(19, 59, 102, 0.24);
}

.hub-notification-content { display: grid; min-width: 0; gap: 5px; }
.hub-notification-row.unread { box-shadow: inset 3px 0 0 var(--hub-cyan); }
.hub-notification-row.read { border-color: var(--hub-line); }
.hub-notification-row.read .hub-notification-content { opacity: 0.66; }
.hub-notification-list .hub-notification-content > span,
.hub-notification-list small { color: var(--hub-muted); }

.hub-notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.hub-notification-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  color: var(--hub-text);
  background: rgba(5, 18, 31, 0.44);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.hub-notification-action > svg { width: 15px; height: 15px; color: var(--hub-cyan); }
.hub-notification-action:hover { border-color: var(--hub-cyan); background: rgba(19, 59, 102, 0.48); }
.hub-notification-action.danger { color: #ff9aac; }
.hub-notification-action.danger > svg { color: currentColor; }
.hub-notification-action:disabled { cursor: wait; opacity: 0.62; }

@media (max-width: 680px) {
  .hub-notification-row { grid-template-columns: 1fr; }
  .hub-notification-actions { justify-content: stretch; }
  .hub-notification-action { flex: 1 1 auto; }
}

.hub-top-actions button { position: relative; }

.hub-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--hub-bg-deep);
  border-radius: 10px;
  color: white;
  background: #e54f64;
  font-size: 9px;
  line-height: 12px;
}

.hub-post-actions button.active {
  color: var(--hub-cyan);
  border-color: rgba(27, 217, 232, 0.45);
  background: rgba(27, 217, 232, 0.08);
}

.hub-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hub-toast[data-tone="error"] { border-color: rgba(229, 79, 100, 0.7); }
.hub-toast[data-tone="success"] { border-color: rgba(119, 214, 108, 0.7); }

@media (max-width: 700px) {
  .hub-form-grid { grid-template-columns: 1fr; }
  .hub-modal-root { padding: 8px; }
  .hub-modal { max-height: calc(100vh - 16px); }
  .hub-modal { max-height: calc(100dvh - 16px); }
  .hub-profile-modal { height: calc(100vh - 16px); }
  .hub-profile-modal { height: calc(100dvh - 16px); }
  .hub-modal-body { max-height: none; padding: 16px; }
  .hub-story-row { grid-template-columns: 42px minmax(0, 1fr); }
  .hub-story-row > :last-child { grid-column: 2; justify-self: start; }
}

/* Hub v3: legible, stable layouts and account/question workflows. */
.hub-skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--hub-blue);
  color: #fff;
}

.hub-skip-link:focus { transform: translateY(0); }

.hub-button,
.hub-filter-bar select,
.hub-form input,
.hub-form select {
  min-height: 42px;
}

.hub-button:focus-visible,
.hub-brand:focus-visible,
.hub-top-actions :is(a, button):focus-visible,
.hub-primary-nav a:focus-visible,
.hub-profile-card a:focus-visible,
.hub-match-card:focus-visible {
  outline: 3px solid rgba(81, 160, 255, 0.55);
  outline-offset: 2px;
}

.hub-main { padding: clamp(18px, 2.3vw, 34px); }

.hub-page { width: min(1220px, 100%); }

.hub-page-header {
  min-height: 84px;
  margin-bottom: 20px;
}

.hub-page-header p,
.hub-news-card p,
.hub-story-row p,
.hub-discussion-copy small {
  font-size: 13px;
  line-height: 1.55;
}

.hub-home-hero {
  min-height: 340px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.hub-home-hero-copy { padding: clamp(28px, 4vw, 52px); }

.hub-home-hero-copy p { font-size: 15px; }

.hub-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.hub-home-editorial-flow {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.hub-home-editorial-flow[data-has-latest="true"] {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.hub-home-grid > .hub-home-conversations { grid-column: auto; }

.hub-home-feature-panel,
.hub-home-conversations { min-height: 0; }

.hub-home-feature-panel .hub-news-feature {
  min-height: 0;
  margin: 0 14px 14px;
  grid-template-columns: 1fr;
}

.hub-home-feature-panel .hub-news-feature img {
  height: 220px;
  min-height: 0;
}

.hub-home-feature-panel .hub-news-feature-copy {
  min-height: 220px;
  padding: 22px;
  justify-content: flex-start;
}

.hub-home-conversations {
  display: flex;
  flex-direction: column;
}

.hub-home-conversations .hub-stack-list {
  flex: 1 1 auto;
}

.hub-home-news-feed {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.hub-home-latest-news {
  display: flex;
  flex-direction: column;
}

.hub-home-latest-news .hub-home-news-feed {
  flex: 1 1 auto;
  grid-auto-rows: minmax(206px, 1fr);
}

.hub-home-news-feed .hub-news-card-compact {
  display: grid;
  min-height: 206px;
  grid-template-columns: 142px minmax(0, 1fr);
}

.hub-home-news-feed .hub-news-card-compact > img {
  width: 100%;
  height: 100%;
  min-height: 206px;
}

.hub-home-news-feed .hub-news-card-compact .hub-news-card-copy {
  min-height: 0;
  padding: 15px;
}

.hub-home-news-feed .hub-news-card-compact h3 {
  margin: 8px 52px 6px 0;
  font-size: 15px;
}

.hub-home-news-feed .hub-news-card-compact p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hub-home-news-feed .hub-news-card-compact .hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.hub-home-news-feed .hub-news-card-compact .hub-link {
  margin-top: 10px;
  align-self: flex-start;
}

.hub-panel,
.hub-feature-main {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.hub-panel-title { min-height: 54px; padding: 15px 18px 12px; }

.hub-stack-list { padding: 0 14px 14px; }

.hub-panel-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid rgba(81, 160, 255, .34);
  border-radius: 9px;
  background: rgba(40, 119, 232, .09);
}

.hub-panel-callout > span { display: grid; gap: 3px; }
.hub-panel-callout small { color: var(--hub-muted); }

.hub-news-feature { border-radius: 10px; }

.hub-news-card-copy { min-height: 180px; padding: 16px; }
.hub-news-card h3 { font-size: 16px; }

.hub-discussion-row {
  grid-template-columns: 42px minmax(0, 1fr) auto 112px;
  gap: 14px;
  min-height: 74px;
  padding: 12px 4px;
}

.hub-discussion-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.hub-discussion-count { min-width: 100px; }
.hub-discussion-count strong { font-size: 12px; }

.hub-filter-bar {
  align-items: end;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: rgba(5, 18, 31, .62);
}

.hub-filter-bar label { min-width: min(210px, 100%); }

.hub-thread-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 16px 0 22px;
}

.hub-thread-heading > div:first-child { min-width: 0; flex: 1 1 560px; }
.hub-thread-heading h1 { margin: 10px 0; font-size: clamp(26px, 3vw, 40px); }

.hub-thread-layout { grid-template-columns: minmax(0, 1fr) 280px; }

.hub-post {
  display: block;
  padding: 18px;
}

.hub-post-header { margin-bottom: 14px; }

.hub-post-author > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hub-post-author strong,
.hub-post-author small { display: block; }

.hub-post-parent-context {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid var(--hub-cyan);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--hub-cyan) 7%, var(--hub-panel-soft));
  color: inherit;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.hub-post-parent-context > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--hub-muted);
  font-size: 10px;
}

.hub-post-parent-context > span strong { color: var(--hub-cyan); }
.hub-post-parent-context svg { width: 13px; height: 13px; }

.hub-post-parent-context blockquote {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--hub-text);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hub-post-parent-context:hover,
.hub-post-parent-context:focus-visible {
  border-left-color: var(--hub-blue-bright);
  background: color-mix(in srgb, var(--hub-cyan) 12%, var(--hub-panel-soft));
  outline: none;
}

.hub-post-parent-context.unavailable { border-left-color: var(--hub-muted); }

.hub-post-body {
  color: #d4deea;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hub-post-actions {
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hub-line-soft);
}

.hub-post-actions button { min-height: 32px; padding: 0 8px; font-size: 11px; }
.hub-post-actions button,.hub-thread-follow-control,.hub-thread-primary-actions .hub-button { transition: color .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease,transform .16s ease; }
.hub-post-actions button.is-pending { opacity: .78 !important; transform: scale(.97); }
.hub-post-actions button.is-pending.active { color: var(--hub-cyan); }
.hub-button.is-pending,.hub-thread-follow-control[aria-busy="true"] { opacity: .82 !important; cursor: progress; }
.hub-post-sending { border-color: color-mix(in srgb,var(--hub-cyan) 34%,var(--hub-line)); background: linear-gradient(105deg,color-mix(in srgb,var(--hub-cyan) 8%,transparent),var(--hub-panel) 42%); }
.hub-post-failed { border-color: color-mix(in srgb,var(--hub-pink) 45%,var(--hub-line)); background: linear-gradient(105deg,color-mix(in srgb,var(--hub-pink) 8%,transparent),var(--hub-panel) 42%); }
.hub-post-delivery { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-panel-soft); color: var(--hub-muted); font: inherit; font-size: 10px; white-space: nowrap; }
.hub-post-delivery.sending { color: var(--hub-cyan); }
.hub-post-delivery.failed { border-color: color-mix(in srgb,var(--hub-pink) 44%,var(--hub-line)); color: var(--hub-pink); cursor: pointer; }
.hub-post-delivery.failed:hover,.hub-post-delivery.failed:focus-visible { background: color-mix(in srgb,var(--hub-pink) 12%,var(--hub-panel-soft)); outline: none; }
.hub-post-delivery svg { width: 13px; height: 13px; }

.hub-form-intro,
.hub-form-notice,
.hub-profile-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(81, 160, 255, .34);
  border-radius: 9px;
  background: rgba(40, 119, 232, .08);
}

.hub-form-intro > svg,
.hub-form-notice > svg { width: 22px; flex: 0 0 auto; color: var(--hub-blue-bright); }
.hub-form-intro p { margin: 4px 0 0; color: var(--hub-muted); }
.hub-form-notice span,
.hub-profile-summary > span { display: grid; gap: 3px; }
.hub-form-notice small,
.hub-profile-summary small,
.hub-form label > small { color: var(--hub-muted); font-weight: 400; }
.hub-form-notice.success { border-color: rgba(119, 214, 108, .4); background: rgba(119, 214, 108, .07); }
.hub-form-notice.success > svg { color: var(--hub-green); }

.hub-profile-summary { align-items: center; }
.hub-profile-summary .hub-status { margin-left: auto; }

.hub-profile-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  color: var(--hub-muted);
  text-align: center;
}

.hub-profile-loading p { margin: 0; }
.hub-modal-retry { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.hub-checkbox,
.hub-acknowledgement {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: rgba(7, 21, 36, .72);
  cursor: pointer;
}

.hub-checkbox input,
.hub-acknowledgement input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--hub-blue);
}

.hub-checkbox span,
.hub-acknowledgement span { display: grid; gap: 3px; }
.hub-checkbox small,
.hub-acknowledgement small { color: var(--hub-muted); font-weight: 400; }

.hub-form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(229, 79, 100, .55);
  border-radius: 7px;
  background: rgba(229, 79, 100, .08);
  color: #ffacb8;
}

.hub-form-error[hidden] { display: none; }

.hub-profile-footer .hub-footer-spacer { flex: 1; }
.hub-button.danger { border-color: rgba(229, 79, 100, .5); color: #ffb3be; }

.hub-wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.hub-wizard-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-bottom: 2px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-wizard-progress b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(81, 160, 255, .12);
}

.hub-wizard-progress span.active { border-color: var(--hub-blue-bright); color: var(--hub-text); }
.hub-wizard-progress span.active b { background: var(--hub-blue); color: #fff; }

.hub-question-review { display: grid; gap: 20px; }
.hub-question-review header h3 { margin: 4px 0 6px; font-size: 21px; }
.hub-question-review header p { margin: 0; color: var(--hub-muted); }
.hub-question-review h4 { margin: 0 0 8px; font-size: 13px; }
.hub-question-review footer { display: flex; justify-content: flex-end; gap: 10px; }

.hub-match-list { display: grid; gap: 8px; }

.hub-match-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: rgba(8, 25, 42, .7);
  transition: 150ms ease;
}

.hub-match-card:hover { border-color: #3e78b8; transform: translateY(-1px); }
.hub-match-card > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.hub-match-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-match-card small { color: var(--hub-muted); }
.hub-match-card > svg { width: 16px; color: var(--hub-blue-bright); }
.hub-match-meta { display: flex; gap: 6px; }

.hub-spinner.mini { width: 17px; height: 17px; margin: 0; }

/* News is an editorial feed, not a content-and-rail layout. */
.hub-page[data-page="news"] .hub-news-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.hub-news-page-header > div {
  display: grid;
  justify-items: start;
}

.hub-news-count {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  background: rgba(81, 160, 255, .08);
  color: var(--hub-muted);
  font-size: 11px;
  letter-spacing: .01em;
}

.hub-page[data-page="news"] .hub-news-feature {
  height: clamp(350px, 31vw, 430px);
  min-height: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .9fr);
  border-color: rgba(81, 160, 255, .3);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .24);
}

.hub-page[data-page="news"] .hub-news-feature img {
  height: 100%;
  min-height: 0;
}

.hub-page[data-page="news"] .hub-news-feature-copy {
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(145deg, rgba(8, 28, 48, .96), rgba(4, 16, 29, .98));
}

.hub-news-labels,
.hub-news-feed-header,
.hub-news-feed-header > div {
  display: flex;
  align-items: center;
}

.hub-news-labels { flex-wrap: wrap; gap: 8px; }

.hub-news-featured-label {
  color: var(--hub-cyan);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-news-feed {
  display: grid;
  gap: 14px;
}

.hub-news-feed-header {
  min-height: 54px;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-news-feed-header > div {
  align-items: baseline;
  gap: 12px;
}

.hub-news-feed-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 560;
}

.hub-news-feed-header > span {
  color: var(--hub-muted);
  font-size: 11px;
}

.hub-page[data-page="news"] .hub-news-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.hub-page[data-page="news"] .hub-news-card {
  border-radius: 11px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hub-page[data-page="news"] .hub-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(81, 160, 255, .62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .25);
}

.hub-page[data-page="news"] .hub-news-card img {
  height: 188px;
  background: rgba(8, 25, 42, .8);
}

.hub-page[data-page="news"] .hub-news-card-copy {
  min-height: 260px;
  padding: 20px;
}

.hub-page[data-page="news"] .hub-news-card h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.35;
}

.hub-page[data-page="news"] .hub-news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hub-page[data-page="news"] .hub-news-card .hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.hub-page[data-page="news"] .hub-news-card .hub-link {
  margin-top: 16px;
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .hub-home-grid { grid-template-columns: 1fr; }
  .hub-page[data-page="news"] .hub-news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hub-sidebar {
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-105%, 0, 0) !important;
  }

  body.hub-menu-open .hub-sidebar {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) !important;
  }
}

@media (max-width: 700px) {
  .hub-page-header { min-height: 0; flex-direction: column; align-items: stretch; }
  .hub-page-header > .hub-inline-actions { width: 100%; }
  .hub-page-header > .hub-inline-actions .hub-button { flex: 1 1 150px; }
  .hub-page-header .hub-button span { display: inline; }
  .hub-home-hero { min-height: 420px; }
  .hub-home-hero-copy { padding: 24px 20px; }
  .hub-home-hero-copy h1 { font-size: clamp(32px, 10vw, 42px); }
  .hub-home-feature-panel,
  .hub-home-conversations { min-height: 0; }
  .hub-home-news-feed .hub-news-card-compact {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .hub-home-news-feed .hub-news-card-compact > img {
    height: 190px;
    min-height: 0;
  }
  .hub-panel-callout { align-items: stretch; flex-direction: column; }
  .hub-discussion-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; }
  .hub-discussion-count { grid-column: 2 / -1; min-width: 0; grid-auto-flow: column; justify-content: start; justify-items: start; gap: 8px; }
  .hub-discussion-copy strong { white-space: normal; }
  .hub-thread-layout { grid-template-columns: 1fr; }
  .hub-filter-bar { display: grid; grid-template-columns: 1fr; }
  .hub-filter-bar label { min-width: 0; }
  .hub-question-review footer,
  .hub-form footer { flex-direction: column-reverse; }
  .hub-question-review footer .hub-button,
  .hub-form footer .hub-button { width: 100%; }
  .hub-profile-footer .hub-footer-spacer { display: none; }
  .hub-profile-modal > .hub-profile-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .hub-profile-modal > .hub-profile-footer .hub-button { width: 100%; }
  .hub-profile-modal > .hub-profile-footer .hub-button.danger { grid-column: 1 / -1; grid-row: 2; }
  .hub-wizard-progress span { justify-content: center; font-size: 0; }
  .hub-wizard-progress b { font-size: 12px; }
  .hub-match-card { grid-template-columns: 38px minmax(0, 1fr); }
  .hub-match-card > svg { display: none; }
  .hub-page[data-page="news"] .hub-news-feature {
    height: auto;
    grid-template-columns: 1fr;
  }
  .hub-page[data-page="news"] .hub-news-feature img { height: 220px; }
  .hub-page[data-page="news"] .hub-news-feature-copy { padding: 24px 20px; }
  .hub-page[data-page="news"] .hub-news-feature-copy h2 { font-size: 25px; }
  .hub-page[data-page="news"] .hub-news-cards { grid-template-columns: 1fr; }
  .hub-page[data-page="news"] .hub-news-card img { height: 210px; }
  .hub-page[data-page="news"] .hub-news-card-copy { min-height: 0; }
  .hub-news-feed-header,
  .hub-news-feed-header > div { align-items: flex-start; }
  .hub-news-feed-header > div { flex-direction: column; gap: 3px; }
}

.hub-preference-list,
.hub-quick-menu {
  display: grid;
  gap: 10px;
}

.hub-preference-choice,
.hub-quick-action {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: var(--hub-panel-soft);
  color: var(--hub-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hub-preference-choice:hover,
.hub-preference-choice[aria-pressed="true"],
.hub-quick-action:hover {
  border-color: var(--hub-cyan);
  background: rgba(40, 119, 232, 0.12);
  transform: translateY(-1px);
}

.hub-preference-choice > span:nth-child(2),
.hub-quick-action > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.hub-preference-choice small,
.hub-quick-action small,
.hub-menu-note {
  color: var(--hub-muted);
}

.hub-preference-choice > svg:last-child,
.hub-quick-action > svg:last-child {
  width: 18px;
  color: var(--hub-cyan);
}

.hub-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--hub-line-soft);
  border-radius: var(--hub-radius);
  color: var(--hub-muted);
}

.hub-shortcuts strong {
  flex: 1 0 100%;
  color: var(--hub-text);
}

.hub-shortcuts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-shortcuts kbd {
  min-width: 26px;
  padding: 3px 7px;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  background: var(--hub-panel-soft);
  color: var(--hub-text);
  text-align: center;
}

html[data-theme="light"] body.reach-hub {
  --hub-bg: #f5f8fc;
  --hub-bg-deep: #eaf0f7;
  --hub-panel: rgba(255, 255, 255, 0.96);
  --hub-panel-soft: rgba(242, 247, 252, 0.96);
  --hub-line: rgba(49, 74, 104, 0.25);
  --hub-line-soft: rgba(71, 96, 126, 0.18);
  --hub-text: #10233d;
  --hub-muted: #51647a;
  --hub-faint: #6c7d90;
  --hub-blue: #1f66cf;
  --hub-blue-bright: #1d5fc2;
  --hub-cyan: #087f88;
  --hub-shadow: 0 20px 54px rgba(28, 54, 84, 0.14);
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 99, 235, 0.12), transparent 31rem),
    radial-gradient(circle at 22% 82%, rgba(0, 168, 168, 0.08), transparent 28rem),
    linear-gradient(145deg, #f8fbff 0%, #f1f6fb 52%, #eaf1f8 100%);
  color: var(--hub-text);
}

html[data-theme="light"] body.reach-hub::before {
  opacity: 0.06;
}

html[data-theme="light"] .reach-hub .hub-sidebar {
  border-right-color: var(--hub-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 168, 168, 0.1), transparent 18rem),
    rgba(248, 251, 255, 0.98);
}

html[data-theme="light"] .reach-hub .hub-primary-nav a {
  color: #41566f;
}

html[data-theme="light"] .reach-hub .hub-primary-nav a:hover,
html[data-theme="light"] .reach-hub .hub-primary-nav a[aria-current="page"] {
  border-color: rgba(0, 126, 134, 0.42);
  background: linear-gradient(105deg, rgba(0, 168, 168, 0.14), rgba(37, 99, 235, 0.12));
  color: #0c2947;
}

html[data-theme="light"] .reach-hub :is(.hub-tool-entry, .hub-profile-card) {
  border-color: var(--hub-line);
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .reach-hub .hub-topbar {
  border-bottom-color: var(--hub-line);
  background: rgba(248, 251, 255, 0.92);
}

html[data-theme="light"] .reach-hub .hub-global-search,
html[data-theme="light"] .reach-hub :is(input, textarea, select) {
  border-color: var(--hub-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--hub-text);
}

html[data-theme="light"] .reach-hub .hub-main {
  background-image:
    linear-gradient(rgba(48, 76, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 76, 107, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .reach-hub :is(
  .hub-panel,
  .hub-feature-main,
  .hub-news-feature,
  .hub-news-card,
  .hub-filter-bar,
  .hub-modal,
  .hub-state-card,
  .hub-post,
  .hub-composer
) {
  border-color: var(--hub-line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.98));
  color: var(--hub-text);
}

html[data-theme="light"] .reach-hub .hub-home-hero::after {
  background:
    linear-gradient(90deg, rgba(239, 246, 253, 0.98) 3%, rgba(239, 246, 253, 0.88) 39%, rgba(239, 246, 253, 0.12) 76%),
    linear-gradient(180deg, transparent 55%, rgba(239, 246, 253, 0.62));
}

html[data-theme="light"] .reach-hub .hub-home-hero-copy p,
html[data-theme="light"] .reach-hub .hub-card-meta,
html[data-theme="light"] .reach-hub .hub-news-card p {
  color: var(--hub-muted);
}

html[data-theme="light"] .reach-hub :is(.hub-discussion-row, .hub-story-row, .hub-match-card, .hub-notification-row) {
  border-color: var(--hub-line-soft);
  background: rgba(255, 255, 255, 0.72);
  color: var(--hub-text);
}

html[data-theme="light"] .reach-hub .hub-modal-scrim {
  background: rgba(33, 50, 72, 0.48);
}

html[data-theme="light"] .reach-hub .hub-profile-modal > .hub-profile-footer {
  background: rgba(248, 251, 255, 0.98);
}

html[data-theme="light"] .reach-hub .hub-toast {
  border-color: var(--hub-line);
  background: #ffffff;
  color: var(--hub-text);
  box-shadow: var(--hub-shadow);
}

@media (max-width: 520px) {
  .hub-preference-choice,
  .hub-quick-action {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
}

/* Discussion and Question surfaces. */
.hub-initial-content {
  max-width: 820px;
  padding: clamp(44px, 8vw, 96px) 0;
}

.hub-initial-content h1 {
  margin: 8px 0 18px;
  font: 620 clamp(32px, 5vw, 58px)/1.08 var(--reach-font-display, "Inter", sans-serif);
}

.hub-initial-content > p { max-width: 700px; color: var(--hub-muted); font-size: 17px; line-height: 1.65; }
.hub-initial-content nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hub-initial-content nav a { color: var(--hub-cyan); text-decoration: underline; text-underline-offset: 4px; }

.hub-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-breadcrumbs a { color: var(--hub-blue-bright); }
.hub-breadcrumbs svg { width: 13px; flex: 0 0 auto; }
.hub-breadcrumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hub-kind-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hub-kind-tabs a {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  color: var(--hub-muted);
}

.hub-kind-tabs a[aria-current="page"] {
  border-color: var(--hub-cyan);
  background: rgba(0, 168, 168, .12);
  color: var(--hub-text);
}

.hub-discussion-search {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: var(--hub-panel-soft);
}

.hub-search-field {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  gap: 10px !important;
  padding: 0 14px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  background: var(--hub-bg-deep);
}

.hub-search-field:focus-within { border-color: var(--hub-cyan); box-shadow: 0 0 0 3px rgba(0, 168, 168, .13); }
.hub-search-field svg { width: 19px; flex: 0 0 auto; color: var(--hub-muted); }
.hub-search-field input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--hub-text); font-size: 15px; }

.hub-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.hub-filter-grid label { display: grid; gap: 5px; color: var(--hub-muted); font-size: 11px; }
.hub-filter-grid select { min-height: 42px; border: 1px solid var(--hub-line); border-radius: 8px; padding: 0 10px; background: var(--hub-bg-deep); color: var(--hub-text); }

.hub-discussion-results { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.hub-result-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; }
.hub-result-heading h2 { margin: 0; font-size: 15px; }
.hub-result-heading a { color: var(--hub-cyan); font-size: 12px; }
.hub-discussion-feed { display: grid; gap: 12px; }

.hub-discussion-card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background: var(--hub-panel);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hub-discussion-card:focus-within,
.hub-discussion-card:hover { border-color: rgba(0, 168, 168, .58); box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
.hub-discussion-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-discussion-card-head time { margin-left: auto; color: var(--hub-muted); font-size: 11px; }
.hub-discussion-card h2 { margin: 12px 0 8px; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; }
.hub-discussion-card h2 a:focus-visible { outline: 3px solid var(--hub-cyan); outline-offset: 4px; }
.hub-discussion-card > p { display: -webkit-box; margin: 0 0 13px; overflow: hidden; color: var(--hub-muted); font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hub-discussion-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hub-line-soft); color: var(--hub-muted); font-size: 11px; }

.hub-kind-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  color: var(--hub-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hub-kind-badge svg { width: 13px; }
.hub-kind-badge.question { border-color: rgba(81, 160, 255, .5); color: var(--hub-blue-bright); }
.hub-kind-badge.discussion { border-color: var(--hub-line); color: var(--hub-muted); }
.hub-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-resource-counts { display: inline-flex; gap: 8px; }
.hub-resource-counts span { display: inline-flex; align-items: center; gap: 3px; }
.hub-resource-counts svg { width: 13px; }

.hub-discover-rail { display: grid; gap: 12px; }
.hub-discover-rail section { padding: 18px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-soft); }
.hub-discover-rail h2 { margin: 0 0 7px; font-size: 15px; }
.hub-discover-rail p { margin: 0 0 12px; color: var(--hub-muted); line-height: 1.55; }
.hub-discover-rail a { display: inline-flex; align-items: center; gap: 5px; color: var(--hub-cyan); }

.hub-thread-page { max-width: 1260px; }
.hub-thread-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub-thread-layout { grid-template-columns: minmax(0, 820px) minmax(240px, 290px); justify-content: space-between; gap: clamp(24px, 4vw, 56px); }
.hub-thread-reading { min-width: 0; }
.hub-post-section-label { display: block; margin-bottom: 12px; color: var(--hub-cyan); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hub-post-link { width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 7px; background: transparent; color: var(--hub-muted); cursor: pointer; }
.hub-post-link:hover { background: var(--hub-panel-soft); color: var(--hub-text); }
.hub-post-link svg { width: 16px; }
.hub-post-tools { display: inline-flex; margin-left: auto; align-items: center; gap: 2px; }
.hub-post-tools .hub-post-link { margin-left: 0; }
.hub-post-link.danger:hover { background: color-mix(in srgb, var(--hub-pink) 13%, transparent); color: var(--hub-pink); }
.hub-thread-workspace-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 0 22px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--hub-cyan) 42%, var(--hub-line)); border-radius: var(--hub-radius); background: linear-gradient(110deg, color-mix(in srgb, var(--hub-cyan) 10%, var(--hub-panel)), var(--hub-panel)); }
.hub-thread-workspace-banner > svg { width: 24px; height: 24px; color: var(--hub-cyan); }
.hub-thread-workspace-banner > div { display: grid; min-width: 0; gap: 3px; }
.hub-thread-workspace-banner strong, .hub-thread-workspace-banner small { overflow-wrap: anywhere; }
.hub-thread-workspace-banner small { color: var(--hub-muted); }

.hub-resource-library { display: grid; gap: 18px; }
.hub-resource-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hub-resource-library-head h3 { margin: 4px 0 5px; font-size: 24px; }
.hub-resource-library-head p { margin: 0; color: var(--hub-muted); }
.hub-resource-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(160px, .3fr) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel-soft); }
.hub-resource-toolbar > label:not(.hub-search-field) { display: grid; gap: 5px; color: var(--hub-muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hub-resource-toolbar select { min-height: 40px; border: 1px solid var(--hub-line); border-radius: 8px; padding: 0 32px 0 10px; background: var(--hub-bg-deep); color: var(--hub-text); }
.hub-resource-limit { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; color: var(--hub-muted); font-size: 10px; white-space: nowrap; }
.hub-resource-limit svg { width: 14px; }
.hub-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-resource-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); }
.hub-resource-preview { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 8px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 10px; text-transform: capitalize; }
.hub-resource-preview svg { width: 31px; height: 31px; color: var(--hub-cyan); }
.hub-resource-preview.image { position: relative; overflow: hidden; }
.hub-resource-preview.image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hub-resource-preview.image span { position: relative; align-self: end; width: 100%; padding: 8px; background: linear-gradient(transparent, rgba(1,8,20,.82)); color: white; text-align: center; }
.hub-resource-card-copy { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 13px; }
.hub-resource-card-copy > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-resource-card-copy time { color: var(--hub-muted); font-size: 9px; }
.hub-resource-card-copy h3 { margin: 0; overflow: hidden; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hub-resource-card-copy > p { margin: 0; overflow: hidden; color: var(--hub-muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.hub-resource-associations { display: flex; min-height: 20px; flex-wrap: wrap; gap: 4px; }
.hub-resource-associations span { display: inline-flex; align-items: center; gap: 3px; max-width: 150px; overflow: hidden; border-radius: 999px; padding: 3px 6px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.hub-resource-associations svg { width: 10px; height: 10px; color: var(--hub-cyan); }
.hub-resource-card-copy footer { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.hub-resource-card-copy footer .hub-button { min-height: 29px; padding: 5px 7px; font-size: 8px; }
.hub-resource-no-results { margin: 0; padding: 28px; color: var(--hub-muted); text-align: center; }
.hub-resource-pagination { display: flex; justify-content: center; padding-top: 2px; }
.hub-resource-file-field { position: relative; min-height: 120px; border: 1px dashed color-mix(in srgb, var(--hub-cyan) 55%, var(--hub-line)); border-radius: 11px; background: color-mix(in srgb, var(--hub-cyan) 5%, var(--hub-panel)); cursor: pointer; }
.hub-resource-file-field > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hub-resource-file-field > span { display: grid; min-height: 120px; place-items: center; align-content: center; gap: 5px; padding: 18px; text-align: center; }
.hub-resource-file-field svg { width: 26px; height: 26px; color: var(--hub-cyan); }
.hub-resource-file-field small { color: var(--hub-muted); }

@media (max-width: 760px) {
  .hub-thread-workspace-banner { grid-template-columns: auto minmax(0, 1fr); }
  .hub-thread-workspace-banner > .hub-button { grid-column: 1 / -1; }
  .hub-resource-library-head { align-items: stretch; flex-direction: column; }
  .hub-resource-toolbar { grid-template-columns: 1fr; }
  .hub-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hub-resource-card { grid-template-columns: 1fr; }
  .hub-resource-preview { min-height: 120px; }
}
.hub-thread-feed-title { padding: 15px 18px; border-bottom: 1px solid var(--hub-line); }
.hub-thread-feed-title h2 { margin: 0; font-size: 16px; }

.hub-technical-prose { max-width: 78ch; color: var(--hub-text); font-size: 16px; line-height: 1.68; overflow-wrap: anywhere; }
.hub-technical-prose p { margin: 0 0 .9em; color: inherit; font-size: inherit; line-height: inherit; }
.hub-technical-prose :is(ul, ol) { padding-left: 1.5em; }
.hub-technical-prose code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.hub-technical-prose pre { max-width: 100%; overflow-x: auto; padding: 14px; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-bg-deep); }
.hub-technical-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }

.hub-technical-context { margin: 0 0 20px; border: 1px solid rgba(81, 160, 255, .3); border-radius: 10px; background: rgba(40, 119, 232, .06); }
.hub-technical-context summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; cursor: pointer; }
.hub-technical-context summary > span:first-child { display: grid; gap: 3px; }
.hub-technical-context summary small { color: var(--hub-muted); }
.hub-technical-context summary > span:last-child { display: inline-flex; align-items: center; gap: 5px; color: var(--hub-cyan); font-size: 11px; }
.hub-technical-context summary svg { width: 15px; }
.hub-technical-context dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 15px 15px; gap: 0 18px; }
.hub-technical-context dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hub-line-soft); }
.hub-technical-context dt { color: var(--hub-muted); text-transform: capitalize; }
.hub-technical-context dd { margin: 0; text-align: right; }

.hub-solution-area { margin: 18px 0; padding: 20px; border: 1px solid rgba(0, 168, 168, .42); border-radius: var(--hub-radius); background: rgba(0, 168, 168, .07); }
.hub-solution-area header h2 { margin: 3px 0 14px; }
.hub-solution-excerpt + .hub-solution-excerpt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hub-line-soft); }
.hub-solution-excerpt > a { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--hub-cyan); }

.hub-resolution-panel { padding-bottom: 10px; }
.hub-resolution-path { display: grid; gap: 0; margin: 0; padding: 0 18px 10px; list-style: none; }
.hub-resolution-path li { position: relative; display: grid; min-height: 43px; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; color: var(--hub-muted); }
.hub-resolution-path li:not(:last-child)::after { position: absolute; top: 31px; bottom: -9px; left: 10px; width: 1px; background: var(--hub-line); content: ""; }
.hub-resolution-path svg { width: 18px; }
.hub-resolution-path .done { color: var(--hub-cyan); }
.hub-resolution-path .current { color: var(--hub-text); font-weight: 650; }


.hub-provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 11px; }
.hub-provenance svg { width: 15px; }
.hub-provenance a { color: var(--hub-cyan); }
.hub-contributors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hub-contributors > span { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.hub-contributors .hub-avatar { grid-row: 1 / 3; }
.hub-contributors small { color: var(--hub-muted); }
.hub-article-warning { margin-bottom: 24px; padding: 16px 18px; border: 1px solid rgba(242, 200, 75, .48); border-radius: var(--hub-radius); background: rgba(242, 200, 75, .08); }

.hub-review-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 18px; align-items: start; }
.hub-review-editor, .hub-review-source { min-width: 0; padding: 18px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-review-editor { display: grid; gap: 14px; }
.hub-review-editor label { display: grid; gap: 6px; color: var(--hub-muted); font-size: 12px; font-weight: 650; }
.hub-review-editor :is(input, textarea) { width: 100%; border: 1px solid var(--hub-line); border-radius: 8px; padding: 10px 12px; resize: vertical; background: var(--hub-bg-deep); color: var(--hub-text); font: inherit; line-height: 1.55; }
.hub-review-editor footer, .hub-final-warning footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub-review-source { position: sticky; top: 82px; max-height: calc(100vh - 104px); overflow-y: auto; }
.hub-review-source header { padding-bottom: 15px; border-bottom: 1px solid var(--hub-line); }
.hub-review-source header h2 { margin: 4px 0 8px; }
.hub-review-source header p { color: var(--hub-muted); }
.hub-review-source article { padding: 16px 0; border-bottom: 1px solid var(--hub-line-soft); }
.hub-review-source article > small { display: block; margin: 3px 0 9px; color: var(--hub-muted); }

.hub-match-card { grid-template-columns: 42px minmax(0, 1fr); }
.hub-match-card > div { display: grid; gap: 7px; min-width: 0; }
.hub-match-card > div > strong { font-size: 15px; }
.hub-match-card > div > small { color: var(--hub-muted); line-height: 1.5; }
.hub-match-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hub-match-reason { padding: 2px 6px; border-radius: 999px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 9px; text-transform: capitalize; }
.hub-form-notice.warning { border-color: rgba(242, 200, 75, .45); background: rgba(242, 200, 75, .07); }
.hub-form-notice.warning > svg { color: var(--hub-amber); }
.hub-final-warning { display: grid; gap: 18px; }

.hub-news-filters { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, .35fr) auto auto; gap: 10px; align-items: end; margin-bottom: 24px; padding: 14px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-news-filters > label:not(.hub-search-field) { display: grid; gap: 6px; color: var(--hub-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hub-news-filters select { min-height: 42px; border: 1px solid var(--hub-line); border-radius: 8px; padding: 0 34px 0 11px; background: var(--hub-bg-deep); color: var(--hub-text); font: inherit; }
.hub-news-feature, .hub-news-card, .hub-discussion-card, .hub-article-header { position: relative; }
.hub-news-feature, .hub-news-card, .hub-discussion-card { isolation: isolate; cursor: pointer; }
.hub-card-primary-link[data-card-primary]::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  content: "";
  cursor: pointer;
}
.hub-news-feature :is(a, button):not([data-card-primary]),
.hub-news-card :is(a, button):not([data-card-primary]),
.hub-discussion-card :is(a, button):not([data-card-primary]) {
  position: relative;
  z-index: 2;
}
.hub-news-feature:has([data-card-primary]:focus-visible),
.hub-news-card:has([data-card-primary]:focus-visible),
.hub-discussion-card:has([data-card-primary]:focus-visible) {
  border-color: var(--hub-cyan);
  outline: 3px solid color-mix(in srgb, var(--hub-cyan) 58%, transparent);
  outline-offset: 3px;
}
.hub-news-feature:hover,
.hub-news-card:hover,
.hub-discussion-card:hover {
  border-color: color-mix(in srgb, var(--hub-cyan) 58%, var(--hub-line));
}
.hub-news-vignettes { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 7px; }
.hub-article-header .hub-news-vignettes { top: 0; right: 0; }
.hub-news-vignette { position: relative; display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--hub-line) 82%, white); border-radius: 9px; padding: 0; background: color-mix(in srgb, var(--hub-panel) 88%, transparent); color: var(--hub-muted); box-shadow: 0 4px 16px rgba(2, 8, 18, .2); backdrop-filter: blur(12px); cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.hub-news-vignette:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--hub-cyan) 58%, var(--hub-line)); background: color-mix(in srgb, var(--hub-cyan) 12%, var(--hub-panel)); color: var(--hub-text); transform: translateY(-1px); }
.hub-news-vignette:disabled { cursor: wait; opacity: .75; }
.hub-news-vignette svg { width: 16px; height: 16px; }
.hub-news-vignette::after { content: attr(data-tooltip); position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: max-content; max-width: min(220px, 72vw); padding: 7px 9px; border: 1px solid var(--hub-line); border-radius: 7px; background: var(--hub-bg-deep); color: var(--hub-text); box-shadow: 0 8px 24px rgba(2, 8, 18, .32); font-size: 10px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease; }
.hub-news-vignette:is(:hover, :focus-visible)::after { opacity: 1; transform: translateY(0); }
.hub-follow-button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--hub-cyan) 78%, white); background: color-mix(in srgb, var(--hub-cyan) 25%, var(--hub-panel)); color: var(--hub-cyan); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-cyan) 28%, transparent), 0 4px 18px color-mix(in srgb, var(--hub-cyan) 18%, transparent); }
.hub-follow-button[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--hub-cyan) 35%, transparent); }
.hub-follow-button[aria-pressed="true"]:hover { border-color: color-mix(in srgb, var(--hub-pink) 72%, white); background: color-mix(in srgb, var(--hub-pink) 16%, var(--hub-panel)); color: var(--hub-pink); }
.hub-vignette-state { position: absolute; top: -5px; right: -5px; display: grid; width: 15px; height: 15px; place-items: center; border: 2px solid var(--hub-panel); border-radius: 50%; background: var(--hub-cyan); color: #061018; font-size: 8px; font-weight: 900; }
.hub-news-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 14px; }
.hub-news-secondary-actions.compact { margin-top: 11px; }
.hub-news-discuss-button { min-height: 32px; padding: 6px 10px; border-color: color-mix(in srgb, var(--hub-cyan) 32%, var(--hub-line)); background: transparent; font-size: 10px; }
.hub-news-discuss-button svg { width: 14px; height: 14px; }
.hub-news-data-link { display: inline-flex; align-items: center; gap: 5px; color: var(--hub-muted); font-size: 10px; font-weight: 650; text-decoration: none; }
.hub-news-data-link:hover { color: var(--hub-cyan); }
.hub-news-data-link svg { width: 13px; height: 13px; }
.hub-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 26px; }
.hub-pagination > :last-child { justify-self: end; }
.hub-pagination > span { color: var(--hub-muted); font-size: 12px; }
.hub-public-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 28px; border: 1px solid color-mix(in srgb, var(--hub-cyan) 36%, var(--hub-line)); border-radius: var(--hub-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--hub-cyan) 9%, var(--hub-panel)), var(--hub-panel)); }
.hub-public-actions h2 { margin: 5px 0 7px; }
.hub-public-actions p { max-width: 720px; margin: 0; color: var(--hub-muted); line-height: 1.55; }
.hub-workspace-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-workspace-value-grid article { padding: 24px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-workspace-value-grid svg { color: var(--hub-cyan); }
.hub-workspace-value-grid h2 { margin: 14px 0 7px; }
.hub-workspace-value-grid p { margin: 0; color: var(--hub-muted); line-height: 1.55; }
.hub-brand-relationship { margin-top: 22px; padding: 24px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-soft); }
.hub-brand-relationship > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 15px; }
.hub-brand-relationship article { padding-left: 14px; border-left: 2px solid var(--hub-cyan); }
.hub-brand-relationship p { margin: 6px 0 0; color: var(--hub-muted); line-height: 1.5; }

.hub-codex-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr); gap: 18px; align-items: start; }
.hub-codex-form, .hub-codex-queue { min-width: 0; padding: 20px; }
.hub-codex-form { position: sticky; top: 82px; }
.hub-codex-form .hub-panel-title, .hub-codex-queue > .hub-panel-title { min-height: 0; margin: -4px 0 2px; padding: 0 0 16px; }
.hub-codex-form .hub-panel-title p, .hub-codex-queue .hub-panel-title p { margin: 5px 0 0; color: var(--hub-muted); font-size: 13px; }
.hub-codex-form label > small { color: var(--hub-muted); font-weight: 500; }
.hub-codex-fields { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
.hub-codex-form > .hub-button { justify-self: start; }
.hub-codex-count { display: grid; min-width: 92px; justify-items: center; gap: 2px; padding: 12px 16px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); color: var(--hub-muted); font-size: 12px; }
.hub-codex-count strong { color: var(--hub-cyan); font-size: 24px; line-height: 1; }
.hub-codex-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 5px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-bg-deep); }
.hub-codex-tabs button { min-width: 0; min-height: 40px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--hub-muted); font: inherit; font-weight: 750; cursor: pointer; }
.hub-codex-tabs button[aria-selected="true"] { border-color: color-mix(in srgb, var(--hub-cyan) 55%, var(--hub-line)); background: color-mix(in srgb, var(--hub-cyan) 12%, var(--hub-panel)); color: var(--hub-text); }
.hub-codex-tabs button:focus-visible { outline: 2px solid var(--hub-cyan); outline-offset: 2px; }
.hub-codex-request-panel { min-width: 0; }
.hub-codex-items { display: grid; gap: 13px; }
.hub-codex-card { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel-soft); }
.hub-codex-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hub-codex-card h3 { margin: 7px 0 3px; font-size: 17px; }
.hub-codex-card h4, .hub-codex-card p { margin: 0; }
.hub-codex-card small { color: var(--hub-muted); }
.hub-codex-description, .hub-codex-card pre, .hub-codex-analysis p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.hub-codex-card details { padding-top: 10px; border-top: 1px solid var(--hub-line-soft); }
.hub-codex-card summary { color: var(--hub-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.hub-codex-card pre { margin: 8px 0 0; color: var(--hub-text); font: inherit; }
.hub-codex-card > footer { display: flex; justify-content: flex-end; }
.hub-codex-card-actions { flex-wrap: wrap; gap: 8px; }
.hub-codex-priority, .hub-codex-state { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 800; line-height: 1; }
.hub-codex-priority { background: color-mix(in srgb, var(--hub-blue-bright) 16%, transparent); color: var(--hub-blue-bright); text-transform: uppercase; }
.hub-codex-priority.priority-high, .hub-codex-priority.priority-critical { background: rgba(255, 124, 112, .14); color: #ffaaa2; }
.hub-codex-state { background: rgba(57, 211, 180, .13); color: #8be7d4; text-align: center; }
.hub-codex-state.state-needs_info { background: rgba(255, 187, 95, .14); color: #ffd195; }
.hub-codex-state.state-approved { background: rgba(113, 167, 255, .15); color: #a8c9ff; }
.hub-codex-state.state-implementing { background: rgba(255, 187, 95, .14); color: #ffd195; }
.hub-codex-state.state-cancelled, .hub-codex-state.state-rejected { background: color-mix(in srgb, var(--hub-muted) 14%, transparent); color: var(--hub-muted); }
.hub-codex-analysis { display: grid; gap: 9px; padding: 13px; border-left: 3px solid #39d3b4; border-radius: 0 9px 9px 0; background: rgba(57, 211, 180, .06); }
.hub-codex-analysis-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hub-codex-implementation { display: grid; gap: 8px; padding: 13px; border-left: 3px solid var(--hub-blue-bright); border-radius: 0 9px 9px 0; background: color-mix(in srgb, var(--hub-blue-bright) 7%, transparent); }
.hub-codex-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hub-line-soft); }
.hub-codex-pagination > span { color: var(--hub-muted); font-size: 12px; }
.hub-codex-pagination > div { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-codex-plan { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.hub-codex-plan-step { min-width: 0; }
.hub-codex-plan-step > article { display: grid; min-width: 0; gap: 12px; padding: 14px; border: 1px solid var(--hub-line-soft); border-radius: 10px; background: color-mix(in srgb, var(--hub-panel) 72%, transparent); }
.hub-codex-plan-step header { display: grid; gap: 5px; }
.hub-codex-step-number { color: var(--hub-cyan); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hub-codex-plan-step h5, .hub-codex-plan-step h6 { margin: 0; }
.hub-codex-plan-step h5 { font-size: 16px; line-height: 1.35; }
.hub-codex-plan-step h6 { color: var(--hub-text); font-size: 12px; letter-spacing: .02em; }
.hub-codex-step-rationale { display: grid; gap: 3px; color: var(--hub-muted); }
.hub-codex-step-rationale strong { color: var(--hub-text); font-size: 12px; }
.hub-codex-expected { display: grid; gap: 7px; padding: 11px 12px; border-radius: 8px; background: color-mix(in srgb, var(--hub-cyan) 7%, transparent); }
.hub-codex-expected ul { display: grid; gap: 6px; margin: 0; padding-left: 19px; }
.hub-codex-expected li { padding-left: 2px; line-height: 1.5; }
.hub-codex-technical { padding-top: 9px; border-top: 1px solid var(--hub-line-soft); }
.hub-codex-technical summary { width: fit-content; color: var(--hub-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.hub-codex-technical summary:focus-visible { border-radius: 4px; outline: 2px solid var(--hub-cyan); outline-offset: 3px; }
.hub-codex-technical dl { display: grid; gap: 9px; margin: 11px 0 0; }
.hub-codex-technical dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.hub-codex-technical :is(dt, dd) { min-width: 0; margin: 0; }
.hub-codex-technical dt { color: var(--hub-muted); font-size: 11px; font-weight: 700; }
.hub-codex-technical dd, .hub-codex-technical ul { overflow-wrap: anywhere; }
.hub-codex-technical ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.hub-codex-technical code { white-space: normal; }
.hub-codex-risk { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; background: color-mix(in srgb, var(--hub-blue-bright) 14%, transparent); color: var(--hub-blue-bright); font-size: 10px; font-weight: 850; line-height: 1; text-transform: uppercase; }
.hub-codex-risk.risk-high, .hub-codex-risk.risk-critical { background: rgba(255, 124, 112, .16); color: #ffaaa2; }
.hub-codex-plan-editor-items { display: grid; gap: 14px; }
.hub-codex-plan-editor-item { display: grid; min-width: 0; gap: 13px; margin: 0; padding: 16px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel-soft); }
.hub-codex-plan-editor-item > legend { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hub-codex-plan-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-codex-plan-editor-heading > span { color: var(--hub-cyan); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hub-codex-plan-editor-heading .hub-button { min-height: 32px; padding: 6px 9px; }
.hub-codex-plan-editor-item label > small { color: var(--hub-muted); font-weight: 500; }
.hub-codex-plan-editor-technical { padding: 11px 12px 12px; border: 1px solid var(--hub-line-soft); border-radius: 9px; background: color-mix(in srgb, var(--hub-bg-deep) 55%, transparent); }
.hub-codex-plan-editor-technical > summary { color: var(--hub-muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.hub-codex-plan-editor-technical > summary:focus-visible { border-radius: 4px; outline: 2px solid var(--hub-cyan); outline-offset: 3px; }
.hub-codex-plan-editor-technical > div { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; margin-top: 13px; }

@media (max-width: 1040px) {
  .hub-codex-layout { grid-template-columns: 1fr; }
  .hub-codex-form { position: static; }
  .hub-discussion-results { grid-template-columns: 1fr; }
  .hub-discover-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-thread-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
  .hub-review-workspace { grid-template-columns: 1fr; }
  .hub-review-source { position: static; max-height: none; }
}

@media (max-width: 820px) {
  .hub-news-filters { grid-template-columns: 1fr 1fr; }
  .hub-public-actions { align-items: stretch; flex-direction: column; }
  .hub-brand-relationship > div { grid-template-columns: 1fr; }
  .hub-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-thread-layout { grid-template-columns: 1fr; }
  .hub-thread-page .hub-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .hub-codex-fields { grid-template-columns: 1fr; }
  .hub-codex-card > header { display: grid; }
  .hub-codex-pagination { align-items: stretch; flex-direction: column; }
  .hub-codex-pagination > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-codex-pagination .hub-button { min-width: 0; width: 100%; }
  .hub-codex-plan-editor-technical > div, .hub-codex-technical dl > div { grid-template-columns: 1fr; }
  .hub-news-filters, .hub-workspace-value-grid { grid-template-columns: 1fr; }
  .hub-filter-grid, .hub-discover-rail, .hub-thread-page .hub-rail { grid-template-columns: 1fr; }
  .hub-discussion-card { padding: 16px; }
  .hub-discussion-card footer { gap: 7px 11px; }
  .hub-thread-primary-actions { width: 100%; justify-content: stretch; }
  .hub-thread-primary-actions .hub-button { width: 100%; }
  .hub-technical-context dl { grid-template-columns: 1fr; }
  .hub-review-editor footer, .hub-final-warning footer { flex-direction: column; }
  .hub-review-editor footer .hub-button, .hub-final-warning footer :is(.hub-button, a) { width: 100%; }
  .hub-technical-prose { font-size: 16px; line-height: 1.65; }
}

@media (max-width: 440px) {
  .hub-kind-tabs { margin-inline: -12px; padding-inline: 12px; }
  .hub-discussion-card-head time { width: 100%; margin-left: 0; }
}

/* Native Hub administration surface. */
.hub-admin-page { display: grid; gap: 18px; max-width: none; }
.hub-admin-header, .hub-admin-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hub-admin-header { padding: 4px 0 2px; }
.hub-admin-header h1, .hub-admin-panel h2, .hub-admin-log-header h3 { margin: 4px 0; }
.hub-admin-header p, .hub-admin-panel > header p, .hub-admin-log-header p { margin: 0; color: var(--hub-muted); }
.hub-admin-root { display: grid; gap: 18px; min-width: 0; }
.hub-admin-loading { display: grid; min-height: 280px; place-items: center; align-content: center; gap: 10px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-muted); text-align: center; }
.hub-admin-loading p { margin: 0; }
.hub-admin-panel { min-width: 0; padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); }
.hub-admin-panel > header { margin-bottom: 16px; }
.hub-admin-user-form { display: grid; gap: 14px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel-soft); }
.hub-admin-user-form[hidden], .hub-admin-reset-confirmation[hidden] { display: none; }
.hub-admin-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-admin-field-grid label, .hub-admin-reset-confirmation label { display: grid; gap: 6px; color: var(--hub-muted); font-size: 12px; font-weight: 700; }
.hub-admin-user-form :is(input, select), .hub-admin-table-wrap :is(input, select), .hub-admin-reset-confirmation input { min-height: 40px; width: 100%; border: 1px solid var(--hub-line); border-radius: 8px; padding: 7px 9px; background: var(--hub-bg-deep); color: var(--hub-text); font: inherit; }
.hub-admin-user-form input:focus, .hub-admin-table-wrap input:focus, .hub-admin-reset-confirmation input:focus { border-color: var(--hub-cyan); outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-cyan) 34%, transparent); }
.hub-admin-user-form select:focus, .hub-admin-table-wrap select:focus { border-color: var(--hub-cyan); outline: 2px solid color-mix(in srgb, var(--hub-cyan) 25%, transparent); outline-offset: 1px; }
.hub-admin-user-form > footer, .hub-admin-row-actions, .hub-admin-feature-checks, .hub-admin-feature-badges, .hub-admin-inline-check { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hub-admin-inline-check { width: fit-content; color: var(--hub-muted); font-size: 12px; }
.hub-admin-inline-check input, .hub-admin-feature-checks input { width: auto; min-height: auto; }
.hub-admin-feature-checks { padding: 10px; border: 1px solid var(--hub-line); border-radius: 10px; }
.hub-admin-feature-checks label { display: inline-flex; align-items: center; gap: 5px; color: var(--hub-muted); font-size: 11px; }
.hub-admin-feature-badges span, .hub-admin-badge, .hub-admin-token, .hub-admin-log-status { display: inline-flex; align-items: center; min-height: 23px; border-radius: 999px; padding: 3px 8px; background: color-mix(in srgb, var(--hub-muted) 13%, transparent); color: var(--hub-muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.hub-admin-feature-badges span { border: 1px solid color-mix(in srgb, var(--hub-cyan) 28%, transparent); background: color-mix(in srgb, var(--hub-cyan) 10%, transparent); color: var(--hub-cyan); }
.hub-admin-badge.success, .hub-admin-log-status.success { background: rgba(57, 211, 180, .14); color: #8be7d4; }
.hub-admin-badge.admin { background: color-mix(in srgb, var(--hub-blue-bright) 16%, transparent); color: var(--hub-blue-bright); }
.hub-admin-badge.pending, .hub-admin-log-status.running, .hub-admin-log-status.queued { background: rgba(255, 187, 95, .14); color: #ffd195; }
.hub-admin-log-status.error { background: rgba(229, 79, 100, .15); color: #ffb3be; }
.hub-admin-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--hub-line); border-radius: 12px; }
.hub-admin-table-wrap table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.hub-admin-table-wrap th, .hub-admin-table-wrap td { padding: 10px; border-bottom: 1px solid var(--hub-line); text-align: left; vertical-align: top; font-size: 12px; }
.hub-admin-table-wrap th { position: sticky; top: 0; z-index: 1; background: var(--hub-bg-deep); color: var(--hub-muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.hub-admin-table-wrap tr:last-child td { border-bottom: 0; }
.hub-admin-table-wrap tr.editing { background: color-mix(in srgb, var(--hub-cyan) 6%, transparent); }
.hub-admin-row-actions { min-width: 235px; }
.hub-button.compact { min-height: 31px; padding: 5px 8px; font-size: 11px; }
.hub-button:disabled { opacity: .45; cursor: not-allowed; }
.hub-admin-empty { padding: 24px; color: var(--hub-muted); text-align: center; }
.hub-admin-muted { color: var(--hub-muted); }
.hub-admin-status { min-height: 20px; margin: 10px 0 0; color: var(--hub-muted); font-size: 12px; }
.hub-admin-status[data-tone="success"] { color: #8be7d4; }
.hub-admin-status[data-tone="error"], .hub-admin-error { color: #ffb3be; }
.hub-admin-reset-panel { border-color: color-mix(in srgb, #e54f64 35%, var(--hub-line)); background: linear-gradient(135deg, rgba(229, 79, 100, .07), var(--hub-panel) 46%); }
.hub-admin-reset-grid, .hub-admin-log-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.hub-admin-reset-grid > div, .hub-admin-log-progress > span { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel-soft); color: var(--hub-muted); font-size: 11px; }
.hub-admin-reset-grid strong, .hub-admin-log-progress strong { color: var(--hub-text); font-size: 19px; }
.hub-admin-reset-panel #hub-admin-reset-summary > p { color: var(--hub-muted); font-size: 12px; }
.hub-admin-reset-confirmation { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, #e54f64 30%, var(--hub-line)); }
.hub-admin-reset-confirmation input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.hub-admin-logs-layout { display: grid; grid-template-columns: minmax(260px, .32fr) minmax(0, 1fr); gap: 12px; min-height: 430px; }
.hub-admin-log-jobs, .hub-admin-log-detail { max-height: 650px; min-width: 0; overflow: auto; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel-soft); }
.hub-admin-log-jobs { padding: 8px; }
.hub-admin-log-detail { padding: 13px; }
.hub-admin-log-job { display: grid; gap: 5px; width: 100%; margin-bottom: 8px; border: 1px solid var(--hub-line); border-radius: 10px; padding: 10px; background: var(--hub-panel); color: var(--hub-text); text-align: left; cursor: pointer; }
.hub-admin-log-job:hover, .hub-admin-log-job.active { border-color: color-mix(in srgb, var(--hub-cyan) 62%, var(--hub-line)); }
.hub-admin-log-job span, .hub-admin-log-job small { color: var(--hub-muted); font-size: 10px; }
.hub-admin-log-job span:last-child { display: flex; align-items: center; gap: 8px; }
.hub-admin-log-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hub-admin-log-header p { font-size: 11px; }
.hub-admin-log-progress { margin-bottom: 12px; }
.hub-admin-log-tiles, .hub-admin-log-units, .hub-admin-log-events { display: grid; gap: 9px; }
.hub-admin-log-tile { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); }
.hub-admin-log-tile > header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--hub-line); }
.hub-admin-log-tile > section { padding: 10px 12px; }
.hub-admin-log-tile h4 { margin: 0 0 7px; color: var(--hub-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hub-admin-log-lines { max-height: 240px; overflow: auto; margin: 0; border-radius: 8px; padding: 9px; background: color-mix(in srgb, black 32%, transparent); color: var(--hub-text); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-admin-log-lines.stderr { color: #ffccd3; }
.hub-admin-log-units, .hub-admin-log-events { padding: 10px 12px; }
.hub-admin-log-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 9px; border: 1px solid var(--hub-line); border-radius: 9px; }
.hub-admin-log-unit > div { display: grid; gap: 3px; }
.hub-admin-log-unit > div:nth-child(2) { justify-items: end; }
.hub-admin-log-unit small, .hub-admin-log-event time { color: var(--hub-muted); font-size: 10px; }
.hub-admin-log-unit p { grid-column: 1 / -1; margin: 0; color: #ffb3be; font-size: 11px; }
.hub-admin-log-event { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--hub-line); border-radius: 9px; }

@media (max-width: 960px) {
  .hub-admin-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-admin-logs-layout { grid-template-columns: 1fr; }
  .hub-admin-log-jobs, .hub-admin-log-detail { max-height: none; }
}

@media (max-width: 700px) {
  .hub-admin-header, .hub-admin-panel > header { align-items: stretch; flex-direction: column; }
  .hub-admin-field-grid, .hub-admin-reset-grid, .hub-admin-log-progress, .hub-admin-reset-confirmation { grid-template-columns: 1fr; }
  .hub-admin-panel { padding: 15px; }
  .hub-admin-log-event { grid-template-columns: 1fr; }
}
