/* ── Base reset + body ───────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a0a;
  color: #d0d0d0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-bottom: 1px solid #1a1a1a; font-size: 0.82rem;
  position: sticky; top: 0; background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px); z-index: 50;
}
nav a { color: #555; text-decoration: none; transition: color 0.2s; }
nav a:hover { color: #f0f0f0; }
nav .spacer { flex: 1; }

/* ── Nav auth ────────────────────────────────────────────────────────────────── */
#nav-auth { position: relative; }
#nav-auth-btn {
  background: none; border: 1px solid #252525; border-radius: 6px;
  color: #444; font-size: 0.75rem; padding: 4px 10px; cursor: pointer;
  font-family: inherit; transition: color 0.2s, border-color 0.2s;
  text-decoration: none; display: inline-block; line-height: 1.6;
}
#nav-auth-btn:hover { color: #888; border-color: #333; }
#nav-auth-btn.authed { color: #4ade80; border-color: rgba(74,222,128,0.25); }
#nav-auth-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 8px;
  min-width: 160px; z-index: 200; overflow: hidden;
}
#nav-auth-dropdown.open { display: block; }
.nav-dd-item {
  display: block; padding: 9px 14px; font-size: 0.8rem; color: #888;
  text-decoration: none; cursor: pointer; background: none; border: none;
  font-family: inherit; width: 100%; text-align: left; transition: background .15s, color .15s;
}
.nav-dd-item:hover { background: #161616; color: #ccc; }
.nav-dd-item.danger:hover { color: #f87171; }

/* ── Gate ────────────────────────────────────────────────────────────────────── */
.gate {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 53px);
}
.gate-box {
  text-align: center; padding: 48px 32px;
  background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 16px;
  max-width: 360px;
}
.gate-icon { font-size: 2.5rem; margin-bottom: 16px; }
.gate-box h2 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.gate-box p { color: #555; font-size: 0.9rem; margin-bottom: 24px; }
.btn-primary {
  display: inline-block; background: #4ade80; color: #000;
  font-weight: 600; padding: 10px 24px; border-radius: 8px;
  text-decoration: none; font-size: 0.9rem; transition: background 0.2s;
}
.btn-primary:hover { background: #22c55e; }

/* ── Chat widget ─────────────────────────────────────────────────────────────── */
#chat-bubble-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 900; }
#chat-bubble {
  width: 48px; height: 48px; border-radius: 50%;
  background: #1a1a1a; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
#chat-bubble:hover { background: #222; color: #888; border-color: #333; }
#chat-panel {
  display: none; position: fixed; bottom: 84px; right: 24px; z-index: 901;
  width: 340px; max-height: 480px; flex-direction: column;
  background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); overflow: hidden;
}
#chat-panel.open { display: flex; }
#chat-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #1a1a1a;
  font-size: 0.82rem; color: #666;
}
#chat-close {
  background: none; border: none; color: #444; cursor: pointer;
  font-size: 0.9rem; padding: 2px 6px; border-radius: 4px; font-family: inherit;
  transition: color 0.15s;
}
#chat-close:hover { color: #888; }
#chat-messages {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.83rem; line-height: 1.55;
}
.chat-msg-user {
  align-self: flex-end; background: #1a2a1a; border: 1px solid #253525;
  border-radius: 12px 12px 3px 12px; padding: 8px 12px; color: #ccc; max-width: 84%;
}
.chat-msg-ai {
  align-self: flex-start; background: #141414; border: 1px solid #1e1e1e;
  border-radius: 12px 12px 12px 3px; padding: 8px 12px; color: #aaa; max-width: 84%;
}
#chat-input-row {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #1a1a1a;
}
#chat-input {
  flex: 1; background: #111; border: 1px solid #1e1e1e; border-radius: 8px;
  color: #ccc; font-size: 0.82rem; padding: 7px 11px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: #2a2a2a; }
#chat-send {
  background: #1a2a1a; border: 1px solid #253525; border-radius: 8px;
  color: #4ade80; font-size: 1rem; padding: 6px 12px; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
#chat-send:hover { background: #213221; }

/* ── Status bar ─────────────────────────────────────────────────────────────── */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; border-bottom: 1px solid #111;
  font-size: 0.8rem; gap: 12px;
}
.status-bar-left  { display: flex; align-items: center; gap: 8px; }
.status-bar-right { display: flex; align-items: center; gap: 10px; }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.connected    { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.4); }
.status-dot.disconnected { background: #333; }
.status-dot.syncing      { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.4); animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.status-label { color: #888; }
.status-meta  { color: #444; font-size: 0.75rem; }

.btn-sync {
  background: none; border: 1px solid #252525; border-radius: 5px;
  color: #555; font-size: 0.75rem; padding: 4px 10px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.btn-sync:hover:not(:disabled) { color: #4ade80; border-color: rgba(74,222,128,.3); }
.btn-sync:disabled { opacity: .4; cursor: default; }
.btn-sync.loading { color: #f59e0b; border-color: rgba(245,158,11,.3); }

.btn-settings {
  color: #444; font-size: 0.75rem; text-decoration: none;
  padding: 4px 10px; border: 1px solid #1e1e1e; border-radius: 5px;
  transition: color .15s, border-color .15s;
}
.btn-settings:hover { color: #888; border-color: #333; }

.mcp-status-chip {
  font-size: 0.7rem; border-radius: 4px; padding: 2px 7px;
  background: #111; color: #333; white-space: nowrap;
  border: 1px solid #1a1a1a;
}
.mcp-status-chip.connected {
  background: rgba(74,222,128,.08); color: #4ade80;
  border-color: rgba(74,222,128,.2);
}

/* ── Source tabs ─────────────────────────────────────────────────────────────── */
.source-tabs {
  display: flex; align-items: center; gap: 0;
  padding: 0 20px; border-bottom: 1px solid #111; flex-shrink: 0;
}
.stab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: #444; font-size: 0.82rem; padding: 11px 16px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.stab:hover { color: #aaa; }
.stab.active { color: #4ade80; border-bottom-color: #4ade80; }

/* ── No connection banner ───────────────────────────────────────────────────── */
.no-connection {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 146px);
}
.no-conn-box {
  text-align: center; padding: 48px 32px;
  background: #0e0e0e; border: 1px solid #1a1a1a; border-radius: 16px;
  max-width: 400px;
}
.no-conn-icon { color: #333; margin-bottom: 20px; }
.no-conn-box h2 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.no-conn-box p  { color: #555; font-size: 0.88rem; line-height: 1.6; }
.no-conn-box a  { color: #4ade80; }

/* ── Shell: list + detail ────────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 146px);
  overflow: hidden;
}

.list-panel {
  border-right: 1px solid #111;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.list-header {
  padding: 12px 16px; border-bottom: 1px solid #111;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.list-search {
  flex: 1; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 6px;
  color: #ccc; font-size: 0.78rem; padding: 6px 10px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.list-search:focus { border-color: #2a2a2a; }
.list-search::placeholder { color: #333; }
.list-count { color: #333; font-size: 0.72rem; white-space: nowrap; }

.list-empty {
  padding: 32px 16px; color: #333; font-size: 0.82rem; text-align: center;
}

.mcp-sync-meta {
  padding: 6px 16px; font-size: 0.72rem; color: #444;
  border-bottom: 1px solid #0e0e0e; flex-shrink: 0;
}

#note-list { overflow-y: auto; flex: 1; }

.note-item {
  padding: 14px 16px; border-bottom: 1px solid #0e0e0e; cursor: pointer;
  transition: background .12s;
}
.note-item:hover  { background: #0d0d0d; }
.note-item.active { background: #0e0e0e; border-left: 2px solid #4ade80; }

.note-item-title-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.note-item-title {
  font-size: 0.82rem; color: #d0d0d0; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.ia-done-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #f59e0b; box-shadow: 0 0 5px rgba(245,158,11,.35);
  title: "Interview analysis complete";
}
.note-item-meta {
  font-size: 0.7rem; color: #444; display: flex; gap: 8px;
}
.note-item-summary {
  font-size: 0.72rem; color: #444; margin-top: 5px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.45;
}

/* Pagination */
.list-pagination {
  padding: 10px 16px; border-top: 1px solid #111;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.btn-page {
  background: none; border: 1px solid #1e1e1e; border-radius: 5px;
  color: #555; font-size: 0.72rem; padding: 4px 8px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.btn-page:hover:not(:disabled) { color: #aaa; border-color: #333; }
.btn-page:disabled { opacity: .3; cursor: default; }
.page-info { font-size: 0.72rem; color: #444; }

/* ── Detail panel ────────────────────────────────────────────────────────────── */
.detail-panel {
  display: flex; flex-direction: column; overflow: hidden;
}
.detail-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: #2a2a2a;
}
.detail-placeholder p { font-size: 0.82rem; color: #2a2a2a; }

.detail-content { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.detail-header {
  padding: 20px 24px 0; border-bottom: 1px solid #111; flex-shrink: 0;
}
.detail-title {
  font-size: 1.05rem; font-weight: 600; color: #e0e0e0; line-height: 1.35;
  margin-bottom: 6px;
}
.detail-meta {
  font-size: 0.72rem; color: #444; padding-bottom: 14px; display: flex; gap: 12px;
}

.detail-tabs {
  display: flex; gap: 0; flex-shrink: 0;
  border-bottom: 1px solid #111;
}
.dtab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: #555; font-size: 0.78rem; padding: 10px 20px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.dtab:hover { color: #aaa; }
.dtab.active { color: #4ade80; border-bottom-color: #4ade80; }

.detail-body {
  flex: 1; overflow-y: auto; padding: 20px 24px; font-size: 0.84rem;
  line-height: 1.7; color: #bbb;
}
.detail-body p + p { margin-top: 10px; }
.detail-body .no-data { color: #333; font-style: italic; }

/* MCP raw output */
.mcp-raw {
  font-family: 'Cascadia Code','Fira Code','Consolas',monospace;
  font-size: 0.78rem; color: #777; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.mcp-raw-list {
  padding: 12px 16px; font-size: 0.75rem; color: #555;
  font-family: 'Cascadia Code','Fira Code','Consolas',monospace;
  white-space: pre-wrap; word-break: break-word; overflow-y: auto;
}

/* Transcript */
.transcript-item {
  padding: 8px 0; border-bottom: 1px solid #0e0e0e;
}
.transcript-item:last-child { border-bottom: none; }
.transcript-speaker {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: .1em;
  color: #4ade80; margin-bottom: 3px;
}
.transcript-text { font-size: 0.82rem; color: #999; line-height: 1.55; }

/* ── MCP section ─────────────────────────────────────────────────────────────── */
.mcp-section {
  border-top: 1px solid #111; padding: 32px 24px;
  max-width: 860px;
}
.mcp-section-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: .14em;
  color: #333; margin-bottom: 10px;
}
.mcp-desc {
  font-size: 0.84rem; color: #555; line-height: 1.65; margin-bottom: 16px;
  max-width: 600px;
}
.mcp-desc code { color: #888; font-family: 'Cascadia Code','Fira Code','Consolas',monospace; font-size: .9em; }

.mcp-cmd-block {
  background: #080808; border: 1px solid #1a1a1a; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; max-width: 600px;
}
.mcp-cmd-label { font-size: 0.65rem; color: #333; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .1em; }
.mcp-cmd-row { display: flex; align-items: center; gap: 12px; }
.mcp-cmd-row code {
  flex: 1; font-family: 'Cascadia Code','Fira Code','Consolas',monospace;
  font-size: 0.8rem; color: #888; word-break: break-all;
}

.btn-copy-cmd {
  background: none; border: 1px solid #1e1e1e; border-radius: 5px;
  color: #444; font-size: 0.7rem; padding: 3px 8px; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: color .15s, border-color .15s;
}
.btn-copy-cmd:hover { color: #4ade80; border-color: rgba(74,222,128,.3); }
.btn-copy-cmd.copied { color: #4ade80; border-color: rgba(74,222,128,.3); }

.mcp-tools-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: .1em;
  color: #333; margin-bottom: 8px;
}
.mcp-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mcp-chip {
  background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 4px;
  font-family: 'Cascadia Code','Fira Code','Consolas',monospace;
  font-size: 0.72rem; color: #555; padding: 3px 8px;
}

/* ── Nav stamp ───────────────────────────────────────────────────────────────── */
.nav-stamp {
  font-size: 0.7rem; color: #333; white-space: nowrap;
}

/* ── Interview Analysis ──────────────────────────────────────────────────────── */

.ia-form {
  max-width: 520px;
}
.ia-form-header { margin-bottom: 20px; }
.ia-form-title  { font-size: 0.95rem; font-weight: 600; color: #ddd; margin-bottom: 6px; }
.ia-form-desc   { font-size: 0.8rem; color: #555; line-height: 1.6; }

.ia-controls {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.ia-field-group { display: flex; flex-direction: column; gap: 5px; }
.ia-field-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: #555; font-weight: 600;
}
.ia-model-select {
  background: #0d0d0d; border: 1px solid #1e1e1e; border-radius: 6px;
  color: #ccc; font-size: 0.82rem; padding: 7px 10px;
  font-family: inherit; cursor: pointer; min-width: 210px;
  transition: border-color .15s;
}
.ia-model-select:focus { outline: none; border-color: #2a2a2a; }

.ia-run-btn {
  background: #4ade80; color: #000; border: none; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; padding: 8px 18px; cursor: pointer;
  font-family: inherit; transition: opacity .15s; white-space: nowrap;
}
.ia-run-btn:hover    { opacity: .88; }
.ia-run-btn:disabled { opacity: .45; cursor: not-allowed; }

.ia-status.hidden { display: none; }

.ia-loading {
  display: flex; align-items: center; gap: 10px;
  color: #f59e0b; font-size: 0.82rem; padding: 4px 0;
}
.ia-spinner {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(245,158,11,.25);
  border-top-color: #f59e0b;
  animation: ia-spin .8s linear infinite;
}
@keyframes ia-spin { to { transform: rotate(360deg); } }

/* Streaming display */
.ia-stream-wrap {
  display: flex; flex-direction: column; gap: 10px; padding: 4px 0;
}
.ia-stream-header {
  display: flex; align-items: center; gap: 8px;
  color: #f59e0b; font-size: 0.82rem;
}
.ia-stream-text {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.73rem; line-height: 1.55;
  color: #888;
  background: #111; border: 1px solid #222;
  border-radius: 6px; padding: 12px 14px;
  white-space: pre-wrap; word-break: break-word;
  max-height: 420px; overflow-y: auto;
  scroll-behavior: smooth;
}

.ia-error {
  color: #f87171; font-size: 0.82rem;
  background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.2);
  border-radius: 6px; padding: 9px 12px;
}
.ia-retry-btn {
  background: none; border: 1px solid #252525; border-radius: 5px;
  color: #888; font-size: 0.78rem; padding: 6px 12px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.ia-retry-btn:hover { color: #ccc; border-color: #444; }

/* Results meta bar */
.ia-results-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.75rem; color: #555; margin-bottom: 20px;
}
.ia-meta-dot { color: #2a2a2a; }
.ia-rerun-btn {
  margin-left: auto; background: none; border: 1px solid #1e1e1e;
  border-radius: 5px; color: #555; font-size: 0.72rem; padding: 3px 9px;
  cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s;
}
.ia-rerun-btn:hover { color: #f59e0b; border-color: rgba(245,158,11,.35); }

/* Section headers */
.ia-section-header {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.ia-section-header--career { color: #a78bfa; }
.ia-section-header--star   { color: #4ade80; }
.ia-section-divider        { margin: 24px 0; border-top: 1px solid #141414; }

/* Cards list */
.ia-cards { display: flex; flex-direction: column; gap: 20px; }

.ia-card {
  border: 1px solid #1a1a1a; border-radius: 12px; overflow: hidden;
  background: #0d0d0d; transition: border-color .2s;
}
.ia-card:hover { border-color: #252525; }

.ia-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px 10px; border-bottom: 1px solid #141414;
}
.ia-card--career { border-color: rgba(167,139,250,.2); }
.ia-card--career:hover { border-color: rgba(167,139,250,.35); }
.ia-career-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #a78bfa;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 4px; padding: 2px 7px;
}
/* Career summary row colours */
.career-hook   .star-row-label { color: #e879f9; }
.career-arc    .star-row-label { color: #a78bfa; }
.career-recent .star-row-label { color: #38bdf8; }
.career-why    .star-row-label { color: #34d399; }
.ia-num {
  font-size: 0.68rem; font-weight: 700; color: #333;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.ia-cat-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cat-color, #888);
  background: color-mix(in srgb, var(--cat-color, #888) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, #888) 25%, transparent);
  border-radius: 4px; padding: 2px 7px;
}

.ia-question {
  padding: 13px 18px 12px;
  font-size: 0.88rem; font-weight: 600; color: #ccc; line-height: 1.5;
  border-bottom: 1px solid #141414;
}

/* Three-column body */
.ia-body {
  display: grid; grid-template-columns: 1fr 0.7fr 1.3fr;
}
.ia-col { display: flex; flex-direction: column; }
.ia-col--raw   { border-right: 1px solid #141414; }
.ia-col--notes { border-right: 1px solid #141414; }

.ia-col-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 9px 16px 7px;
  border-bottom: 1px solid #141414;
}
.ia-col--raw   .ia-col-label { color: #f59e0b; }
.ia-col--notes .ia-col-label { color: #60a5fa; }
.ia-col--ideal .ia-col-label { color: #4ade80; }

.ia-col-text {
  padding: 13px 16px; font-size: 0.8rem; color: #888;
  line-height: 1.68; white-space: pre-wrap; flex: 1;
}

.ia-notes-list {
  list-style: none; margin: 0; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
}
.ia-notes-list li {
  font-size: 0.78rem; color: #a0a0a0; line-height: 1.5;
  padding-left: 14px; position: relative;
}
.ia-notes-list li::before {
  content: '▸'; position: absolute; left: 0;
  color: #60a5fa; font-size: 0.65rem; top: 2px;
}
.ia-notes-empty { color: #333; font-style: italic; }
.ia-notes-stale { color: #555; font-style: italic; font-size: 0.73rem; }
.ia-notes-list .ia-notes-empty::before { content: ''; }

/* STAR rows inside ideal column */
.star-answer { flex: 1; }
.star-row {
  display: grid; grid-template-columns: max-content 1fr;
  border-bottom: 1px solid #141414;
}
.star-row:last-child { border-bottom: none; }
.star-row-label {
  padding: 13px 10px 13px 12px; border-right: 1px solid #141414;
  font-size: 0.62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; display: flex; align-items: flex-start;
  padding-top: 15px; white-space: nowrap;
}
.star-s .star-row-label { color: #60a5fa; }
.star-t .star-row-label { color: #f59e0b; }
.star-a .star-row-label { color: #4ade80; }
.star-r .star-row-label { color: #a78bfa; }
.star-row-body {
  padding: 13px 16px; font-size: 0.8rem; line-height: 1.68; color: #bbb;
}
.star-row-body p { margin-bottom: 8px; }
.star-row-body p:last-child { margin-bottom: 0; }
.star-row-body strong { color: #d4d4d4; font-weight: 600; }
.star-row-body em     { color: #777; font-style: italic; }
.star-row-empty { color: #333; font-style: italic; font-size: 0.8rem; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }
  .list-panel { height: 45vh; border-right: none; border-bottom: 1px solid #111; }
  .detail-panel { height: 55vh; }
  .mcp-section { padding: 24px 16px; }
  .source-tabs { padding: 0 16px; }
}

@media (max-width: 640px) {
  .ia-body { grid-template-columns: 1fr; }
  .ia-col--raw,
  .ia-col--notes { border-right: none; border-bottom: 1px solid #141414; }
  .ia-controls { flex-direction: column; align-items: stretch; }
  .ia-model-select { min-width: unset; }
  .ia-run-btn { width: 100%; }
}
