/* Shared Console details and Developer Terminal. Workspace presentation lives in the React bundle. */
:root { --surface: #fff; --subtle: #e8f2ef; --line: #d5e3df; --ink: #162b31; --brand: #16803f; --brand-hover: #0d6630; --brand-bg: #e4f5e8; --success: #0d6b54; --success-bg: #ddf4e9; --warning: #936300; --warning-bg: #fff0c9; --danger: #b9382e; --danger-bg: #fce5e1; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 72%, white); outline-offset: 2px; }
button.primary { background: var(--brand); border-color: var(--brand); }
button.primary:hover { background: var(--brand-hover); color: rgb(255, 255, 255); }
.status.completed, .status.deployed, .status.ready { background: var(--success-bg); color: var(--success); }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-title h1 { margin-bottom: 4px; }
.secondary-panel { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.secondary-panel summary { cursor: pointer; font-weight: 600; }
@media (max-width: 800px) {
  .page-title { align-items: stretch; flex-direction: column; }
}
.file-diff { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 1px; background: var(--line); }
.file-diff > div { min-width: 0px; padding: 8px 10px; background: var(--surface); }
.file-diff span { color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
  .file-diff { grid-template-columns: 1fr; }
}
.revision-comparison { margin-top: 8px; font-size: 12px; }
.revision-comparison summary { cursor: pointer; color: var(--ink); }
.revision-comparison > strong { display: block; margin-top: 10px; }
.revision-comparison pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.raw-terminal-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.raw-terminal-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.raw-terminal-panel header p { margin: 4px 0px 0px; font-size: 12px; }
#workspace-shell-terminal { height: 420px; padding: 8px; background: rgb(16, 27, 45); }
@media (max-width: 800px) {
  #workspace-shell-terminal { height: 320px; }
}
body[data-route="sessions"] main > .bar { display: none; }
body[data-route="sessions"] main { height: 100dvh; display: flex; flex-direction: column; min-width: 0px; }
body[data-route="sessions"] main > #screen { max-width: none; padding: 8px 24px 16px; display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0px; box-sizing: border-box; }
body[data-route="sessions"] main > #notice { flex-shrink: 0; }
body[data-route="sessions"] main > #notice { padding-right: 24px; padding-left: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border: 0px; }
.raw-terminal-panel { position: fixed; z-index: 40; inset: 8vh 5vw; display: grid; grid-template-rows: auto minmax(0px, 1fr); margin: 0px; box-shadow: rgba(15, 17, 21, 0.28) 0px 22px 58px; }
#workspace-shell-terminal { height: auto; min-height: 0px; }
@media (max-width: 800px) {
  .raw-terminal-panel { inset: 5vh 10px; }
}
.row-meta-strip { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); margin-top: 2px; }
.row-meta-strip span { white-space: nowrap; }
.row-meta-strip .row-publisher { min-width: 0px; overflow: hidden; text-overflow: ellipsis; }
.row-stars { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; font-variant-numeric: tabular-nums; }
.row-stars .ui-icon, .row-stars svg { width: 12px; height: 12px; }
.inspector-source-link { display: flex; align-items: flex-start; gap: 8px; color: var(--brand); font-size: 12px; overflow-wrap: anywhere; }
.inspector-source-link .ui-icon { flex-shrink: 0; }
.inspector-desc-text { white-space: pre-line; overflow-wrap: anywhere; }
.capability-toast { position: fixed; right: 24px; bottom: 24px; z-index: 3000; display: flex; align-items: center; gap: 12px; max-width: min(420px, -32px + 100vw); padding: 10px 12px; background: var(--graphite-dark,#162b31); color: rgb(255, 255, 255); border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 20px; font: 500 13px/1.5 var(--font-body,system-ui); overflow-wrap: anywhere; }
.capability-toast[hidden] { display: none; }
.capability-toast button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0px; border: 0px; background: transparent; color: inherit; }
.capability-toast[data-type="error"] { background: var(--danger,#a32929); }
@media (max-width: 800px) {
  .capability-toast { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); left: 16px; max-width: none; }
}
.inspector-header-card { display: flex; align-items: flex-start; gap: 12px; }
.inspector-avatar-large { width: 42px; height: 42px; border-radius: 2px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; box-sizing: border-box; }
.inspector-avatar-large svg { width: 26px; height: 26px; display: block; }
.inspector-avatar-large img { width: 26px; height: 26px; object-fit: contain; }
.inspector-title-block { flex: 1 1 0%; min-width: 0px; }
.inspector-title-block h3 { margin: 0px; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.inspector-vendor-line { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.inspector-section-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 8px; }
.inspector-desc-text { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0px; }
.inspector-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; }
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.spec-val { font-size: 12px; font-weight: 600; color: var(--ink); }
.inspector-tools-list { display: flex; flex-direction: column; gap: 8px; }
.tool-item-line { padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; display: flex; flex-direction: column; gap: 2px; }
.tool-func-name { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--brand); }
.tool-func-desc { font-size: 11px; color: var(--ink-soft); }
.catalog-card .search-match { padding: 0px; background: color-mix(in srgb,var(--gold) 42%,transparent); color: inherit; font-weight: inherit; }
@media (max-width: 800px) {
  .mobile-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
}
