/* Cobec Atlas — one black canvas, a luminous globe, typography for hierarchy.
   Flat fills, hairlines, ≤6px radii. Atmosphere lives in the WebGL globe only. */

:root {
  --bg: #000000;
  --bg-panel: #070707;
  --bg-input: #0f0f0f;
  --border: #242424;
  --border-subtle: #171717;
  --text: #e6e8e4;
  --text-secondary: #acbacb;
  --text-muted: #778da9;
  --text-link: #8fbbe8;
  --accent: #4da3ff;
  --accent-soft: #10243a;
  --live: #5ecf8a;
  --down: #e08a8a;
  --unknown: #6f7b8a;
  --font: "Outfit", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --shell: min(1180px, calc(100% - 3rem));
  --top-h: 4.25rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- shell -------------------------------------------------------------- */

.sx-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.sx-top {
  position: relative;
  z-index: 30;
  background: var(--bg);
}

.sx-top-inner,
.sx-foot-inner {
  width: var(--shell);
  margin-inline: auto;
}

.sx-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--top-h);
}

.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.sx-brand:hover { text-decoration: none; }
.sx-brand img {
  border-radius: 0;
  display: block;
  object-fit: contain;
}

.sx-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sx-brand-name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sx-brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sx-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.35rem;
  font-size: 0.92rem;
}

.sx-nav a,
.sx-nav-btn {
  color: var(--text-secondary);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.sx-nav a:hover,
.sx-nav-btn:hover {
  color: var(--text);
  text-decoration: none;
}

.sx-identity {
  color: var(--text-muted);
  font-size: 0.85rem;
}

main { flex: 1; }

.sx-foot {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0 calc(1.5rem + var(--safe-bottom));
}

.sx-foot-inner p {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sx-muted { color: var(--text-muted); }

/* ---- buttons ------------------------------------------------------------ */

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sx-btn:hover { text-decoration: none; }

.sx-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #041018;
}

.sx-btn.primary:hover {
  background: #6bb4ff;
  border-color: #6bb4ff;
}

.sx-btn.ghost {
  background: transparent;
  color: var(--text);
}

.sx-btn.ghost:hover {
  border-color: var(--text-muted);
}

/* ---- stage: the globe --------------------------------------------------- */

.hub-stage {
  position: relative;
  height: calc(100dvh - var(--top-h) - var(--safe-top));
  min-height: 600px;
  max-height: 1120px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.hub-canvas {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.hub-stage[data-dragging] .hub-canvas { cursor: grabbing; }
.hub-stage[data-gl="off"] .hub-canvas,
.hub-stage[data-gl="off"] .hub-sats { display: none; }

.hub-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) translate(var(--par-x, 0px), var(--par-y, 0px));
  width: max-content;
  max-width: 92vw;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: hub-in 1200ms 500ms ease both;
}

.hub-title-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 12px #000, 0 0 2px #000;
}

.hub-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 9.5vw, 7.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  white-space: nowrap;
  color: #f4f5f2;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9);
  animation: hub-float 11s ease-in-out infinite;
}

.hub-title-meta {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 12px #000, 0 0 2px #000;
}

.hub-title-meta b { color: var(--text); font-weight: 600; }
.hub-sep { margin: 0 0.5rem; }

.hub-sats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hub-sat {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  opacity: 0;
  will-change: transform, opacity;
  transition: color 160ms ease, filter 200ms ease;
}

.hub-sat[data-side="top"] { flex-direction: column-reverse; }

.hub-sat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  box-shadow: 0 0 0 0 rgba(77, 163, 255, 0);
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.hub-sat-dot.state-up { background: var(--accent); }
.hub-sat-dot.state-down { border-color: var(--down); }

.hub-sat-label {
  white-space: nowrap;
  text-shadow: 0 1px 8px #000, 0 0 2px #000;
}

.hub-sat[data-hot],
.hub-sat.is-selected { color: #fff; }

.hub-sat[data-hot] .hub-sat-dot,
.hub-sat.is-selected .hub-sat-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(77, 163, 255, 0.24);
}

.hub-sat.is-dim { filter: opacity(0.28); }

.hub-sat:focus-visible { outline: none; }
.hub-sat:focus-visible .hub-sat-dot {
  box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--accent);
}

.hub-stage-foot {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: var(--shell);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 6;
}

.hub-stage-foot a { pointer-events: auto; color: var(--text-secondary); }
.hub-stage-foot a:hover { color: var(--text); }

/* ---- rail: the products ------------------------------------------------- */

.hub-rail,
.hub-services {
  width: var(--shell);
  margin-inline: auto;
  padding: 4rem 0 3.5rem;
}

.hub-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-bottom: 1.5rem;
}

.hub-rail-head h2,
.hub-services-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hub-rail-head p,
.hub-services-head p {
  margin: 0;
  max-width: 34rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hub-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.hub-chip:hover { color: var(--text); border-color: var(--text-muted); }

.hub-chip.is-on {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.hub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 140ms ease;
}

.hub-row[data-hot],
.hub-row.is-selected { background: rgba(255, 255, 255, 0.025); }

.hub-row-main {
  display: grid;
  grid-template-columns: 2.5rem minmax(9rem, 12rem) 1fr minmax(8rem, 11rem) 8.5rem;
  gap: 1.25rem;
  align-items: baseline;
  width: 100%;
  padding: 1.1rem 0.25rem 1.1rem 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hub-row-index {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hub-row.is-selected .hub-row-index,
.hub-row[data-hot] .hub-row-index { color: var(--accent); }

.hub-row-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hub-row-tag {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hub-row-cat {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hub-row-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--unknown);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hub-row-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.hub-row-status.state-up { color: var(--live); }
.hub-row-status.state-down { color: var(--down); }
.hub-row-status em { font-style: normal; color: var(--text-muted); }

.hub-row-open {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0 0 1.5rem;
  color: var(--text-link);
  font: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

button.hub-row-open:hover {
  text-decoration: underline;
}

/* ---- services ----------------------------------------------------------- */

.hub-services {
  border-top: 1px solid var(--border-subtle);
}

.hub-services-head {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  gap: 2rem 3rem;
  margin-bottom: 2rem;
}

.hub-services-head p { max-width: 44rem; }

.hub-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

.hub-service {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.6rem;
}

.hub-service-index {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.hub-service h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hub-service p {
  margin: 0 0 0.7rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hub-service-offerings {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
}

.hub-more {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- detail panel ------------------------------------------------------- */

.hub-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hub-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.hub-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(30rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem calc(1.5rem + var(--safe-bottom));
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 260ms;
}

.hub-panel[data-open="true"] {
  transform: none;
  visibility: visible;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

.hub-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hub-panel-cat {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hub-panel-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.hub-panel-close:hover { color: var(--text); border-color: var(--text-muted); }

.hub-panel-name {
  margin: 0;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hub-panel-tag {
  margin: 0.5rem 0 0;
  color: var(--text-link);
  font-size: 1.05rem;
}

.hub-panel-desc {
  margin: 1rem 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hub-panel-facts {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.hub-panel-facts dt,
.hub-panel-facts dd {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.hub-panel-facts dt { color: var(--text-muted); }
.hub-panel-facts dd { color: var(--text); }
.hub-panel-facts dd.hub-row-status { font-size: 0.9rem; }
.hub-mono { font-family: var(--mono); font-size: 0.82rem !important; word-break: break-all; }

.hub-panel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hub-panel-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.hub-panel-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hub-panel-links li > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hub-panel-links strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.hub-panel-link-auth {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hub-rail-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.hub-release {
  display: inline-block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hub-release.is-ready {
  color: #7dcaa0;
  border-color: rgba(125, 202, 160, 0.35);
}

.hub-release.is-dev {
  color: #d2b36a;
  border-color: rgba(210, 179, 106, 0.4);
}

.hub-release-line { margin: 0 0 0.75rem; }

.hub-sat.is-dev .hub-sat-label::after {
  content: " · dev";
  color: var(--text-muted);
  font-size: 0.75em;
}

.hub-panel-form .hub-panel-name { font-size: 1.8rem; }

.hub-add-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.hub-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hub-field label,
.hub-field legend {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hub-field input,
.hub-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.hub-field textarea { resize: vertical; min-height: 6rem; }

.hub-status-field {
  border: 0;
  padding: 0;
  margin: 0;
  gap: 0.55rem;
}

.hub-radio {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}

.hub-radio span { color: var(--text-muted); font-size: 0.85rem; }

.sx-login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hub-panel-nav {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hub-panel-nav button {
  background: none;
  border: 0;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.hub-panel-nav button:hover { color: var(--text); }

/* ---- login -------------------------------------------------------------- */

.sx-login-page {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.sx-login-panel {
  width: min(26rem, 100%);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.sx-login-panel h1 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}

.sx-lede {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sx-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  background: #2a1515;
  color: #e0c0c0;
  font-size: 0.9rem;
}

/* ---- usage -------------------------------------------------------------- */

.sx-usage {
  width: var(--shell);
  margin: 0 auto 4rem;
  padding: 2.25rem 0 1rem;
}

.sx-usage-kicker {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sx-usage h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sx-usage h2 {
  margin: 2.25rem 0 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 600;
}

.sx-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.sx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sx-table th,
.sx-table td {
  text-align: left;
  padding: 0.7rem 0.85rem 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.sx-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.sx-table td { color: var(--text-secondary); }

.sx-code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
}

/* ---- motion ------------------------------------------------------------- */

@keyframes hub-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-title { animation-duration: 1ms; animation-delay: 0ms; }
  .hub-title h1 { animation: none; }
  .hub-panel, .hub-scrim, .hub-sat, .hub-row { transition: none; }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hub-service-grid { grid-template-columns: 1fr; }
  .hub-services-head { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 760px) {
  :root { --shell: min(1180px, calc(100% - 2rem)); }
  .sx-top-inner { min-height: auto; padding: 0.9rem 0; align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .hub-stage { height: min(calc(100dvh - 6.5rem - var(--safe-top)), 640px); min-height: 480px; }
  .hub-title h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hub-title-eyebrow { font-size: 0.8rem; }
  .hub-sat-label { display: none; }
  .hub-sat[data-hot] .hub-sat-label,
  .hub-sat.is-selected .hub-sat-label { display: block; }
  .hub-stage-foot { font-size: 0.78rem; }
  .hub-hint { display: none; }

  .hub-rail, .hub-services { padding: 3rem 0 2.5rem; }
  .hub-row { grid-template-columns: 1fr; }
  .hub-row-main {
    grid-template-columns: 2rem 1fr auto;
    grid-template-areas:
      "idx name status"
      "idx tag tag"
      "idx cat cat";
    gap: 0.25rem 0.75rem;
    padding: 1rem 0;
  }
  .hub-row-main > .hub-row-index { grid-area: idx; }
  .hub-row-main > .hub-row-name { grid-area: name; }
  .hub-row-main > .hub-row-tag { grid-area: tag; }
  .hub-row-main > .hub-row-cat { grid-area: cat; }
  .hub-row-main > .hub-row-status { grid-area: status; }
  .hub-row-open { padding: 0 0 1rem 2.75rem; }

  .hub-panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88dvh;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 6px 6px 0 0;
    transform: translateY(100%);
  }
  .hub-panel[data-open="true"] { transform: none; }
  .hub-panel-name { font-size: 1.9rem; }
}
