/* ---------- Sigrix Refined Design System — Product Hub ----------
 * Lifted from Sigrix_new/Sigrix Hub.html. Light variant only, mirrors
 * the home/marketplace setup in sx-home.css / sx-marketplace.css.
 * All rules are scoped under `.sx` / `.hub-*` so they do not leak
 * into other pages. Loaded *after* sx-home.css, which provides the
 * shared palette, buttons, chips, nav, and footer styles. */

/* ---------- Hero (compact, hub-style) ---------- */
.sx .hub-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.sx .hub-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(26,31,107,0.12), transparent 60%),
    radial-gradient(700px 360px at 95% 10%, rgba(61,77,255,0.10), transparent 60%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.sx .hub-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14,19,32,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,19,32,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 360px at 50% 0%, black, transparent 70%);
}
.sx .hub-hero h1 {
  font-size: 56px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04;
  max-width: 22ch;
}
.sx .hub-hero h1 .accent { color: var(--sx-text-2); }
.sx .hub-hero .lede { margin-top: 18px; font-size: 17px; color: var(--sx-text-2); max-width: 60ch; }
.sx .hub-hero-actions { margin-top: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sx .hub-hero-meta { margin-top: 12px; font-size: 13px; color: var(--sx-text-3); font-family: var(--sx-font-mono); }

.sx .hub-hero-strip {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--sx-line);
  border-bottom: 1px solid var(--sx-line);
}
.sx .hub-hero-strip > div { padding: 0 24px; border-left: 1px solid var(--sx-line); }
.sx .hub-hero-strip > div:first-child { border-left: 0; padding-left: 0; }
.sx .hub-hero-strip .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-text-3); }
.sx .hub-hero-strip .val { font-family: var(--sx-font-display); font-size: 20px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.sx .hub-hero-strip .val .sub { color: var(--sx-text-3); font-size: 14px; font-weight: 400; }

/* ---------- Page layout: sidebar + content ---------- */
.sx .hub-body {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px; padding: 48px 0 80px; align-items: start;
}
.sx .hub-side {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 8px;
}
.sx .hub-side-group + .hub-side-group { margin-top: 18px; }
.sx .hub-side-head {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
  padding: 4px 10px 8px;
}
.sx .hub-side-link {
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; padding: 0 10px;
  border-radius: var(--sx-r-sm);
  color: var(--sx-text-2); font-size: 13px; font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 120ms, color 120ms;
}
button.hub-side-link { min-height: 0; }
.sx .hub-side-link:hover { background: var(--sx-surface); color: var(--sx-text); }
.sx .hub-side-link.is-active,
.sx .hub-side-link[aria-current="true"],
.sx .hub-side-link[aria-selected="true"] {
  background: var(--sx-surface); color: var(--sx-text);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sx .hub-side-link .num {
  font-family: var(--sx-font-mono); font-size: 11px; color: var(--sx-text-3);
}

.sx .hub-content { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.sx .hub-panel { scroll-margin-top: 84px; }

/* ---------- Section header ---------- */
.sx .hub-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 20px;
}
.sx .hub-section-head h2 { font-size: 26px; font-weight: 600; }
.sx .hub-section-head .sub { color: var(--sx-text-2); font-size: 14px; margin-top: 6px; max-width: 56ch; }

.sx .hub-section + .hub-section { margin-top: 56px; }

/* ---------- Update timeline (changelog feed) ---------- */
.sx .hub-feed { display: flex; flex-direction: column; gap: 20px; }
.sx .hub-update {
  display: grid; grid-template-columns: 132px 1fr; gap: 28px;
  padding: 24px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  transition: box-shadow 160ms, background 160ms;
}
.sx .hub-update:hover {
  box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 12px 30px -16px rgba(14,19,32,0.18);
  background: var(--sx-surface-2);
}
.sx .hub-update-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--sx-font-mono);
  font-size: 12px; color: var(--sx-text-3);
}
.sx .hub-update-meta .ver {
  color: var(--sx-text); font-size: 13px; font-weight: 500;
}
.sx .hub-update-meta .pin {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sx-font-body);
  font-size: 11px;
  color: var(--sx-brand-2);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.sx .hub-update-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.sx .hub-update-body p { color: var(--sx-text-2); font-size: 14px; margin-top: 8px; line-height: 1.6; }
.sx .hub-update-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sx .hub-update-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--sx-line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--sx-text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.sx .hub-update-foot .read,
.sx .hub-update-foot a {
  color: var(--sx-brand-2); font-weight: 500;
}
.sx .hub-update-helpful {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sx-text-3);
  font-size: 13px;
}

/* Pagination row */
.sx .hub-pagination {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.sx .hub-pagination .page-label {
  font-family: var(--sx-font-mono);
  font-size: 12px;
  color: var(--sx-text-3);
}

/* ---------- Roadmap (3-column) ---------- */
.sx .hub-roadmap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.sx .hub-road {
  padding: 22px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sx .hub-road-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sx .hub-road-head .step {
  font-family: var(--sx-font-mono); font-size: 12px;
  color: var(--sx-text-3);
}
.sx .hub-road h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.sx .hub-road-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sx .hub-road-list li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  font-size: 13px; color: var(--sx-text-2); line-height: 1.5;
}
.sx .hub-road-list li.is-empty {
  color: var(--sx-text-3);
  grid-template-columns: 1fr;
}
.sx .hub-road-list li:not(.is-empty)::before {
  content: ""; width: 12px; height: 12px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sx .hub-road--shipped .hub-road-list li:not(.is-empty)::before {
  background: linear-gradient(135deg, var(--sx-brand-3), var(--sx-brand-2));
  box-shadow: none;
}
.sx .hub-road--active .hub-road-list li:not(.is-empty)::before {
  background: rgba(61,77,255,0.18);
  box-shadow: 0 0 0 1px var(--sx-brand-3) inset;
}
.sx .hub-road--active .hub-road-list li:not(.is-empty):first-child::before {
  background: var(--sx-brand-3);
  box-shadow: 0 0 0 3px rgba(61,77,255,0.18);
}
.sx .hub-road-list li .quarter {
  color: var(--sx-text-3);
  font-size: 12px;
  margin-left: 4px;
}

/* ---------- Building blocks grid ---------- */
.sx .hub-blocks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.sx .hub-block {
  padding: 22px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--sx-text);
  text-decoration: none;
  transition: box-shadow 160ms, background 160ms;
}
.sx .hub-block:hover {
  box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 12px 30px -16px rgba(14,19,32,0.18);
  background: var(--sx-surface-2);
}
.sx .hub-block-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  color: var(--sx-text-2);
  font-family: var(--sx-font-mono);
  font-weight: 600;
  font-size: 14px;
}
.sx .hub-block h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sx .hub-block p { color: var(--sx-text-2); font-size: 13px; line-height: 1.55; }
.sx .hub-block-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.sx .hub-block-foot .count {
  font-family: var(--sx-font-mono); color: var(--sx-text-3);
}
.sx .hub-block-foot .arrow { color: var(--sx-text-3); }
.sx .hub-block:hover .arrow { color: var(--sx-text); }
.sx .hub-block-icon--prompt    { color: #1A1F6B; }
.sx .hub-block-icon--persona   { color: #92400E; }
.sx .hub-block-icon--agent     { color: #0F766E; }
.sx .hub-block-icon--assistant { color: #6D28D9; }
.sx .hub-block-icon--product   { color: #B91C5C; }

/* ---------- Resources / quick links ---------- */
.sx .hub-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.sx .hub-quick-item {
  padding: 18px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 160ms, box-shadow 160ms;
}
.sx .hub-quick-item:hover {
  background: var(--sx-surface-2);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sx .hub-quick-item .label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
}
.sx .hub-quick-item .name { font-size: 14px; font-weight: 500; color: var(--sx-text); margin-top: 2px; }
.sx .hub-quick-item .desc { font-size: 12px; color: var(--sx-text-3); margin-top: 4px; line-height: 1.5; }

/* ---------- Generic hub card (used for state cards, status, subscribe) ---------- */
.sx .hub-card {
  padding: 22px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sx .hub-card + .hub-card { margin-top: 14px; }
.sx .hub-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.sx .hub-card p { color: var(--sx-text-2); font-size: 14px; line-height: 1.55; }
.sx .hub-card .muted { color: var(--sx-text-3); font-size: 13px; }

/* Pill label (shared with existing hub markup) */
.sx .pill-label {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
  margin-bottom: 8px;
}

/* Inline cluster for action rows (preserved from existing markup) */
.sx .cluster-inline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ---------- Quick action (intent shortcut) buttons ---------- */
.sx .hub-quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 14px;
}
.sx .hub-quick-action {
  text-align: left;
  padding: 14px 16px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms, box-shadow 160ms;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--sx-text);
}
button.hub-quick-action { min-height: 0; border: 0; }
.sx .hub-quick-action:hover {
  background: var(--sx-surface-2);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sx .hub-quick-action .name { font-size: 14px; font-weight: 500; }
.sx .hub-quick-action .desc { font-size: 12px; color: var(--sx-text-3); }

/* ---------- Subscribe panel ---------- */
.sx .hub-subscribe {
  position: relative;
  padding: 32px;
  border-radius: var(--sx-r-xl);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(20,184,166,0.08), transparent 60%),
    radial-gradient(600px 220px at 100% 100%, rgba(26,31,107,0.10), transparent 60%),
    var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  align-items: center;
  overflow: hidden;
}
.sx .hub-subscribe h2 { font-size: 26px; font-weight: 600; max-width: 18ch; letter-spacing: -0.01em; }
.sx .hub-subscribe > .hub-subscribe-intro > p { color: var(--sx-text-2); margin-top: 10px; font-size: 14px; max-width: 50ch; line-height: 1.6; }
.sx .hub-subscribe .perks {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.sx .hub-subscribe .perk {
  display: grid; grid-template-columns: 14px 1fr; gap: 10px;
  font-size: 13px; color: var(--sx-text-2);
}
.sx .hub-subscribe .perk::before {
  content: ""; width: 10px; height: 10px; margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--sx-brand-3), var(--sx-brand-2));
}

.sx .hub-sub-form {
  padding: 22px;
  background: var(--sx-bg);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; flex-direction: column; gap: 14px;
}
.sx .hub-sub-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
}
.sx .hub-sub-label .req { color: var(--sx-brand); margin-left: 2px; }
.sx .hub-sub-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  align-items: stretch;
}
.sx .hub-sub-row .hub-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--sx-bg-2);
  color: var(--sx-text);
  font: inherit; font-size: 14px;
  border: 0;
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  transition: box-shadow 120ms ease, background 120ms ease;
  outline: none; min-height: 0;
}
.sx .hub-sub-row .hub-input::placeholder { color: var(--sx-mute); }
.sx .hub-sub-row .hub-input:hover { box-shadow: 0 0 0 1px var(--sx-line-2) inset; }
.sx .hub-sub-row .hub-input:focus {
  box-shadow: 0 0 0 1px var(--sx-brand) inset, 0 0 0 4px rgba(61,77,255,0.14);
  background: var(--sx-bg);
}
.sx .hub-sub-row .sx-btn { white-space: nowrap; }

.sx .hub-sub-prefs {
  margin: 0; padding: 0; border: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sx .hub-sub-prefs legend {
  padding: 0; margin: 0 0 6px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
}
.sx .hub-sub-pref,
.sx .hub-sub-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--sx-text-2); line-height: 1.5;
  cursor: pointer;
  margin: 0;
}
.sx .hub-sub-pref input[type="checkbox"],
.sx .hub-sub-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 2px 0 0; padding: 0;
  flex: 0 0 16px;
  accent-color: var(--sx-brand);
  cursor: pointer;
}
.sx .hub-sub-consent .req { color: var(--sx-brand); margin-left: 2px; font-weight: 600; }

.sx .hub-subscribe .form-status { font-size: 12px; margin: 0; }
.sx .hub-subscribe .form-status.error { color: var(--sx-danger); }
.sx .hub-subscribe .form-status.success { color: var(--sx-ok); }

.sx .hub-sub-foot {
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--sx-line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px; color: var(--sx-text-3);
}
.sx .hub-sub-foot-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.sx .hub-sub-foot-link {
  background: transparent; border: 0; padding: 0;
  font: inherit; font-size: 12px;
  color: var(--sx-text-2);
  cursor: pointer; text-decoration: none;
}
.sx .hub-sub-foot-link:hover { color: var(--sx-text); text-decoration: underline; }
.sx .hub-sub-foot-link[hidden] { display: none; }

/* ---------- Launch panel ---------- */
.sx .hub-launch {
  position: relative;
  padding: 28px;
  border-radius: var(--sx-r-xl);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(26,31,107,0.14), transparent 60%),
    var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  overflow: hidden;
}
.sx .hub-launch h2 {
  font-size: 24px; font-weight: 600; max-width: 18ch; letter-spacing: -0.01em;
}
.sx .hub-launch-lead p { color: var(--sx-text-2); margin-top: 10px; font-size: 14px; max-width: 50ch; line-height: 1.6; }
.sx .hub-launch-actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.sx .hub-launch-side { min-width: 0; }
.sx .hub-counter {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px;
}
.sx .hub-counter-cell {
  padding: 12px;
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  border-radius: var(--sx-r-md);
  text-align: center;
}
.sx .hub-counter-cell .num {
  font-family: var(--sx-font-display, var(--sx-font-mono));
  font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #3D4DFF 0%, #1A1F6B 100%);
  -webkit-background-clip: text; background-clip: text;
  font-variant-numeric: tabular-nums;
}
.sx .hub-counter-cell .lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sx-text-3); margin-top: 8px;
}
.sx .hub-launch-stats {
  margin-top: 14px; padding: 14px;
  border-radius: var(--sx-r-md);
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  font-size: 13px; color: var(--sx-text-2);
}
.sx .hub-launch-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.sx .hub-launch-stat-row .val {
  font-family: var(--sx-font-mono);
  color: var(--sx-text); font-weight: 500;
}
.sx .hub-launch-stat-meta {
  margin-top: 8px;
  font-size: 12px; color: var(--sx-text-3);
}

/* ---------- Form fields inside .sx (light overrides) ---------- */
.sx .form-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--sx-text-2);
}
.sx .form-field > span { font-weight: 500; color: var(--sx-text); }
.sx .form-field input[type="email"],
.sx .form-field input[type="text"],
.sx .form-field input[type="url"],
.sx .form-field textarea,
.sx .form-field select {
  width: 100%;
  border: 0;
  background: var(--sx-bg);
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--sx-text);
  min-height: 0;
}
.sx .form-field textarea { min-height: 120px; resize: vertical; }
.sx .form-field input:focus,
.sx .form-field textarea:focus,
.sx .form-field select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--sx-brand-3) inset;
}
.sx .checkbox-field {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--sx-text-2); line-height: 1.5;
  cursor: pointer;
}
.sx .checkbox-field input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.sx .required-marker { color: var(--sx-danger); margin-left: 2px; font-weight: 600; }

/* Buttons used inside hub forms — make legacy classes feel native */
.sx .primary-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; min-height: 0; padding: 0 16px;
  border-radius: var(--sx-r-md);
  font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #3D4DFF 0%, #1A1F6B 100%);
  color: var(--sx-brand-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(26,31,107,0.6), 0 1px 2px rgba(26,31,107,0.30);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 120ms;
  white-space: nowrap;
}
.sx .primary-pill:hover { background: var(--sx-brand-2); }
.sx .primary-pill:active { transform: translateY(1px); }
.sx button.primary-pill { min-height: 0; }

.sx .ghost-button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; min-height: 0; padding: 0 12px;
  border-radius: var(--sx-r-sm);
  font-size: 13px; font-weight: 500;
  background: transparent;
  color: var(--sx-text-2);
  border: 0;
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, color 120ms;
  white-space: nowrap;
}
.sx button.ghost-button { min-height: 0; }
.sx .ghost-button:hover { background: var(--sx-surface); color: var(--sx-text); box-shadow: 0 0 0 1px var(--sx-line-2) inset; }
.sx .ghost-button[disabled] { opacity: 0.5; cursor: not-allowed; }

.sx .text-link {
  background: transparent;
  border: 0;
  color: var(--sx-brand-2);
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.sx .text-link:hover { text-decoration: underline; }

/* ---------- Report form (intents) ---------- */
.sx .feedback-form { display: flex; flex-direction: column; gap: 18px; }
.sx .feedback-step.hidden { display: none; }
.sx .feedback-step-header h3,
.sx .feedback-step-header h4 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.sx .feedback-step-header .muted { color: var(--sx-text-3); font-size: 13px; margin-top: 4px; }
.sx .intent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 14px;
}
.sx .intent-card {
  text-align: left;
  padding: 14px 16px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--sx-text);
  transition: background 160ms, box-shadow 160ms;
  min-height: 0;
}
.sx .intent-card:hover {
  background: var(--sx-surface-2);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sx .intent-card.is-selected {
  background: rgba(61,77,255,0.06);
  box-shadow: 0 0 0 1px var(--sx-brand-3) inset;
}
.sx .intent-title { font-size: 14px; font-weight: 600; color: var(--sx-text); }
.sx .intent-description { font-size: 12px; color: var(--sx-text-3); line-height: 1.5; }

/* outcome panels */
.sx .feedback-outcome-panel { padding-top: 16px; }
.sx .feedback-outcome-actions {
  margin-top: 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* Hub launch / status nudge */
.sx .hub-status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--sx-text-2);
}
.sx .hub-status-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sx-ok);
  box-shadow: 0 0 0 3px rgba(31,157,85,0.18);
}

/* ---------- Roadmap legacy cards (keeps old classes working) ---------- */
.sx .roadmap-card {
  padding: 24px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; flex-direction: column; gap: 10px;
}
.sx .roadmap-card + .roadmap-card { margin-top: 14px; }
.sx .roadmap-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.sx .roadmap-description { color: var(--sx-text-2); font-size: 14px; line-height: 1.6; }

/* ---------- Helper visibility ---------- */
.sx .hidden { display: none !important; }
.sx .muted { color: var(--sx-text-3); }
.sx .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
 * Hub forms — Report + Founding seller layout, ported from
 * Sigrix_new/Sigrix Hub.html. Two-column wrap (form + aside),
 * uppercase labels, type-grid chip selector, status meta bar.
 * Scoped to .hub-form-wrap so the global feedback modal keeps
 * its existing styling.
 * ============================================================ */
.sx .hub-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.sx .hub-form {
  padding: 28px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; flex-direction: column;
  gap: 0;
}
.sx .hub-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.sx .hub-form-section + .hub-form-section { margin-top: 22px; }
.sx .hub-form-section-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
  margin: 0 0 12px;
}
.sx .hub-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--sx-text-2);
  min-width: 0;
}
.sx .hub-field--full { grid-column: 1 / -1; }
.sx .hub-field > label,
.sx .hub-field > legend,
.sx .hub-field > span:first-child {
  display: block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
  padding: 0;
  border: 0;
  width: 100%;
}
.sx .hub-field .req,
.sx .hub-field .required-marker {
  color: var(--sx-brand);
  margin-left: 2px;
  font-weight: 600;
}
.sx .hub-field .muted-inline {
  color: var(--sx-text-3);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11px;
  margin-left: 4px;
}
.sx .hub-input,
.sx .hub-textarea,
.sx .hub-select,
.sx .hub-field input[type="email"],
.sx .hub-field input[type="text"],
.sx .hub-field input[type="url"],
.sx .hub-field input[type="number"],
.sx .hub-field textarea,
.sx .hub-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--sx-bg);
  color: var(--sx-text);
  font: inherit;
  font-size: 14px;
  border: 0;
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  transition: box-shadow 120ms ease, background 120ms ease;
  outline: none;
  font-family: inherit;
  min-height: 0;
}
.sx .hub-input::placeholder,
.sx .hub-textarea::placeholder,
.sx .hub-field input::placeholder,
.sx .hub-field textarea::placeholder {
  color: var(--sx-mute);
}
.sx .hub-input:hover,
.sx .hub-textarea:hover,
.sx .hub-select:hover,
.sx .hub-field input:not([type="checkbox"]):not([type="radio"]):hover,
.sx .hub-field textarea:hover,
.sx .hub-field select:hover {
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sx .hub-input:focus,
.sx .hub-textarea:focus,
.sx .hub-select:focus,
.sx .hub-field input:not([type="checkbox"]):not([type="radio"]):focus,
.sx .hub-field textarea:focus,
.sx .hub-field select:focus {
  box-shadow: 0 0 0 1px var(--sx-brand) inset, 0 0 0 4px rgba(61,77,255,0.14);
  background: var(--sx-bg-2);
}
.sx .hub-textarea,
.sx .hub-field textarea {
  height: auto; min-height: 110px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}
.sx .hub-select,
.sx .hub-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8294' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.sx .hub-help {
  font-size: 12px; color: var(--sx-text-3); line-height: 1.5;
  margin-top: 2px;
}
.sx .hub-field-error {
  font-size: 12px; color: var(--sx-danger);
  margin-top: 4px;
}
.sx .hub-field .checkbox-field {
  text-transform: none;
  letter-spacing: 0;
  color: var(--sx-text-2);
  font-size: 13px;
  font-weight: 400;
}

/* Consent confirmation box used in hub forms — keeps the report and founding
   forms visually consistent (boxed background, no all-caps inheritance). */
.sx .hub-form .consent-field {
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--sx-r-md);
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sx-text-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Type-grid: chip-style picker for intent / platforms / blocks */
.sx .hub-typegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sx .hub-typegrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx .hub-typegrid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sx .hub-type {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
  background: var(--sx-bg);
  border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 120ms ease, background 120ms ease;
  border: 0;
  font-family: inherit;
  color: var(--sx-text);
  min-height: 0;
}
button.hub-type { min-height: 0; }
.sx .hub-type:hover { box-shadow: 0 0 0 1px var(--sx-line-2) inset; }
.sx .hub-type[aria-pressed="true"],
.sx .hub-type.is-selected {
  background: rgba(61,77,255,0.07);
  box-shadow: 0 0 0 1px var(--sx-brand) inset;
}
.sx .hub-type .h {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--sx-text);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sx .hub-type .ico {
  width: 22px; height: 22px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sx-surface-2);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  font-family: var(--sx-font-mono); font-size: 11px;
  color: var(--sx-text-2);
  flex-shrink: 0;
}
.sx .hub-type .d {
  font-size: 12px; color: var(--sx-text-3); line-height: 1.45;
}

/* Form actions row — status dot left, buttons right */
.sx .hub-form-actions {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--sx-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.sx .hub-form-actions .meta {
  font-size: 12px; color: var(--sx-text-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.sx .hub-form-actions .meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sx-ok);
  display: inline-block;
}
.sx .hub-form-actions .meta.is-error .dot { background: var(--sx-danger); }
.sx .hub-form-actions .actions {
  display: inline-flex; gap: 8px; flex-wrap: wrap;
}

/* Right-side aside: benefits, response time, etc. */
.sx .hub-aside {
  padding: 22px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  position: sticky;
  top: 96px;
}
.sx .hub-aside h4 {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.sx .hub-aside p { font-size: 13px; color: var(--sx-text-2); line-height: 1.55; margin: 0; }
.sx .hub-aside ul {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.sx .hub-aside ul li {
  position: relative;
  padding-left: 22px;
  font-size: 13px; color: var(--sx-text-2); line-height: 1.5;
}
.sx .hub-aside ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(61,77,255,0.16);
  box-shadow: 0 0 0 1px var(--sx-brand) inset;
}
.sx .hub-aside ul li b { color: var(--sx-text); font-weight: 600; }
.sx .hub-aside .stat {
  margin-top: 16px; padding: 12px;
  background: var(--sx-bg); border-radius: var(--sx-r-md);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sx .hub-aside .stat .row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.sx .hub-aside .stat .label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sx-text-3); font-weight: 600;
}
.sx .hub-aside .stat .val {
  font-family: var(--sx-font-mono); font-size: 13px;
  color: var(--sx-text); font-weight: 500;
}
.sx .hub-aside .stat .meta {
  margin-top: 4px;
  font-size: 12px; color: var(--sx-text-3);
}
.sx .hub-aside .stat-foot {
  margin-top: 12px;
  font-size: 12px; color: var(--sx-text-3);
}
.sx .hub-aside .quiet-link {
  color: var(--sx-text-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--sx-line-2);
}
.sx .hub-aside .quiet-link:hover { color: var(--sx-text); }

/* Outcome panels rendered alongside hub forms */
.sx .hub-form-outcome {
  margin-top: 18px;
  padding: 22px;
  background: var(--sx-surface);
  border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sx .hub-form-outcome h3 {
  font-size: 18px; font-weight: 600;
  margin: 6px 0 8px;
}
.sx .hub-form-outcome p { color: var(--sx-text-2); font-size: 14px; line-height: 1.55; }
.sx .hub-form-outcome .feedback-outcome-actions {
  margin-top: 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sx .hub-body { grid-template-columns: 1fr; }
  .sx .hub-side { position: static; flex-direction: row; flex-wrap: wrap; padding-right: 0; }
  .sx .hub-side-group { flex: 1 1 auto; min-width: 200px; }
  .sx .hub-roadmap { grid-template-columns: 1fr; }
  .sx .hub-blocks { grid-template-columns: 1fr 1fr; }
  .sx .hub-quick { grid-template-columns: 1fr 1fr; }
  .sx .hub-subscribe { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .sx .hub-subscribe .perks { grid-template-columns: 1fr; }
  .sx .hub-sub-form { padding: 18px; }
  .sx .hub-launch { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .sx .hub-update { grid-template-columns: 1fr; gap: 10px; }
  .sx .hub-hero h1 { font-size: 40px; }
  .sx .hub-hero-strip { grid-template-columns: 1fr 1fr; }
  .sx .hub-hero-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sx .intent-grid { grid-template-columns: 1fr; }
  .sx .hub-quick-actions { grid-template-columns: 1fr; }
  .sx .hub-form-wrap { grid-template-columns: 1fr; }
  .sx .hub-aside { position: static; }
  .sx .hub-form-grid { grid-template-columns: 1fr; }
  .sx .hub-typegrid { grid-template-columns: 1fr 1fr; }
  .sx .hub-typegrid--four { grid-template-columns: 1fr 1fr; }
  .sx .hub-typegrid--five { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .sx .hub-hero { padding: 48px 0 24px; }
  .sx .hub-hero h1 { font-size: 32px; }
  .sx .hub-hero-strip { grid-template-columns: 1fr; }
  .sx .hub-hero-strip > div { border-left: 0; padding: 8px 0; border-top: 1px solid var(--sx-line); }
  .sx .hub-hero-strip > div:first-child { border-top: 0; padding-top: 0; }
  .sx .hub-quick { grid-template-columns: 1fr; }
  .sx .hub-blocks { grid-template-columns: 1fr; }
  .sx .hub-form { padding: 22px; }
  .sx .hub-typegrid,
  .sx .hub-typegrid--four,
  .sx .hub-typegrid--five { grid-template-columns: 1fr; }
  .sx .hub-counter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx .hub-counter-cell .num { font-size: 24px; }
}

/* ============================================================
 * Dark theme overrides — mirrors Sigrix_new/Sigrix Hub.html
 * Tokens are redefined in sx-home.css; this file only patches the
 * hub-specific selectors that hard-code light gradients/colors.
 * ============================================================ */

/* Hero glow + grid lines */
[data-theme="dark"] .sx .hub-hero-bg {
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(61,77,255,0.20), transparent 60%),
    radial-gradient(700px 360px at 95% 10%, rgba(26,31,107,0.26), transparent 60%);
}
[data-theme="dark"] .sx .hub-hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Update card hover lifts darker shadow */
[data-theme="dark"] .sx .hub-update:hover {
  box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 12px 30px -16px rgba(0,0,0,0.7);
}
[data-theme="dark"] .sx .hub-update-meta .pin { color: var(--sx-brand-3); }
[data-theme="dark"] .sx .hub-update-foot .read,
[data-theme="dark"] .sx .hub-update-foot a { color: var(--sx-brand-3); }

/* Building blocks */
[data-theme="dark"] .sx .hub-block:hover {
  box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 12px 30px -16px rgba(0,0,0,0.7);
}
[data-theme="dark"] .sx .hub-block-icon--prompt    { color: #5B7CFF; }
[data-theme="dark"] .sx .hub-block-icon--persona   { color: #F5B454; }
[data-theme="dark"] .sx .hub-block-icon--agent     { color: #7CE3D4; }
[data-theme="dark"] .sx .hub-block-icon--assistant { color: #B48CFF; }
[data-theme="dark"] .sx .hub-block-icon--product   { color: #F47B7B; }

/* Roadmap "active" markers — token-driven, but the brand-3 swap above
 * already lifts them; no extra rule needed. */

/* Subscribe panel — stronger indigo glow against the dark surface */
[data-theme="dark"] .sx .hub-subscribe {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(61,77,255,0.22), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(26,31,107,0.18), transparent 60%),
    var(--sx-surface);
}

/* Launch panel + countdown digits */
[data-theme="dark"] .sx .hub-launch {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(61,77,255,0.22), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(26,31,107,0.18), transparent 60%),
    var(--sx-surface);
}
[data-theme="dark"] .sx .hub-counter-cell .num {
  background: linear-gradient(135deg, #6B78FF 0%, #3D4DFF 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Selected intent card — keep the soft tint readable on dark */
[data-theme="dark"] .sx .intent-card.is-selected,
[data-theme="dark"] .sx .hub-type[aria-pressed="true"],
[data-theme="dark"] .sx .hub-type.is-selected {
  background: rgba(61,77,255,0.10);
  box-shadow: 0 0 0 1px var(--sx-brand-3) inset;
}

/* Form fields keep the dark surface but boost focus ring contrast */
[data-theme="dark"] .sx .form-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-theme="dark"] .sx .form-field textarea:focus,
[data-theme="dark"] .sx .form-field select:focus,
[data-theme="dark"] .sx .hub-input:focus,
[data-theme="dark"] .sx .hub-textarea:focus,
[data-theme="dark"] .sx .hub-select:focus,
[data-theme="dark"] .sx .hub-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-theme="dark"] .sx .hub-field textarea:focus,
[data-theme="dark"] .sx .hub-field select:focus {
  box-shadow: 0 0 0 2px var(--sx-brand-3) inset, 0 0 0 4px rgba(61,77,255,0.15);
}

/* Hub-form select chevron uses lighter stroke on dark */
[data-theme="dark"] .sx .hub-select,
[data-theme="dark"] .sx .hub-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23AAB2C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Required marker reads better in dark via the lighter brand */
[data-theme="dark"] .sx .hub-field .req,
[data-theme="dark"] .sx .hub-field .required-marker { color: var(--sx-brand-3); }

/* Aside accent block */
[data-theme="dark"] .sx .hub-aside ul li::before {
  background: rgba(61,77,255,0.20);
  box-shadow: 0 0 0 1px var(--sx-brand-3) inset;
}

/* Legacy buttons — primary pill brightens the gradient top */
[data-theme="dark"] .sx .primary-pill {
  background: linear-gradient(135deg, #6B78FF 0%, #1A1F6B 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(91,124,255,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
[data-theme="dark"] .sx .primary-pill:hover { background: linear-gradient(135deg, #8089FF 0%, #1A1F6B 100%); }
[data-theme="dark"] .sx .text-link { color: var(--sx-brand-3); }
