:root {
  --bg: #000;
  --panel: #121212;
  --panel-2: #181818;
  --panel-3: #242424;
  --panel-4: #2a2a2a;
  --ink: #fff;
  --muted: #b3b3b3;
  --muted-2: #7c7c7c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #1ed760;
  --accent-2: #1db954;
  --accent-soft: rgba(30, 215, 96, 0.14);
  --critical: #ff4d4d;
  --high: #ff8a3d;
  --medium: #f5c542;
  --low: #68d391;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

::selection {
  background: rgba(30, 215, 96, 0.32);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #0a0a0a;
  border-radius: 999px;
  background: #555;
}

::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 8px;
  min-height: 100vh;
  padding: 8px 8px 104px;
  background:
    radial-gradient(circle at 72% -18%, rgba(30, 215, 96, 0.18), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(29, 185, 84, 0.1), transparent 28%),
    #000;
}

.top-nav {
  position: sticky;
  top: 8px;
  z-index: 10;
  height: calc(100vh - 112px);
  min-height: 620px;
}

.top-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.profile-card,
.nav-pills,
.sidebar-library,
.sidebar-plan {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  border: 1px solid rgba(30, 215, 96, 0.14);
  padding: 14px;
  text-align: left;
  overflow: hidden;
}

.profile-card::before {
  position: absolute;
  inset: -80px auto auto -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.16);
  filter: blur(26px);
  content: "";
  animation: profile-glow 4.8s ease-in-out infinite;
}

@keyframes profile-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.profile-card:hover {
  background: var(--panel-2);
}

.profile-avatar,
.profile-copy,
.profile-dot {
  position: relative;
  z-index: 1;
}

.profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041108;
  font-size: 18px;
  font-weight: 950;
}

.profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-copy strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
}

.profile-copy span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.profile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(30, 215, 96, 0.8);
}

.nav-pills {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.nav-pills button,
.nav-pills a,
.session-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-pills button:hover,
.nav-pills a:hover,
.session-pill:hover {
  background: var(--panel-3);
  color: var(--ink);
}

.nav-pills button.is-ready,
.nav-pills .session-pill.is-authenticated {
  background: var(--accent);
  color: #041108;
}

.session-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-library {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 16px 12px;
}

.sidebar-library p {
  margin: 0 0 2px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workspace-history {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-height: 280px;
  margin: 0;
  overflow: auto;
  padding: 0;
  list-style: none;
}

.workspace-history button,
.workspace-empty {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--muted);
  padding: 8px 10px;
  text-align: left;
}

.workspace-history button:hover {
  border-color: rgba(30, 215, 96, 0.22);
  background: var(--panel-3);
  color: var(--ink);
}

.workspace-empty {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.workspace-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.workspace-dot.status-completed {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(30, 215, 96, 0.7);
}

.workspace-dot.status-running,
.workspace-dot.status-queued {
  background: var(--medium);
}

.workspace-dot.status-failed,
.workspace-dot.status-blocked,
.workspace-dot.status-cancelled {
  background: var(--critical);
}

.workspace-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-copy strong,
.workspace-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.workspace-copy small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
}

.workspace-history em {
  min-width: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  padding: 3px 7px;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.sidebar-plan {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 215, 96, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(30, 215, 96, 0.18), rgba(18, 18, 18, 0.96) 46%),
    var(--panel);
  box-shadow: 0 0 32px rgba(30, 215, 96, 0.1);
}

.sidebar-plan-copy strong {
  display: block;
  font-size: 14px;
}

.sidebar-plan-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.aegis-preorder-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid rgba(30, 215, 96, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(30, 215, 96, 0.26), transparent 54%),
    rgba(0, 0, 0, 0.32);
  color: var(--ink);
  padding: 11px;
  text-align: left;
}

.aegis-preorder-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.13), transparent 54%);
  content: "";
  transform: translateX(-100%);
  animation: preorder-shine 4s ease-in-out infinite;
}

@keyframes preorder-shine {
  0%,
  42% {
    transform: translateX(-100%);
  }
  72%,
  100% {
    transform: translateX(100%);
  }
}

.aegis-preorder-card:hover {
  border-color: rgba(30, 215, 96, 0.48);
  transform: translateY(-1px);
}

.preorder-mark,
.aegis-preorder-card span {
  position: relative;
  z-index: 1;
}

.preorder-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041108;
  font-size: 17px;
  font-weight: 950;
}

.aegis-preorder-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aegis-preorder-card strong,
.aegis-preorder-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aegis-preorder-card strong {
  font-size: 13px;
  font-weight: 950;
}

.aegis-preorder-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.aegis-preorder-card.is-registered {
  border-color: rgba(30, 215, 96, 0.56);
  background:
    radial-gradient(circle at 18% 10%, rgba(30, 215, 96, 0.34), transparent 58%),
    rgba(9, 32, 16, 0.82);
}

.minimal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  grid-template-areas:
    "target target"
    "work live";
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.target-stage {
  position: relative;
  grid-area: target;
  display: grid;
  align-content: end;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(30, 215, 96, 0.24), rgba(18, 18, 18, 0.38) 36%, #121212 82%),
    radial-gradient(circle at 72% 24%, rgba(30, 215, 96, 0.32), transparent 30%),
    var(--panel);
  padding: 44px;
}

.target-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 76%);
  pointer-events: none;
}

.target-stage::after {
  position: absolute;
  right: -80px;
  top: 42px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(30, 215, 96, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 66px rgba(30, 215, 96, 0.04),
    0 0 100px rgba(30, 215, 96, 0.1);
  animation: radar-breathe 5.5s ease-in-out infinite;
}

@keyframes radar-breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.signal-field {
  position: absolute;
  inset: 34px 38px auto;
  height: 230px;
  z-index: 0;
  pointer-events: none;
}

.signal-field span {
  position: absolute;
  display: inline-grid;
  min-width: 64px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(30, 215, 96, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: drift 5.2s ease-in-out infinite;
}

.signal-field span:nth-child(1) {
  left: auto;
  right: 43%;
  top: 6%;
}

.signal-field span:nth-child(2) {
  right: 19%;
  top: 12%;
  animation-delay: -1.2s;
}

.signal-field span:nth-child(3) {
  left: auto;
  right: 36%;
  bottom: 6%;
  animation-delay: -2.1s;
}

.signal-field span:nth-child(4) {
  right: 12%;
  bottom: 8%;
  animation-delay: -3.4s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.64;
  }
  50% {
    transform: translateY(-14px);
    opacity: 1;
  }
}

.hero-kicker,
.kicker,
.assistant-kicker,
.thinking-label,
.eyebrow {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.target-stage h1 {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(50px, 7vw, 96px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.93;
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.target-console {
  position: relative;
  z-index: 3;
  width: min(820px, 100%);
}

.input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.input-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  padding: 8px 10px 8px 14px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.input-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(30, 215, 96, 0.18), transparent);
  transform: translateX(-100%);
  animation: scan 3.4s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  46%,
  100% {
    transform: translateX(100%);
  }
}

.input-prefix {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.input-prefix img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: saturate(0) contrast(1.2);
}

#target {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

#target::placeholder {
  color: #777;
}

#run-button,
#stop-button,
.work-cta,
.report-ready button,
.empty-report button,
  .auth-form button:not(.password-toggle),
.account-panel button,
.admin-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

#run-button {
  position: relative;
  z-index: 1;
  gap: 8px;
  height: 48px;
  min-width: 124px;
  background: var(--accent);
  color: #041108;
  padding: 0 22px;
}

#run-button:hover,
.work-cta:hover,
.report-ready button:hover,
.empty-report button:hover,
  .auth-form button:not(.password-toggle):hover,
.account-panel button:hover,
.admin-heading button:hover {
  transform: scale(1.035);
  filter: brightness(1.05);
}

#stop-button {
  position: relative;
  z-index: 1;
  height: 48px;
  min-width: 84px;
  border: 1px solid rgba(255, 77, 77, 0.34);
  background: rgba(255, 77, 77, 0.12);
  color: #ffb4b4;
  padding: 0 16px;
}

#stop-button[hidden] {
  display: none;
}

.button-mark {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

#run-button.is-running .button-mark {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(4, 17, 8, 0.28);
  border-top-color: #041108;
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.console-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.consent-row,
.engine-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  padding: 4px 5px 4px 12px;
  font-size: 12px;
  font-weight: 800;
}

.consent-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.select-shell {
  position: relative;
  display: inline-grid;
  min-width: 142px;
}

.select-shell::after,
.custom-select::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  content: "";
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}

.select-shell::after {
  display: none;
}

.engine-row select,
.auth-form select,
.account-panel select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    #050505;
  color: var(--ink);
  padding: 0 34px 0 13px;
  font-weight: 900;
}

.engine-row select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  height: 30px;
  font-size: 12px;
}

.custom-select {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #050505;
  color: var(--ink);
  padding: 0 34px 0 13px;
  text-align: left;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.custom-select:hover,
.select-shell.is-open .custom-select {
  border-color: rgba(30, 215, 96, 0.5);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.12);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: max(100%, 178px);
  overflow: hidden;
  border: 1px solid rgba(30, 215, 96, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 215, 96, 0.16), transparent 56%),
    #101010;
  padding: 7px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  border-color: rgba(30, 215, 96, 0.28);
  background: rgba(30, 215, 96, 0.12);
  color: var(--ink);
}

.custom-select-option.is-selected::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.7);
  content: "";
}

.custom-select-option.is-locked {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-2);
}

.custom-select-option.is-locked::after {
  content: "Locked";
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.1);
  color: var(--accent);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.engine-row select:focus,
.auth-form select:focus,
.account-panel select:focus {
  border-color: rgba(30, 215, 96, 0.54);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.14);
}

.engine-row select option,
.auth-form select option,
.account-panel select option {
  background: var(--panel);
  color: var(--ink);
}

.proof-consent {
  border-color: rgba(255, 77, 77, 0.32);
  color: #ffb4b4;
}

.agent-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(820px, 100%);
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--muted);
  padding: 0 16px;
  backdrop-filter: blur(16px);
}

.agent-strip div {
  display: flex;
  gap: 9px;
  min-width: 0;
}

.agent-strip strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.agent-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.progress-track {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

#progress-bar {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #baffd1);
  transition: width 240ms ease;
}

.capability-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(820px, 100%);
  margin-top: 20px;
}

.capability-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.capability-grid span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.capability-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}

.capability-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.work-board,
.chat-feed {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.work-board {
  grid-area: work;
  padding: 20px;
}

.work-heading,
.admin-heading,
.admin-section-heading,
.section-heading,
.finding-topline,
.hosting-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.work-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

#work-progress-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--accent);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

#work-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.work-cta {
  margin-top: 16px;
  min-height: 40px;
  background: var(--ink);
  color: #000;
  padding: 0 18px;
}

.work-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.work-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
}

.work-steps li.complete {
  color: var(--ink);
}

.work-steps li.running {
  border-color: rgba(30, 215, 96, 0.32);
  color: var(--accent);
  background: var(--accent-soft);
}

.chat-feed {
  grid-area: live;
  min-height: 460px;
  padding: 18px;
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.chat-message.user {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.message-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041108;
  font-size: 16px;
  font-weight: 950;
}

.message-body,
.user-bubble {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.48;
}

.message-body p,
.user-bubble p {
  margin: 0;
}

.step-title {
  margin: 0 0 5px;
  font-weight: 900;
}

.trace-detail,
.step-preview {
  color: var(--muted);
}

.step-preview {
  margin-top: 8px;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  font-size: 12px;
}

.tool-name {
  color: var(--accent);
}

.trace-item.running .message-avatar {
  box-shadow: 0 0 0 6px rgba(30, 215, 96, 0.1);
}

.trace-item.error .message-avatar {
  background: var(--critical);
  color: #fff;
}

.report-ready {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 215, 96, 0.12), var(--panel-2));
}

.report-ready p {
  margin: 0 0 10px;
}

.report-ready button {
  min-height: 34px;
  background: var(--accent);
  color: #041108;
  padding: 0 14px;
}

.auth-screen[hidden],
.thinking-modal[hidden],
.report-modal[hidden],
.admin-dashboard[hidden],
.auth-form[hidden],
#stop-button[hidden] {
  display: none;
}

.auth-screen,
.thinking-modal,
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 22px;
}

.thinking-modal {
  z-index: 45;
  pointer-events: none;
}

.auth-backdrop,
.modal-backdrop,
.thinking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.thinking-backdrop {
  pointer-events: auto;
}

.auth-dialog,
.thinking-dialog,
.report-dialog {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-dialog {
  display: grid;
  gap: 16px;
  width: min(540px, calc(100vw - 44px));
  overflow: hidden;
  padding: 24px;
}

.account-dialog {
  width: min(1100px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.auth-close,
.modal-close,
.thinking-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 18px;
}

.auth-close:hover,
.modal-close:hover,
.thinking-close:hover {
  background: var(--panel-4);
  color: var(--ink);
}

.auth-copy {
  padding-right: 38px;
}

.auth-copy h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.auth-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-panel,
.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-tab.is-active {
  background: var(--panel-3);
  color: var(--ink);
}

.auth-form,
.account-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.auth-form label,
.account-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form input,
.auth-form select,
.account-panel select {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #000;
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--panel-3);
  color: var(--muted);
  padding: 0;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: rgba(30, 215, 96, 0.16);
  color: var(--accent);
}

.password-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-form input:focus,
.auth-form select:focus,
.account-panel select:focus,
#target:focus {
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.3);
}

.auth-form button:not(.password-toggle),
.account-panel button {
  min-height: 42px;
  background: var(--accent);
  color: #041108;
  padding: 0 16px;
}

.google-row {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

#google-signin {
  display: none !important;
}

.google-button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 235, 235, 0.94)),
    #fff;
  color: #101010;
  padding: 0 20px 0 12px;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 32px rgba(0, 0, 0, 0.32);
}

.google-button::after {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.08);
  content: "";
  pointer-events: none;
}

.google-button:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.03);
}

.google-mark,
.google-mark svg {
  display: grid;
  width: 22px;
  height: 22px;
}

.google-mark {
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.12);
}

.auth-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  padding: 0 14px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.auth-message.error {
  color: var(--critical);
}

.signup-note {
  margin: 0;
  border: 1px solid rgba(30, 215, 96, 0.2);
  border-radius: 8px;
  background: rgba(30, 215, 96, 0.08);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.42;
}

.preorder-dialog {
  width: min(620px, calc(100vw - 44px));
}

.preorder-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 14px;
}

.preorder-benefits {
  display: grid;
  gap: 6px;
  min-height: 128px;
  border: 1px solid rgba(30, 215, 96, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(30, 215, 96, 0.22), transparent 55%),
    linear-gradient(140deg, rgba(30, 215, 96, 0.08), rgba(0, 0, 0, 0.22)),
    #0b100d;
  padding: 16px;
}

.preorder-benefits span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preorder-benefits strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.preorder-benefits p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preorder-perks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preorder-perks li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101010;
  color: var(--muted);
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.preorder-perks li::before {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.7);
  content: "";
}

#confirm-aegis-preorder {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #041108;
  font-size: 13px;
  font-weight: 950;
}

#confirm-aegis-preorder:disabled {
  background: var(--panel-3);
  color: var(--muted);
  cursor: default;
}

.account-panel {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.7fr) auto;
  align-items: end;
}

.account-panel > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#account-name {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

#account-plan-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-quota-card {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid rgba(30, 215, 96, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 215, 96, 0.2), transparent 56%),
    #0f1511;
  padding: 12px;
}

.account-quota-card span,
.account-quota-card small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 850;
}

.account-quota-card span {
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-quota-card strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 950;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
}

.admin-heading h3,
.admin-section-heading h4 {
  margin: 0;
}

.admin-heading h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.admin-section-heading h4 {
  font-size: 15px;
}

.admin-section-heading span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-heading button {
  min-height: 34px;
  background: var(--ink);
  color: #000;
  padding: 0 14px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat,
.admin-grid article,
.finding-card,
.hosting-card,
.direct-overview-card,
.direct-chart-card,
.direct-meta-card,
.direct-finding-card,
.direct-support-card,
.score-card,
.severity-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.admin-stat {
  padding: 14px;
}

.admin-stat span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-grid article {
  padding: 14px;
}

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

.admin-table {
  max-height: 280px;
  overflow: auto;
  margin-top: 10px;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  max-width: 190px;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.admin-empty,
.panel-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #0a0a0a;
  padding: 14px;
}

.thinking-dialog {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  width: min(780px, calc(100vw - 40px));
  overflow: hidden;
  padding: 22px;
  pointer-events: auto;
}

.thinking-orbit {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(30, 215, 96, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(30, 215, 96, 0.16) 0 36%, transparent 37%),
    conic-gradient(from 160deg, rgba(30, 215, 96, 0.16), rgba(255, 255, 255, 0.08), rgba(30, 215, 96, 0.16));
  animation: thinking-pulse 2.6s ease-in-out infinite;
}

.thinking-orbit::after {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041108;
  content: "A";
  font-size: 30px;
  font-weight: 950;
}

.thinking-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform-origin: 75px 75px;
  animation: thinking-dot 3s linear infinite;
}

.thinking-orbit span:nth-child(2) {
  animation-delay: -0.75s;
}

.thinking-orbit span:nth-child(3) {
  animation-delay: -1.5s;
}

.thinking-orbit span:nth-child(4) {
  animation-delay: -2.25s;
}

@keyframes thinking-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.12);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(30, 215, 96, 0.04);
  }
}

@keyframes thinking-dot {
  from {
    transform: rotate(0deg) translateX(75px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(75px) rotate(-360deg);
  }
}

.thinking-copy {
  min-width: 0;
  padding-right: 30px;
}

.thinking-copy h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.thinking-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.thinking-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.thinking-stats div,
.thinking-stages li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  padding: 10px;
}

.thinking-stats span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.thinking-stats strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.thinking-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-3);
}

.thinking-progress span {
  display: block;
  width: var(--thinking-progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #baffd1);
  transition: width 240ms ease;
}

.thinking-stages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thinking-stages li {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.thinking-stages li.running {
  border-color: rgba(30, 215, 96, 0.48);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, 0.08);
}

.thinking-stages li.complete {
  color: var(--accent);
}

.report-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 44px));
  height: min(860px, calc(100vh - 44px));
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.report-search {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  padding: 0 24px;
  font-weight: 850;
}

.report-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.modal-content {
  min-width: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 18px 24px 26px;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  margin-bottom: 16px;
}

.score-card,
.severity-card,
.finding-card,
.hosting-card,
.direct-overview-card,
.direct-chart-card,
.direct-meta-card,
.direct-finding-card,
.direct-support-card {
  padding: 16px;
}

.score-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.score-ring {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel-2) 58%, transparent 59%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), var(--panel-3) 0);
}

.score-ring span {
  font-size: 24px;
  font-weight: 950;
}

.score-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

#summary-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.severity-card {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
}

.severity,
.severity-tag,
.priority-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0b0b;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.severity.critical,
.severity-tag.critical {
  color: var(--critical);
}

.severity.high,
.severity-tag.high {
  color: var(--high);
}

.severity.medium,
.severity-tag.medium {
  color: var(--medium);
}

.severity.low,
.severity-tag.low,
.severity.light,
.severity-tag.light {
  color: var(--low);
}

.modal-section {
  margin-top: 18px;
}

.section-heading {
  align-items: baseline;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.facts-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact,
.facts-panel .panel-placeholder {
  min-height: 66px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
}

.facts-panel .panel-placeholder {
  grid-column: 1 / -1;
}

.fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.36;
}

.empty-report {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  background: #0b0b0b;
  padding: 22px;
  text-align: center;
}

.empty-report h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.empty-report p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-report button {
  min-height: 40px;
  background: var(--accent);
  color: #041108;
  padding: 0 18px;
}

.finding-list,
.hosting-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finding-topline h3,
.hosting-topline h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.32;
}

.finding-card p,
.hosting-card p,
.direct-finding-card p,
.direct-support-card p,
.direct-overview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.category {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 12px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.direct-overview-card {
  grid-row: span 2;
  border-left: 4px solid var(--accent);
}

.direct-card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-meta-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.direct-meta-card div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
}

.direct-meta-card dt {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-meta-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.severity-bar-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 900;
}

.severity-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-3);
}

.severity-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.severity-bar-row.critical i {
  background: var(--critical);
}

.severity-bar-row.high i {
  background: var(--high);
}

.severity-bar-row.medium i {
  background: var(--medium);
}

.severity-bar-row.low i {
  background: var(--low);
}

.direct-findings-list,
.direct-support-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.direct-severity-group {
  display: grid;
  gap: 10px;
}

.direct-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.direct-group-heading h4 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.direct-finding-card {
  border-left: 4px solid var(--line-strong);
}

.direct-finding-card.critical {
  border-left-color: var(--critical);
}

.direct-finding-card.high {
  border-left-color: var(--high);
}

.direct-finding-card.medium {
  border-left-color: var(--medium);
}

.direct-finding-card.low {
  border-left-color: var(--low);
}

.direct-finding-card h3,
.direct-support-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.direct-finding-card code,
.direct-support-card code,
.direct-overview-card code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #000;
  padding: 1px 5px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.direct-support-card a,
.direct-overview-card a {
  color: var(--accent);
  font-weight: 900;
}

#llm-output {
  max-width: 100%;
  min-height: 420px;
  margin: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  color: #d8d8d8;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.58;
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }

  .top-nav {
    position: static;
    height: auto;
    min-height: 0;
  }

  .top-nav-inner {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
  }

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

  .sidebar-library,
  .sidebar-plan {
    display: none;
  }

  .minimal-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "target"
      "work"
      "live";
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 6px;
  }

  .top-nav-inner,
  .nav-pills,
  .target-stage,
  .input-frame,
  .capability-grid,
  .account-panel,
  .thinking-dialog,
  .thinking-stats,
  .thinking-stages,
  .admin-summary,
  .admin-grid,
  .summary-grid,
  .finding-list,
  .hosting-list,
  .facts-panel,
  .direct-dashboard {
    grid-template-columns: 1fr;
  }

  .target-stage {
    min-height: 620px;
    padding: 26px 18px;
  }

  .signal-field {
    display: none;
  }

  .target-stage h1 {
    font-size: 50px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .input-frame {
    border-radius: 18px;
    padding: 12px;
  }

  .input-prefix {
    justify-self: start;
  }

  #run-button,
  #stop-button {
    width: 100%;
  }

  .agent-strip,
  .agent-strip div,
  .console-meta {
    display: grid;
    justify-items: start;
    border-radius: 18px;
  }

  .capability-grid {
    gap: 8px;
  }

  .report-dialog {
    width: min(100% - 14px, 1120px);
    height: min(100% - 14px, 900px);
  }

  .modal-content {
    padding: 14px 12px 18px;
  }

  .thinking-dialog,
  .auth-dialog {
    width: min(100% - 14px, 780px);
    padding: 16px;
  }

  .thinking-orbit {
    justify-self: center;
  }

  .direct-overview-card {
    grid-row: auto;
  }

  .direct-meta-card div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
