:root {
  color-scheme: dark;
  --purple-900: #000512;
  --purple-800: #03132a;
  --purple-700: #042c5a;
  --purple-500: #0d6df0;
  --purple-300: #7cc9ff;
  --lavender: #e7f1ff;
  --grey-box: #1c2736;
  --text-primary: #f4fbff;
  --text-muted: rgba(228, 239, 255, 0.75);
  --card-bg: rgba(7, 20, 44, 0.75);
  --border: rgba(124, 201, 255, 0.18);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(21, 87, 187, 0.35), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(0, 140, 210, 0.25), transparent 40%),
    linear-gradient(150deg, #01030d 0%, #020c1f 35%, #031a38 65%, #041f4e 100%);
  color: var(--text-primary);
  font-family: var(--font, "Inter", "Segoe UI", sans-serif);
  line-height: 1.6;
  padding-bottom: 140px;
}

body.auth-locked #app-shell {
  filter: blur(18px);
  opacity: 0.35;
  pointer-events: none;
}

body.dev-mode {
  background: radial-gradient(circle at 30% 20%, rgba(146, 73, 214, 0.4), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(63, 20, 79, 0.4), transparent 45%),
    linear-gradient(160deg, #080010 0%, #120021 40%, #2f0b4f 80%, #200038 100%);
}

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

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

.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(9, 27, 65, 0.82), rgba(2, 4, 10, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 3000;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.auth-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(3, 11, 26, 0.9);
  border: 1px solid rgba(124, 201, 255, 0.25);
  box-shadow: 0 35px 90px rgba(1, 5, 18, 0.85);
  text-align: center;
}

.auth-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.auth-card__lead {
  margin: 0.5rem 0 1.5rem;
  color: rgba(239, 247, 255, 0.8);
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#auth-code {
  border-radius: 0.85rem;
  border: 1px solid rgba(124, 201, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
}

#auth-form button {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(120deg, #0d6df0, #00c2ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

#auth-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.auth-error {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.9rem;
  color: #ff8d8d;
  opacity: 0;
  transition: opacity 150ms ease;
}

.auth-error.is-visible {
  opacity: 1;
}

.dev-launcher {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  background: linear-gradient(135deg, #7a3cff, #b26bff);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

body:not(.auth-locked) .dev-launcher {
  display: flex;
}

.dev-launcher img {
  width: 28px;
  height: 28px;
}

.dev-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}



.lockout-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0a0016 0%, #05010c 60%, #010105 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  transition: opacity 220ms ease;
  font-family: "Press Start 2P", "Courier New", monospace;
  color: #f5e8ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.lockout-overlay.is-active {
  opacity: 1;
}

.lockout-overlay__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 2px,
    transparent 2px,
    transparent 6px
  );
  animation: lockoutScan 5s linear infinite;
  opacity: 0.3;
}

.lockout-overlay__inner {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 3px solid rgba(203, 157, 255, 0.4);
  border-radius: 1.5rem;
  background: rgba(5, 0, 15, 0.85);
  box-shadow: 0 0 60px rgba(122, 60, 255, 0.45);
  text-align: center;
  max-width: 640px;
  width: min(90vw, 640px);
}

.lockout-overlay__text {
  font-size: clamp(0.85rem, 2.2vw, 1.2rem);
  line-height: 1.8;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.broadcast-banner {
  position: fixed;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4100;
  width: min(520px, calc(100% - 2rem));
  pointer-events: none;
  transition: top 280ms ease, opacity 280ms ease;
  opacity: 0;
}

.broadcast-banner.is-visible {
  top: 1.25rem;
  opacity: 1;
}

.broadcast-banner__inner {
  background: linear-gradient(120deg, rgba(134, 64, 255, 0.95), rgba(60, 10, 120, 0.92));
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 50px rgba(3, 0, 15, 0.45);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(0.65rem, 1.8vw, 0.95rem);
  color: #f7edff;
  text-align: center;
}

@keyframes lockoutScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}


.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem clamp(1.5rem, 4vw, 5rem) 3rem;
  align-items: stretch;
}

.hero__content {
  max-width: 520px;
}

.hero__logo {
  width: 110px;
  height: 110px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 20px rgba(95, 53, 255, 0.45));
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.portal {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(7, 0, 15, 0.45);
}

.portal input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  min-width: 0;
}

.portal input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.portal input:focus {
  outline: none;
}

.portal button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--purple-500), var(--purple-300));
  color: #1a032e;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.portal button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(145, 76, 255, 0.4);
}

.portal__status {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.portal__status[data-state="error"] {
  color: #ffb8c5;
}

.comfort {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cloak {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.cloak input[type="text"] {
  flex: 1 1 220px;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: var(--text-primary);
}

.cloak button,
.panic-settings select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.cloak button {
  white-space: nowrap;
}

.cloak button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.panic-settings {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.panic-settings small {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toggle input {
  accent-color: var(--purple-300);
}

.relay-panel {
  padding: 2rem;
  border-radius: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  max-width: 420px;
  margin-left: auto;
}

.relay-panel__label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.relay-panel__name {
  font-size: 2.4rem;
  margin: 0;
}

.relay-panel__desc {
  margin: 0.35rem 0 1.5rem;
  color: var(--lavender);
}

.relay-panel__choices {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.relay-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.25rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.relay-chip.is-active {
  background: rgba(199, 157, 255, 0.2);
  border-color: rgba(199, 157, 255, 0.7);
}

.relay-panel__status {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.relay-panel__status-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.relay-panel__status dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.relay-panel__status dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.relay-panel__status dd {
  margin: 0;
  font-size: 1rem;
}

.transport-controls {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.transport-controls__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.transport-controls__label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.transport-controls__state {
  margin: 0;
  font-size: 0.95rem;
  color: var(--lavender);
}

.transport-controls__choices {
  margin-bottom: 0.5rem;
}

.transport-controls__hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

main {
  padding: 0 clamp(1.5rem, 4vw, 5rem) 4rem;
}

.workspace {
  margin: 0 clamp(1.5rem, 4vw, 5rem) 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(8, 0, 16, 0.45);
}

.workspace__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.workspace__chrome button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.workspace__frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 420px;
  background: rgba(0, 0, 0, 0.3);
}

.workspace__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.workspace__placeholder.is-hidden {
  opacity: 0;
}

#proxy-frame {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  border: none;
  background: transparent;
}

.diagnostics {
  margin: 0 clamp(1.5rem, 4vw, 5rem) 3rem;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(8, 0, 18, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 45px rgba(5, 0, 12, 0.45);
}

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

.diagnostics__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

.diagnostics__actions {
  display: flex;
  gap: 0.75rem;
}

.diagnostics__actions button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.diagnostics__actions button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.diagnostics__grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.diagnostics__value {
  margin: 0.35rem 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.diagnostics__grid small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.diagnostics__log {
  margin: 0;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  min-height: 130px;
  max-height: 220px;
  overflow-y: auto;
  color: var(--lavender);
  white-space: pre-line;
}

.diagnostics__log[data-state="warn"] {
  border-color: rgba(255, 191, 73, 0.6);
}

.diagnostics__log[data-state="error"] {
  border-color: rgba(255, 120, 120, 0.65);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.features article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  min-height: 220px;
}

.features h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.mission {
  margin: 5rem auto 4rem;
  max-width: 720px;
  background: linear-gradient(135deg, rgba(4, 28, 61, 0.88), rgba(2, 10, 26, 0.92));
  color: var(--lavender);
  border-radius: 1.25rem;
  padding: 2rem;
  font-size: 1.05rem;
  box-shadow: 0 40px 90px rgba(1, 6, 20, 0.75);
  border: 1px solid rgba(124, 201, 255, 0.25);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.mission.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mission a {
  color: var(--purple-300);
  font-weight: 600;
}

.mission a:hover {
  text-decoration: underline;
}

.how-it-works {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
}

.how-it-works h2 {
  margin-top: 0;
}

.how-it-works ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.subtle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credits {
  margin-top: 2.5rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.2);
}

body.focus-mode .hero__lead,
body.focus-mode .features article p {
  color: rgba(255, 255, 255, 0.7);
}

body.focus-mode .relay-panel,
body.focus-mode .features article,
body.focus-mode .how-it-works {
  box-shadow: none;
  filter: saturate(0.85);
}

body.focus-mode main {
  opacity: 0.95;
}

body.history-track .portal__status::after {
  content: "History capture on";
  margin-left: 0.5rem;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 3rem;
  }

  .portal {
    flex-direction: column;
    border-radius: 24px;
  }

  .portal button {
    width: 100%;
  }

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

  .cloak {
    flex-direction: column;
    align-items: stretch;
  }

  #proxy-frame {
    height: 55vh;
    min-height: 320px;
  }

  .diagnostics__actions {
    width: 100%;
  }

  .diagnostics__actions button {
    flex: 1;
  }
}

.userscripts {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.userscripts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.userscripts__label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

#userscript-input {
  width: 100%;
  min-height: 120px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  padding: 0.75rem;
  resize: vertical;
}

.userscripts__actions {
  display: flex;
  gap: 0.75rem;
}

.userscripts__actions button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
}
.dev-dashboard {
  margin: 3rem auto 1rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(140, 183, 255, 0.4);
  background: radial-gradient(circle at 20% 20%, rgba(146, 102, 255, 0.14), transparent 55%),
    rgba(4, 10, 28, 0.9);
  box-shadow: 0 30px 70px rgba(4, 0, 18, 0.55);
  backdrop-filter: blur(20px);
}

.dev-dashboard__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.dev-dashboard__welcome {
  margin: 0.35rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.dev-dashboard__url {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.dev-dashboard__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.dev-dashboard__list {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
}

.dev-cache-entry {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
}

.dev-cache-entry__meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.dev-cache-entry__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dev-cache-entry__actions button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.dev-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dev-user-entry {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dev-user-entry__meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.dev-user-entry__uid {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.dev-user-entry__details {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.dev-user-entry__actions,
.dev-cache-entry__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dev-user-entry__actions button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.dev-log-entry {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.dev-log-entry__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.4rem;
}

.dev-log-entry__details {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.15rem 0;
}

.dev-log-entry__target {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

.dev-log-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dev-chat-log {
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.chat-bar {
  position: fixed;
  inset: auto 0 0 0;
  background: rgba(2, 3, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.55);
  z-index: 3900;
  transform: translateY(68%);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}

.chat-bar.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-bar__messages {
  max-height: 120px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding-right: 0.5rem;
}

.chat-bar__messages .chat-message {
  margin: 0.1rem 0;
}

.chat-message__meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.4rem;
}

.chat-bar__form {
  display: flex;
  gap: 0.5rem;
}

.chat-bar__form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.6rem 1rem;
}

.chat-bar__form button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(120deg, #7b3bff, #ff5ec2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.chat-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  background: rgba(7, 2, 18, 0.85);
  color: #f6edff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 3950;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dev-broadcast {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dev-broadcast textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.6rem 0.9rem;
  resize: vertical;
}

.dev-broadcast button {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  background: linear-gradient(120deg, #9b45ff, #ff478a);
  color: #fff;
  cursor: pointer;
}

.dev-broadcast__status {
  min-height: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.dev-device-entry {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dev-device-entry__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.dev-device-entry__actions {
  display: flex;
  gap: 0.4rem;
}

.dev-device-entry__actions button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}
