.llm-ai-window .titlebar-app-icon svg { width: 19px; height: 19px; }
.llm-ai-manager-body { flex: 1; min-height: 0; display: flex; flex-direction: column; color: #c6cad2; background: #2a2f3c; }
.llm-ai-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px 13px; border-bottom: 1px solid #475066; background: linear-gradient(#333333, #5b4a2c); }
.llm-ai-heading h1 { margin: 2px 0 4px; color: #c2a471; font-size: 21px; }
.llm-ai-heading p { margin: 0; color: #c7cad1; font-size: 9px; }
.llm-ai-heading .eyebrow { color: #e5cea6; font-size: 8px; font-weight: bold; letter-spacing: 1.5px; }
.llm-ai-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid #454f64; background: #2a2f3c; }
.llm-ai-tabs button { min-width: 105px; height: 33px; margin-bottom: -1px; color: #c6cad2; border: 1px solid transparent; background: transparent; font-size: 9px; }
.llm-ai-tabs button.is-selected { color: #e4be7e; border-color: #454f64 #454f64 #475066; background: #2a2f3c; font-weight: bold; }
.llm-ai-view { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.llm-ai-view[hidden] { display: none; }
.llm-ai-view > aside { min-height: 0; overflow: auto; padding: 12px; border-right: 1px solid #475066; background: #2a2f3c; }
.llm-ai-profile-list, .llm-ai-session-list { display: grid; gap: 7px; }
.llm-ai-profile-card, .llm-ai-session-card { width: 100%; display: grid; gap: 4px; padding: 10px; color: #c6cad2; text-align: left; border: 1px solid #454e63; border-radius: 3px; background: linear-gradient(#333333, #2a2f3c); box-shadow: 0 1px 2px rgba(31, 60, 75, .08); }
.llm-ai-profile-card strong, .llm-ai-session-card strong { color: #c6cad2; font-size: 10px; }
.llm-ai-profile-card small, .llm-ai-session-card small { overflow: hidden; color: #c6cad2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-profile-card.is-selected, .llm-ai-session-card.is-selected { border-color: #a17f45; background: linear-gradient(#694e1e, #5f4822); box-shadow: inset 0 0 0 1px #fff; }
.llm-ai-profile-card .llm-ai-profile-state { display: flex; align-items: center; gap: 5px; color: #8fdaab; }
.llm-ai-profile-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2f8a4f; }
.llm-ai-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; color: #c6cad2; text-align: center; }
.llm-ai-empty[hidden] { display: none; }
.llm-ai-empty svg { width: 42px; height: 42px; opacity: .55; }
.llm-ai-empty strong { color: #c6cad2; font-size: 10px; }
.llm-ai-empty span { max-width: 170px; font-size: 8px; line-height: 1.45; }
.llm-ai-form { min-height: 0; overflow: auto; display: grid; align-content: start; gap: 11px; padding: 16px 20px 20px; }
.llm-ai-form-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #475066; }
.llm-ai-form-heading h2 { margin: 0 0 3px; color: #c6ab7b; font-size: 16px; }
.llm-ai-form-heading p { margin: 0; color: #c7cad1; font-size: 8px; }
#llmAiSavedBadge { padding: 4px 8px; color: #6fcf92; border: 1px solid #3d4557; border-radius: 10px; background: #24603a; font-size: 8px; }
.llm-ai-form > label, .llm-ai-fields > label { display: grid; gap: 4px; color: #c6cad2; font-size: 9px; font-weight: bold; }
.llm-ai-form input:not([type="checkbox"]), .llm-ai-form select, .llm-ai-form textarea { min-width: 0; padding: 7px 8px; color: #c6cad2; border: 1px solid #434c60; border-radius: 2px; background: #333333; font: 9px Arial, sans-serif; box-shadow: inset 0 1px 2px rgba(31, 62, 77, .07); }
.llm-ai-form input:not([type="checkbox"]), .llm-ai-form select { height: 30px; }
.llm-ai-form textarea { resize: vertical; line-height: 1.45; }
.llm-ai-optional { color: #c6cad2; font-size: 8px; font-weight: normal; }
.llm-ai-inline-control { min-width: 0; display: flex; gap: 5px; }
.llm-ai-inline-control input { flex: 1; }
.llm-ai-inline-control .button { flex: 0 0 auto; height: 30px; padding-inline: 8px; white-space: nowrap; }
.llm-ai-fields { display: grid; gap: 10px; }
.llm-ai-fields.two-column { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.llm-ai-fields.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.llm-ai-runtime-policy { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; color: #c6cad2; border: 1px solid #475066; background: #2a2f3c; font-size: 8px; }
.llm-ai-runtime-policy label { display: flex; align-items: center; gap: 6px; }
.llm-ai-runtime-policy input[type="number"] { width: 78px; }
.llm-ai-diagnostics { display: grid; gap: 7px; padding: 9px 10px; border: 1px solid #475066; background: #5f4d2e; }
.llm-ai-diagnostics[hidden] { display: none; }
.llm-ai-diagnostics header { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #cdb58a; font-size: 9px; }
.llm-ai-diagnostics header span { overflow: hidden; color: #c6cad2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-diagnostics ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.llm-ai-diagnostics li { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px 6px; padding: 6px 7px; border: 1px solid #475066; background: #333333; }
.llm-ai-diagnostics li::before { content: "i"; grid-row: span 2; width: 8px; height: 8px; margin-top: 1px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #1c2028; font: bold 6px Arial, sans-serif; }
.llm-ai-diagnostics li.is-pass::before { content: "✓"; background: #2f8a4f; }
.llm-ai-diagnostics li.is-fail::before { content: "×"; background: #3b1a17; }
.llm-ai-diagnostics li strong { overflow: hidden; color: #c6cad2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-diagnostics li span { grid-column: 2; overflow: hidden; color: #c6cad2; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-status { min-height: 29px; display: flex; align-items: center; padding: 7px 9px; color: #c6cad2; border-left: 3px solid #b69254; background: #604b26; font-size: 8px; }
.llm-ai-status.is-error { color: #db8b82; border-color: #2f3544; background: #642720; }
.llm-ai-status.is-success { color: #70d093; border-color: #2d3341; background: #24603a; }
.llm-ai-form-actions { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 8px; }
.llm-ai-session-detail { min-height: 0; overflow: auto; padding: 16px 20px; }
.llm-ai-session-detail > header { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 12px; border-bottom: 1px solid #475066; }
.llm-ai-session-detail h2 { margin: 0 0 4px; color: #c6ab7b; font-size: 16px; }
.llm-ai-session-detail header p { margin: 0; color: #c6cad2; font-size: 8px; }
.llm-ai-session-detail header > div:last-child { display: flex; gap: 6px; }
.llm-ai-session-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.llm-ai-session-metrics div { display: grid; gap: 3px; padding: 8px; border: 1px solid #475066; background: #333333; }
.llm-ai-session-metrics strong { color: #cab083; font-size: 12px; }
.llm-ai-session-metrics span { color: #c6cad2; font-size: 7px; text-transform: uppercase; }
.llm-ai-session-events { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 4px 16px; list-style: none; }
.llm-ai-session-events::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 4px; width: 2px; background: #272c38; }
.llm-ai-transcript-card { position: relative; min-width: 0; display: grid; gap: 9px; padding: 11px 12px; border: 1px solid #475066; border-left: 4px solid #394052; border-radius: 3px; background: #333333; box-shadow: 0 1px 3px rgba(36, 60, 72, .09); }
.llm-ai-transcript-card::before { content: ""; position: absolute; top: 14px; left: -20px; width: 8px; height: 8px; border: 2px solid #475066; border-radius: 50%; background: #1e222b; box-shadow: 0 0 0 1px #bdccd3; }
.llm-ai-transcript-card.is-turn { border-left-color: #3682ad; }
.llm-ai-transcript-card.is-turn::before { background: #352813; }
.llm-ai-transcript-card.is-observation { border-left-color: #6b9a76; background: #24603a; }
.llm-ai-transcript-card.is-observation::before { background: #2f8a4f; }
.llm-ai-transcript-card.is-reaction { border-left-color: #9c8b5b; background: #766319; }
.llm-ai-transcript-card.is-reaction::before { background: #3b3216; }
.llm-ai-transcript-card.is-error { border-left-color: #bd6556; background: #6d2017; }
.llm-ai-transcript-card.is-error::before { background: #3c1a17; }
.llm-ai-transcript-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.llm-ai-transcript-header > div { min-width: 0; display: grid; gap: 2px; }
.llm-ai-transcript-header strong { color: #c8ad7f; font-size: 11px; }
.llm-ai-transcript-card.is-turn > .llm-ai-transcript-header strong { color: #e5c48c; font-size: 13px; }
.llm-ai-transcript-header span { color: #c6cad2; font-size: 8px; }
.llm-ai-transcript-header time { flex: 0 0 auto; color: #c7cad1; font: 8px Consolas, monospace; }
.llm-ai-transcript-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.llm-ai-transcript-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 6px; color: #c6cad2; border: 1px solid #475066; border-radius: 10px; background: #2a2f3c; font-size: 8px; }
.llm-ai-transcript-chip small { color: #c7cad1; font-size: 7px; text-transform: uppercase; }
.llm-ai-transcript-chip strong { color: inherit; font-size: 8px; }
.llm-ai-transcript-chip.is-warning { color: #d2a882; border-color: #414a5e; background: #764c19; }
.llm-ai-transcript-fields { display: grid; grid-template-columns: minmax(85px, auto) minmax(0, 1fr); gap: 4px 9px; margin: 0; padding: 7px 8px; border: 1px solid #475066; background: #2a2f3c; }
.llm-ai-transcript-fields dt { color: #c6cad2; font-size: 8px; }
.llm-ai-transcript-fields dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #c6cad2; font: 8px/1.35 Consolas, monospace; }
.llm-ai-reasoning, .llm-ai-state-details, .llm-ai-tool-result-details, .llm-ai-raw-details { color: #c6cad2; font-size: 8px; }
.llm-ai-reasoning summary, .llm-ai-state-details summary, .llm-ai-tool-result-details summary, .llm-ai-raw-details summary { width: fit-content; cursor: pointer; color: #c6cad2; font-weight: bold; }
.llm-ai-reasoning > div { margin-top: 7px; padding: 8px 9px; color: #c6cad2; border-left: 3px solid #444d62; background: #5d4b2d; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.llm-ai-tool-calls { display: grid; gap: 7px; }
.llm-ai-tool-call { min-width: 0; display: grid; gap: 7px; padding: 9px; border: 1px solid #475066; border-radius: 3px; background: #5f4d2e; }
.llm-ai-tool-call.is-success { border-color: #444d62; background: #24603a; }
.llm-ai-tool-call.is-error { border-color: #454f64; background: #6d2017; }
.llm-ai-tool-call > header { min-width: 0; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.llm-ai-tool-order { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #191c23; font-size: 8px; font-weight: bold; }
.llm-ai-tool-call > header strong { color: #cbb286; font-size: 9px; }
.llm-ai-tool-call > header code { min-width: 0; overflow: hidden; color: #c6cad2; font-size: 7px; text-overflow: ellipsis; }
.llm-ai-tool-status { padding: 3px 6px; color: #c7cad1; border-radius: 9px; background: #2a2f3c; font-size: 7px; font-weight: bold; text-transform: uppercase; }
.llm-ai-tool-call.is-success .llm-ai-tool-status { color: #6ecf92; background: #24603a; }
.llm-ai-tool-call.is-error .llm-ai-tool-status { color: #df9890; background: #652720; }
.llm-ai-tool-result { padding-left: 8px; color: #c6cad2; border-left: 2px solid #444d62; font-size: 8px; line-height: 1.4; }
.llm-ai-tool-call.is-success .llm-ai-tool-result { border-color: #303746; }
.llm-ai-tool-call.is-error .llm-ai-tool-result { color: #dd938b; border-color: #343b4b; }
.llm-ai-tool-result-details > .llm-ai-transcript-fields { margin-top: 6px; }
.llm-ai-state-deltas { display: grid; gap: 5px; }
.llm-ai-state-deltas > strong { color: #c6cad2; font-size: 8px; }
.llm-ai-state-deltas ul, .llm-ai-state-collection ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.llm-ai-state-deltas li { padding: 4px 6px; color: #c6cad2; border-left: 2px solid #394052; background: #2a2f3c; font: 8px/1.35 Consolas, monospace; }
.llm-ai-state-deltas li.is-appeared { border-color: #2d3341; background: #24603a; }
.llm-ai-state-deltas li.is-destroyed, .llm-ai-state-deltas li.is-lost, .llm-ai-state-deltas li.is-lostContact { border-color: #2f3644; background: #6c2118; }
.llm-ai-state-details[open] { display: grid; gap: 8px; }
.llm-ai-state-collection { display: grid; gap: 4px; padding: 7px 8px; border: 1px solid #475066; background: #2a2f3c; }
.llm-ai-state-collection > strong { color: #c6cad2; font-size: 8px; }
.llm-ai-state-collection > p { margin: 0; color: #c6cad2; }
.llm-ai-state-collection li { color: #c6cad2; font: 8px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.llm-ai-scouting-grid { width: fit-content; margin: 0; color: #cbb286; font: 8px/1.15 Consolas, monospace; letter-spacing: 1px; }
.llm-ai-raw-details { padding-top: 2px; border-top: 1px solid #485165; }
.llm-ai-raw-details summary { margin-top: 6px; color: #c7cad1; font-weight: normal; }
.llm-ai-raw-details pre { max-height: 260px; overflow: auto; margin: 7px 0 0; padding: 8px; color: #c6cad2; border: 1px solid #475066; background: #2a2f3c; font: 7px/1.45 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 760px) {
  .llm-ai-view { grid-template-columns: 1fr; }
  .llm-ai-view > aside { max-height: 145px; border-right: 0; border-bottom: 1px solid #475066; }
  .llm-ai-fields.two-column, .llm-ai-fields.three-column { grid-template-columns: 1fr; }
  .llm-ai-runtime-policy { align-items: flex-start; flex-direction: column; }
  .llm-ai-diagnostics ul { grid-template-columns: 1fr; }
  .llm-ai-session-metrics { grid-template-columns: repeat(2, 1fr); }
  .llm-ai-session-detail { padding: 12px; }
  .llm-ai-tool-call > header { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .llm-ai-tool-call > header code { display: none; }
}
