.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: #3c5360; background: #f4f7f8; }
.llm-ai-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px 13px; border-bottom: 1px solid #cbd6dc; background: linear-gradient(#fff, #edf3f6); }
.llm-ai-heading h1 { margin: 2px 0 4px; color: #284958; font-size: 21px; }
.llm-ai-heading p { margin: 0; color: #71838c; font-size: 9px; }
.llm-ai-heading .eyebrow { color: #317ca8; font-size: 8px; font-weight: bold; letter-spacing: 1.5px; }
.llm-ai-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid #bfcdd4; background: #e1e9ed; }
.llm-ai-tabs button { min-width: 105px; height: 33px; margin-bottom: -1px; color: #607681; border: 1px solid transparent; background: transparent; font-size: 9px; }
.llm-ai-tabs button.is-selected { color: #1c6693; border-color: #bfcdd4 #bfcdd4 #f4f7f8; background: #f4f7f8; 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 #ccd7dc; background: #e7eef2; }
.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: #536b78; text-align: left; border: 1px solid #bdcbd2; border-radius: 3px; background: linear-gradient(#fff, #edf2f4); box-shadow: 0 1px 2px rgba(31, 60, 75, .08); }
.llm-ai-profile-card strong, .llm-ai-session-card strong { color: #334f5e; font-size: 10px; }
.llm-ai-profile-card small, .llm-ai-session-card small { overflow: hidden; color: #748892; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-profile-card.is-selected, .llm-ai-session-card.is-selected { border-color: #4c94bd; background: linear-gradient(#e9f5fb, #d9eaf3); box-shadow: inset 0 0 0 1px #fff; }
.llm-ai-profile-card .llm-ai-profile-state { display: flex; align-items: center; gap: 5px; color: #4b8563; }
.llm-ai-profile-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #58a56c; }
.llm-ai-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; color: #85969e; text-align: center; }
.llm-ai-empty[hidden] { display: none; }
.llm-ai-empty svg { width: 42px; height: 42px; opacity: .55; }
.llm-ai-empty strong { color: #617782; 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 #d8e0e4; }
.llm-ai-form-heading h2 { margin: 0 0 3px; color: #314f5e; font-size: 16px; }
.llm-ai-form-heading p { margin: 0; color: #84939a; font-size: 8px; }
#llmAiSavedBadge { padding: 4px 8px; color: #2f7650; border: 1px solid #9bc5aa; border-radius: 10px; background: #e6f4eb; font-size: 8px; }
.llm-ai-form > label, .llm-ai-fields > label { display: grid; gap: 4px; color: #4d6571; 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: #324e5b; border: 1px solid #b7c6cd; border-radius: 2px; background: #fff; 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: #8a9aa2; 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: #607782; border: 1px solid #d2dde1; background: #edf3f5; 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 #c9d8df; background: #f9fbfc; }
.llm-ai-diagnostics[hidden] { display: none; }
.llm-ai-diagnostics header { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #395b6c; font-size: 9px; }
.llm-ai-diagnostics header span { overflow: hidden; color: #7a8f99; 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 #d7e1e5; background: #fff; }
.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: #7da4b8; font: bold 6px Arial, sans-serif; }
.llm-ai-diagnostics li.is-pass::before { content: "✓"; background: #58a56c; }
.llm-ai-diagnostics li.is-fail::before { content: "×"; background: #bc6555; }
.llm-ai-diagnostics li strong { overflow: hidden; color: #435e6b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-diagnostics li span { grid-column: 2; overflow: hidden; color: #7d8f97; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.llm-ai-status { min-height: 29px; display: flex; align-items: center; padding: 7px 9px; color: #58707c; border-left: 3px solid #73a7c5; background: #e8f2f7; font-size: 8px; }
.llm-ai-status.is-error { color: #804439; border-color: #bc6555; background: #f7e9e6; }
.llm-ai-status.is-success { color: #367152; border-color: #62a37c; background: #e8f4ec; }
.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 #d4dee2; }
.llm-ai-session-detail h2 { margin: 0 0 4px; color: #324f5d; font-size: 16px; }
.llm-ai-session-detail header p { margin: 0; color: #7b8e97; 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 #d1dce1; background: #fff; }
.llm-ai-session-metrics strong { color: #31566a; font-size: 12px; }
.llm-ai-session-metrics span { color: #82949c; 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: #cfdae0; }
.llm-ai-transcript-card { position: relative; min-width: 0; display: grid; gap: 9px; padding: 11px 12px; border: 1px solid #d0dce1; border-left: 4px solid #92abb8; border-radius: 3px; background: #fff; 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 #f4f7f8; border-radius: 50%; background: #92abb8; 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: #3682ad; }
.llm-ai-transcript-card.is-observation { border-left-color: #6b9a76; background: #fbfdfb; }
.llm-ai-transcript-card.is-observation::before { background: #6b9a76; }
.llm-ai-transcript-card.is-reaction { border-left-color: #9c8b5b; background: #fffefa; }
.llm-ai-transcript-card.is-reaction::before { background: #9c8b5b; }
.llm-ai-transcript-card.is-error { border-left-color: #bd6556; background: #fffafa; }
.llm-ai-transcript-card.is-error::before { background: #bd6556; }
.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: #315363; font-size: 11px; }
.llm-ai-transcript-card.is-turn > .llm-ai-transcript-header strong { color: #236f9b; font-size: 13px; }
.llm-ai-transcript-header span { color: #798c95; font-size: 8px; }
.llm-ai-transcript-header time { flex: 0 0 auto; color: #8b9aa1; 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: #405d6a; border: 1px solid #d5dfe3; border-radius: 10px; background: #f3f7f8; font-size: 8px; }
.llm-ai-transcript-chip small { color: #819198; font-size: 7px; text-transform: uppercase; }
.llm-ai-transcript-chip strong { color: inherit; font-size: 8px; }
.llm-ai-transcript-chip.is-warning { color: #8a5b31; border-color: #dfc29d; background: #fff5e9; }
.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 #dce5e8; background: #f8fafb; }
.llm-ai-transcript-fields dt { color: #7b8d95; font-size: 8px; }
.llm-ai-transcript-fields dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #405c69; font: 8px/1.35 Consolas, monospace; }
.llm-ai-reasoning, .llm-ai-state-details, .llm-ai-tool-result-details, .llm-ai-raw-details { color: #637983; 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: #527687; font-weight: bold; }
.llm-ai-reasoning > div { margin-top: 7px; padding: 8px 9px; color: #425e6b; border-left: 3px solid #b7cbd5; background: #f2f6f8; 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 #ccdbe2; border-radius: 3px; background: #f9fbfc; }
.llm-ai-tool-call.is-success { border-color: #b8d3c0; background: #f8fcf9; }
.llm-ai-tool-call.is-error { border-color: #debcb5; background: #fff9f8; }
.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: #6b91a5; font-size: 8px; font-weight: bold; }
.llm-ai-tool-call > header strong { color: #34596b; font-size: 9px; }
.llm-ai-tool-call > header code { min-width: 0; overflow: hidden; color: #81929a; font-size: 7px; text-overflow: ellipsis; }
.llm-ai-tool-status { padding: 3px 6px; color: #6f8189; border-radius: 9px; background: #e9eef0; font-size: 7px; font-weight: bold; text-transform: uppercase; }
.llm-ai-tool-call.is-success .llm-ai-tool-status { color: #34704c; background: #dff0e5; }
.llm-ai-tool-call.is-error .llm-ai-tool-status { color: #914b3f; background: #f3ded9; }
.llm-ai-tool-result { padding-left: 8px; color: #506975; border-left: 2px solid #b8cbd4; font-size: 8px; line-height: 1.4; }
.llm-ai-tool-call.is-success .llm-ai-tool-result { border-color: #71a884; }
.llm-ai-tool-call.is-error .llm-ai-tool-result { color: #824c43; border-color: #c87768; }
.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: #4f6a76; 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: #526c77; border-left: 2px solid #92abb8; background: #f3f7f8; font: 8px/1.35 Consolas, monospace; }
.llm-ai-state-deltas li.is-appeared { border-color: #65a277; background: #eef7f1; }
.llm-ai-state-deltas li.is-destroyed, .llm-ai-state-deltas li.is-lost, .llm-ai-state-deltas li.is-lostContact { border-color: #bd6556; background: #fbefed; }
.llm-ai-state-details[open] { display: grid; gap: 8px; }
.llm-ai-state-collection { display: grid; gap: 4px; padding: 7px 8px; border: 1px solid #dbe4e7; background: #f8fafb; }
.llm-ai-state-collection > strong { color: #466674; font-size: 8px; }
.llm-ai-state-collection > p { margin: 0; color: #617781; }
.llm-ai-state-collection li { color: #617781; font: 8px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.llm-ai-scouting-grid { width: fit-content; margin: 0; color: #345b6b; font: 8px/1.15 Consolas, monospace; letter-spacing: 1px; }
.llm-ai-raw-details { padding-top: 2px; border-top: 1px solid #e3e9eb; }
.llm-ai-raw-details summary { margin-top: 6px; color: #8a999f; font-weight: normal; }
.llm-ai-raw-details pre { max-height: 260px; overflow: auto; margin: 7px 0 0; padding: 8px; color: #627780; border: 1px solid #dbe4e7; background: #f5f8f9; 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 #ccd7dc; }
  .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; }
}
