:root {
  --bg: #121212;
  --panel: rgba(15, 15, 16, 0.94);
  --panel-strong: #18181b;
  --text: #f4f7f4;
  --muted: rgba(244, 239, 230, 0.66);
  --faint: rgba(244, 239, 230, 0.42);
  --border: #27272a;
  --border-strong: #3f3f46;
  --green: #6ee7b7;
  --cyan: #3decff;
  --violet: #c4b5fd;
  --red: #f87171;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  font-family: var(--font-mono);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(61, 236, 255, 0.08), transparent 32rem);
  content: "";
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.hub-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
}

.hub-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-line,
.deploy-count,
.panel-label,
.panel-heading span,
.detail-kicker,
.meta-list dt,
.copy-status {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 0;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
}

h1 span {
  color: var(--green);
  text-shadow: 0 0 16px rgba(110, 231, 183, 0.34);
}

.hub-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.filters-panel,
.deployments-panel,
.detail-panel {
  padding: 16px;
}

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

.panel-heading h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.filter-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.filter-button,
.action-button,
.row-actions a,
.row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
  transition-property: color, border-color, background, box-shadow, transform;
}

.filter-button {
  justify-content: flex-start;
  width: 100%;
  padding: 0 10px;
}

.filter-button:hover,
.filter-button.active,
.action-button:hover,
.row-actions a:hover,
.row-actions button:hover {
  border-color: var(--border-strong);
  color: #fff;
  background: var(--panel-strong);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.05);
}

.filter-button.active {
  border-color: rgba(110, 231, 183, 0.55);
  color: var(--green);
  text-shadow: 0 0 12px rgba(110, 231, 183, 0.42);
}

.search-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.search-box span {
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: 0;
  padding: 0 10px;
  color: var(--text);
  background: #0b0b0c;
}

.search-box input:focus {
  border-color: rgba(61, 236, 255, 0.7);
}

.tiny-note {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tiny-note .muted {
  color: var(--faint);
}

.deployment-list {
  display: grid;
  gap: 10px;
}

.deployment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--border);
  outline: 0;
  background: rgba(9, 9, 11, 0.42);
  transition: 160ms ease;
  transition-property: background, border-color, box-shadow, transform;
}

.deployment-row:hover,
.deployment-row:focus,
.deployment-row.selected {
  border-color: var(--border-strong);
  background: rgba(24, 24, 27, 0.86);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.deployment-row.selected {
  border-color: rgba(244, 247, 244, 0.42);
}

.row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.row-main > div {
  min-width: 0;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--faint);
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.7);
}

.row-main h3 {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-main p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-updated {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.4;
}

.row-actions {
  display: grid;
  gap: 8px;
}

.row-actions a,
.row-actions button {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
}

.detail-panel {
  position: sticky;
  top: 24px;
}

.preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 178px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px dashed rgba(61, 236, 255, 0.65);
  background:
    linear-gradient(135deg, rgba(61, 236, 255, 0.08), transparent 42%),
    #09090b;
}

.preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050506;
  object-fit: cover;
  object-position: top center;
}

.preview-frame:not(.has-image) img {
  display: none;
}

.preview-frame[data-accent="green"] {
  border-color: rgba(110, 231, 183, 0.7);
}

.preview-frame[data-accent="violet"] {
  border-color: rgba(196, 181, 253, 0.7);
}

.preview-noise {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 247, 244, 0.08);
  pointer-events: none;
}

.preview-noise::before,
.preview-noise::after {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(244, 247, 244, 0.14);
  content: "";
}

.preview-noise::before {
  top: 38%;
}

.preview-noise::after {
  top: 62%;
}

.preview-frame p {
  position: relative;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(9, 9, 11, 0.72);
  color: #fff;
  font-size: 15px;
  text-shadow: 0 0 16px rgba(244, 247, 244, 0.26);
}

.detail-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-copy h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.detail-copy p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.action-button {
  min-height: 34px;
  padding: 0 12px;
}

.action-button.primary {
  border-color: rgba(61, 236, 255, 0.55);
  color: var(--cyan);
}

.copy-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: none;
}

.profile-link {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.profile-link p {
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.profile-link a {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.profile-link a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.repos-panel {
  margin-top: 16px;
  padding: 16px;
}

.github-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(61, 236, 255, 0.55);
  color: var(--cyan);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.github-button:hover {
  color: #fff;
  background: var(--panel-strong);
}

.repo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.repo-chip {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--border);
  color: inherit;
  background: rgba(9, 9, 11, 0.42);
  text-decoration: none;
  transition: 160ms ease;
  transition-property: background, border-color, box-shadow, transform;
}

.repo-chip:hover {
  border-color: var(--border-strong);
  background: rgba(24, 24, 27, 0.86);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.repo-chip strong {
  color: #fff;
  font-size: 14px;
}

.repo-chip.featured {
  border-color: rgba(110, 231, 183, 0.55);
}

.repo-chip.featured strong {
  color: var(--green);
  text-shadow: 0 0 12px rgba(110, 231, 183, 0.34);
}

.repo-chip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .repo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.empty-state {
  min-height: 180px;
  padding: 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
}

.empty-state p {
  margin-bottom: 8px;
  color: #fff;
}

.empty-state span {
  color: var(--faint);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hub-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .detail-panel {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hub-shell {
    width: min(100% - 22px, 1160px);
    padding: 24px 0;
  }

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

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

  .repo-strip {
    grid-template-columns: 1fr;
  }

  .deployment-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row-actions {
    grid-template-columns: 1fr 1fr;
  }

  .row-main h3 {
    white-space: normal;
  }
}
