:root {
  --bg: #030b12;
  --bg-2: #091b2b;
  --panel: rgba(5, 17, 28, 0.8);
  --panel-strong: rgba(7, 21, 34, 0.94);
  --line: rgba(94, 230, 255, 0.16);
  --ink: #effcff;
  --muted: #96bcca;
  --mint: #71ffd0;
  --gold: #59d8ff;
  --ember: #59d8ff;
  --sky: #76cfff;
  --danger: #ff8f9d;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Syne", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(113, 255, 208, 0.2), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(89, 216, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(255, 211, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #040910 0%, var(--bg) 45%, #091826 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92), transparent 78%);
  opacity: 0.38;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.atmosphere-a {
  background:
    linear-gradient(125deg, rgba(125, 240, 205, 0.06), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(135, 199, 255, 0.12), transparent 22%);
}

.atmosphere-b {
  background:
    radial-gradient(circle at 80% 72%, rgba(89, 216, 255, 0.09), transparent 16%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent 24%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 56px rgba(94, 230, 255, 0.08);
  backdrop-filter: blur(12px);
}

.panel.nested {
  background: var(--panel-strong);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 255, 208, 0.2), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Orbitron", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

h1,
h2,
h3,
h4,
strong {
  margin: 0;
}

h1 {
  font-family: "Orbitron", "Syne", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.92;
  max-width: 11ch;
  letter-spacing: 0.05em;
}

h2 {
  font-family: "Orbitron", "Syne", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0.04em;
}

h3 {
  font-family: "Orbitron", "Syne", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.lede,
.section-copy,
.feature-card p,
.stack-list p,
.role-card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

.google-host {
  display: flex;
  justify-content: center;
}

.session-badge,
.chip,
.request-status,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(135, 199, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 24, 37, 0.84);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--sky);
}

button,
a {
  font: inherit;
}

button,
.primary,
.secondary,
.ghost {
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

button:hover,
.primary:hover,
.secondary:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.primary,
.secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(135deg, var(--mint), #59d8f4 58%, #ffd36e);
  color: #07111a;
  font-weight: 700;
}

.secondary {
  background: rgba(8, 19, 30, 0.8);
  border-color: rgba(135, 199, 255, 0.16);
  color: var(--ink);
}

.ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(135, 199, 255, 0.12);
}

.hidden {
  display: none !important;
}

.status-row,
.view-grid,
.workspace-grid,
.developer-grid {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  grid-template-columns: 1fr 1fr;
}

.status-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.status-card {
  padding: 18px 20px;
}

.label {
  display: block;
  margin-bottom: 10px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.feature-card,
.wide,
#adminPanel,
#workspaceView {
  padding: 24px;
}

#oauthDiagnostics {
  margin-bottom: 12px;
}

.wide {
  grid-column: 1 / -1;
}

.section-head,
.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  max-width: 440px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(135, 199, 255, 0.12);
  background: linear-gradient(160deg, rgba(8, 25, 40, 0.96), rgba(4, 14, 24, 0.88));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card header,
.project-card footer,
.stack-item,
.workspace-actions,
.meta-row,
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-card header {
  justify-content: space-between;
}

.project-card .tagline {
  margin: 0;
  color: var(--muted);
}

.meta-row {
  align-items: center;
}

.meta-pill {
  min-height: 34px;
  padding: 6px 10px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(113, 255, 208, 0.18);
  background: linear-gradient(135deg, rgba(113, 255, 208, 0.08), rgba(89, 216, 255, 0.08));
}

.notice-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.notice-card.error {
  border-color: rgba(255, 143, 157, 0.36);
  background: linear-gradient(135deg, rgba(255, 143, 157, 0.16), rgba(89, 216, 255, 0.08));
}

.notice-card.error strong,
.notice-card.error p {
  color: #fff0f2;
}

.stack-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(135, 199, 255, 0.1);
  background: rgba(7, 17, 27, 0.72);
  justify-content: space-between;
  align-items: flex-start;
}

.stack-item strong,
.stack-item span {
  display: block;
}

.workspace-grid {
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
}

.developer-grid {
  grid-template-columns: 0.9fr 1fr 1.1fr;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-actions {
  align-items: center;
}

.role-card {
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(125, 240, 205, 0.11), rgba(135, 199, 255, 0.11));
  border: 1px solid rgba(125, 240, 205, 0.18);
  margin-bottom: 14px;
}

.chat-log {
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 6px;
}

.chat-entry {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(135, 199, 255, 0.1);
  background: rgba(7, 16, 26, 0.74);
}

.chat-entry.user {
  border-color: rgba(125, 240, 205, 0.18);
}

.chat-entry .who {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chat-form {
  display: grid;
  gap: 12px;
}

textarea,
select,
input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(135, 199, 255, 0.14);
  background: rgba(8, 16, 25, 0.88);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.field {
  display: grid;
  gap: 8px;
}

.field-inline {
  display: grid;
  gap: 8px;
}

.field span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.split-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(135, 199, 255, 0.12);
  background: rgba(7, 16, 26, 0.8);
  color: #dbe8f7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
}

.developer-log {
  min-height: 240px;
}

.modal {
  width: min(560px, calc(100vw - 24px));
  border: 1px solid rgba(135, 199, 255, 0.16);
  border-radius: 28px;
  background: rgba(7, 16, 26, 0.98);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(4px);
}

.modal form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sort-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sort-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(118, 207, 255, 0.14);
  background: rgba(8, 20, 32, 0.88);
  color: var(--muted);
}

.sort-button.active {
  color: var(--ink);
  border-color: rgba(113, 255, 208, 0.28);
  background: linear-gradient(135deg, rgba(113, 255, 208, 0.12), rgba(89, 216, 255, 0.12));
}

.user-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.user-row {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 207, 255, 0.12);
  background: rgba(6, 17, 28, 0.82);
  display: grid;
  gap: 10px;
  text-align: left;
}

.user-row.active {
  border-color: rgba(113, 255, 208, 0.26);
  background: linear-gradient(135deg, rgba(113, 255, 208, 0.1), rgba(89, 216, 255, 0.08));
}

.user-main,
.user-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.user-main strong {
  display: block;
  min-width: 100%;
}

.user-main span,
.user-meta span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.selected-user-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.toggle-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.permission-toggle {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 207, 255, 0.12);
  background: rgba(5, 16, 26, 0.84);
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.permission-toggle small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.permission-toggle.on {
  border-color: rgba(113, 255, 208, 0.3);
  background: linear-gradient(135deg, rgba(113, 255, 208, 0.14), rgba(89, 216, 255, 0.1));
  box-shadow: 0 0 0 1px rgba(113, 255, 208, 0.1), 0 0 28px rgba(113, 255, 208, 0.08);
}

.permission-toggle.off {
  opacity: 0.84;
}

.permission-toggle.locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(135, 199, 255, 0.14);
  background: rgba(8, 16, 25, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.toast.error {
  border-color: rgba(255, 143, 157, 0.32);
  color: #ffe2e6;
}

.landing-body {
  overflow-x: hidden;
}

.landing-shell {
  max-width: 1360px;
}

.hero-scene {
  grid-template-columns: 1fr 0.95fr;
  min-height: 620px;
  align-items: stretch;
}

.scene-stage {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 211, 110, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(11, 29, 45, 0.64), rgba(4, 12, 22, 0.92));
}

.sun-orbit,
.scene-mist,
.tree-layer,
.scene-citadel {
  position: absolute;
  inset: 0;
}

.sun-orbit {
  width: 180px;
  height: 180px;
  inset: 70px auto auto 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 188, 0.92), rgba(255, 211, 110, 0.24) 52%, transparent 72%);
  filter: blur(2px);
  animation: sun-drift 26s linear infinite alternate;
}

.scene-citadel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
}

.scene-mist {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 26%, transparent 52%, rgba(255, 255, 255, 0.04) 76%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: mist-sweep 18s linear infinite;
}

.tree-layer {
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: cover;
}

.tree-layer-far {
  background-image: url("/assets/olympus/tree-line-far.svg");
  opacity: 0.75;
  animation: tree-drift-far 28s linear infinite alternate;
}

.tree-layer-near {
  background-image: url("/assets/olympus/tree-line-near.svg");
  opacity: 0.94;
  animation: tree-drift-near 16s linear infinite alternate;
}

.landing-row {
  margin-top: 6px;
}

.landing-request-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.inline-link {
  color: var(--mint);
  text-decoration: none;
}

.project-card.assigned,
.project-card.inherited {
  border-color: rgba(113, 255, 208, 0.28);
  box-shadow: 0 0 0 1px rgba(113, 255, 208, 0.08), 0 0 32px rgba(113, 255, 208, 0.08);
}

.project-card.available {
  opacity: 0.72;
}

.membership-indicator {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(118, 207, 255, 0.14);
  background: rgba(8, 20, 32, 0.88);
}

.membership-indicator.assigned {
  color: #08131c;
  background: linear-gradient(135deg, var(--mint), #8fe6ff);
  border-color: transparent;
}

.membership-indicator.inherited {
  color: var(--gold);
}

.admin-guidance {
  margin-bottom: 18px;
}

@keyframes sun-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(330px, 56px);
  }
}

@keyframes tree-drift-far {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40px);
  }
}

@keyframes tree-drift-near {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-85px);
  }
}

@keyframes mist-sweep {
  from {
    transform: translateX(-10%);
  }
  to {
    transform: translateX(10%);
  }
}

@media (max-width: 1040px) {
  .hero,
  .status-row,
  .view-grid,
  .workspace-grid,
  .developer-grid,
  .admin-grid,
  .admin-user-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }

  .section-actions {
    justify-items: stretch;
    max-width: none;
  }

  .hero-scene {
    min-height: 0;
  }

  .scene-stage {
    min-height: 360px;
  }
}
