.start-page {
  min-height: 100vh;
}

.start-main {
  min-height: 100vh;
  padding: 118px 24px 40px;
  display: grid;
  place-items: center;
}

.intake-shell {
  position: relative;
  width: min(var(--max), 100%);
  min-height: calc(100vh - 158px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 36%),
    radial-gradient(circle at 54% 45%, rgba(143, 61, 255, 0.13), transparent 31%),
    radial-gradient(circle at 74% 62%, rgba(103, 232, 249, 0.055), transparent 28%),
    rgba(2, 4, 10, 0.58);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.5),
    inset 0 0 80px rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.intake-shell::before {
  content: "INTAKE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.024);
  pointer-events: none;
}

.intake-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(143, 61, 255, 0.052) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: frameScan 7s linear infinite;
  pointer-events: none;
}

.intake-status-row {
  position: relative;
  z-index: 4;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.intake-status-row span:nth-child(2) {
  justify-self: center;
  color: var(--purple-hot);
}

.intake-status-row span:nth-child(3) {
  justify-self: end;
  color: var(--silver-bright);
}

.intake-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(460px, 1.35fr) minmax(270px, 0.72fr);
  gap: 24px;
  min-height: calc(100vh - 202px);
  align-items: start;
  padding: 34px;
}

.intake-sidebar,
.terminal-panel,
.brief-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%),
    rgba(3, 6, 12, 0.66);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 38px rgba(255, 255, 255, 0.018),
    0 24px 80px rgba(0, 0, 0, 0.28);
}

.intake-sidebar {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 61, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.intake-sidebar::-webkit-scrollbar {
  width: 8px;
}

.intake-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.intake-sidebar::-webkit-scrollbar-thumb {
  background: rgba(143, 61, 255, 0.45);
}

.intake-sidebar h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.82;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-shadow:
    0 0 34px rgba(143, 61, 255, 0.24),
    0 0 90px rgba(143, 61, 255, 0.08);
}

.intake-sidebar h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 208, 220, 0.8);
}

.intake-sidebar p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.side-panel {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.side-panel div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.side-panel span,
.brief-header span {
  display: block;
  font-family: var(--font-mono);
  color: var(--purple-hot);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.side-panel strong {
  color: var(--text);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
}

.intake-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 0;
  flex-shrink: 0;
}

/* TERMINAL — LOCKED HEIGHT */
.terminal-panel {
  display: grid;
  grid-template-rows: 54px 1fr;
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  overflow: hidden;
}

.terminal-topbar {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(199, 208, 220, 0.32);
}

.terminal-dots span:nth-child(1) {
  background: var(--purple-hot);
  box-shadow: 0 0 18px rgba(143, 61, 255, 0.75);
}

.terminal-dots span:nth-child(2) {
  background: var(--silver-bright);
  box-shadow: 0 0 18px rgba(199, 208, 220, 0.45);
}

.terminal-dots span:nth-child(3) {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.45);
}

.terminal-topbar p {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.82rem;
}

.terminal-topbar strong {
  justify-self: end;
  font-family: var(--font-mono);
  color: var(--purple-hot);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.terminal-body {
  position: relative;
  height: calc(520px - 54px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.terminal-body::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(199, 208, 220, 0.055);
  pointer-events: none;
}

.terminal-output {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.68;
  color: #dce7f7;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 61, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.terminal-output::-webkit-scrollbar,
.brief-list::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track,
.brief-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.terminal-output::-webkit-scrollbar-thumb,
.brief-list::-webkit-scrollbar-thumb {
  background: rgba(143, 61, 255, 0.45);
}

.terminal-line {
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.terminal-line.system {
  color: var(--purple-hot);
}

.terminal-line.prompt {
  color: var(--silver-bright);
}

.terminal-line.user {
  color: var(--cyan);
}

.terminal-line.success {
  color: #9fffc8;
}

.terminal-line.error {
  color: #ff8f8f;
}

.terminal-line.dim {
  color: var(--muted);
}

.terminal-input-line {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 4px;
  border-top: 1px solid rgba(199, 208, 220, 0.08);
  font-family: var(--font-mono);
}

.terminal-input-line span {
  color: var(--purple-hot);
  text-shadow: 0 0 14px rgba(143, 61, 255, 0.45);
}

.terminal-input-line input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

.terminal-input-line input::placeholder {
  color: rgba(143, 155, 173, 0.72);
}

/* BRIEF PANEL */
.brief-panel {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.brief-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.brief-header strong {
  font-family: var(--font-display);
  color: var(--silver-bright);
  font-size: 1.32rem;
}

.brief-list {
  min-height: 0;
  padding: 16px 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 61, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.muted-line {
  color: var(--muted);
  line-height: 1.6;
}

.brief-item {
  padding: 11px;
  border: 1px solid rgba(199, 208, 220, 0.085);
  background: rgba(255, 255, 255, 0.024);
}

.brief-item span {
  display: block;
  color: var(--purple-hot);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.brief-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.brief-buttons {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ghost-button,
.primary-mini {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.ghost-button:hover,
.primary-mini:hover {
  transform: translateY(-2px);
  border-color: var(--line-purple);
  box-shadow: 0 0 26px rgba(143, 61, 255, 0.12);
}

.primary-mini {
  border-color: rgba(199, 208, 220, 0.28);
  color: #05070b;
  background: linear-gradient(135deg, var(--silver-bright), var(--silver));
}

.ghost-button:disabled,
.primary-mini:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .intake-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intake-sidebar {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .intake-actions {
    margin-top: 28px;
  }

  .terminal-panel {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }

  .terminal-body {
    height: calc(520px - 54px);
  }

  .brief-panel {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }
}

@media (max-width: 760px) {
  .start-main {
    padding: 98px 12px 28px;
  }

  .intake-status-row {
    display: none;
  }

  .intake-grid {
    padding: 24px 16px;
  }

  .intake-sidebar h1 {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }

  .terminal-topbar {
    grid-template-columns: 1fr;
    gap: 6px;
    height: auto;
    min-height: 74px;
    padding: 14px;
  }

  .terminal-topbar strong {
    justify-self: start;
  }

  .terminal-panel {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    grid-template-rows: auto 1fr;
  }

  .terminal-body {
    height: auto;
    min-height: 0;
    padding: 16px;
  }

  .terminal-output {
    font-size: 0.88rem;
  }

  .brief-panel {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
  }

  .intake-actions {
    flex-direction: column;
  }
}
/* Terminal branch choices */
.terminal-choice-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(143, 61, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 61, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.024);
  box-shadow: inset 0 0 28px rgba(143, 61, 255, 0.055);
}

.terminal-choice-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(199, 208, 220, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(3, 6, 12, 0.72);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 11px 13px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.terminal-choice-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-purple);
  background:
    linear-gradient(135deg, rgba(143, 61, 255, 0.18), rgba(103, 232, 249, 0.045)),
    rgba(3, 6, 12, 0.86);
  box-shadow: 0 0 22px rgba(143, 61, 255, 0.18);
}

.terminal-choice-btn:active {
  transform: translateY(0);
}
